:root {
  --bg: #141414;
  --panel: #20262b;
  --cyan: #5ac8fa;
  --gold: #ffb800;
  --danger: #ff3b30;
  --text: #f2f2f0;
  --muted: #8a9299;
  --radius: 16px;
  --side-w: 200px;
  --content-pad: clamp(1.5rem, 3vw, 2.75rem);
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.side-panel {
  flex: 0 0 var(--side-w);
  width: var(--side-w);
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #0d0d0d 0%, var(--panel) 100%);
  border-right: 1px solid rgba(90, 200, 250, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brand-mark {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.side-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding-left: 0.65rem;
  border-left: 2px solid transparent;
}

.side-nav a:hover { color: var(--text); border-left-color: var(--cyan); }

.side-note {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.main-column {
  flex: 1 1 auto;
  width: calc(100% - var(--side-w));
  min-width: 0;
  padding: var(--content-pad);
  padding-bottom: 4rem;
}

.band {
  width: 100%;
  margin-top: 2.75rem;
}

.band:first-child { margin-top: 0; }

.section-head {
  width: 100%;
  margin-bottom: 1.25rem;
}

.section-head h2,
.legal h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.45rem;
}

.section-lead {
  color: var(--muted);
  max-width: 52rem;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

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

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero .tagline {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  color: var(--cyan);
}

.hero .lede {
  margin-top: 0.65rem;
  color: var(--muted);
  max-width: 40rem;
}

.metric-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 0.75rem;
  flex: 0 1 320px;
  width: 100%;
  max-width: 360px;
}

.metric-row li {
  background: var(--panel);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  border: 1px solid rgba(90, 200, 250, 0.12);
}

.metric-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.metric-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.quote-card {
  background: var(--panel);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.2rem;
  min-width: 0;
}

.quote-card.accent-gold { border-left-color: var(--gold); }
.quote-card.accent-danger { border-left-color: var(--danger); }

.quote-card p { margin-bottom: 0.6rem; }

.quote-card footer {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.screen-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.screen-card figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.45rem;
  text-align: center;
}

.legal p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 56rem;
}

.legal a, .support-link { color: var(--gold); text-decoration: none; }
.support-link { font-weight: 600; }

.copyright {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .quote-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .metric-row {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  .shell { flex-direction: column; }

  .side-panel {
    width: 100%;
    flex: none;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem var(--content-pad);
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .side-nav a { border-left: none; padding-left: 0; }

  .side-note { margin-top: 0; width: 100%; }

  .main-column {
    width: 100%;
  }
}
