:root {
  color-scheme: light dark;
  --ink: oklch(0.22 0.018 255);
  --muted: oklch(0.49 0.018 255);
  --paper: oklch(0.985 0.006 85);
  --soft: oklch(0.95 0.012 255);
  --line: oklch(0.86 0.014 255);
  --blue: oklch(0.51 0.16 250);
  --green: oklch(0.53 0.15 150);
  --orange: oklch(0.62 0.17 52);
  --slate: oklch(0.54 0.035 255);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir Next, Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
nav, footer div { display: flex; gap: clamp(16px, 3vw, 34px); }
nav a, footer a { color: var(--muted); font-size: 0.94rem; font-weight: 600; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--ink); }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(56px, 10vw, 132px) auto clamp(72px, 11vw, 144px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}
.kicker { margin: 0 0 20px; color: var(--blue); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -0.045em; line-height: 1.02; }
h1 { max-width: 11ch; margin-bottom: 28px; font-size: clamp(3.4rem, 7vw, 6.9rem); font-weight: 700; }
.lede { max-width: 58ch; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; padding: 13px 22px; border: 1px solid var(--ink); border-radius: 12px; font-weight: 700; text-decoration: none; }
.button.primary { color: var(--paper); background: var(--ink); }
.button.primary:hover { background: var(--blue); border-color: var(--blue); }
.button.secondary:hover { background: var(--soft); }
.release-note { max-width: 54ch; margin: 18px 0 0; color: var(--muted); font-size: 0.84rem; }

.tab-scene { position: relative; min-height: 420px; border: 1px solid var(--line); border-radius: 22px; background: oklch(0.97 0.01 250); box-shadow: 0 28px 80px oklch(0.3 0.04 250 / 0.14); transform: rotate(1.2deg); overflow: hidden; }
.browser-bar { height: 38px; padding: 14px 16px; display: flex; gap: 7px; background: oklch(0.91 0.016 250); }
.traffic { width: 10px; height: 10px; border-radius: 50%; }
.red { background: oklch(0.65 0.18 25); } .amber { background: oklch(0.76 0.16 80); } .green { background: oklch(0.67 0.17 145); }
.tabs { display: flex; padding: 10px 12px 0; background: oklch(0.91 0.016 250); }
.tab { min-width: 0; flex: 1; height: 54px; padding: 0 13px; display: flex; gap: 9px; align-items: center; color: var(--muted); border-radius: 13px 13px 0 0; }
.tab.selected { color: var(--ink); background: var(--paper); }
.tab-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.78rem; }
.close { margin-left: auto; font-size: 1rem; }
.favicon { position: relative; width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; color: var(--paper); border-radius: 5px; font-family: Georgia, serif; font-size: 0.72rem; font-weight: 700; }
.wiki { background: oklch(0.25 0.01 250); } .doc { background: oklch(0.53 0.13 250); } .chart { background: oklch(0.52 0.12 310); }
.badge { position: absolute; right: -5px; bottom: -5px; width: 14px; height: 14px; display: grid; place-items: center; color: oklch(0.99 0.003 255); border: 2px solid var(--paper); border-radius: 50%; font: 800 9px/1 ui-sans-serif, system-ui, sans-serif; }
.todo { background: var(--slate); } .done { background: var(--green); } .attention { background: var(--orange); }
.page-surface { min-height: 318px; padding: 72px 52px; background: var(--paper); }
.reading-line { width: 72%; height: 9px; margin-bottom: 15px; border-radius: 8px; background: var(--line); }
.reading-line.wide { width: 90%; } .reading-line.short { width: 54%; }
.source-note { position: absolute; right: 32px; bottom: 28px; padding: 11px 15px; color: var(--muted); background: var(--soft); border-radius: 10px; font-size: 0.78rem; font-weight: 650; }

.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.status-strip > div { min-height: 164px; padding: 32px clamp(24px, 5vw, 74px); display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; align-content: center; }
.status-strip > div + div { border-left: 1px solid var(--line); }
.large-mark { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; color: oklch(0.99 0.003 255); border-radius: 50%; font-size: 1.35rem; font-weight: 800; }
.status-strip strong { align-self: end; font-size: 1.05rem; }
.status-strip small { color: var(--muted); }

