@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #090c12; --bg-2: #0d121b; --surface: #121823; --line: #1f2735; --line-2: #2c3749;
  --text: #eaeff7; --muted: #94a0b4; --faint: #6b778b;
  --accent: #3b82c4; --accent-ink: #fff; --accent-text: #7db8ee;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px; --gutter: clamp(18px, 4vw, 40px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfcfd; --bg-2: #f2f5f9; --surface: #fff; --line: #e1e6ee; --line-2: #cbd3df;
  --text: #0e1621; --muted: #4f5b6d; --faint: #6b7587; --accent: #1f6cb3; --accent-text: #1a5b99;
  --shadow: 0 24px 60px -28px rgba(20,40,70,.35); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-text); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; height: auto; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; margin: 0 0 1em; }
pre code { background: none; border: 0; padding: 0; }
.mono { font-family: var(--mono); }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; } .skip:focus { left: 12px; z-index: 99; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: var(--nav-h); padding-inline: var(--gutter); gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; } .back:hover { color: var(--text); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; font-size: 19px; letter-spacing: -.02em; } .brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14.5px; opacity: .88; }
.nav-links a:hover { opacity: 1; background: var(--bg-2); text-decoration: none; }
.nav-sp { flex: 1; }
.gh-btn, .theme-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font-weight: 500; font-size: 14px; background: transparent; cursor: pointer; font-family: var(--mono); }
.gh-btn:hover, .theme-btn:hover { background: var(--bg-2); text-decoration: none; }
.theme-btn { width: 40px; padding: 0; justify-content: center; }
.i-sun { display: none; } :root[data-theme="light"] .i-sun { display: block; } :root[data-theme="light"] .i-moon { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--accent); color: var(--accent-ink); font: 600 15.5px var(--font); padding: 0 22px; height: 48px; border-radius: 10px; border: 0; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn-nav { height: 40px; padding: 0 16px; font-size: 14px; font-family: var(--mono); }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--line-2); } .btn-quiet:hover { background: var(--bg-2); filter: none; }

