:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f3f4f2;
  --ink: #0a0a0a;
  --muted: #62646a;
  --faint: #8c8f96;
  --line: #dedfdd;
  --accent: #34c759;
  --accent-dark: #16823a;
  --warning: #ffb020;
  --danger: #ff3b30;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(11, 13, 16, 0.10);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 223, 221, 0.72);
  background: rgba(251, 251, 250, 0.86);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 22px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 14px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
}

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

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, 78svh);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 251, 250, 0.98) 0%, rgba(251, 251, 250, 0.93) 48%, rgba(251, 251, 250, 0.72) 100%),
    url("assets/architecture.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -26vw 48vw;
  height: 48vw;
  min-height: 420px;
  background: rgba(52, 199, 89, 0.11);
  transform: rotate(-8deg);
  border: 1px solid rgba(52, 199, 89, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: inherit;
  padding: 76px 0 88px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.14);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 84px;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: #3c3f44;
  font-size: 25px;
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-color: var(--line);
}

.button.disabled,
.button:disabled {
  border-color: rgba(10, 10, 10, 0.12);
  background: #ecefed;
  color: #6b7075;
  cursor: not-allowed;
  opacity: 1;
}

.store-button {
  position: relative;
  overflow: hidden;
  min-width: 202px;
}

.store-button .chrome-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-1px);
}

.button.disabled:hover,
.button:disabled:hover {
  transform: none;
}

.hero-visual {
  position: absolute;
  right: max(40px, calc((100vw - 1120px) / 2));
  bottom: 56px;
  z-index: 0;
  width: min(32vw, 420px);
  min-width: 260px;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.14));
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(10, 10, 10, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #202227;
  font-size: 14px;
  font-weight: 700;
}

.proof::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.band {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.band.surface {
  background: var(--surface);
}

.download-band {
  background:
    linear-gradient(180deg, rgba(52, 199, 89, 0.05), rgba(255, 255, 255, 0)),
    var(--surface);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.74fr);
  gap: 48px;
  align-items: start;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.download-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfa;
  box-shadow: 0 18px 54px rgba(11, 13, 16, 0.08);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(10, 10, 10, 0.10);
  border-radius: 999px;
  background: #fff;
  color: #2e3137;
  font-size: 13px;
  font-weight: 800;
}

.download-items {
  display: grid;
  gap: 14px;
}

.download-items div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.download-items strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.download-items span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.checksum {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checksum span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: #2e3137;
  font-size: 13px;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: 800;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 54px;
  align-items: start;
}

.copy h2 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: 0;
}

.copy p {
  color: var(--muted);
  font-size: 17px;
}

.principle {
  margin-top: 28px;
  padding: 22px 0 0 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 700;
}

.reason-list {
  display: grid;
  gap: 12px;
}

.reason {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reason h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.reason p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.terminal {
  overflow: hidden;
  border: 1px solid #202124;
  border-radius: var(--radius);
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #242529;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: var(--danger);
}

.dot.yellow {
  background: var(--warning);
}

.dot.green {
  background: var(--accent);
}

.terminal pre {
  margin: 0;
  padding: 22px;
  color: #f5f5f5;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.terminal .prompt {
  color: var(--accent);
}

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

.metric {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric.accent {
  border-color: rgba(52, 199, 89, 0.42);
  background: #f4fbf5;
}

.metric.wide {
  grid-column: 1 / -1;
  min-height: 160px;
  background: var(--ink);
  color: #fff;
}

.metric-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric.wide .metric-label {
  color: rgba(255, 255, 255, 0.68);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.metric span:last-child {
  color: var(--muted);
}

.metric.wide span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  background: var(--surface-2);
  color: #26282d;
  font-size: 13px;
  text-transform: uppercase;
}

.compare-table td {
  color: #41444a;
  font-size: 15px;
}

.compare-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner span:last-child {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

.legal-page {
  background: var(--surface);
}

.legal-hero {
  padding: 82px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 72px;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-content {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 54px 0 84px;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.toc a {
  text-decoration: none;
}

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

.policy {
  max-width: 820px;
}

.policy section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.policy section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy h2 {
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}

.policy h3 {
  margin: 24px 0 9px;
  font-size: 18px;
}

.policy p,
.policy li {
  color: #3f4248;
  font-size: 16px;
}

.policy ul {
  padding-left: 20px;
}

.policy li + li {
  margin-top: 8px;
}

.data-table {
  overflow-x: auto;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  background: var(--surface-2);
  color: #26282d;
  font-size: 13px;
  text-transform: uppercase;
}

.data-table td {
  color: #42454b;
  font-size: 15px;
}

.note {
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: #f5fbf6;
  color: #253329;
}

code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.94em;
}

@media (max-width: 880px) {
  .nav-inner,
  .section-inner {
    width: min(100% - 28px, 720px);
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 76svh;
    padding: 56px 0 48px;
  }

  h1 {
    font-size: 60px;
  }

  .lead {
    font-size: 22px;
  }

  .section-heading h2,
  .copy h2 {
    font-size: 42px;
  }

  .legal-hero h1 {
    font-size: 56px;
  }

  .hero-visual {
    right: -54px;
    bottom: 24px;
    width: 260px;
    min-width: 220px;
    opacity: 0.22;
  }

  .section-heading,
  .split,
  .download-layout,
  .legal-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    min-height: 60px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    font-size: 13px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 19px;
  }

  .section-heading h2,
  .copy h2 {
    font-size: 34px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .proof-row {
    display: grid;
  }

  .proof {
    border-radius: var(--radius);
  }

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

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

  .download-panel {
    padding: 18px;
  }

  .metric.wide {
    grid-column: auto;
  }

  .metric strong {
    font-size: 46px;
  }

  .compare-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .compare-table table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: grid;
    gap: 12px;
  }

  .compare-table tr {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .compare-table td {
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
  }

  .compare-table td + td {
    margin-top: 12px;
  }

  .compare-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .compare-table td:nth-child(1)::before {
    content: "Option";
  }

  .compare-table td:nth-child(2)::before {
    content: "Best fit";
  }

  .compare-table td:nth-child(3)::before {
    content: "Tradeoff";
  }

  .compare-table td:nth-child(4)::before {
    content: "Where ABG differs";
  }

  .band {
    padding: 58px 0;
  }

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