/* FasteR site — one family (Inter), 8px spacing system, one accent. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* spacing (8px base) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* light theme */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #0e1117;
  --muted: #566070;
  --accent: #3d5afe;
  --accent-hover: #2f49e0;
  --accent-text: #3043d6;
  --accent-soft: #eef1ff;
  --accent-ring: rgba(61, 90, 254, 0.35);
  --on-accent: #ffffff;
  --ok: #067647;
  --ok-soft: #e6f6ee;
  --warn: #8a4b00;
  --warn-soft: #fff4e0;
  --warn-border: #f5d9a8;
  --glow: rgba(61, 90, 254, 0.14);
  --grid: rgba(14, 17, 23, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 64px rgba(16, 24, 40, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090b10;
    --bg-soft: #0e1117;
    --surface: #12161e;
    --border: #232936;
    --border-strong: #323a4a;
    --text: #eceff5;
    --muted: #9aa4b5;
    --accent: #3d5afe;
    --accent-hover: #5570ff;
    --accent-text: #9db0ff;
    --accent-soft: rgba(61, 90, 254, 0.14);
    --accent-ring: rgba(120, 140, 255, 0.45);
    --ok: #4ade9b;
    --ok-soft: rgba(74, 222, 155, 0.12);
    --warn: #f4c06b;
    --warn-soft: rgba(244, 192, 107, 0.1);
    --warn-border: rgba(244, 192, 107, 0.28);
    --glow: rgba(61, 90, 254, 0.28);
    --grid: rgba(255, 255, 255, 0.045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 32px 80px rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(9, 11, 16, 0.78);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
svg { display: block; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: var(--s2); top: -64px; z-index: 100; background: var(--text); color: var(--bg); padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-weight: 500; }
.skip:focus { top: var(--s2); }

.container { width: 100%; max-width: calc(var(--container) + var(--s6)); margin-inline: auto; padding-inline: var(--s3); }

/* ---------- type scale ---------- */
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.body-sm { font-size: 15px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 19px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s4); }
.nav-links a:not(.btn) { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--on-accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); height: 40px; padding: 0 var(--s2); border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 550; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-lg { height: 48px; padding: 0 var(--s3); font-size: 15px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn[disabled] { cursor: not-allowed; background: var(--bg-soft); color: var(--muted); border-color: var(--border); box-shadow: none; }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 550; line-height: 1; white-space: nowrap; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: var(--s10) 0 var(--s8); text-align: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 50% 0%, var(--glow), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%); }
.hero .badge { margin-bottom: var(--s3); }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { max-width: 580px; margin: var(--s3) auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s2); margin-top: var(--s4); }
.hero-note { margin: var(--s3) auto 0; max-width: 560px; font-size: 14px; color: var(--muted); }

