:root {
  --paper: #f5f4f0;
  --panel: #fbfaf7;
  --ink: #131312;
  --ink-soft: #45443f;
  --muted: #8a877e;
  --line: #ddd9d0;
  --line-strong: #c3bfb3;
  --accent: #e23d16;
  --ok: #1c6b4a;
  --warn: #9a5b00;
  --ko: #b62c15;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Inter,
    Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0d;
    --panel: #161614;
    --ink: #f2f0ea;
    --ink-soft: #c6c2b8;
    --muted: #8b877d;
    --line: #2a2a26;
    --line-strong: #3d3d37;
    --accent: #ff5a2b;
    --ok: #57b98d;
    --warn: #d79b45;
    --ko: #ff6b4d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  font-weight: 520;
  line-height: 1.08;
  margin: 0;
}

.micro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.wordmark,
.foot-left {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.wordmark small,
.foot-left small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-1px);
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-gh {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
}

.nav-gh:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ------------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 56px) clamp(56px, 8vw, 104px);
  max-width: 1360px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 86px);
  letter-spacing: -0.042em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
}

.lede {
  margin: 0 0 34px;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}

/* --------------------------------------------------------------- mock app */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -26px -22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  pointer-events: none;
}

.mock {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 40px 90px -60px rgba(18, 18, 16, 0.55);
  padding: 20px 22px 18px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mock-file {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mock-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid currentColor;
}

.mock-tag[data-verdict='check'] {
  color: var(--warn);
}

.mock-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 20px 0 14px;
}

.mock-score strong {
  font-size: 64px;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.mock-score > span {
  font-size: 12px;
  color: var(--muted);
}

.mock-score-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.mock-list i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}

.mock-list li[data-sev='critical'] i {
  background: var(--ko);
}
.mock-list li[data-sev='warning'] i {
  background: var(--warn);
}
.mock-list li[data-sev='info'] i {
  background: var(--line-strong);
}

.mock-list li[data-sev='critical'] {
  color: var(--ink);
}

.mock-foot {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-foot span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
}

.mock-foot .mock-gain {
  margin-left: auto;
  border-color: transparent;
  color: var(--ok);
  font-size: 11px;
}

/* ------------------------------------------------------------------ bands */
.band {
  padding: clamp(52px, 7vw, 96px) clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  max-width: 1360px;
  margin: 0 auto;
}

.band-alt {
  background: var(--paper);
}

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: baseline;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.band-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.035em;
}

.band-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.cell {
  min-width: 0;
  padding: 26px 26px 30px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-left: 26px;
}

.grid-3 .cell:nth-child(3n + 1) {
  padding-left: 0;
}

.grid-3 .cell:nth-child(3n) {
  border-right: 0;
}

.grid-3 .cell:nth-last-child(-n + 1) {
  border-bottom: 0;
}

.num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.cell h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cell p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.method {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  padding: 26px 28px 28px;
}

.method-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.method h3 {
  font-size: 22px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.method p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.method ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.method li {
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  position: relative;
}

.faq kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--panel);
}

.method li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 32ch;
}

/* ---------------------------------------------------------------- privacy */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin: 0 clamp(20px, 4vw, 56px);
  padding: clamp(34px, 5vw, 56px);
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
}

.privacy h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  margin-bottom: 14px;
  color: var(--paper);
}

.privacy p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  max-width: 48ch;
  font-size: 14.5px;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.privacy-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.privacy-list span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
}

/* -------------------------------------------------------------- downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.download {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.download:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.dl-label {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding-right: 30px;
}

.dl-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 16px;
  color: var(--muted);
}

.download:hover .dl-arrow {
  color: var(--accent);
}

.download-web {
  border-style: dashed;
}

.download.is-detected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.download.is-detected .dl-meta,
.download.is-detected .dl-arrow {
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

.download.is-detected:hover .dl-arrow {
  color: var(--accent);
}

.downloads + .micro {
  margin-top: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 70ch;
}

.faq {
  border-bottom: 1px solid var(--line);
  margin-top: 26px;
  max-width: 76ch;
}

.faq summary {
  cursor: pointer;
  padding: 15px 24px 15px 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.faq[open] summary::after {
  content: '−';
}

.faq p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 68ch;
}

/* ----------------------------------------------------------------- footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 56px) 40px;
  border-top: 1px solid var(--line);
  max-width: 1360px;
  margin: 0 auto;
}

.foot-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-right a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 .cell:nth-child(3n + 1) {
    padding-left: 26px;
  }
  .grid-3 .cell:nth-child(2n + 1) {
    padding-left: 0;
  }
  .grid-3 .cell:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .grid-3 .cell:nth-child(2n) {
    border-right: 0;
  }
  .downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav a:not(.nav-gh) {
    display: none;
  }
  .band-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .grid-3,
  .grid-2,
  .steps,
  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual::before {
    display: none;
  }
  .hero-visual {
    max-width: 100%;
  }
  .privacy {
    margin-left: 14px;
    margin-right: 14px;
  }
  .grid-3 .cell {
    padding: 22px 0 !important;
    border-right: 0 !important;
  }
  .privacy {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .mock-score strong {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  .top,
  .hero-visual,
  .cta-row {
    display: none;
  }
}
