:root {
  --bg: #07090d;
  --ink: #f3f5f7;
  --muted: #a9b1bc;
  --accent: #3ee6a8;
  --accent-ink: #04120c;
  --line: rgba(255, 255, 255, 0.14);
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { display: grid; gap: 3px; }
.brand-mark i { display: block; height: 3px; background: var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(1) { width: 8px; }
.brand-mark i:nth-child(2) { width: 16px; }
.brand-mark i:nth-child(3) { width: 12px; }
.brand-mark i:nth-child(4) { width: 5px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav-links a:not(.nav-cta) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px); background: rgba(7, 9, 13, 0.35); }
.nav-cta:hover { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 clamp(20px, 5vw, 56px) clamp(72px, 12vh, 128px);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0) 28%),
    linear-gradient(0deg, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.35) 45%, rgba(7, 9, 13, 0) 75%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.6) 0%, rgba(7, 9, 13, 0) 60%);
}
.hero-content { max-width: 760px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 22px; max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: #d6dbe1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 999px; font-weight: 500; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); background: rgba(7, 9, 13, 0.35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, .sound-toggle:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sound-toggle {
  position: absolute; right: clamp(20px, 5vw, 56px); bottom: clamp(24px, 5vh, 44px);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(7, 9, 13, 0.45); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 0.75rem; cursor: pointer;
}
.sound-toggle .icon-play, .sound-toggle[aria-pressed="true"] .icon-pause { display: none; }
.sound-toggle[aria-pressed="true"] .icon-play { display: inline; }

.scroll-cue { position: absolute; left: 50%; bottom: clamp(24px, 5vh, 44px); transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }

/* Features */
.features { padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
.features-inner { max-width: 1120px; margin: 0 auto; }
.features h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid article { background: var(--bg); padding: 32px 28px 40px; }
.tag { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.grid h3 { margin: 18px 0 10px; font-size: 1.25rem; letter-spacing: -0.01em; }
.grid p { color: var(--muted); line-height: 1.6; }

.footer { padding: 32px clamp(20px, 5vw, 56px); color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content, .scroll-cue span { animation: none; }
}
