:root {
  --ink: #171918;
  --ink-soft: #464b48;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d8ddd9;
  --red: #d9352b;
  --red-dark: #a9251e;
  --green: #17844b;
  --amber: #c77b12;
  --mint: #e5f2e9;
  --rose: #f9e8e5;
  --focus: #0878b9;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-inline-start: 1rem;
  top: -5rem;
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--focus);
}

.skip-link:focus { top: 1rem; }

.section-inner,
.header-inner,
.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.site-nav a {
  padding: .45rem 0;
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.language-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.language-toggle { font-weight: 800; }
.menu-toggle { display: none; gap: 4px; }
.menu-toggle span { width: 20px; height: 2px; background: currentColor; }

.hero {
  position: relative;
  min-height: min(660px, calc(100svh - 70px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: #111312;
  background-image: url("assets/autoscout-icon.png");
  background-repeat: no-repeat;
  background-position: 10% 50%;
  background-size: min(48vw, 620px);
}

[dir="ltr"] .hero { background-position: 90% 50%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 18, .62);
}

.hero-inner { position: relative; z-index: 1; padding-block: 5.5rem 6.5rem; }
.hero-inner > * { max-width: 650px; }

.eyebrow {
  margin: 0 0 .8rem;
  color: #b9e7ca;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--green); }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero-lead {
  margin: 1.6rem 0 .8rem;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.5;
  font-weight: 650;
}

.hero-boundary { max-width: 610px; color: #d7dbd8; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
}

.button.primary { color: var(--white); background: var(--red); }
.button.primary:hover { background: var(--red-dark); }
.button.unavailable { color: #c4c8c5; border-color: #5a5f5b; cursor: not-allowed; }
.button.light { color: var(--ink); background: var(--white); }
.button.light:hover { background: var(--mint); }
.button.dark { color: var(--white); background: var(--ink); }
.button.dark:hover { background: #303431; }

.trust-band { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid p { margin: 0; padding: 1.35rem 1.5rem; border-inline-start: 1px solid var(--line); }
.trust-grid p:first-child { border-inline-start: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid span { color: var(--ink-soft); font-size: .92rem; }

.product-section { padding: 7rem 0; }
.section-heading { max-width: 690px; margin-bottom: 4.5rem; }
.section-heading.compact { margin-bottom: 0; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }

.journey-list { display: grid; gap: 6rem; }
.journey-item { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 6rem; }
.journey-item.reverse .journey-copy { order: 2; }
.journey-item.reverse .product-preview { order: 1; }

.step-number { color: var(--red); font-size: .85rem; font-weight: 900; }
.journey-copy h3 { margin: .35rem 0 .8rem; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.25; }
.journey-copy p { color: var(--ink-soft); }
.journey-copy ul { margin: 1.3rem 0 0; padding-inline-start: 1.25rem; }
.journey-copy li { margin-bottom: .5rem; }
.journey-copy li::marker { color: var(--green); }

.product-preview {
  min-height: 310px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(23, 25, 24, .09);
}

.preview-top,
.preview-line,
.status-row,
.topic-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.preview-top { margin-bottom: 1rem; color: var(--ink-soft); font-size: .92rem; }
.preview-top b { color: var(--ink); }
.status-row { justify-content: flex-start; border-bottom: 0; font-size: 1.25rem; font-weight: 800; }
.status-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; }
.status-dot.amber { background: var(--amber); }
.preview-line.muted { color: var(--ink-soft); }

.age-display { padding: 1.2rem 0; }
.age-display span, .age-display strong { display: block; }
.age-display span { color: var(--ink-soft); }
.age-display strong { margin-top: .25rem; font-size: 2rem; }
.preview-note { margin: 1rem 0 0; padding: .8rem 1rem; color: var(--ink-soft); background: #f1f3f1; border-inline-start: 4px solid var(--amber); }

.timeline { height: 22px; display: grid; grid-template-columns: 1.4fr 1fr .35fr 1.2fr .5fr 1fr; gap: 5px; margin: 2.6rem 0 1.8rem; }
.timeline span, .timeline i { display: block; border-radius: 3px; }
.timeline span { background: var(--green); }
.timeline i { background: #cad0cc; border: 2px dashed #8e9691; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.timeline-legend span { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-soft); }
.timeline-legend b { font-size: .9rem; font-weight: 650; }
.legend { width: 13px; height: 13px; border-radius: 3px; }
.legend.available { background: var(--green); }
.legend.gap { background: #cad0cc; }
.topic-row { justify-content: flex-start; }
.check-mark { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 24px; color: var(--white); background: var(--green); border-radius: 50%; font-weight: 900; }

.approach-section { padding: 7rem 0; background: var(--white); border-top: 1px solid var(--line); }
.approach-heading { margin-bottom: 3rem; }
.release-lanes { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.release-lane { min-height: 280px; padding: 2rem; border-inline-start: 1px solid var(--line); }
.release-lane:first-child { border-inline-start: 0; }
.release-lane h3 { margin: .8rem 0 .7rem; font-size: 1.45rem; }
.release-lane p { margin: 0; color: var(--ink-soft); }
.lane-code { display: inline-block; color: var(--ink); font-size: .78rem; font-weight: 900; }
.core-lane { border-top: 5px solid var(--green); }
.experimental-lane { border-top: 5px solid var(--amber); }
.research-lane { border-top: 5px solid var(--red); }
.open-source-note { margin-top: 3rem; padding: 2rem 0; display: grid; grid-template-columns: 56px 1fr; align-items: start; gap: 1.5rem; border-block: 1px solid var(--line); }
.open-source-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 8px; font-size: 1.5rem; font-weight: 900; }
.open-source-note h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.open-source-note p { max-width: 790px; margin: 0; color: var(--ink-soft); }

.community-section { padding: 7rem 0; color: var(--white); background: #1f2220; }
.community-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 7rem; }
.community-intro p:last-child { color: #d5dad6; }
.participation-flow { border-top: 1px solid #555b57; }
.participation-step { display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid #555b57; }
.participation-step > span { color: #74d198; font-size: .82rem; font-weight: 900; }
.participation-step h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.participation-step p { margin: 0; color: #cbd1cd; }
.feedback-strip { margin-top: 4rem; padding-block: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; color: var(--ink); background: #e8f3eb; border-inline-start: 6px solid var(--green); }
.feedback-strip h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.feedback-strip p { max-width: 740px; margin: 0; color: var(--ink-soft); }

.privacy-section { padding: 6rem 0; color: var(--white); background: #183b2c; }
.privacy-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; align-items: start; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.privacy-points p { margin: 0; padding-top: 1rem; border-top: 3px solid #63c388; }
.privacy-points strong, .privacy-points span { display: block; }
.privacy-points span { margin-top: .4rem; color: #d8e9df; }

.availability-section { padding: 6rem 0; background: var(--white); }
.availability-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7rem; }
.platform-list { border-top: 1px solid var(--line); }
.platform-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.platform-row span:first-child { display: flex; flex-direction: column; }
.platform-row small { color: var(--ink-soft); }
.soon { padding: .3rem .65rem; color: #70500e; background: #fff1d4; border-radius: 4px; font-size: .85rem; font-weight: 800; }

.support-section { padding: 5rem 0; color: var(--white); background: var(--red-dark); }
.support-layout { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.support-layout > div { max-width: 700px; }
.support-layout h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.support-layout p:last-child { color: #f5d6d2; }

.site-footer { padding: 2rem 0; color: #d3d7d4; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--white); }
.copyright { color: #aeb4b0; direction: ltr; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: .6rem; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: fixed;
    inset: 70px 0 auto;
    min-height: calc(100svh - 70px);
    padding: 2rem;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: .25rem;
    background: var(--white);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .brand { grid-column: 1; }
  .menu-toggle { grid-column: 3; }
  .language-toggle { grid-column: 4; }

  .hero {
    min-height: 650px;
    align-items: flex-start;
    background-position: center 105%;
    background-size: min(90vw, 520px);
  }
  [dir="ltr"] .hero { background-position: center 105%; }
  .hero-inner { padding-block: 4.5rem 13rem; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid p, .trust-grid p:first-child { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trust-grid p:first-child { border-top: 0; }

  .journey-item,
  .privacy-layout,
  .availability-layout,
  .community-layout { grid-template-columns: 1fr; gap: 2rem; }
  .journey-item.reverse .journey-copy,
  .journey-item.reverse .product-preview { order: initial; }
  .privacy-points { grid-template-columns: 1fr; }
  .release-lanes { grid-template-columns: 1fr; }
  .release-lane { min-height: auto; border-inline-start: 0; border-top-width: 5px; }
  .feedback-strip { align-items: flex-start; flex-direction: column; }
  .section-heading.compact { margin-bottom: 1.5rem; }
  .support-layout { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 520px) {
  .section-inner, .header-inner, .hero-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 64px; }
  .site-nav { inset-block-start: 64px; min-height: calc(100svh - 64px); }
  .brand span { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .language-toggle, .menu-toggle { width: 40px; height: 40px; }
  .hero { min-height: 690px; }
  .hero-inner { padding-block: 3.8rem 13rem; }
  h1 { font-size: 3.4rem; }
  .hero-lead { font-size: 1.2rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .product-section { padding: 5rem 0; }
  .approach-section, .community-section { padding: 5rem 0; }
  .journey-list { gap: 4.5rem; }
  .product-preview { min-height: 280px; padding: 1.25rem; }
  .timeline-legend { flex-direction: column; gap: .5rem; }
  .privacy-section, .availability-section { padding: 4.5rem 0; }
  .platform-row { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .support-section { padding: 4rem 0; }
  .open-source-note { grid-template-columns: 1fr; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