.workflow { width: min(1080px, calc(100% - 40px)); margin: clamp(96px, 14vw, 180px) auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(56px, 10vw, 140px); }
.section-intro { position: sticky; top: 36px; align-self: start; }
h2 { max-width: 13ch; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.workflow ol { margin: 0; padding: 0; list-style: none; }
.workflow li { padding: 10px 0 38px; display: grid; grid-template-columns: 48px 1fr; gap: 22px; border-top: 1px solid var(--line); }
.workflow li > span { padding-top: 9px; color: var(--blue); font-size: 0.8rem; font-weight: 750; }
.workflow h3 { margin: 0 0 10px; font-size: 1.55rem; }
.workflow p { max-width: 52ch; margin: 0; color: var(--muted); }

.privacy-promise { padding: clamp(70px, 10vw, 128px) max(20px, calc((100vw - 1080px) / 2)); display: grid; grid-template-columns: 0.8fr 1.1fr; gap: clamp(36px, 8vw, 120px); color: oklch(0.96 0.008 255); background: var(--ink); }
.privacy-promise .kicker { color: oklch(0.76 0.12 150); }
.privacy-promise h2 { margin-bottom: 0; }
.privacy-promise > p { max-width: 59ch; margin: 0; color: oklch(0.78 0.018 255); font-size: 1.1rem; }
.privacy-promise > a { grid-column: 2; width: fit-content; color: oklch(0.92 0.02 255); font-weight: 700; }

footer { min-height: 112px; color: var(--muted); font-size: 0.86rem; }
.policy { width: min(760px, calc(100% - 40px)); margin: clamp(70px, 10vw, 126px) auto; overflow: visible; }
.policy h1 { max-width: none; }
.policy-lede { margin-bottom: 72px; color: var(--muted); font-size: 1.25rem; }
.policy h2 { max-width: none; margin: 52px 0 16px; font-size: 1.8rem; }
.policy p, .policy dd { color: var(--muted); }
.policy dl { display: grid; grid-template-columns: 150px 1fr; gap: 14px 24px; }
.policy dt { font-weight: 750; }
.policy dd { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .tab-scene { transition: transform 500ms cubic-bezier(.16,1,.3,1), box-shadow 500ms cubic-bezier(.16,1,.3,1); }
  .tab-scene:hover { transform: rotate(0); box-shadow: 0 34px 100px oklch(0.3 0.04 250 / 0.19); }
}
@media (max-width: 820px) {
  .site-header { min-height: 72px; }
  nav a:first-child { display: none; }
  .hero, .workflow, .privacy-promise { grid-template-columns: 1fr; }
  .hero { margin-top: 58px; }
  .hero h1 { max-width: 12ch; }
  .tab-scene { min-height: 340px; transform: none; }
  .tab-title { display: none; }
  .page-surface { min-height: 240px; padding: 52px 28px; }
  .status-strip { grid-template-columns: 1fr; }
  .status-strip > div { min-height: 116px; }
  .status-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section-intro { position: static; }
  .privacy-promise > a { grid-column: 1; }
}
@media (max-width: 520px) {
  .site-header, footer, .hero, .workflow, .policy { width: min(100% - 28px, 1180px); }
  .brand span { display: none; }
  nav, footer div { gap: 16px; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .actions { align-items: stretch; flex-direction: column; }
  .button { text-align: center; }
  .tab-scene { min-height: 290px; }
  .tab { padding-inline: 9px; }
  .page-surface { min-height: 190px; }
  .source-note { right: 18px; bottom: 18px; }
  .policy dl { grid-template-columns: 1fr; gap: 4px; }
  .policy dd { margin-bottom: 14px; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink: oklch(0.92 0.012 255); --muted: oklch(0.71 0.018 255); --paper: oklch(0.17 0.014 255); --soft: oklch(0.23 0.018 255); --line: oklch(0.32 0.018 255); --blue: oklch(0.71 0.14 250); }
  .button.primary { color: oklch(0.16 0.014 255); }
  .tab-scene { background: oklch(0.21 0.018 255); box-shadow: 0 28px 80px oklch(0.02 0.01 255 / 0.35); }
  .browser-bar, .tabs { background: oklch(0.23 0.018 255); }
  .badge { border-color: var(--paper); }
  .privacy-promise { color: oklch(0.19 0.014 255); background: oklch(0.91 0.014 255); }
  .privacy-promise > p { color: oklch(0.38 0.018 255); }
  .privacy-promise > a { color: oklch(0.25 0.02 255); }
}
