:root {
  --bg: #050d18;
  --bg-2: #081524;
  --panel: #0c1e33;
  --ink: #e8f1fa;
  --ink-dim: #9db4c8;
  --accent: #35c6ff;
  --accent-2: #ffd23f;
  --line: rgba(154, 196, 231, 0.14);
  --radius: 18px;
  --font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

.accent { color: var(--accent); }
.tm { font-size: 0.45em; vertical-align: super; color: var(--accent); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede { color: var(--ink-dim); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44rem; margin-top: 1.1rem; }

.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(5, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand-name em { font-style: normal; font-weight: 400; color: var(--ink-dim); }

.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1f8fd0);
  color: #04121f;
  box-shadow: 0 8px 30px rgba(53, 198, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(53, 198, 255, 0.5); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(232, 241, 250, 0.35);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(232, 241, 250, 0.07); }
.btn-outline { color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(53, 198, 255, 0.12); }
.btn-small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,24,0.55) 0%, rgba(5,13,24,0.25) 40%, rgba(5,13,24,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1.5rem 5rem; max-width: 60rem; }
.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #a9d6f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 38rem;
  margin: 1.5rem auto 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.6rem 0;
}
.proof-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.proof-item p { margin-top: 0.4rem; color: var(--ink); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-dark {
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(53, 198, 255, 0.08), transparent),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.split-rev { grid-template-columns: 1fr 1.1fr; }
.split-copy p { color: var(--ink-dim); margin-bottom: 1rem; }

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.media-card img, .media-card video { width: 100%; height: 100%; object-fit: cover; }
.media-card figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.media-glow { box-shadow: 0 0 80px rgba(53, 198, 255, 0.18), 0 24px 60px rgba(0,0,0,0.45); }
.media-light { background: #f4f7fa; }
.media-light figcaption { background: var(--panel); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(53, 198, 255, 0.4); }
.feature-card p { color: var(--ink-dim); font-size: 0.95rem; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(53, 198, 255, 0.12);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 24px; height: 24px; }

.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-card video { width: 100%; }
.video-card figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
  background: var(--panel);
}

.eng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(53, 198, 255, 0.16), transparent),
    var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-inner .lede { margin-inline: auto; margin-bottom: 2.2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 2.5rem; }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-tag { color: var(--ink-dim); font-size: 0.85rem; }
.footer-contact { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-contact a { color: var(--ink-dim); text-decoration: none; font-size: 0.95rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-legal { color: rgba(157, 180, 200, 0.55); font-size: 0.8rem; }

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.2rem; padding: 2rem 0; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    flex-direction: column;
    background: rgba(5, 13, 24, 0.97);
    width: 100%;
    padding: 1.5rem 6vw 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
