:root {
  --bg: #0a0c11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --editor: #0d1017;
  --fg: #f2f3ee;
  --muted: #9aa1b2;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #d4f75a;          /* brand lime */
  --accent-ink: #141a05;
  --cyan: #5ee7df;
  --violet: #8b7bff;
  --pink: #ff7ab6;

  --grad: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 50%, var(--violet) 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan { to { background-position: 56px 56px; } }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  will-change: transform;
}

.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212,247,90,.55), transparent 65%);
  top: -160px; left: -120px;
  animation: drift-1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,123,255,.55), transparent 65%);
  top: 10%; right: -220px;
  animation: drift-2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(94,231,223,.4), transparent 65%);
  bottom: -200px; left: 30%;
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-160px, 200px) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-200px, -160px) scale(1.2); } }

#stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,247,90,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(var(--mx, -999px), var(--my, -999px));
  transition: opacity .3s;
}

@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(212,247,90,.6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.btn-small { padding: 9px 18px; font-size: .875rem; }

.btn-glow {
  padding: 0 26px;
  height: 52px;
  font-size: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212,247,90,.4), 0 8px 40px -10px rgba(212,247,90,.7);
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 3.5s ease-in-out infinite;
}

@keyframes sweep { 60%, 100% { transform: translateX(120%); } }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
  transition: top .3s var(--ease);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.nav.scrolled .nav-inner {
  background: rgba(14, 16, 22, .7);
  border-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 24px -4px rgba(212,247,90,.6);
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 4px; }

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-strong); }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 24px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 100vh;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--fg);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: rgba(212,247,90,.5); background: rgba(212,247,90,.07); }

.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212,247,90,.7);
  animation: ping 2s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 8px rgba(212,247,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,247,90,0); }
}

.pill-arrow { color: var(--muted); transition: transform .2s; }
.pill:hover .pill-arrow { transform: translateX(3px); color: var(--accent); }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  font-weight: 700;
  text-wrap: balance;
}

.hero-sub {
  margin: 24px 0 34px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
}

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, box-shadow .25s;
}
.signup-form:focus-within {
  border-color: rgba(212,247,90,.55);
  box-shadow: 0 0 0 5px rgba(212,247,90,.1);
}

.input-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }

.signup-form input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.signup-form input::placeholder { color: #6b7284; }

.form-status { min-height: 1.4em; margin: 12px 0 0 6px; font-size: .9rem; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff8a8a; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0 6px;
  font-size: .85rem;
  color: var(--muted);
}
.hero-note svg { color: var(--accent); flex-shrink: 0; }

/* Editor mockup */

.hero-visual { position: relative; perspective: 1400px; }

.editor {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,23,32,.92), rgba(12,14,20,.95));
  border: 1px solid var(--border-strong);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 0 80px -20px rgba(139,123,255,.35);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s var(--ease);
  animation: float 7s ease-in-out infinite;
}

.editor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--accent) 80%, var(--cyan) 88%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 6s linear infinite;
  pointer-events: none;
}

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }

