:root {
  color-scheme: dark;
  --page: #09090b;
  --surface: #18181b;
  --surface-2: #202023;
  --surface-hover: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #27272a;
  --brand: #10b981;
  --brand-strong: #34d399;
  --brand-soft: rgba(16, 185, 129, 0.12);
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --radius-sm: 0.55rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --max-width: 67.5rem;
  --header-height: 4.5rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --surface-hover: #f0fdf4;
  --text: #18181b;
  --muted: #52525b;
  --border: #e4e4e7;
  --brand-soft: rgba(16, 185, 129, 0.09);
  --shadow: 0 24px 70px rgba(24, 24, 27, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--brand); color: #052e21; }
:focus-visible { outline: 3px solid rgba(52, 211, 153, 0.45); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  background: var(--brand); color: #052e21; font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.narrow { width: min(100%, 46rem); }
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-border { border-top: 1px solid var(--border); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr); gap: 3rem; align-items: center; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-dot { width: 0.68rem; height: 0.68rem; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 0.3rem var(--brand-soft); }
.brand-separator { color: var(--muted); font-weight: 500; }
.brand-library { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--muted); font-size: 0.9rem; font-weight: 650; transition: color 160ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.icon-button {
  width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.icon-button:hover { border-color: var(--brand); background: var(--surface-hover); }
.icon-button:active { transform: scale(0.96); }
.menu-button { display: none; }
.theme-icon { width: 1.1rem; height: 1.1rem; }

.eyebrow {
  margin: 0; color: var(--brand-strong); font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.045em; }
h1 { max-width: 16ch; font-size: clamp(2.65rem, 7vw, 5.6rem); }
h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.28rem; }
p { margin: 0; }
.lead { max-width: 42rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.hero { position: relative; overflow: hidden; padding: 7rem 0 6rem; }
.hero::before {
  content: ""; position: absolute; top: -16rem; left: 52%; width: 34rem; height: 34rem;
  border-radius: 50%; background: rgba(16, 185, 129, 0.13); filter: blur(110px); pointer-events: none;
}
.hero-copy { position: relative; display: grid; gap: 1.5rem; }
.hero-compact { padding: 5.5rem 0 3.75rem; }
.hero-compact h1 { max-width: 19ch; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.hero-note { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.88rem; }
.hero-note::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brand); }

.button {
  min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.72rem 1.05rem; border: 1px solid var(--brand); border-radius: var(--radius-md);
  background: var(--brand); color: #052e21; font-weight: 800; cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--brand); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-small { min-height: 2.35rem; padding: 0.48rem 0.75rem; font-size: 0.86rem; }
.button[disabled] { cursor: not-allowed; opacity: 0.55; transform: none; filter: none; }

.card {
  position: relative; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 65%, var(--border)); box-shadow: var(--shadow); }
.card-feature { padding: clamp(1.4rem, 4vw, 2.5rem); overflow: hidden; }
.card-feature::after {
  content: "BUILD"; position: absolute; right: -0.25rem; bottom: -1.3rem;
  color: color-mix(in srgb, var(--brand) 8%, transparent); font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1;
}
.card > * { position: relative; z-index: 1; }
.card-kicker { color: var(--brand-strong); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.card-link { color: var(--brand-strong); font-weight: 750; }
.badge {
  display: inline-flex; width: fit-content; align-items: center; padding: 0.3rem 0.55rem;
  border: 1px solid rgba(16,185,129,0.28); border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-strong); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-neutral { border-color: var(--border); background: var(--surface-2); color: var(--muted); }
.price { font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 850; letter-spacing: -0.06em; }
.price small { color: var(--muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; }
.icon-tile { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-strong); font-family: var(--font-mono); font-weight: 900; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-heading p { max-width: 32rem; color: var(--muted); }
.feature-list, .plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.72rem; }
.feature-list li { position: relative; padding-left: 1.55rem; color: var(--muted); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-strong); font-weight: 900; }
.number-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; display: grid; gap: 0.8rem; }
.number-list li { counter-increment: steps; display: grid; grid-template-columns: 2.3rem 1fr; gap: 0.8rem; align-items: start; }
.number-list li::before { content: counter(steps, decimal-leading-zero); color: var(--brand-strong); font-family: var(--font-mono); font-weight: 800; }

.form-card { padding: clamp(1.25rem, 4vw, 2rem); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 750; }
.field input {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--page); color: var(--text);
}
.field input:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; color: var(--muted); font-size: 0.85rem; }
.check input { margin-top: 0.3rem; accent-color: var(--brand); }
.form-status { min-height: 1.5rem; color: var(--muted); font-size: 0.88rem; }
.form-status[data-state="success"] { color: var(--brand-strong); }
.form-status[data-state="error"] { color: var(--danger); }

.code-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #111113; }
[data-theme="light"] .code-card { background: #18181b; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid #27272a; color: #a1a1aa; font-family: var(--font-mono); font-size: 0.78rem; }
.code-toolbar .button { color: #f4f4f5; background: #27272a; border-color: #3f3f46; }
pre { margin: 0; padding: 1.25rem; overflow: auto; color: #d4d4d8; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; tab-size: 2; }
.prose { display: grid; gap: 1.2rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.prose h3 { margin-top: 1.2rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 0.2em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.35rem; }
.callout { padding: 1.1rem 1.25rem; border-left: 3px solid var(--brand); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--brand-soft); }
.callout p { color: var(--text); }

.step-card { display: grid; gap: 0.8rem; }
.step-index { color: var(--brand-strong); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 850; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison .card h3 { margin-bottom: 0.9rem; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-strong); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.45rem; color: var(--muted); font-size: 0.85rem; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: var(--border); }
.order-code { font-family: var(--font-mono); font-weight: 850; letter-spacing: 0.06em; }
.payment-box { border-style: dashed; text-align: center; }
.success-mark { width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 2rem; font-weight: 900; }

@media (max-width: 850px) {
  .split, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .card { min-height: auto; }
  .nav {
    position: fixed; inset: var(--header-height) 0 auto; display: none; padding: 1rem;
    border-bottom: 1px solid var(--border); background: var(--page); box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: grid; }
  .nav a { padding: 0.75rem; border-radius: var(--radius-md); }
  .nav a:hover { background: var(--surface); }
  .menu-button { display: inline-grid; }
  .desktop-only { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4.5rem; }
  .grid-2, .comparison { grid-template-columns: 1fr; }
  .section-heading, .footer-inner { align-items: start; flex-direction: column; }
  .brand-library, .brand-separator { display: none; }
  .card-feature { padding: 1.25rem; }
}

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