:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-elevated: #0c1017;
  --bg-panel: #111723;
  --bg-panel-strong: #151d2b;
  --line: #253041;
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #e6edf3;
  --text-strong: #ffffff;
  --muted: #9aa7b7;
  --muted-strong: #c3ccd7;
  --green: #48d597;
  --green-soft: rgba(72, 213, 151, 0.12);
  --cyan: #6dd8f6;
  --cyan-soft: rgba(109, 216, 246, 0.12);
  --amber: #f5c36b;
  --amber-soft: rgba(245, 195, 107, 0.12);
  --red: #fb7185;
  --violet: #a7a2ff;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --radius-small: 6px;
  --shell: 1180px;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 8%, rgba(72, 213, 151, 0.08), transparent 26rem),
    radial-gradient(circle at 82% 24%, rgba(109, 216, 246, 0.07), transparent 30rem);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p,
h1,
h2,
h3,
dl,
dd,
ol,
ul,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
}

pre,
code {
  font-family: var(--mono);
}

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

.section {
  padding: 104px 0;
  scroll-margin-top: 88px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px max(20px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

main {
  padding-top: 67px;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(7, 9, 13, 0.9);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(72, 213, 151, 0.55);
  border-radius: var(--radius-small);
  background:
    linear-gradient(90deg, transparent 46%, rgba(72, 213, 151, 0.55) 46%, rgba(72, 213, 151, 0.55) 54%, transparent 54%),
    linear-gradient(transparent 46%, rgba(109, 216, 246, 0.55) 46%, rgba(109, 216, 246, 0.55) 54%, transparent 54%),
    #0d141f;
  box-shadow: 0 0 22px rgba(72, 213, 151, 0.18);
}

.nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.nav a,
.site-footer nav a {
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.nav a {
  padding: 10px 12px;
}

.nav a:hover,
.nav a.is-active,
.site-footer nav a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.055);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  padding: 0 18px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(72, 213, 151, 0.65);
  background: linear-gradient(180deg, #58e4a6, #35bc82);
  color: #06100b;
  box-shadow: 0 14px 36px rgba(72, 213, 151, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-strong);
}

.button-secondary:hover {
  border-color: rgba(109, 216, 246, 0.45);
  background: rgba(109, 216, 246, 0.08);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 86px;
}

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

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.03;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.4vw, 5.15rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 610px;
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
}

.hero-metrics div {
  padding: 14px;
  background: rgba(12, 16, 23, 0.82);
}

.hero-metrics dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.runtime-console,
.code-window,
.architecture-diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 23, 0.84);
  box-shadow: var(--shadow);
}

.runtime-console {
  overflow: hidden;
}

.console-toolbar,
.panel-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(72, 213, 151, 0.75);
}

.console-toolbar .latency-badge {
  margin-left: auto;
}

.latency-badge,
.panel-state,
.plan-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(72, 213, 151, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.console-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.config-panel,
.request-panel {
  min-width: 0;
}

.config-panel {
  border-right: 1px solid var(--line-soft);
}

.panel-heading {
  background: rgba(255, 255, 255, 0.02);
}

.panel-state-live {
  border-color: rgba(109, 216, 246, 0.28);
  background: var(--cyan-soft);
  color: var(--cyan);
}

pre {
  overflow: auto;
  padding: 20px;
  color: #c7d2e1;
  font-size: 0.78rem;
  line-height: 1.7;
  tab-size: 2;
}

.flow-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 18px;
}

