* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark { font-family: var(--font-heading); }

/* background layers */
.grid-bg {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.glow-orb {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: 0.28; pointer-events: none;
}
.glow-orb.one {
  width: 480px; height: 480px; top: -140px; right: -100px;
  background: var(--accent);
  animation: drift-a 18s ease-in-out infinite;
}
.glow-orb.two {
  width: 360px; height: 360px; top: 240px; left: -140px;
  background: var(--accent-bright);
  animation: drift-b 22s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 50px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -30px); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-orb { animation: none !important; }
}

/* nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color var(--duration-fast) ease;
}
.nav-links a:not(.btn):hover { color: var(--accent-bright); }

/* mobile-only bar: just the compact CTA and the dropdown arrow.
   Everything else (links + language switch) lives inside .nav-links,
   which becomes the dropdown content on mobile. Hidden on desktop. */
.mobile-bar { display: none; align-items: center; gap: 10px; }

.btn-sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 4px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.nav-toggle.open svg { transform: rotate(180deg); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 5vw; align-items: center;
  padding: var(--space-hero-top) 6vw 100px;
  max-width: 1280px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.1; font-weight: 700; letter-spacing: -1.8px; margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal; color: var(--accent-bright);
  text-shadow: 0 0 34px var(--accent-glow);
}
.hero p.lede { font-size: 17.5px; color: var(--text-dim); max-width: 47ch; margin-bottom: 34px; }
.demo-wrap { position: relative; }

/* generic sections */
section { padding: var(--space-section) 6vw; max-width: 1280px; margin: 0 auto; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.sec-lede { color: var(--text-dim); max-width: 58ch; font-size: 16px; }

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 6vw; }
.band-inner { max-width: 1280px; margin: 0 auto; }

.foot-cta { text-align: center; padding: 110px 6vw 100px; }
.foot-cta p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 6vw; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent-bright); }

/* responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .demo-wrap { margin: 0 auto; }
  .glow-orb { display: none; }
  .wordmark img { width: 30px; height: 30px; }

  /* swap: desktop link row hides behind the dropdown toggle,
     mobile-bar (CTA + arrow) takes its place at the top */
  .mobile-bar { display: flex; }
  .nav-toggle { display: flex; }

  /* the full-size CTA inside .nav-links is hidden on mobile —
     the compact one in .mobile-bar covers that job instead */
  .nav-links a.btn { display: none; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 8px 6vw 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  /* language switch now lives inside the dropdown — give it its
     own spacing so it doesn't look glued to the links above it */
  .nav-links .lang-switch {
    margin-top: 8px;
    align-self: flex-start;
  }
}