:root {
  --bg: #050806;
  --panel: #0a0f0c;
  --panel-2: #10150f;
  --line: rgba(207, 255, 18, 0.22);
  --line-strong: rgba(207, 255, 18, 0.48);
  --green: #b8ff12;
  --green-deep: #76bf08;
  --yellow: #ffd400;
  --red: #ff4b52;
  --text: #f6f5ee;
  --muted: #a4a49c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --font-display: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 85% 12%, rgba(184, 255, 18, 0.10), transparent 28rem),
    radial-gradient(circle at 12% 0%, rgba(255, 212, 0, 0.06), transparent 25rem),
    #050806;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.stage-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 6, 0.82);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-wordmark {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a:first-child,
.nav-links a:hover {
  color: var(--green);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 30px;
  align-items: end;
  min-height: clamp(420px, 60vh, 720px);
  padding: clamp(70px, 10vw, 150px) clamp(20px, 4vw, 60px) clamp(42px, 7vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 6, 0.92), transparent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.88;
}

.hero-bg-grid {
  background:
    linear-gradient(90deg, rgba(184, 255, 18, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(184, 255, 18, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 68% 36%, rgba(184, 255, 18, 0.18), transparent 24rem),
    radial-gradient(circle at 18% 72%, rgba(255, 75, 82, 0.13), transparent 16rem);
  background-size: 74px 74px, 74px 74px, auto, auto;
  animation: heroGrid 24s linear infinite;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(0.76rem, 1.5vw, 0.95rem);
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d6d6cf;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.hero-panel {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(10, 15, 12, 0.88), rgba(20, 28, 18, 0.74));
  box-shadow: var(--shadow);
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(48px, 7vw, 92px) 0 34px;
}

.intro-band h2 {
  max-width: 590px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.7vw, 6.2rem);
  line-height: 0.92;
}

.intro-band > p {
  max-width: 680px;
  margin: 42px 0 0;
  color: #d0d0c9;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 0 96px;
}

.lab-demo {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 620ms ease, transform 620ms ease, border-color 260ms ease;
}

.lab-demo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 42px solid var(--green);
  border-left: 42px solid transparent;
  opacity: 0.65;
  z-index: 4;
}

.lab-demo.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.lab-demo:hover {
  border-color: var(--line-strong);
}

.demo-stage {
  position: relative;
  min-height: 404px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  align-items: end;
}

.animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.feed-card {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 10, 8, 0.93), rgba(10, 17, 12, 0.84)),
    rgba(5, 8, 6, 0.9);
  box-shadow: var(--shadow);
}

.demo-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.meta-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 800;
}

.headline {
  min-height: 2.2em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 3.55rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.summary {
  margin: 18px 0 0;
  color: #cdcdc5;
  font-size: 1.02rem;
  line-height: 1.45;
}

.tag-row,
.stats-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 212, 0, 0.56);
  border-radius: 5px;
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.06);
  font-size: 0.84rem;
  font-weight: 900;
}

.stats-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-row strong {
  color: var(--green);
  font-size: 1.3em;
}

.button-row button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(184, 255, 18, 0.48);
  border-radius: 5px;
  color: #061006;
  background:
    linear-gradient(110deg, var(--green-deep), var(--green), var(--yellow), var(--green-deep));
  background-size: 240% 100%;
  font-weight: 950;
  cursor: default;
  animation: tagButtonWave 3.4s ease-in-out infinite;
}

.button-row .secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  animation: none;
}

.demo-note {
  position: relative;
  z-index: 2;
  min-height: 76px;
  margin: 0;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.4;
}

.demo-note::before {
  content: "Use case";
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.grid-stream {
  background:
    linear-gradient(90deg, rgba(184, 255, 18, 0.10) 1px, transparent 1px),
    linear-gradient(rgba(184, 255, 18, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(184, 255, 18, 0.18), transparent 16rem),
    #050806;
  background-size: 46px 46px, 46px 46px, auto, auto;
  animation: gridPan 14s linear infinite;
}

.grid-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 212, 0, 0.16), transparent 55%);
  transform: translateX(-100%);
  animation: sweep 4s ease-in-out infinite;
}

.scanline-sweep {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 18% 24%, rgba(255, 75, 82, 0.16), transparent 16rem),
    radial-gradient(circle at 82% 72%, rgba(184, 255, 18, 0.12), transparent 18rem);
}

.scanline-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  top: -10%;
  background: linear-gradient(90deg, transparent, rgba(184, 255, 18, 0.9), transparent);
  box-shadow: 0 0 30px rgba(184, 255, 18, 0.55);
  animation: scanDown 3.8s ease-in-out infinite;
}