.flow-node {
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.request-panel .flow-rail {
  grid-template-columns: 1fr;
}

.request-panel .flow-arrow {
  width: 1px;
  height: 16px;
  margin: 0 auto;
}

.request-panel .flow-arrow::after {
  margin-top: auto;
  margin-left: -3px;
  transform: rotate(135deg);
}

.request-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.flow-node-active {
  border-color: rgba(72, 213, 151, 0.5);
  background: var(--green-soft);
  color: var(--text-strong);
}

.flow-arrow,
.mini-diagram i {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.flow-arrow::after,
.mini-diagram i::after {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  margin-left: auto;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.problem {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 16, 23, 0.44);
}

.problem-copy {
  display: grid;
  gap: 18px;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.audience-grid article,
.price-card,
.screenshot-note,
details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(12, 16, 23, 0.64);
}

.feature-card {
  min-height: 284px;
  padding: 24px;
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.feature-card p,
.audience-grid p,
.price-card li,
.faq-list p,
details li,
.screenshot-note p {
  color: var(--muted);
}

.feature-card p {
  margin-top: 14px;
}

.mini-diagram {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.mini-diagram span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
}

.architecture {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(12, 16, 23, 0.36), rgba(12, 16, 23, 0.68));
}

.architecture-grid,
.experiment-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 56px;
  align-items: center;
}

.architecture-copy p,
.experiment-grid p,
.final-cta p {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: 1.03rem;
}

.architecture-diagram {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.arch-node {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.arch-node span {
  color: var(--text-strong);
  font-weight: 700;
}

.arch-node small {
  color: var(--muted);
  font-family: var(--mono);
}

.arch-node-strong {
  border-color: rgba(72, 213, 151, 0.35);
  background: var(--green-soft);
}

.arch-line {
  width: 1px;
  height: 26px;
  margin-left: 22px;
  background: var(--line);
}

.arch-publish {
  width: max-content;
  margin-left: 22px;
  border: 1px solid rgba(245, 195, 107, 0.25);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.experiments {
  overflow: hidden;
}

.code-window {
  overflow: hidden;
}

.copy-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.copy-button:hover {
  border-color: rgba(109, 216, 246, 0.45);
  color: var(--text-strong);
}

.workflow {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 16, 23, 0.36);
}

.workflow-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 22px;
  padding: 18px;
  background: rgba(12, 16, 23, 0.86);
}

.workflow-list span {
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.workflow-list p {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

details {
  overflow: hidden;
}

summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  content: "+";
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 18px;
  text-align: center;
}

details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

details[open] summary::after {
  content: "-";
}

details ul {
  display: grid;
  gap: 10px;
  padding: 18px;
}

details li {
  position: relative;
  padding-left: 18px;
}

details li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  content: "";
}

.screenshots {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 16, 23, 0.28);
}

.screenshot-note {
  padding: 28px;
}

.screenshot-note p {
  max-width: 680px;
  font-size: 1.02rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.audience-grid article {
  padding: 22px;
}

.audience-grid p {
  margin-top: 12px;
}

.pricing {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 16, 23, 0.44);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
}

.price-card-featured {
  border-color: rgba(72, 213, 151, 0.42);
  background: linear-gradient(180deg, rgba(72, 213, 151, 0.1), rgba(12, 16, 23, 0.72));
}

.plan-label {
  width: max-content;
  margin-bottom: 18px;
}

.price {
  margin-top: 14px;
  color: var(--text-strong);
  font-size: 2rem;
  font-weight: 780;
  letter-spacing: 0;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.price-card li {
  position: relative;
  padding-left: 20px;
}

.price-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--green);
  content: "";
}

.price-card .button {
  margin-top: auto;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details p {
  padding: 18px;
}

.final-cta {
  padding-top: 120px;
}

.final-cta-inner {
  border: 1px solid rgba(72, 213, 151, 0.28);
  border-radius: var(--radius);
  padding: 48px;
  background:
    linear-gradient(120deg, rgba(72, 213, 151, 0.09), rgba(109, 216, 246, 0.04) 45%, rgba(245, 195, 107, 0.06)),
    rgba(12, 16, 23, 0.82);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
  background: rgba(7, 9, 13, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.site-footer nav a {
  padding: 9px 10px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-grid,
  .architecture-grid,
  .experiment-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .runtime-console {
    max-width: 760px;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .section {
    padding: 72px 0;
    scroll-margin-top: 72px;
  }

  .site-header {
    padding: 12px 14px;
  }

  main {
    padding-top: 51px;
  }

  .site-header .button {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .runtime-console,
  .architecture-diagram,
  .code-window {
    border-radius: var(--radius-small);
  }

  .console-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .config-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .flow-rail,
  .mini-diagram {
    grid-template-columns: 1fr;
  }

  .flow-arrow,
  .mini-diagram i {
    width: 1px;
    height: 18px;
    margin: 0 auto;
  }

  .flow-arrow::after,
  .mini-diagram i::after {
    margin-top: auto;
    margin-left: -3px;
    transform: rotate(135deg);
  }

  pre {
    font-size: 0.7rem;
  }

  .two-column,
  .detail-grid,
  .feature-grid,
  .pricing-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .feature-card,
  .price-card {
    min-height: auto;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final-cta-inner {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
