:root {
  --ink: #1c1c19;
  --paper: #f4f2ec;
  --panel: #fffefa;
  --line: #d5d1c7;
  --muted: #6e6c66;
  --accent: #d63d0a;
  --accent-dark: #a92d05;
  --green: #087e52;
  --blue: #08759d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  font-family: var(--mono);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.section,
.proof-strip {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  display: block;
  flex: 0 0 auto;
  background: var(--ink);
}

.brand__text {
  display: grid;
  gap: 0.05rem;
}

.brand__text strong {
  font-family: var(--mono);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand__text small,
.header-meta,
.eyebrow,
.feature__index,
.version,
.tag,
.result-label,
.result-card__footer,
.index-demo__topline,
.index-demo__footnote {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.version {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.eyebrow span {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.section-heading h2,
.final-cta h2 {
  font-family: var(--mono);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 6.4vw, 6.1rem);
  line-height: 0.94;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 2rem;
  color: #55534e;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.1rem;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--ink);
}

.button--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translate(-2px, -2px);
}

.text-link {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.hero__stats div {
  min-width: 0;
  padding: 1rem 0.9rem;
  border-right: 1px solid var(--line);
}

.hero__stats div:first-child {
  padding-left: 0;
}

.hero__stats div:last-child {
  border-right: 0;
}

.hero__stats dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
}

.index-demo {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: 12px 12px 0 #d9d5ca;
}

.index-demo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 70px;
  height: 10px;
  background: var(--accent);
}

.index-demo__topline,
.index-demo__footnote,
.result-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.index-demo__topline {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.search-command {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin: 1.2rem;
  border: 1px solid var(--ink);
  padding: 1rem;
  font-family: var(--mono);
  font-weight: 800;
}

.search-command > span:first-child {
  color: var(--accent);
}

.result-label {
  margin-inline: 1.2rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-card {
  margin: 1.2rem;
  border: 2px solid var(--accent);
  padding: 1.25rem;
  background: #fff7f2;
}

.result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.result-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.verified {
  border: 1px solid #7ec2a5;
  padding: 0.25rem 0.4rem;
  color: var(--green);
  background: #effbf4;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.result-card h2 {
  margin: 1.3rem 0 0.2rem;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.result-card p {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid #83bdd1;
  padding: 0.3rem 0.5rem;
  color: var(--blue);
  background: #f4fbfe;
  font-size: 0.7rem;
  font-weight: 800;
}

.tag--group {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.result-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  font-weight: 800;
}

.index-demo__footnote {
  padding: 1rem 1.2rem;
  background: var(--ink);
  color: white;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--ink);
  gap: 1px;
}

.proof-strip span {
  padding: 1rem;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
}

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

.feature {
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.feature:first-child {
  padding-left: 0;
}

.feature:last-child {
  border-right: 0;
}

.feature__index {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature h3 {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.feature p,
.safety p,
.final-cta p {
  color: var(--muted);
}

.safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safety__marker {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 800;
}

.safety h2 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.safety p:last-child {
  max-width: 750px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.final-cta p:last-child {
  margin: 1rem 0 0;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border: 1px solid var(--ink);
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.download-dialog::backdrop {
  background: rgba(28, 28, 25, 0.78);
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.dialog__header .eyebrow {
  margin-bottom: 0.55rem;
  color: var(--accent);
}

.dialog__header h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.dialog__close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1.8rem;
  line-height: 1;
}

.dialog__close:hover {
  background: var(--ink);
  color: white;
}

.platform-list {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.platform-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.platform-card:hover,
.platform-card[data-recommended="true"] {
  border-color: var(--accent);
  background: #fff6f0;
}

.platform-card__number,
.platform-card__action {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.platform-card__number {
  color: var(--accent);
}

.platform-card__copy {
  min-width: 0;
  display: grid;
}

.platform-card__copy strong {
  font-family: var(--mono);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.platform-card__copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.platform-card__recommended {
  margin-top: 0.3rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-card__action {
  border-bottom: 1px solid var(--ink);
}

.dialog__note {
  margin: 0;
  padding: 0 2rem 1.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero__copy {
    max-width: 740px;
  }

  .index-demo {
    width: min(100%, 620px);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:first-child {
    padding: 1.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .feature__index {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .proof-strip {
    width: min(100% - 2rem, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand__text strong {
    font-size: 1.15rem;
  }

  .brand__text small,
  .header-meta > span:not(.version):not(.status-dot) {
    display: none;
  }

  .hero {
    padding-block: 3.5rem 5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .hero__actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button,
  .final-cta .button {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-block: 4.5rem;
  }

  .safety {
    grid-template-columns: 1fr;
  }

  .safety__marker {
    width: 56px;
    height: 56px;
  }

  .site-footer {
    min-height: 140px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .download-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .platform-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .platform-card__action {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.2rem;
  }
}

@media (max-width: 410px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__stats div,
  .hero__stats div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__stats div:last-child {
    border-bottom: 0;
  }

  .result-card__footer,
  .index-demo__footnote {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