.rain-field {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 212, 0, 0.11), transparent 17rem),
    linear-gradient(180deg, rgba(184, 255, 18, 0.06), transparent 60%),
    #050806;
}

.rain-field span {
  position: absolute;
  top: -40px;
  color: rgba(184, 255, 18, 0.23);
  font-family: var(--font-mono);
  font-size: 14px;
  animation: rainFall linear infinite;
}

.radar-rings {
  background: radial-gradient(circle at 70% 42%, rgba(184, 255, 18, 0.12), transparent 22rem), #050806;
}

.radar-rings::before,
.radar-rings::after {
  content: "";
  position: absolute;
  left: 56%;
  top: 48%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(184, 255, 18, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: radarPulse 3s ease-out infinite;
}

.radar-rings::after {
  animation-delay: 1.4s;
}

.thread-current {
  background: #050806;
}

.thread-current::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    repeating-linear-gradient(122deg, transparent 0 28px, rgba(184, 255, 18, 0.12) 29px 31px, transparent 32px 74px),
    repeating-linear-gradient(126deg, transparent 0 60px, rgba(255, 212, 0, 0.09) 61px 63px, transparent 64px 118px);
  animation: diagonalDrift 14s linear infinite;
}

.glitch-field {
  background:
    linear-gradient(90deg, rgba(255, 75, 82, 0.08), transparent 24%, rgba(184, 255, 18, 0.08) 52%, transparent 80%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 13px),
    #050806;
  animation: glitchBg 2.5s steps(2, end) infinite;
}

.noise-field {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 212, 0, 0.10), transparent 16rem),
    radial-gradient(circle at 88% 72%, rgba(184, 255, 18, 0.13), transparent 20rem),
    #050806;
}

.noise-field::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(184, 255, 18, 0.8) 1px, transparent 1px);
  background-size: 28px 28px, 46px 46px;
  animation: noiseMove 7s steps(8, end) infinite;
}

.orbital-nodes {
  background: radial-gradient(circle at 50% 50%, rgba(184, 255, 18, 0.11), transparent 23rem), #050806;
}

.orbital-nodes span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(184, 255, 18, 0.7);
  transform-origin: calc(var(--radius) * -1) center;
  animation: orbit 8s linear infinite;
  animation-delay: var(--delay);
}

.heat-map {
  background:
    linear-gradient(120deg, rgba(255, 75, 82, 0.12), transparent 36%),
    radial-gradient(circle at 78% 25%, rgba(255, 212, 0, 0.18), transparent 18rem),
    #050806;
}

.heat-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.16) 0 12%, transparent 12% 24%, rgba(184, 255, 18, 0.12) 24% 36%, transparent 36% 50%, rgba(255, 75, 82, 0.10) 50% 64%, transparent 64% 100%);
  background-size: 260px 100%;
  filter: blur(22px);
  animation: heatShift 9s ease-in-out infinite;
}

.terminal-bloom {
  background:
    linear-gradient(90deg, rgba(184, 255, 18, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(184, 255, 18, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 30% 26%, rgba(184, 255, 18, 0.17), transparent 17rem),
    #050806;
  background-size: 30px 30px, 30px 30px, auto, auto;
}

.terminal-bloom::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 8%, rgba(184, 255, 18, 0.10) 8% 10%, transparent 10% 18%, rgba(255, 212, 0, 0.07) 18% 21%, transparent 21%),
    linear-gradient(180deg, transparent 20%, rgba(184, 255, 18, 0.07) 20% 23%, transparent 23%);
  background-size: 220px 170px;
  animation: terminalBlink 2.8s steps(4, end) infinite;
}

.scramble {
  font-family: var(--font-display);
}

.type-reveal {
  white-space: normal;
}

.typing-word {
  display: inline-block;
  white-space: nowrap;
}

.type-reveal .char {
  display: inline-block;
  opacity: 0;
}

.lab-demo.is-visible .type-reveal .char {
  animation: charIn 18ms linear forwards;
  animation-delay: calc(var(--i) * 18ms);
}

.word-rise .word,
.cascade-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.lab-demo.is-visible .word-rise .word {
  animation: wordRise 520ms cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i) * 70ms);
}

.lab-demo.is-visible .cascade-reveal .word {
  animation: cascadeIn 520ms cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

.focus-pull {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.03);
}

.lab-demo.is-visible .focus-pull {
  animation: focusPull 900ms ease forwards;
}

.clip-reveal,
.wipe-reveal,
.command-reveal {
  opacity: 0;
}