.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; }
.hero-bg i:nth-child(1) { width: 420px; height: 420px; background: #3b82f6; top: -140px; right: 8%; }
.hero-bg i:nth-child(2) { width: 320px; height: 320px; background: #2dd4bf; top: 120px; right: -80px; }
.hero-bg i:nth-child(3) { width: 260px; height: 260px; background: #f472b6; top: -60px; left: -80px; opacity: .12; }
:root[data-theme="light"] .hero-bg i { opacity: .12; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); max-width: 15ch; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 24px; }
.hero .sub { color: var(--muted); font-size: clamp(17px, 1.9vw, 21px); max-width: 54ch; margin-bottom: 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { margin-top: 22px; color: var(--faint); font-size: 14.5px; }
.frame { margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.frame .bar span { margin-left: 10px; font-size: 12px; color: var(--faint); }
.frame img { width: 100%; }

.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec > .wrap > h2, .sec-h { font-size: clamp(26px, 3.2vw, 38px); max-width: 22ch; margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 18px; max-width: 58ch; margin-bottom: 32px; }
.demo { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-bar b { color: var(--text); font-weight: 600; }
.crumb button { background: none; border: 0; color: var(--accent-text); font: inherit; cursor: pointer; padding: 0; } .crumb button:hover { text-decoration: underline; }
.demo canvas { display: block; width: 100%; height: clamp(300px, 46vw, 520px); background: #090c12; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legend span i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; box-shadow: var(--shadow); display: none; max-width: 280px; }
.tip b { display: block; } .tip small { color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.step { padding: 28px; background: var(--surface); counter-increment: s; border-right: 1px solid var(--line); } .step:last-child { border-right: 0; }
.step::before { content: "0" counter(s); font: 500 13px var(--mono); color: var(--accent-text); display: block; margin-bottom: 14px; }
.step h3 { font-size: 22px; } .step p { color: var(--muted); margin: 0; }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(28px,5vw,72px); align-items: center; padding: clamp(40px,6vw,80px) 0; border-bottom: 1px solid var(--line); }
.row.flip .row-text { order: 2; }
.row h2 { font-size: clamp(26px,3.2vw,38px); } .row p { color: var(--muted); font-size: 17.5px; max-width: 46ch; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; background: var(--surface); }
.chip i { display: block; width: 100%; height: 6px; border-radius: 3px; margin-bottom: 12px; }
.chip b { display: block; } .chip span { color: var(--muted); font-size: 14px; }

.deflist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(28px,5vw,72px); margin: 0; }
.deflist div { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.deflist dt { font-weight: 650; font-size: 18px; margin-bottom: 4px; } .deflist dd { margin: 0; color: var(--muted); }
.closer { border-top: 1px solid var(--line); padding: clamp(56px,8vw,104px) 0; }
.closer h2 { font-size: clamp(30px,4.4vw,54px); max-width: 18ch; letter-spacing: -.035em; } .closer p { color: var(--muted); font-size: 18px; max-width: 48ch; }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 56px; }
.foot-top { width: min(1120px, 100% - 2*var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 2fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; }
.foot-cols h4 { font-size: 13px; color: var(--faint); margin-bottom: 12px; font-weight: 600; letter-spacing: 0; }
.foot-cols a { display: block; color: var(--text); padding: 4px 0; opacity: .85; } .foot-cols a:hover { opacity: 1; }
.foot-base { width: min(1120px, 100% - 2*var(--gutter)); margin: 44px auto 0; padding: 22px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.page-head { padding: clamp(44px,7vw,88px) 0 24px; }
.page-head h1 { font-size: clamp(34px,5vw,56px); letter-spacing: -.035em; } .page-head p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.osrow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; margin: 24px 0 40px; }
.os { padding: clamp(22px,3vw,34px); background: var(--surface); border-right: 1px solid var(--line); } .os:last-child { border-right: 0; }
.os h3 { font-size: 22px; } .os p { color: var(--muted); font-size: 15px; } .os .btn { width: 100%; }
.prose { max-width: 70ch; padding-bottom: 80px; } .prose h2 { font-size: 24px; margin-top: 1.6em; } .prose p, .prose li { color: var(--muted); }

@media (max-width: 860px) {
  .hide-t { display: none; }
  .flow, .osrow, .deflist, .row, .foot-top { grid-template-columns: 1fr; }
  .step, .os { border-right: 0; border-bottom: 1px solid var(--line); }
  .row.flip .row-text { order: 0; }
}
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr 1fr; } .chips { grid-template-columns: 1fr; } }

.install { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 22px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.install code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; font-size: 14px; }
.install .copy { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); font: 500 13px var(--mono); cursor: pointer; }
.install .copy:hover { background: var(--bg); }
.stars { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--muted); }
.stars[hidden] { display: none; }

/* ---- blocky layer: square corners, hairline cells, mono caps (matches ScreenCraft) ---- */
:root { --ink: #0f1116; --paper: #f1f3f8; }
.btn, .btn-quiet, .frame, .osrow, .demo, .chip, .chips, code, pre, .install, .install .copy, .tip, .gh-btn, .theme-btn, .skip:focus { border-radius: 0; }
.brand img { border-radius: 6px; }
.btn { height: 46px; padding: 0 22px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; }

/* navbar as a row of cells */
.nav-in { padding: 0; gap: 0; align-items: stretch; }
.nav-in > a, .nav-in > button, .nav-links a { display: flex; align-items: center; gap: 9px; padding: 0 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; color: var(--muted); font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: 1; height: auto; cursor: pointer; transition: color .2s, background .2s; }
.nav-in > a:hover, .nav-in > button:hover, .nav-links a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }
.nav-in .back { padding: 0 16px 0 12px; gap: 4px; }
.nav-in .brand { color: var(--text); font: 650 17px var(--font); letter-spacing: -.02em; text-transform: none; padding: 0 20px; gap: 10px; }
.nav-links { display: flex; align-items: stretch; gap: 0; }
.nav-sp { flex: 1; }
.nav-in > .gh-btn { border-right: 0; border-left: 1px solid var(--line); }
.nav-in > .btn-nav { background: var(--accent); color: var(--accent-ink); border-left: 1px solid var(--line); border-right: 0; }
.nav-in > .btn-nav:hover { background: var(--accent); filter: brightness(1.1); color: var(--accent-ink); }
.nav-in > .theme-btn { width: var(--nav-h); justify-content: center; padding: 0; border-left: 1px solid var(--line); border-right: 0; }
.stars { border-left: 0; margin-left: 0; padding: 3px 7px; border: 1px solid var(--line-2); font: 400 11px var(--mono); color: var(--text); }
.stars svg { display: none; }

/* centered hero, full-bleed hairlines */
.hero { text-align: center; padding: clamp(56px,10vw,128px) 0 clamp(48px,7vw,88px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; font-size: clamp(38px,7.2vw,100px); letter-spacing: -.045em; line-height: 1; margin-inline: auto; }
.hero .sub { margin-inline: auto; }
.hero .cta { justify-content: center; }
.hero .install { width: 100%; margin-inline: auto; text-align: left; }
.trust { font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.hero .frame { width: min(100%, 980px); text-align: left; box-shadow: none; }

/* sections: hairline separated, numbered */
.sec, .closer { border-top: 1px solid var(--line); }
.sec > .wrap > h2 { counter-increment: sec; max-width: none; font-size: clamp(24px,3vw,34px); display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.sec > .wrap > h2::before { content: "0" counter(sec); font: 400 11.5px var(--mono); letter-spacing: .12em; color: var(--faint); }
body { counter-reset: sec; }

/* rows become bordered cells with flush frames */
.rows { border: 1px solid var(--line); }
.row { gap: 0; padding: 0; align-items: stretch; }
.row:last-child { border-bottom: 0; }
.row .row-text { padding: clamp(24px,4vw,56px); align-self: center; }
.row h2 { font-size: clamp(22px,2.6vw,32px); }
.row .frame { margin: 0; border: 0; border-left: 1px solid var(--line); display: grid; place-items: center; padding: clamp(16px,3vw,36px); background: var(--bg-2); }
.row.flip .frame { border-left: 0; border-right: 1px solid var(--line); }
.chips { gap: 0; border: 0; border-left: 1px solid var(--line); align-content: stretch; }
.row .chips .chip { border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.row.flip .chips { border-left: 0; border-right: 1px solid var(--line); }

/* steps: accent-topped blocks */
.flow { border: 0; gap: clamp(20px,4vw,56px); }
.step { border: 0; border-top: 2px solid var(--accent); padding: 18px 0 0; background: none; }
.step::before { display: none; }
.step h3 { font-size: clamp(24px,3vw,34px); margin-bottom: 8px; }

/* definition list as ruled rows */
.deflist { display: block; border-top: 1px solid var(--line); }
.deflist div { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 24px; padding: 18px 0 20px; align-items: baseline; border-top: 0; border-bottom: 1px solid var(--line); }
.deflist dt { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 0; }

.closer { overflow: hidden; position: relative; text-align: center; }
.closer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 90% at 85% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); }
.closer .wrap { position: relative; }
.closer h2, .closer p { margin-inline: auto; } .closer .cta { justify-content: center; }
.footer { background: transparent; }
.osrow .os { background: var(--bg-2); }
.demo canvas { height: clamp(300px, 46vw, 560px); }

@media (max-width: 860px) {
  .nav-in > .gh-btn, .nav-in > .back span { display: none; }
  .nav-in .brand { flex: 1; }
  .row .frame, .row.flip .frame, .row .chips, .row.flip .chips { border: 0; border-top: 1px solid var(--line); }
  .deflist div { grid-template-columns: 1fr; gap: 4px; }
}

/* hero: everything centered */
.hero .install { justify-content: center; }
.hero .install code { flex: 0 1 auto; text-align: center; }
.hero .frame { margin-inline: auto; text-align: center; }
.hero .frame .bar { position: relative; justify-content: center; }
.hero .frame .bar i:first-child { margin-left: 0; }
.hero .frame .bar span { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none; }
.hero .cta, .hero .trust { justify-content: center; text-align: center; width: 100%; }
.hero h1 { max-width: none; font-size: clamp(26px, 5.4vw, 70px); white-space: nowrap; }
.hero .frame .bar { justify-content: flex-start; }
@media (max-width: 560px) { .hero h1 { white-space: normal; font-size: clamp(30px, 9vw, 44px); } }
:root { --nav-h: 48px; }
.nav-in .brand { font-size: 15px; padding: 0 16px; }
.nav-in .brand img { width: 20px; height: 20px; }
.nav-in > a, .nav-in > button, .nav-links a { padding: 0 14px; font-size: 11px; }
