/* Landing page styles; shares the theme key and dark-theme class with the documentation pages. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --fg: #0f172a;
  --fg-soft: #475569;
  --line: #e2e8f0;
  --card: #ffffff;
  --brand-1: #06b6d4;
  --brand-2: #6366f1;
  --link: #0e7490;
  --code-bg: #0b1220;
  --code-fg: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 14px;
  color-scheme: light;
}
html.dark-theme {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --fg: #e5e7eb;
  --fg-soft: #94a3b8;
  --line: #1e293b;
  --card: #111c31;
  --link: #67e8f9;
  --code-bg: #050a14;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.sub { color: var(--fg-soft); max-width: 720px; margin: 0 auto 2.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }

.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(180%) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand b, .grad { background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0 0 0 1rem; padding: 0; }
.nav-links a { color: var(--fg-soft); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--fg); }
.theme, .gh { margin-left: auto; background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--fg); display: flex; }
.gh { margin-left: 0; }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.gh svg { width: 22px; height: 22px; fill: currentColor; }

.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; background:
  radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
  radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--brand-1) 18%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; background: var(--card); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0; }
.lead { font-size: 1.2rem; color: var(--fg-soft); max-width: 38rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-2) 35%, transparent); }
.btn.ghost { color: var(--fg); border: 1px solid var(--line); background: var(--card); }
.btn.light { color: #0b1220; background: #fff; }
.btn.outline { color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.works { color: var(--fg-soft); font-size: .95rem; }

.code-window { background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(148, 163, 184, .18); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-bar span:nth-child(1) { background: #f87171; } .code-bar span:nth-child(2) { background: #fbbf24; } .code-bar span:nth-child(3) { background: #34d399; }
.code-bar em { margin-left: .6rem; font-style: normal; font-size: .8rem; color: #94a3b8; }
.hero-grid > *, .two > *, .grid > *, .step-list > *, .stats > * { min-width: 0; }
.code-window pre { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-window code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.code-window .c { color: #64748b; } .code-window .t { color: #7dd3fc; } .code-window .k { color: #c4b5fd; } .code-window .s { color: #86efac; } .code-window .a { color: #fbbf24; }

.steps { padding: 4.5rem 1.5rem; }
.step-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.step-list h3 { margin: .8rem 0 .4rem; font-size: 1.15rem; }
.step-list p { margin: 0; color: var(--fg-soft); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }

.features { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4.5rem 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.card h3 { margin: .9rem 0 .4rem; font-size: 1.12rem; }
.card p { margin: 0 0 .8rem; color: var(--fg-soft); }
.card a { font-weight: 600; text-decoration: none; }

.how { padding: 4.5rem 1.5rem; }
.how figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.how figcaption { text-align: center; margin-top: 1rem; }
html.dark-theme .how figure { background: #dde3ea; border-color: #1e293b; }
html.dark-theme .how figure img { filter: brightness(.88); }
html.dark-theme .how figcaption a { color: #0e7490; }
html.dark-theme .code-window { border-color: rgba(103, 232, 249, .25); box-shadow: 0 0 0 1px rgba(99, 102, 241, .15), var(--shadow); }

.showcase { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4.5rem 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }

.proof { padding: 4.5rem 1.5rem; }
.stats { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stats li { text-align: center; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stats strong { display: block; font-size: 2.6rem; line-height: 1.1; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--fg-soft); font-size: .95rem; }

.band { background: linear-gradient(110deg, #0e7490, #4338ca); color: #fff; padding: 3.5rem 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band h2 { margin: 0 0 .3rem; }
.band p { margin: 0; opacity: .9; }
.band .cta { margin: 0; }

.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer p { color: var(--fg-soft); }
.footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-soft); margin: 0 0 .6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: .35rem 0; }
.footer nav a { color: var(--fg); text-decoration: none; }
.footer nav a:hover { color: var(--link); }
.legal { margin-top: 2rem; font-size: .8rem; }

@media (max-width: 960px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .grid, .step-list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { flex-wrap: wrap; height: auto; padding: .6rem 1.5rem; gap: .6rem 1rem; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 1.1rem; }
  .eyebrow { white-space: normal; }
  .code-window pre { font-size: 12.5px; }
  .grid, .step-list, .stats, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