/* ---------- app mock ---------- */
.mock-wrap { margin: var(--s8) auto 0; max-width: 960px; }
.mock { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 48px; padding: 0 var(--s2); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-dots { display: flex; gap: 8px; }
.mock-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.mock-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 216px 1fr; min-height: 380px; }
.mock-steps { padding: var(--s3) var(--s2); border-right: 1px solid var(--border); background: var(--bg-soft); display: flex; flex-direction: column; gap: 4px; }
.mock-step { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--muted); }
.mock-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 11px; font-weight: 600; flex: none; }
.mock-step.done b { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mock-step.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.mock-step.active b { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.mock-main { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.mock-drive { display: flex; align-items: center; gap: var(--s2); }
.mock-drive-ico { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.mock-drive-ico svg { width: 20px; height: 20px; }
.mock-drive strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.mock-drive span.sub { font-size: 13px; color: var(--muted); }
.mock-drive .badge { margin-left: auto; }
.mock-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s2); }
.mock-count .big { font-size: 48px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mock-count .lbl { font-size: 15px; color: var(--muted); }
.progress { height: 8px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #7b8fff); animation: fill 3.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fill { from { width: 0; } }
.mock-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
.mock-cat { padding: 12px var(--s2); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-soft); }
.mock-cat span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.mock-cat strong { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.4; }
.mock-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s1); }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); border: 1px solid var(--border); overflow: hidden; }
.thumb em { position: absolute; left: 6px; bottom: 6px; font-family: var(--mono); font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 2px 5px; border-radius: 4px; background: rgba(14,17,23,.62); color: #fff; line-height: 1.3; }
.t1 { background: linear-gradient(135deg, #a5b4fc, #6366f1); }
.t2 { background: linear-gradient(135deg, #fde68a, #fb923c); }
.t3 { background: linear-gradient(135deg, #99f6e4, #14b8a6); }
.t4 { background: linear-gradient(135deg, #fbcfe8, #ec4899); }
.t5 { background: linear-gradient(135deg, #bae6fd, #0ea5e9); }
.t6 { background: linear-gradient(135deg, #d9f99d, #65a30d); }
.mock-caption { margin-top: var(--s2); text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- notice ---------- */
.notice { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) var(--s3); border: 1px solid var(--warn-border); background: var(--warn-soft); border-radius: var(--r-lg); max-width: 760px; margin: 0 auto; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--warn); }
.notice p { font-size: 15px; line-height: 1.6; color: var(--text); }
.notice strong { font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: var(--s12) 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: var(--s8); }
.section-head .eyebrow { display: block; margin-bottom: var(--s2); }
.section-head p { margin-top: var(--s2); }
.pad-top-s { padding-top: var(--s8); }

.grid { display: grid; gap: var(--s3); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: var(--s1); }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.icon-box { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: var(--s2); }
.icon-box svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 14px; font-weight: 600; margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }

/* ---------- supported files ---------- */
.files-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.file-group + .file-group { margin-top: var(--s3); }
.file-group h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: var(--s1); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.fmt-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.fmt-row:first-of-type { border-top: 0; padding-top: 0; }
.fmt-row:last-child { padding-bottom: 0; }
.fmt-row span:first-child { font-weight: 550; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s3); row-gap: 0; }
.dl-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow-md); }
.dl-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.dl-head .icon-box { margin: 0; }
.dl-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-bottom: var(--s2); }
.dl-card .btn { width: 100%; }
.dl-card h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin: var(--s3) 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border); letter-spacing: 0; }
.install { counter-reset: s; display: grid; gap: 12px; }
.install li { counter-increment: s; position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.install li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.install code, .muted-code { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.dl-note { margin-top: var(--s4); font-size: 14px; color: var(--muted); }

.use { margin-top: var(--s8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-sm); }
.use h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: var(--s3); }
.use ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: u; }
.use li { counter-increment: u; font-size: 15px; line-height: 1.55; color: var(--muted); }
.use li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; font-size: 16px; }
.use li::before { content: "0" counter(u); display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-text); margin-bottom: var(--s1); }
.use .notice { max-width: none; margin-top: var(--s4); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-head { max-width: 760px; margin: 0 auto var(--s6); }
details { border-bottom: 1px solid var(--border); }
details:first-child { border-top: 1px solid var(--border); }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; color: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 var(--s6) var(--s3) 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s8) 0 var(--s6); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.footer p { font-size: 14px; color: var(--muted); max-width: 360px; margin-top: var(--s2); }
.footer h4 { margin: 0 0 var(--s2); font-size: 13px; font-weight: 600; color: var(--text); }
.footer li + li { margin-top: 12px; }
.footer li a, .footer li span { font-size: 14px; color: var(--muted); }
.footer li a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .use ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: var(--s10) 0; }
  .grid-3, .files-layout, .dl-grid { grid-template-columns: 1fr; }
  .dl-card { grid-row: auto; display: flex; flex-direction: column; margin-bottom: var(--s3); }
  .dl-card:last-child { margin-bottom: 0; }
  .nav-links a:not(.btn) { display: none; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-right: 0; border-bottom: 1px solid var(--border); padding: var(--s1); }
  .mock-step { padding: 0 8px; gap: 8px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding-inline: var(--s2); }
  .hero { padding: var(--s8) 0 var(--s6); }
  .section { padding: var(--s8) 0; }
  .section-head { margin-bottom: var(--s5); }
  .grid-4, .grid-2, .use ol { grid-template-columns: 1fr; }
  .mock-wrap { margin-top: var(--s6); }
  .mock-main { padding: var(--s2); gap: var(--s2); }
  .mock-count .big { font-size: 36px; }
  .mock-thumbs { grid-template-columns: repeat(3, 1fr); }
  .mock-thumbs .thumb:nth-child(n+7) { display: none; }
  .mock-drive .badge { display: none; }
  .mock-cat { padding: 10px 12px; }
  .mock-cat strong { font-size: 17px; }
  .use { padding: var(--s3) var(--s2); }
  details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-actions .btn { flex: 1 1 100%; }
}
html.static .progress > i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress > i { animation: none; }
  details summary::after { transition: none; }
}
