:root {
  --bg: #F7F8FA;
  --panel: #FFFFFF;
  --text: #202631;
  --muted: #5C6775;
  --accent: #38BFA0;
  --accent-ink: #0C7A66;
  --line: #E8EDF2;
  --highlight: #EAF8F3;
  --ink: #202631;
  --danger: #f0a3a8;
  --add: #7ddec0;
  --font: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 18px 40px rgba(32, 38, 49, 0.06);
  --ease: 180ms ease;
  --gutter: 40px;
  --column: min(1120px, calc(100% - var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  width: var(--column);
  margin: 14px auto 0;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(32, 38, 49, 0.06);
}

.nav.scrolled { box-shadow: 0 14px 34px rgba(32, 38, 49, 0.08); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible,
summary:focus-visible,
.copy:focus-visible,
.brand:focus-visible,
.method summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-mint {
  background: var(--accent);
  color: #14312A;
  border-color: var(--accent);
}

.btn-mint:hover { background: #2eae91; border-color: #2eae91; }

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: #FFFFFF;
}

.btn-ghost:hover { background: var(--highlight); border-color: #d5e4de; }

.btn-small { min-height: 36px; padding: 0 14px; }

.wrap { width: var(--column); margin: 0 auto; }

.hero { position: relative; z-index: 1; padding: 72px 0 28px; overflow: hidden; }

.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(32, 38, 49, 0.16) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
  animation: grid-drift 36s linear infinite;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 500;
  color: var(--text);
}

h1 { margin: 0 0 18px; font-size: clamp(52px, 5.4vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.92; }

.hero h1 em {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
}

.page h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.05; }

h2 { margin: 0 0 18px; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.08; font-weight: 500; }

h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; }

.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 3px;
  background: var(--accent-ink);
  vertical-align: -2px;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.support {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: #3E4854;
  max-width: 46ch;
}

.lede, .section-lead, .prose, .panel p, .steps p, .install-steps p, .faqs details p, .fine, .method > p, .blank-fields dd, .cta p {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.lede, .section-lead {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

.trust, .closer { color: var(--text); font-weight: 600; }

.stage { position: relative; }

.hero .stage {
  padding: 16px;
  background:
    radial-gradient(380px 180px at 18% 0%, rgba(56, 191, 160, 0.28), transparent 70%),
    #12151c;
  border-radius: 24px;
  overflow: hidden;
}

.hero .stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(56, 191, 160, 0.22), transparent 58%);
  pointer-events: none;
  animation: glow 8s ease-in-out infinite;
}

.hero .preview-label,
.hero .shot,
.hero .callouts { position: relative; z-index: 1; }

.hero .shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.hero .preview-label { color: #8b95a3; }

.preview-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ide, .mini-ui, .terminal {
  --text: #F3F4F6;
  --muted: #A8B0BD;
  --line: #303641;
  --accent: #38BFA0;
  --add: #8ee4c6;
  --danger: #f0a3a8;
  color: var(--text);
}

.ide {
  background: #1B2029;
  border: 1px solid #303641;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(32, 38, 49, 0.16);
  overflow: hidden;
}

.ide-top, .terminal-top, .side-head, .tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a4250; display: block; }
.dots i:first-child { background: #38BFA0; }

.ide-name { margin-right: auto; }

.live {
  color: #38BFA0;
  border: 1px solid rgba(56, 191, 160, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
}

.ide-body { display: grid; grid-template-columns: 240px 1fr; min-height: 340px; }
.ide-body.single { grid-template-columns: 1fr; min-height: 0; }

.side { padding: 12px; border-right: 1px solid #303641; }

.side-head { padding: 0 0 10px; border: 0; }
.side-head strong { color: #F3F4F6; font-family: var(--display); letter-spacing: -0.03em; }
.side-head span { margin-left: auto; color: #38BFA0; }

.bubble {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #141820;
  border: 1px solid #303641;
  font-size: 13px;
}

.bubble.user { color: #F3F4F6; }
.bubble.agent { color: #A8B0BD; }

.status-line {
  margin: 0 0 8px;
  color: #38BFA0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.meters { margin: 10px 0 0; display: grid; gap: 6px; }
.meters div { display: flex; justify-content: space-between; gap: 8px; }
.meters dt { color: #A8B0BD; font-size: 11px; }
.meters dd { margin: 0; font-family: var(--mono); font-size: 12px; color: #F3F4F6; }
.meter-note { margin: 8px 0 0; color: #A8B0BD; font-size: 11px; line-height: 1.4; }

.editor { font-family: var(--mono); font-size: 12px; background: #141820; }
.tabs { background: #171c25; }
.tab.is-on { color: #F3F4F6; border-bottom: 1px solid #38BFA0; padding-bottom: 2px; }
.line { display: grid; grid-template-columns: 28px 16px 1fr; gap: 8px; padding: 3px 12px; color: #A8B0BD; }
.line code { font-family: inherit; }
.line b { color: #8fd0ff; font-weight: 500; }
.line.add { background: rgba(56, 191, 160, 0.14); color: #8ee4c6; }
.line.del { background: rgba(232, 112, 122, 0.14); color: #f3b4b8; }

.hero .ide .bubble.user,
.hero .ide .status-line,
.hero .ide .line.add,
.hero .ide .line.del {
  transition: border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.hero .ide[data-beat="0"] .bubble.user {
  border-color: #38BFA0;
  box-shadow: 0 0 0 1px rgba(56, 191, 160, 0.55);
}

.hero .ide[data-beat="1"] .status-line {
  background: rgba(56, 191, 160, 0.14);
  border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(56, 191, 160, 0.12);
}

.hero .ide[data-beat="2"] .line.add { box-shadow: inset 3px 0 0 #8ee4c6; }
.hero .ide[data-beat="2"] .line.del { box-shadow: inset 3px 0 0 #f3b4b8; }

.callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.callouts li {
  border: 1px solid var(--line);
  background: #EEF2F6;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #202631;
  transition: background 280ms ease, border-color 280ms ease, color 280ms ease;
}

.hero .callouts li {
  border-color: #303641;
  background: transparent;
  color: #C5CDD6;
}

.callouts li.is-on,
.hero .callouts li.is-on {
  background: rgba(56, 191, 160, 0.16);
  border-color: #38BFA0;
  color: #8ee4c6;
}

.section { position: relative; z-index: 1; padding: 104px 0; }

#comparison { background: transparent; }

#features {
  background: #101318;
  color: #F3F4F6;
}

#features .eyebrow { color: #38BFA0; }
#features h2,
#features h3 { color: #F3F4F6; }

#features .feature {
  background: #171c24;
  border-color: #2a3140;
  box-shadow: none;
}

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: start; }

.prose p { margin: 0 0 14px; color: var(--muted); }
.prose a { color: var(--accent-ink); }

.panel {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.note-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.note-card li + li { margin-top: 10px; }

.steps, .install-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; }

.steps { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }

.steps li, .install-steps li {
  border: 0;
  border-radius: 0;
  padding: 28px 24px 8px;
  background: transparent;
  box-shadow: none;
}

.steps li { border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }

.install-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.steps span, .idx {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.install-steps span {
  display: block;
  margin: 6px 0 0;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}

.step-kicker { margin: 0 0 8px; color: var(--text); font-weight: 600; }
.steps p, .install-steps p, .panel p { color: var(--muted); }

.install-steps span { margin: 6px 0 0; }

.feature-list, .trio { display: grid; gap: 20px; }
.feature-list { grid-template-columns: 1fr; }
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: center; }
.trio { grid-template-columns: repeat(3, 1fr); margin-top: 22px; gap: 0; }
#control .trio .panel,
#audience .trio .panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 22px 16px 4px 0;
}

.mini-ui {
  border: 1px solid #303641;
  border-radius: 12px;
  background: #141820;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
}

.mini-label { margin: 8px 0 4px; color: #38BFA0; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.mini-line { margin: 0 0 6px; color: #F3F4F6; }
.mini-line.dim { color: #A8B0BD; }
.mini-line.add { color: #8ee4c6; }
.mini-line.del { color: #f3b4b8; }

.empty-board {
  margin-top: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.tools li {
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 18px 12px 18px 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.tools li:first-child {
  background: transparent;
  border-color: var(--line);
  color: var(--accent-ink);
}
.fine { color: var(--muted); font-size: 13px; }

.method { margin-top: 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.method summary, .faqs summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--text);
}
.method summary::-webkit-details-marker,
.faqs summary::-webkit-details-marker { display: none; }
.method summary::after, .faqs summary::after { content: "+"; float: right; color: var(--accent-ink); font-family: var(--mono); }
.method[open] summary::after, .faqs details[open] summary::after { content: "–"; }
.method > p, .blank-fields { margin: 0 18px 18px; color: var(--muted); }
.blank-fields { display: grid; gap: 10px; }
.blank-fields div { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.blank-fields dt { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.blank-fields dd { margin: 0; color: var(--muted); }

.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 32px; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs details[open] { background: transparent; box-shadow: inset 2px 0 0 var(--accent); }
.faqs details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.faqs a { color: var(--accent-ink); }

.cta {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  text-align: center;
  background: #101318;
}
.cta h2 { color: #F3F4F6; }
.cta p { color: #A8B0BD; }
.cta .hero-actions, .cta .closer { justify-content: center; }
.cta .hero-actions { display: flex; }
.cta .btn-ghost {
  background: transparent;
  color: #F3F4F6;
  border-color: #303641;
}
.cta .btn-ghost:hover { background: #1B2029; border-color: #3a4250; }

.terminal {
  background: #141820;
  border: 1px solid #303641;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(32, 38, 49, 0.12);
}
.terminal pre {
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 14px;
  color: #8ee4c6;
}
.copy {
  margin-left: auto;
  border: 1px solid #303641;
  background: transparent;
  color: #F3F4F6;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
}

.footer { position: relative; z-index: 1; padding: 28px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; background: #FFFFFF; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--text); }
.footer p { margin: 0; color: var(--muted); font-size: 13px; }

.page { position: relative; z-index: 1; padding: 48px 0 80px; }
.page .prose { max-width: 68ch; }
.page h2 { font-size: 28px; }

.steps li, .feature, .trio .panel {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.steps li:hover,
.feature:hover,
.trio .panel:hover,
#features .feature:hover,
#control .trio .panel:hover,
#audience .trio .panel:hover {
  transform: none;
  box-shadow: none;
}

#features .feature:hover { border-color: #38BFA0; }

.js .hero-copy > * {
  animation: rise 0.6s ease both;
}

.js .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }

.js .hero .bubble.user,
.js .hero .status-line,
.js .hero .editor .line:nth-child(3),
.js .hero .editor .line:nth-child(4),
.js .hero .editor .line:nth-child(5) {
  animation: appear 0.45s ease both;
}

.js .hero .bubble.user { animation-delay: 0.45s; }
.js .hero .status-line { animation-delay: 0.85s; }
.js .hero .editor .line:nth-child(3) { animation-delay: 1.2s; }
.js .hero .editor .line:nth-child(4) { animation-delay: 1.45s; }
.js .hero .editor .line:nth-child(5) { animation-delay: 1.7s; }

.js .section:not(#how):not(#features):not(#control),
.js .cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .section.is-in,
.js .cta.is-in {
  opacity: 1;
  transform: none;
}

.js #how .steps li,
.js #features .feature,
.js #control .trio .panel {
  opacity: 0;
  transform: translateY(16px);
}

.js #how.is-in .steps li,
.js #features.is-in .feature,
.js #control.is-in .trio .panel {
  animation: rise 0.55s ease both;
}

.js #how.is-in .steps li:nth-child(2),
.js #features.is-in .feature:nth-child(2),
.js #control.is-in .trio .panel:nth-child(2) { animation-delay: 0.12s; }

.js #how.is-in .steps li:nth-child(3),
.js #features.is-in .feature:nth-child(3),
.js #control.is-in .trio .panel:nth-child(3) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 22px 44px; }
}

@keyframes glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 980px) {
  .hero-grid, .split, .feature, .faq-wrap, .trio, .steps { grid-template-columns: 1fr; }
  .ide-body { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid #303641; }
  .hero .stage { border-radius: 24px; }
  .steps li, .steps li:first-child { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .tools { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .nav .btn-small { margin-left: 8px; }
  :root { --gutter: 28px; }
  .hero { padding-top: 64px; }
  .callouts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav { flex-wrap: wrap; padding: 10px 12px; }
  .nav .btn-small {
    flex: 1 0 100%;
    margin: 8px 0 0;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .section,
  .js .cta,
  .js .hero-copy > *,
  .js .hero .bubble.user,
  .js .hero .status-line,
  .js .hero .editor .line,
  .js #how .steps li,
  .js #features .feature,
  .js #control .trio .panel {
    opacity: 1 !important;
    transform: none !important;
  }
}