.editor-tabs { display: flex; gap: 4px; margin-left: 12px; }
.tab {
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.tab.active { background: var(--surface-strong); color: var(--fg); }

.editor-tag {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffcf6b;
  background: rgba(255,207,107,.1);
  border: 1px solid rgba(255,207,107,.25);
}

.editor-body {
  display: flex;
  height: 268px;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.7;
}

.gutter {
  padding: 14px 10px 14px 14px;
  color: #3f4556;
  text-align: right;
  user-select: none;
  white-space: pre;
}

.code {
  flex: 1;
  margin: 0;
  padding: 14px 14px 14px 6px;
  overflow: hidden;
  white-space: pre;
  color: #d6dae4;
}
.code code { font-family: inherit; }

.caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tk-k { color: #c792ea; }
.tk-t { color: var(--cyan); }
.tk-f { color: #82aaff; }
.tk-s { color: var(--accent); }
.tk-c { color: #5b6378; font-style: italic; }
.tk-n { color: #f78c6c; }

.editor-console { border-top: 1px solid var(--border); padding: 12px 16px 16px; background: rgba(0,0,0,.2); }

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.run-chip {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  transition: background .3s, color .3s;
}
.run-chip.running { color: #ffcf6b; }
.run-chip.done { color: var(--accent-ink); background: var(--accent); }

.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }

.test {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #5b6378;
  transition: color .3s;
}
.t-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #3f4556;
  display: grid;
  place-items: center;
  font-size: 9px;
  transition: all .3s var(--ease);
}
.test.pass { color: #c9cfdb; }
.test.pass .t-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.1);
}
.test.pass .t-icon::after { content: "✓"; font-weight: 700; }

/* Floating cards */

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(22, 25, 34, .82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
  font-size: .8rem;
  white-space: nowrap;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: .72rem; }

.fc-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(139,123,255,.18);
  color: var(--violet);
  font-weight: 700;
}
.fc-icon.ok { background: var(--accent); color: var(--accent-ink); }

.fc-1 { top: -46px; right: 40px; animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 64px; left: -46px; animation: bob 7s ease-in-out -2s infinite; opacity: 0; transform: scale(.9); transition: opacity .5s, transform .5s var(--ease); }
.fc-2.show { opacity: 1; transform: scale(1); }
.fc-3 { bottom: -52px; right: -10px; animation: bob 8s ease-in-out -4s infinite; }
.fc-3 .fc-icon { background: rgba(255,207,107,.15); color: #ffcf6b; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- Marquee ---------- */

.marquee-section { padding: 30px 0 20px; }

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  padding-right: 12px;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span:nth-child(3n+1)::before { content: "◆ "; color: var(--accent); }
.marquee-track span:nth-child(3n+2)::before { content: "◆ "; color: var(--cyan); }
.marquee-track span:nth-child(3n)::before   { content: "◆ "; color: var(--violet); }

@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 24px 20px;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head h2, .cta h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

/* Shared card with mouse-follow spotlight */

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(212,247,90,.1), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}

.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: .96rem; }

/* Tracks */

.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.track-card { padding: 30px; }

.track-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  margin-bottom: 24px;
  transition: transform .4s var(--ease);
}
.track-card:hover .track-icon { transform: rotate(-8deg) scale(1.08); }
.track-icon.c1 { background: rgba(212,247,90,.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(212,247,90,.25); }
.track-icon.c2 { background: rgba(94,231,223,.12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(94,231,223,.25); }
.track-icon.c3 { background: rgba(139,123,255,.14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(139,123,255,.3); }

.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: .76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: #c4c9d4;
}

/* Bento */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.bento-card { padding: 28px; display: flex; flex-direction: column; }
.b-wide { grid-column: span 2; flex-direction: row; gap: 28px; align-items: center; }
.b-wide .bento-text { flex: 1; }
.b-wide > :last-child { flex: 1.1; }

.terminal {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: 18px;
  border-radius: 14px;
  background: var(--editor);
  border: 1px solid var(--border);
  min-height: 182px;
}
.term-line { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal.play .term-line { opacity: 1; transform: none; }
.terminal.play .term-line:nth-child(2) { transition-delay: .4s; }
.terminal.play .term-line:nth-child(3) { transition-delay: 1s; }
.terminal.play .term-line:nth-child(4) { transition-delay: 1.4s; }
.terminal.play .term-line:nth-child(5) { transition-delay: 1.8s; }
.terminal.play .term-line:nth-child(6) { transition-delay: 2.4s; }
.term-line + .term-line { margin-top: 6px; }
.prompt { color: var(--accent); margin-right: 6px; }
.term-line.dim { color: #5b6378; }
.term-line.ok { color: #9be89b; }
.term-line.accent {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(212,247,90,.12);
  color: var(--accent);
  font-weight: 500;
}

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: .9rem;
  color: #c4c9d4;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid #4a5163;
  transition: all .35s var(--ease);
}
.checklist li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: -1px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-ink);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.checklist li.on::before { background: var(--accent); border-color: var(--accent); }
.checklist li.on::after { transform: scale(1); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-cloud span {
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: #c4c9d4;
  transition: all .3s var(--ease);
}
.tag-cloud span.hl {
  border-color: rgba(212,247,90,.5);
  color: var(--accent);
  background: rgba(212,247,90,.08);
  transform: translateY(-2px);
}

.uml { margin-top: 22px; width: 100%; height: auto; }
.uml text { fill: #c4c9d4; font-family: var(--font-mono); font-size: 10px; }
.uml-box { stroke: rgba(94,231,223,.55); fill: rgba(94,231,223,.06); }
.uml-sep { stroke: rgba(94,231,223,.3); }
.uml-edge {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: dash 1.2s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -16; } }

.lists { display: grid; gap: 10px; }
.b-lists .lists { margin-top: 22px; }
.bento-card.b-lists .list-item:nth-child(2) { margin-left: 10px; }
.bento-card.b-lists .list-item:nth-child(3) { margin-left: 20px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--editor);
  border: 1px solid var(--border);
  font-size: .92rem;
  transition: transform .35s var(--ease), border-color .35s;
}
.list-item:nth-child(2) { margin-left: 18px; }
.list-item:nth-child(3) { margin-left: 36px; }
.bento-card:hover .list-item { border-color: var(--border-strong); }
.bento-card:hover .list-item:nth-child(1) { transform: translateX(6px); }
.bento-card:hover .list-item:nth-child(2) { transform: translateX(-6px); }
.bento-card:hover .list-item:nth-child(3) { transform: translateX(-14px); }
.li-star { color: #ffcf6b; }
.li-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step { padding: 30px; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all .4s;
}
.step:hover .step-num { background-image: var(--grad); }

/* ---------- CTA ---------- */

.cta { max-width: 1120px; margin: 0 auto; padding: 120px 24px 100px; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 28px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(212,247,90,.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(139,123,255,.18), transparent 70%),
    rgba(255,255,255,.025);
  isolation: isolate;
}

.cta-ring {
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  left: 50%; top: 50%;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 0 80px rgba(255,255,255,.015), 0 0 0 160px rgba(255,255,255,.01);
  animation: pulse-ring 6s ease-in-out infinite;
}
@keyframes pulse-ring { 50% { transform: scale(1.06); opacity: .6; } }

.cta p { color: var(--muted); margin: 16px 0 34px; font-size: 1.08rem; }
.cta .signup-form { margin: 0 auto; }
.cta .form-status { margin-left: 0; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
.hero .reveal { animation: hero-in .9s var(--ease) both; animation-delay: var(--d, 0s); transition: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.card.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; min-height: 0; gap: 70px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .signup-form { margin: 0 auto; }
  .hero-note { justify-content: center; margin-left: 0; }
  .form-status { margin-left: 0; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .editor { --ry: 0deg; --rx: 0deg; }
  .tracks, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .fc-2 { left: -6px; }
  .fc-1 { right: -4px; }
  .tests { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
}

@media (max-width: 520px) {
  .hero, .section, .cta { padding-left: 16px; padding-right: 16px; }
  .signup-form { flex-direction: column; border-radius: 22px; }
  .btn-glow { width: 100%; }
  .editor-body { font-size: .7rem; height: 240px; }
  .editor-tabs .tab:not(.active) { display: none; }
  .float-card { font-size: .72rem; padding: 8px 10px 8px 8px; }
  .fc-icon { width: 26px; height: 26px; }
  .cta-card { padding: 56px 18px; }
  .btn-small { padding: 8px 14px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