.lab-demo.is-visible .clip-reveal {
  animation: clipReveal 840ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.lab-demo.is-visible .wipe-reveal {
  animation: wipeReveal 980ms ease forwards;
}

.glitch-title {
  position: relative;
  opacity: 0;
}

.glitch-title::before,
.glitch-title::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-title::before {
  color: var(--red);
  transform: translateX(-2px);
}

.glitch-title::after {
  color: var(--green);
  transform: translateX(2px);
}

.lab-demo.is-visible .glitch-title {
  animation: glitchText 900ms steps(2, end) forwards;
}

.lab-demo.is-visible .glitch-title::before,
.lab-demo.is-visible .glitch-title::after {
  animation: glitchGhost 900ms steps(2, end) forwards;
}

.roll-reveal,
.command-reveal {
  transform: translateY(18px);
}

.lab-demo.is-visible .roll-reveal {
  animation: rollReveal 740ms ease forwards;
}

.lab-demo.is-visible .command-reveal {
  animation: commandReveal 900ms steps(8, end) forwards;
}

@keyframes heroGrid {
  to { background-position: 74px 74px, 74px 74px, 0 0, 0 0; }
}

@keyframes tagButtonWave {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gridPan {
  to { background-position: 46px 46px, 46px 46px, 0 0, 0 0; }
}

@keyframes sweep {
  0%, 30% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes scanDown {
  0% { top: -8%; opacity: 0; }
  12%, 78% { opacity: 1; }
  100% { top: 108%; opacity: 0; }
}

@keyframes rainFall {
  from { transform: translateY(-40px); opacity: 0; }
  10%, 80% { opacity: 1; }
  to { transform: translateY(520px); opacity: 0; }
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0.25); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; }
}

@keyframes diagonalDrift {
  to { transform: translate3d(140px, -90px, 0); }
}

@keyframes glitchBg {
  0%, 100% { transform: translateX(0); filter: hue-rotate(0deg); }
  35% { transform: translateX(7px); filter: hue-rotate(10deg); }
  36% { transform: translateX(-5px); }
  38% { transform: translateX(0); }
}

@keyframes noiseMove {
  to { transform: translate3d(-44px, 38px, 0); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--radius)); }
  to { transform: rotate(360deg) translateX(var(--radius)); }
}

@keyframes heatShift {
  0%, 100% { transform: translateX(-20%) scaleY(1); opacity: 0.68; }
  50% { transform: translateX(20%) scaleY(1.22); opacity: 1; }
}

@keyframes terminalBlink {
  0%, 100% { opacity: 0.45; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(26px); }
}

@keyframes charIn {
  to { opacity: 1; }
}

@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cascadeIn {
  0% { opacity: 0; transform: translateY(34px) rotateX(45deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes focusPull {
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes clipReveal {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); transform: translateX(-18px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); }
}

@keyframes wipeReveal {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); background-size: 0 100%; }
  55% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    background: linear-gradient(90deg, rgba(255, 212, 0, 0.38), transparent 72%);
    background-size: 100% 100%;
  }
  100% { opacity: 1; clip-path: inset(0 0 0 0); background: transparent; }
}

@keyframes glitchText {
  0% { opacity: 0; transform: translateX(-8px); }
  12% { opacity: 1; transform: translateX(8px); text-shadow: -2px 0 var(--red), 2px 0 var(--green); }
  18% { transform: translateX(-5px); text-shadow: 2px 0 var(--red), -2px 0 var(--green); }
  26% { transform: translateX(2px); text-shadow: -1px 0 var(--red), 1px 0 var(--green); }
  100% { opacity: 1; transform: translateX(0); text-shadow: none; }
}

@keyframes glitchGhost {
  0%, 18%, 32% { opacity: 0.55; }
  12%, 24%, 100% { opacity: 0; }
}

@keyframes rollReveal {
  0% { opacity: 0; transform: translateY(26px) rotateX(40deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes commandReveal {
  0% { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  20% { opacity: 1; filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 960px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .stage-nav {
    position: relative;
  }

  .hero-stage,
  .intro-band,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
    padding-inline: 0;
  }

  .hero-panel {
    width: min(100%, 420px);
  }

  .intro-band > p {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 520px);
  }

  .stage-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
  }

  .brand-wordmark {
    width: 108px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(3.7rem, 19vw, 5.6rem);
  }

  .headline {
    font-size: clamp(2rem, 13vw, 3.25rem);
  }

  .demo-stage {
    min-height: 460px;
    padding: 15px;
  }

  .feed-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .lab-demo,
  .headline,
  .word,
  .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}
