:root {
  --bg: #12161C;
  --surface: #1A2028;
  --surface-2: #222A34;
  --line: #2E3742;
  --line-strong: #3C4757;
  --text: #ECEFF3;
  --muted: #97A2B0;
  --faint: #6B7684;
  --accent: #3FC1B0;
  --accent-ink: #04201C;
  --accent-soft: rgba(63, 193, 176, 0.14);
  --link: #8DBDEA;
  --ok: #6CCB8A;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --radius: 10px;
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F3F4F6; --surface: #FFFFFF; --surface-2: #EBEEF2; --line: #D8DDE4; --line-strong: #BFC7D1;
    --text: #161B22; --muted: #5B6673; --faint: #8A94A1; --accent: #0E8576; --accent-ink: #FFFFFF;
    --accent-soft: rgba(14, 133, 118, 0.12); --link: #2A67A8; --ok: #23874F;
    --shadow: 0 30px 60px -30px rgba(20, 30, 45, 0.35); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F3F4F6; --surface: #FFFFFF; --surface-2: #EBEEF2; --line: #D8DDE4; --line-strong: #BFC7D1;
  --text: #161B22; --muted: #5B6673; --faint: #8A94A1; --accent: #0E8576; --accent-ink: #FFFFFF;
  --accent-soft: rgba(14, 133, 118, 0.12); --link: #2A67A8; --ok: #23874F;
  --shadow: 0 30px 60px -30px rgba(20, 30, 45, 0.35); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lead { color: var(--muted); max-width: 60ch; font-size: 18px; }
.lead.spaced { margin-top: 20px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; line-height: 1.02; margin-top: 12px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
nav ul a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav ul a:hover { color: var(--text); text-decoration: none; }
nav ul a.cta { color: var(--text); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; }
nav ul a.cta:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { nav ul li:not(:last-child) { display: none; } }

.hero { border-top: 0; padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(52px, 7.5vw, 96px); font-weight: 800; line-height: 0.95; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; }
.actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.win-bar .name { color: var(--muted); margin-left: 6px; }
.win-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.win-body .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.win-body .doc { font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 700; text-wrap: balance; }
.win-body .para { color: var(--muted); font-size: 12px; max-width: 32ch; }

.grid { display: grid; gap: 16px; }
.grid.after { margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tile .num { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.tile .glyph { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.tile h3 { font-size: 22px; font-weight: 700; line-height: 1.15; }
.tile p { color: var(--muted); font-size: 15.5px; }
.roles { margin-top: 36px; }
.role { padding: 18px 20px; gap: 6px; }
.signup { text-align: center; }
.signup h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1; margin: 14px auto 18px; }
.signup .lead { margin: 0 auto; }
.join { display: flex; justify-content: center; margin: 34px auto 0; }
.fine { color: var(--faint); font-size: 13px; margin: 14px auto 0; max-width: 52ch; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .brand { font-size: 16px; }

/* privacy notice — truthful EU-style information bar, no consent theatre */
.notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; margin: 0 auto; max-width: 720px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; }
.notice[hidden] { display: none; }
.notice p { margin: 0; color: var(--muted); }
.notice strong { color: var(--text); }
.notice button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }

/* RackTrace — rack elevation mock-up in the hero */
:root { --fail: #F06A6A; --pending: var(--line-strong); }
.rack { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; font-family: var(--mono); font-size: 12px; }
.rack-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); }
.rack-head b { color: var(--text); font-weight: 600; }
.rack-head .pill { font-size: 10.5px; letter-spacing: .1em; color: var(--fail); background: color-mix(in srgb, var(--fail) 14%, transparent); border-radius: 999px; padding: 3px 9px; }
.units { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; }
.u { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.u .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.u .d { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u.pp { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ports { display: flex; gap: 5px; }
.ports i { width: 12px; height: 12px; border-radius: 3px; background: var(--pending); display: block; }
.ports i.ok { background: var(--ok); }
.ports i.bad { background: var(--fail); }
.ports i.now { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.scanbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.scanbar .next { color: var(--text); }
.scanbar .next b { color: var(--accent); font-weight: 600; }
.scanbar .finding { color: var(--fail); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 16px 12px; background: var(--surface-2); color: var(--faint); font-size: 11px; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.legend .lg-ok { --c: var(--ok); }
.legend .lg-bad { --c: var(--fail); }
.legend .lg-now { --c: var(--accent); }
.legend .lg-none { --c: var(--line-strong); }

.steps4 { counter-reset: s; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-family: var(--mono); font-size: 12.5px; }
.kinds span { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); }
.kinds span.bad { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 50%, var(--line)); }

/* privacy policy page */
.policy { max-width: 72ch; }
.policy h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; line-height: 1.02; margin: 14px 0 18px; }
.policy h2 { font-size: 24px; margin: 40px 0 10px; }
.policy p, .policy li { color: var(--muted); }
.policy p + p { margin-top: 12px; }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 6px 0; }
.policy strong { color: var(--text); }
.policy .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 8px; }
.policy section, section.policy-wrap { border-top: 0; }
@media (max-width: 520px) { .u { grid-template-columns: 2.6em minmax(0, 1fr); } .u .ports { grid-column: 1 / -1; } .wrap { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { .ports i.now { animation: none; } }

/* app icon — the real AppIcon, iOS corner radius */
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.app-icon { display: block; width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07); }

/* hero simulation */
.ports.panel { display: grid; grid-template-columns: repeat(8, 12px); gap: 5px; }
.ports i { transition: background .25s ease; }
.scanbar .code { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; min-width: 7.5em; text-align: center; transition: color .2s ease, border-color .2s ease; }
.scanbar .code.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.scanbar .code.bad { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 55%, var(--line)); }
.sim-status { padding: 0 16px 10px; background: var(--surface-2); color: var(--muted); min-height: 2.2em; }
.sim-status.bad { color: var(--fail); }
.sim-status.ok { color: var(--ok); }
.rack-head .pill.run { color: var(--muted); background: var(--surface); }
.rack-head .pill.pass { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }

/* screenshots in iPhone frames */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 244px; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 28px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.shot { margin: 0; scroll-snap-align: start; }
.phone { position: relative; padding: 9px; border-radius: 42px; background: linear-gradient(150deg, #3a414b, #101317 45%, #2a3038); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 999px; background: #000; }
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; background: #000; }
.shot figcaption { margin-top: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.shot figcaption b { display: block; color: var(--text); font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.shots-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.shots-nav[hidden] { display: none; }
.shots-nav button { font: inherit; font-size: 18px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.shots-nav button:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .shots { grid-auto-columns: 72%; gap: 20px; } .app-icon { width: 80px; height: 80px; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .ports i, .scanbar .code { transition: none; } }
.scanbar .next b.bad { color: var(--fail); }
.scanbar .next b.ok { color: var(--ok); }
.sim-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
