/* Layout: one centred column on a measured grid; each section opens with a ruler tick and a mono label, the hero is a frosted panel over the painted wallpaper. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/Sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/Sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Signal Dark, the desktop's default look (docs/THEME.md) */
  --bg: #121418;
  --surface: #1C1F25;
  --surface-2: #252932;
  --frost: rgba(18, 20, 24, 0.72);
  --fg: #E3E6EB;
  --muted: #9AA3B2;
  --accent: #4BA3F0;
  --highlight: #0FFCBE;
  --on-accent: #0B1220;
  --tick-a: #FF4D9D;
  --tick-b: #7C4DFF;
  --logo-dark: inline-block;
  --logo-light: none;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius-s: 4px;
  --radius: 5px;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.6vw, 3.4rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F8FA; --surface: #ECEFF3; --surface-2: #E1E5EB; --frost: rgba(247, 248, 250, 0.76);
    --fg: #1F2329; --muted: #5A6170; --accent: #106EBE; --highlight: #106EBE; --on-accent: #FFFFFF;
    --logo-dark: none; --logo-light: inline-block; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F7F8FA; --surface: #ECEFF3; --surface-2: #E1E5EB; --frost: rgba(247, 248, 250, 0.76);
  --fg: #1F2329; --muted: #5A6170; --accent: #106EBE; --highlight: #106EBE; --on-accent: #FFFFFF;
  --logo-dark: none; --logo-light: inline-block; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-s); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lockup { height: 36px; width: auto; }
.lockup.dark { display: var(--logo-dark); }
.lockup.light { display: var(--logo-light); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: var(--step--1); }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }

/* Hero */
.hero {
  background: var(--surface) center / cover no-repeat;
  background-image: image-set(url("waveform-1920.webp") 1x);
  padding-block: clamp(48px, 9vw, 120px);
}
@media (max-width: 720px) { .hero { background-image: url("waveform-960.webp"); } }
.panel {
  max-width: 40rem;
  background: var(--frost);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 20px;
}
.eyebrow {
  font: 500 var(--step--1)/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
}
.hero h1 { font-size: var(--step-3); line-height: 1.08; font-weight: 650; letter-spacing: -0.02em; }
.hero p.lede { color: var(--fg); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.button.quiet { background: var(--surface-2); color: var(--fg); }

/* Frame-time strip */
.trace { padding-block: 28px 8px; }
.trace figure { margin: 0; display: grid; gap: 8px; }
.trace svg { width: 100%; height: 96px; display: block; }
.trace figcaption { font: 400 var(--step--1)/1.5 var(--font-mono); color: var(--muted); }

/* Sections */
section.block { padding-block: clamp(48px, 7vw, 88px); }
.label {
  display: flex; align-items: center; gap: 10px;
  font: 500 var(--step--1)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(var(--tick-a), var(--tick-b));
}
.block h2 { font-size: var(--step-2); line-height: 1.2; font-weight: 600; margin-top: 14px; max-width: 40rem; }
.block .intro { color: var(--muted); max-width: 40rem; margin-top: 12px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pillar h3 { font-size: var(--step-1); font-weight: 600; }
.pillar ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--fg); }
.pillar li::marker { color: var(--accent); }

.care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 32px; }
@media (max-width: 760px) { .care { grid-template-columns: 1fr; } }
.care div { display: grid; gap: 6px; min-width: 0; }
.care h3 { font-size: var(--step-0); font-weight: 600; }
.care p { color: var(--muted); }

.spec-wrap { margin-top: 28px; overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; min-width: 32rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; }
.spec tr:nth-child(odd) { background: var(--surface); }
.spec th { font-weight: 600; width: 34%; }
.spec td { font: 400 var(--step--1)/1.6 var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }

.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.release { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.release .prefix { font: 600 var(--step-2)/1 var(--font-mono); color: var(--fg); }
.release .name { font-weight: 600; }
.release .state { font: 400 var(--step--1)/1.4 var(--font-mono); color: var(--muted); }
.release.now { background: var(--surface-2); }
.release.now .state { color: var(--highlight); }

.preview { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; margin-top: 28px; max-width: 46rem; }
.preview p { color: var(--muted); }
.preview p strong { color: var(--fg); font-weight: 600; }

footer { padding-block: 40px 56px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: grid; gap: 8px; }
footer .tagline { font-family: var(--font-mono); color: var(--fg); }

/* Inner pages (office, talk, gaming, security) */
.top nav a[aria-current="page"] { color: var(--fg); }
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 16px; }
.page-hero h1 { font-size: var(--step-3); line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; max-width: 46rem; }
.page-hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 44rem; }
.prose { display: grid; gap: 14px; max-width: 44rem; margin-top: 18px; }
.prose p { color: var(--fg); }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.status {
  display: inline-block; font: 500 var(--step--1)/1 var(--font-mono); letter-spacing: 0.04em;
  padding: 5px 8px; border-radius: var(--radius-s); background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.status.ready { color: var(--highlight); }
.status.building { color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.feature h3 { font-size: var(--step-0); font-weight: 600; }
.feature p { color: var(--muted); }
.spec td .status { font-family: var(--font-mono); }
.note { color: var(--muted); font-size: var(--step--1); max-width: 44rem; margin-top: 18px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.shot figcaption { color: var(--muted); font-size: var(--step--1); }

/* Light and dark switch */
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--fg); cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle[data-mode="dark"] .sun { display: block; }
.theme-toggle[data-mode="dark"] .moon { display: none; }
.top nav { align-items: center; }
