:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-synthesis: none;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --soft: #e9edf5;
  --text: #18263b;
  --muted: #526077;
  --line: #d8dee8;
  --accent: #3563e9;
  --button: #3563e9;
  --button-hover: #264dcc;
  --shadow: 0 40px 80px -24px #18263b40;
  --added: #6ef0be; --changed: #ffdd80; --removed: #ff8895;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1018;
    --surface: #0f1622;
    --soft: #131c2a;
    --text: #e8eef8;
    --muted: #8e9cb2;
    --line: #202c3d;
    --accent: #6aa8ff;
    --shadow: 0 40px 80px -24px #000000a0;
  }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
p { line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[id] { scroll-margin-top: 80px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--surface); z-index: 20; }
.skip-link:focus { top: 12px; }

.header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.badge { margin-left: 2px; padding: 3px 6px; font-size: 10px; letter-spacing: .5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 550; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; font-size: 15px; font-weight: 650; border: 1px solid transparent; border-radius: 8px; }
.button:hover { text-decoration: none; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 8px; }
.primary { color: white; background: var(--button); }
.primary:hover { background: var(--button-hover); }
.ghost { color: var(--text); background: transparent; border-color: var(--line); }
.ghost:hover { background: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

.hero { text-align: center; padding-top: 88px; }
.pill { display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
h1 { max-width: 920px; margin: 26px auto 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 750; letter-spacing: -.045em; text-wrap: balance; }
h1 span, h2 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); }
.hero .lead { max-width: 640px; margin: 24px auto 0; text-wrap: pretty; }
.hero .actions { justify-content: center; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* The app window always mirrors the dark desktop client. */
.app { margin-top: 64px; text-align: left; color: #e8eef8; background: #0b1018; border: 1px solid #202c3d; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12px; color: #7e8da3; border-bottom: 1px solid #202c3d; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2d3c51; }
.app-bar span { margin-inline: auto; padding-right: 57px; }
.app-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 240px; }
.app-side, .app-changes { padding: 20px 16px; font-size: 13px; background: #0f1622; }
.app-side { border-right: 1px solid #202c3d; }
.app-changes { border-left: 1px solid #202c3d; }
.app-label { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #7e8da3; }
.app-list { list-style: none; margin: 0 0 24px; padding: 0; }
.app-list li { padding: 7px 10px; border-radius: 6px; color: #b7c3d5; }
.app-list li.on { color: #e8eef8; background: #4e9cff24; }
.versions b, .versions small { display: block; }
.versions b { font-weight: 550; }
.versions small { margin-top: 3px; color: #7e8da3; font-size: 11px; }
.versions em { margin-left: 4px; padding: 1px 5px; font-size: 10px; font-style: normal; color: #7e8da3; border: 1px solid #2d3c51; border-radius: 4px; }
.counts li { display: flex; align-items: center; }
.counts b { margin-left: auto; font-variant-numeric: tabular-nums; }
.app-props { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 12px; font-size: 12px; border: 1px solid #202c3d; border-radius: 8px; }
.app-props dt { color: #7e8da3; }
.app-props dd { text-align: right; }
s { color: var(--muted); margin-right: 4px; }
.app s { color: #7e8da3; }
.app-props dd:first-of-type { color: var(--changed); }
.building { display: block; width: 100%; height: auto; align-self: center; }
.app figcaption { padding: 12px; font-size: 11px; text-align: center; color: #7e8da3; border-top: 1px solid #202c3d; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; }
.added { background: var(--added); } .changed { background: var(--changed); } .removed { background: var(--removed); }

.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin-top: 40px; padding-block: 28px; text-align: center; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.proof strong { color: var(--text); font-weight: 650; }

.section { padding-block: 96px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head > p:last-child { margin-top: 18px; color: var(--muted); }
.eyebrow { margin-bottom: 16px; font-size: 12px; font-weight: 750; letter-spacing: 1.6px; color: var(--accent); }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h3 { margin-bottom: 10px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 12px 12px; }
.step-number { display: block; margin-bottom: 18px; font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.steps p, .tile p, .team-features dd { font-size: 15px; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tile.wide { grid-column: span 2; }
.tile > :last-child:not(p) { margin-top: auto; padding-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding-left: 0; }
.chips li { display: flex; align-items: center; padding: 10px 14px; font-size: 14px; font-weight: 600; background: var(--soft); border-radius: 8px; }
.diff { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; font-size: 13px; }
.diff dt { color: var(--muted); }
.diff dd { font-weight: 650; white-space: nowrap; }
.branches { width: 100%; height: auto; color: var(--muted); }
.branches circle { fill: var(--surface); }
.branches .alt { stroke: var(--accent); }

.team { color: #e8eef8; background: #0b1018; --muted: #8e9cb2; --line: #202c3d; --accent: #6aa8ff; --soft: #131c2a; --text: #e8eef8; --bg: #0b1018; }
@media (prefers-color-scheme: dark) { .team { background: #0f1622; border-block: 1px solid #202c3d; } }
.team-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.team .lead { margin-top: 24px; }
.console { padding: 22px; font-size: 13px; background: #0b1018; border: 1px solid #2d3c51; border-radius: 14px; box-shadow: var(--shadow); }
.console-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.console-top span { color: #7e8da3; }
.console-top em { font-style: normal; margin-right: 10px; padding: 3px 8px; color: #e8eef8; background: #4e9cff24; border-radius: 5px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; margin-bottom: 20px; border-bottom: 1px solid #202c3d; }
.bars i { flex: 1; height: var(--h); background: #4e9cff; border-radius: 3px 3px 0 0; }
.console table { width: 100%; border-collapse: collapse; }
.console th { font-size: 11px; font-weight: 600; color: #7e8da3; text-align: right; padding-bottom: 8px; }
.console td { padding: 8px 0; text-align: right; border-top: 1px solid #202c3d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.console :is(th, td):first-child { text-align: left; }
.console figcaption { margin-top: 14px; font-size: 11px; color: #7e8da3; }
.team-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1px solid #202c3d; }
.team-features dt { margin-bottom: 8px; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.metrics div { padding: 26px; border: 1px solid #202c3d; border-radius: 14px; }
.metrics dt { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.metrics dd { margin-top: 12px; font-size: 14px; color: var(--muted); }

.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 22px; font-size: 17px; font-weight: 650; line-height: 1.5; }
details:first-child summary { padding-top: 0; }
details p { padding-bottom: 24px; font-size: 15px; color: var(--muted); }

.cta { margin-bottom: 96px; padding: 72px 32px; text-align: center; background: var(--soft); border-radius: 20px; }
.cta p { max-width: 620px; margin: 18px auto 0; color: var(--muted); }
.cta .actions { justify-content: center; }

dialog { width: min(460px, calc(100% - 40px)); max-height: calc(100% - 40px); padding: 36px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 80px #0b101866; }
dialog::backdrop { background: #0b1018a6; }
dialog h2 { font-size: 30px; }
dialog p:last-of-type { margin-top: 16px; font-size: 15px; color: var(--muted); }
dialog label { display: block; margin-block: 26px 10px; font-size: 14px; font-weight: 650; }
dialog input { display: block; width: 100%; min-width: 0; padding: 13px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.dialog-close { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; font-size: 26px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; }
.dialog-close:hover { background: var(--soft); }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 18px; }
.footer p, .footer > a:last-child { font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .app-body { grid-template-columns: minmax(0, 1fr) 240px; }
  .app-side { display: none; }
  .team-layout, .faq { grid-template-columns: 1fr; gap: 48px; }
  .team-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  nav a:not(.button) { display: none; }
  .hero { padding-top: 56px; }
  .lead { font-size: 16px; }
  .actions .button { flex: 1 1 100%; }
  .app { margin-top: 44px; }
  .app-bar span { padding-right: 0; }
  .app-body { grid-template-columns: 1fr; }
  .app-changes { border-left: 0; border-top: 1px solid #202c3d; }
  .proof { flex-direction: column; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .steps, .bento, .metrics, .team-features { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .team-features { margin-top: 48px; gap: 24px; }
  .cta { margin-bottom: 56px; padding: 48px 20px; }
  dialog { padding: 28px; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
}
