:root {
  color-scheme: dark;
  --ground: #080808;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: #f3f1ec;
  --muted: #a9a69e;
  --faint: #75736d;
  --ink: #121212;
  --accent: #c4ea71;
  --warn: #e1b761;
  --danger: #e17765;
  --sand: #dec996; --sage: #a1ba94; --teal: #62a6a2; --mint: #afe2cd;
  --olive: #8c8956; --sky: #8ac1d7; --clay: #b9986d; --slate: #628793;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--paper); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--paper); background: transparent;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: #d2f08c; border-color: #d2f08c; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn.large { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
           border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(36px, 6.4vw, 66px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 auto 22px; max-width: 13em; font-weight: 800; }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 36em; margin: 0 auto 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta { margin-top: 16px; font-size: 13px; color: var(--faint); }
.meta span + span::before { content: "·"; margin: 0 8px; }

/* Mini disk bar in the app's data tones */
.diskbar { display: flex; gap: 4px; height: 10px; max-width: 520px; margin: 56px auto 0; }
.diskbar i { border-radius: 3px; display: block; }
.diskbar .free { border: 1px dashed var(--line-strong); }

/* App window frame for screenshots */
.window {
  border-radius: 12px; overflow: hidden; background: #0d0d0d;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
/* The app hides its title bar, so the screenshots leave room for the window buttons; draw them where
   macOS puts them (14 pt circles at x 9 / 32 / 55, y 9 in a 1180-pt-wide window), scaled with the image. */
.window { position: relative; container-type: inline-size; }
.window img { display: block; width: 100%; height: auto; }
.window .bar { position: absolute; top: 0; left: 0; display: flex; gap: calc(100cqw * 9 / 1180); padding: calc(100cqw * 9 / 1180); }
.window .bar i { width: calc(100cqw * 14 / 1180); aspect-ratio: 1; border-radius: 50%; background: #3a3a3a; display: block; }
.hero .window { margin: 64px auto 0; max-width: 1040px; }

/* Sections */
section { padding: 104px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 72px 0; } .hero { padding: 56px 0 48px; } }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 750; }
.intro { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0 0 40px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip .copy { order: 2; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.flip .copy { order: 0; } }

/* Map tabs */
.tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 18px; }
.tabs button {
  font: 600 14px/1 var(--sans); color: var(--paper); background: transparent; border: 0; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.tab-caption { color: var(--muted); min-height: 3.3em; margin: 0 0 22px; max-width: 46em; }

/* Risk cards */
.risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
@media (max-width: 900px) { .risks { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.tag svg { width: 13px; height: 13px; }
.tag.safe { color: var(--accent); background: rgba(196, 234, 113, 0.13); }
.tag.review { color: var(--warn); background: rgba(225, 183, 97, 0.13); }
.tag.caution { color: var(--danger); background: rgba(225, 119, 101, 0.14); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .eg { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* Lists */
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.points li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.points strong { display: block; font-size: 16px; }
.points span { color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--paper); }

/* Code */
.code { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; }
.code pre { margin: 0; padding: 16px 56px 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: var(--paper); }
.code .c { color: var(--faint); }
.code .copy-btn { position: absolute; top: 9px; right: 9px; }
.code pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn {
  font: 600 12px/1 var(--sans); color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer;
}
.copy-btn:hover { color: var(--paper); }
.note { font-size: 14px; color: var(--faint); }

.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tools code { font: 12.5px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }

.sheet { max-width: 430px; border-radius: 12px; border: 1px solid var(--line-strong); overflow: hidden; margin-top: 28px;
         box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); }

/* Install */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 28px; border-radius: var(--radius);
            background: linear-gradient(180deg, #151a0c, #111); border: 1px solid rgba(196, 234, 113, 0.25); }
.download .what { flex: 1 1 280px; }
.download .what strong { font-size: 20px; display: block; }
.download .what span { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .brand { color: var(--paper); font-size: 15px; }
footer .brand img { width: 22px; height: 22px; }

/* Language switch */
.lang { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--paper); border-color: var(--line-strong); }
@media (max-width: 760px) { .nav .lang { margin-left: auto; } .nav .lang + .btn { margin-left: 0; } }
