:root {
  --bg: #f7f0dd;
  --bg-strong: #f2e4bb;
  --panel: rgba(20, 55, 47, 0.9);
  --panel-soft: rgba(17, 40, 35, 0.82);
  --line: rgba(249, 240, 203, 0.24);
  --text: #fff7db;
  --text-muted: rgba(255, 247, 219, 0.78);
  --accent: #ffd04b;
  --accent-strong: #ff8f3d;
  --ink: #14372f;
  --shadow: 0 24px 70px rgba(18, 39, 34, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 75, 0.45), transparent 32%),
    radial-gradient(circle at top right, rgba(30, 122, 103, 0.24), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #fbf8ef 34%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.chrome-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 55, 47, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
  color: var(--text);
}

.chrome-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 18px
    );
}

.topbar,
.hero-grid,
.feature-grid,
.two-up,
.support-layout,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand,
.score-label,
.eyebrow {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand {
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.lede,
.copy-panel p,
.feature-card p,
.support-card p,
.legal-content p,
.legal-content li,
.support-card li,
.stat-grid dd {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lede {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1f2518;
}

.button-secondary {
  border: 1px solid rgba(255, 247, 219, 0.24);
  color: var(--text);
}

.score-panel {
  padding: 24px;
  align-self: end;
}

.score-label {
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  gap: 18px;
  margin: 0;
}

.stat-grid dt {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-grid dd {
  margin: 0;
}

.section {
  margin-top: 24px;
}

.section-heading {
  padding: 18px 4px 18px;
}

.feature-grid,
.two-up,
.support-layout {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.copy-panel,
.support-card,
.legal-content,
.page-header {
  padding: 24px;
}

.copy-panel h2,
.support-card h2,
.legal-content h2 {
  margin-bottom: 14px;
}

.link-list,
.legal-content ul,
.support-card ul {
  margin: 0;
  padding-left: 18px;
}

.link-list li,
.legal-content li,
.support-card li {
  margin-bottom: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 26px 6px 0;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.legal-content,
.support-card {
  margin-bottom: 20px;
}

.support-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-card {
  grid-column: span 2;
}

@media (max-width: 860px) {
  .hero-grid,
  .feature-grid,
  .two-up,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .site-footer,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .feature-card,
  .copy-panel,
  .support-card,
  .legal-content,
  .page-header,
  .score-panel {
    padding: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}