:root {
  color-scheme: dark;
  --bg: #070709;
  --bg-alt: #0f0f16;
  --text: #f2f4ff;
  --muted: #b7b9c9;
  --accent: #29c4ff;
  --accent-2: #7c5cff;
  --accent-3: #ff2dd4;
  --card: rgba(15, 15, 22, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(7, 7, 9, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(37, 116, 255, 0.12), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(255, 45, 212, 0.1), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 80px;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 7, 9, 0.85), rgba(7, 7, 9, 0.55));
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 260ms ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
}

.glow {
  position: fixed;
  inset: -20% 20% auto 10%;
  height: 320px;
  background: linear-gradient(120deg, rgba(41, 196, 255, 0.35), rgba(255, 45, 212, 0));
  filter: blur(60px);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
  animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(-10px) translateY(0);
  }
  to {
    transform: translateX(40px) translateY(20px);
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8vw 14px;
  min-height: 64px;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms ease, opacity 280ms ease, padding 200ms ease,
    background 200ms ease;
}

body.nav-visible .nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.nav-compact .nav {
  padding: 12px 8vw 10px;
  background: rgba(7, 7, 9, 0.88);
}

.brand-logo {
  height: 24px;
  max-height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

body.nav-compact .brand-logo {
  height: 20px;
  max-height: 20px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 9, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle .laser {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px rgba(41, 196, 255, 0.6);
  transition: transform 200ms ease, width 200ms ease, box-shadow 200ms ease;
}

body.nav-open .nav-toggle .laser {
  width: 30px;
  transform: rotate(-12deg);
  box-shadow: 0 0 18px rgba(255, 45, 212, 0.8);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 9, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 4;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.splash {
  position: relative;
  height: 100vh;
  min-height: 520px;
  width: 100vw;
  overflow: hidden;
  background: #040405;
}

.splash-video {
  display: block;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #040405;
  filter: saturate(1.08) contrast(1.05);
}


.splash-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(41, 196, 255, 0.18), transparent 45%),
    radial-gradient(circle at center, rgba(4, 4, 5, 0) 55%, rgba(4, 4, 5, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.08), rgba(4, 4, 5, 0.28));
}

.splash-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.splash-scroll span {
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  animation: scroll-pulse 1.6s ease-in-out infinite;
}

@keyframes splash-zoom {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

@keyframes scroll-pulse {
  0% {
    transform: translateY(-4px);
    opacity: 0.6;
  }
  60% {
    transform: translateY(6px);
    opacity: 1;
  }
  100% {
    transform: translateY(-4px);
    opacity: 0.6;
  }
}

.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px 8vw 20px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 12px 0 18px;
}

.hero-copy p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.cta,
.ghost {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #06060a;
  box-shadow: 0 20px 40px rgba(41, 196, 255, 0.25);
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-logo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}

.hero-logo img {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.section {
  padding: 80px 8vw 20px;
  scroll-margin-top: 96px;
}

.section.alt {
  background: var(--bg-alt);
  margin-top: 20px;
  padding-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
}

.cards,
.grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.panel {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card h3,
.panel h3 {
  margin-bottom: 10px;
}

.card p,
.panel p {
  color: var(--muted);
}

.contact {
  padding-bottom: 80px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: rgba(7, 7, 9, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
}

.contact-form button {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  color: #06060a;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(41, 196, 255, 0.08), rgba(124, 92, 255, 0.08));
  display: grid;
  gap: 8px;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.legal {
  padding-bottom: 80px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.legal-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  gap: 6px;
}

.legal-card a {
  color: var(--text);
  text-decoration: none;
}

.legal-text {
  margin-top: 32px;
  max-width: 820px;
  color: var(--muted);
}

.legal-text h3 {
  color: var(--text);
  margin-bottom: 12px;
}

.legal-text p + p {
  margin-top: 12px;
}

.footer {
  padding: 32px 8vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 6vw 10px;
  }

  body.nav-compact .nav {
    padding: 10px 6vw 8px;
  }

  .brand-logo {
    height: 18px;
    max-height: 18px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 14px;
    padding: 20px 6vw 24px;
    background: rgba(12, 12, 18, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
    z-index: 6;
  }

  body.nav-open .nav-links {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    margin: 0;
    font-size: 1.05rem;
    padding: 6px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-grid {
    padding: 28px 6vw 16px;
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    padding: 22px;
  }

  .hero-logo img {
    max-width: 260px;
  }

  .section {
    padding: 64px 6vw 16px;
    scroll-margin-top: 92px;
  }

  .section.alt {
    padding-bottom: 48px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 24px 6vw;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .splash-scroll {
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}
