:root {
  --ink: #121820;
  --muted: #5d6874;
  --line: #d9dee3;
  --paper: #ffffff;
  --wash: #f3f5f7;
  --red: #e33b2f;
  --red-dark: #bc291f;
  --green: #14825f;
  --yellow: #f4c74c;
  --content: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); letter-spacing: 0; }
body, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 14px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--red); color: #fff; font-weight: 900; }
.desktop-nav { display: flex; gap: 30px; font-size: 13px; font-weight: 650; }
.desktop-nav a { opacity: .78; }
.desktop-nav a:hover { opacity: 1; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.language-switch { display: flex; padding: 2px; border: 1px solid currentColor; }
.language-switch button { width: 34px; height: 26px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 11px; font-weight: 750; }
.language-switch button[aria-pressed="true"] { background: currentColor; color: var(--ink); }
.site-header.is-scrolled .language-switch button[aria-pressed="true"] { color: #fff; }
.github-link { font-size: 13px; font-weight: 750; }

.hero {
  position: relative;
  min-height: min(780px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #161d24 url("assets/hero-console.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,16,.94) 0%, rgba(8,12,16,.8) 38%, rgba(8,12,16,.18) 72%, rgba(8,12,16,.08) 100%); }
.hero-content { position: relative; width: min(var(--content), calc(100% - 48px)); margin: 44px auto 0; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.hero h1 { max-width: 730px; margin: 0; font-size: clamp(56px, 7vw, 102px); line-height: .94; letter-spacing: 0; }
.hero-copy { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; font-size: 14px; font-weight: 780; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { border-color: rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.06); }
.button-dark { background: var(--ink); color: #fff; }
.hero-note { margin: 22px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }

.proof-band { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 122px; border-bottom: 1px solid var(--line); }
.proof-item { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { font-size: 25px; }
.proof-item span { color: var(--muted); font-size: 12px; }

.section { padding: 112px max(24px, calc((100vw - var(--content)) / 2)); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); column-gap: 80px; align-items: end; margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; max-width: 760px; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-heading.compact { display: block; }
.section-heading.compact h2 { max-width: 880px; }

.intro { background: var(--wash); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { position: relative; min-height: 350px; padding: 34px; background: #fff; border: 1px solid #e0e4e7; overflow: hidden; }
.feature-card-wide { grid-column: span 2; min-height: 330px; }
.feature-index { display: block; margin-bottom: 74px; color: var(--red); font-size: 12px; font-weight: 850; }
.feature-card h3 { margin: 0 0 14px; font-size: 25px; }
.feature-card p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }
.mini-browser { position: absolute; right: 34px; bottom: 34px; width: 43%; min-width: 390px; height: 210px; background: #edf0f2; border: 1px solid #cfd5da; box-shadow: 0 18px 45px rgba(21,31,40,.12); }
.mini-browser-bar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; background: #fff; border-bottom: 1px solid #d5dade; }
.mini-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c7cdd2; }
.mini-browser-bar span { margin-left: 10px; overflow: hidden; color: #64707a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; white-space: nowrap; }
.mini-browser-body { height: calc(100% - 42px); display: grid; place-items: center; align-content: center; gap: 16px; }
.secure-badge { padding: 5px 8px; background: #d6efe7; color: #087153; font-size: 9px; font-weight: 900; }
.progress-visual { width: 100%; height: 8px; margin: 62px 0 12px; appearance: none; border: 0; background: #e7eaed; }
.progress-visual::-webkit-progress-bar { background: #e7eaed; }
.progress-visual::-webkit-progress-value { background: var(--green); }
.progress-visual::-moz-progress-bar { background: var(--green); }
.feature-card small { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.bars { height: 86px; margin-top: 38px; display: flex; gap: 8px; align-items: end; }
.bars i { flex: 1; background: var(--red); opacity: .88; }
.bars i:nth-child(1) { height: 22%; }.bars i:nth-child(2) { height: 38%; }.bars i:nth-child(3) { height: 67%; }.bars i:nth-child(4) { height: 92%; }.bars i:nth-child(5) { height: 76%; }.bars i:nth-child(6) { height: 42%; }.bars i:nth-child(7) { height: 54%; }.bars i:nth-child(8) { height: 70%; }
.manifest-card pre { position: absolute; right: 34px; bottom: 34px; width: 43%; min-width: 390px; margin: 0; padding: 25px; background: var(--ink); color: #d4f5e9; font-size: 13px; line-height: 1.8; }

.install-section { background: #fff; }
.install-tool { border: 1px solid var(--line); }
.install-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--wash); }
.install-tabs button { min-height: 54px; padding: 0 22px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 760; }
.install-tabs button[aria-selected="true"] { background: #fff; color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.install-copy { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px 24px; }
.install-kicker { color: var(--red); font-size: 10px; font-weight: 900; }
.install-copy h3 { margin: 8px 0 0; font-size: 22px; }
.copy-button { flex: 0 0 auto; min-width: 66px; height: 36px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 12px; font-weight: 760; }
.copy-button:hover { border-color: var(--ink); }
.command-block { min-height: 130px; margin: 0 38px; padding: 26px; overflow-x: auto; background: var(--ink); color: #e8edf1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.75; }
.install-hint { margin: 0; padding: 22px 38px 32px; color: var(--muted); font-size: 13px; }

.workflow-section { background: var(--wash); }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cfd5da; }
.workflow-list li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid #cfd5da; }
.workflow-list > li > span { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.workflow-list h3 { margin: 0 0 6px; font-size: 21px; }
.workflow-list p { margin: 0; color: var(--muted); line-height: 1.6; }

.reliability-band { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 110px max(24px, calc((100vw - var(--content)) / 2)); background: #121820; color: #fff; }
.reliability-copy h2 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }
.reliability-copy > p:last-child { margin: 0; color: #9da8b2; line-height: 1.75; }
.validation-ledger { border-top: 1px solid #39424a; align-self: center; }
.validation-ledger div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; min-height: 62px; border-bottom: 1px solid #39424a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.validation-ledger b { color: #b9c2ca; font-weight: 500; }
.validation-ledger i { color: #4cdda8; font-style: normal; font-weight: 800; }

.docs-links { border-top: 1px solid var(--line); }
.docs-links a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); transition: padding .18s ease, color .18s ease; }
.docs-links a:hover { padding-left: 10px; color: var(--red); }
.docs-links span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.docs-links strong { font-size: 19px; }
.docs-links i { font-style: normal; font-size: 20px; }

.faq-section { padding-top: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 25px 0; cursor: pointer; font-size: 18px; font-weight: 720; }
.faq-list p { max-width: 800px; margin: -5px 0 28px; color: var(--muted); line-height: 1.7; }

.final-cta { padding: 105px max(24px, calc((100vw - var(--content)) / 2)); background: var(--yellow); }
.final-cta .eyebrow { color: #7a5800; }
.final-cta h2 { max-width: 900px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; }
.final-cta .button-primary { background: var(--red); }

footer { min-height: 180px; padding: 52px max(24px, calc((100vw - var(--content)) / 2)); display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; background: #0b0f13; color: #fff; }
footer p, footer a { color: #84909a; font-size: 12px; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .desktop-nav, .github-link { display: none; }
  .brand { font-size: 12px; }
  .hero { min-height: 720px; background-position: 61% center; }
  .hero-backdrop { background: linear-gradient(90deg, rgba(8,12,16,.94), rgba(8,12,16,.62)); }
  .hero-content { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); overflow-wrap: anywhere; }
  .hero-copy { font-size: 16px; }
  .proof-band { grid-template-columns: repeat(2, 1fr); }
  .proof-item { min-height: 105px; border-bottom: 1px solid var(--line); }
  .section { padding: 78px 18px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading > p:last-child { margin-top: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card-wide { grid-column: span 1; min-height: 340px; padding: 26px; }
  .feature-index { margin-bottom: 52px; }
  .mini-browser, .manifest-card pre { position: relative; inset: auto; width: 100%; min-width: 0; margin-top: 30px; }
  .feature-card-wide { min-height: 0; }
  .install-tabs { overflow-x: auto; }
  .install-tabs button { flex: 0 0 auto; padding: 0 16px; }
  .install-copy { padding: 26px 22px 18px; align-items: start; }
  .install-copy h3 { font-size: 18px; }
  .command-block { margin: 0 22px; padding: 20px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .install-hint { padding: 18px 22px 26px; }
  .workflow-list li { grid-template-columns: 54px 1fr; }
  .reliability-band { grid-template-columns: 1fr; gap: 48px; padding: 78px 18px; }
  .validation-ledger div { grid-template-columns: 1fr auto; }
  .validation-ledger b { display: none; }
  .final-cta { padding: 78px 18px; }
  footer { grid-template-columns: 1fr; gap: 12px; padding: 42px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
