:root {
  color-scheme: dark light;
  --bg: #111315;
  --panel: #191d20;
  --panel-strong: #20262a;
  --text: #f3f0ea;
  --muted: #b9b2a7;
  --line: #333a40;
  --accent: #77d7c4;
  --accent-2: #f2c66d;
  --accent-3: #d96c5f;
  --paper: #f4efe5;
  --ink: #17191b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(17, 19, 21, 0.98), rgba(17, 19, 21, 1) 42%),
    repeating-linear-gradient(90deg, rgba(119, 215, 196, 0.07) 0, rgba(119, 215, 196, 0.07) 1px, transparent 1px, transparent 96px);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 21, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-band {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 108px) 0 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 14vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro {
  margin-bottom: 28px;
  max-width: 680px;
  color: var(--paper);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #06110f;
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ops-map {
  border: 1px solid var(--line);
  background: rgba(25, 29, 32, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ops-header,
.route-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.ops-header {
  background: var(--panel-strong);
}

.ops-header span,
.route-row span,
.route-row small {
  color: var(--muted);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 74px;
}

.metric-card,
.content-section,
.download-panel,
.checkout-panel,
.screenshot-panel {
  border: 1px solid var(--line);
  background: rgba(25, 29, 32, 0.82);
}

.metric-card {
  min-height: 210px;
  padding: 22px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 16px 0;
  color: var(--accent-2);
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1;
}

.metric-card p,
.content-section p,
.download-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.content-section,
.download-panel,
.checkout-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(26px, 5vw, 56px);
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--paper);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.download-row:hover {
  border-color: var(--accent);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--paper);
  font-weight: 800;
}

.checkout-form input,
.checkout-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkout-form button {
  width: fit-content;
  cursor: pointer;
  font: inherit;
}

.checkout-form button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.screenshot-panel {
  margin: 0 0 18px;
  overflow: hidden;
}

.screenshot-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.screenshot-panel figcaption {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

code {
  color: var(--accent-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
  padding: 28px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer small {
  grid-column: 1 / -1;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.not-found {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-band,
  .metric-grid,
  .content-section,
  .download-panel,
  .checkout-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 16px 14px;
  }

  .site-nav a {
    padding: 0 9px;
    font-size: 0.92rem;
  }

  .ops-header,
  .route-row,
  .download-row {
    grid-template-columns: 1fr;
  }

  .download-row {
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4efe5;
    --panel: #fffaf0;
    --panel-strong: #eee5d6;
    --text: #17191b;
    --muted: #5e625f;
    --line: #d2c7b5;
    --paper: #24211d;
  }

  body {
    background:
      linear-gradient(180deg, rgba(244, 239, 229, 0.96), rgba(244, 239, 229, 1) 42%),
      repeating-linear-gradient(90deg, rgba(19, 100, 93, 0.08) 0, rgba(19, 100, 93, 0.08) 1px, transparent 1px, transparent 96px);
  }

  .site-header {
    background: rgba(244, 239, 229, 0.9);
  }

  .metric-card,
  .content-section,
  .download-panel,
  .checkout-panel,
  .screenshot-panel,
  .ops-map {
    background: rgba(255, 250, 240, 0.88);
  }
}
