:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #101827;
  --surface-strong: #172238;
  --text: #f5f7fb;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #7c9cff;
  --brand-strong: #a979ff;
  --success: #55d6a5;
  --warning: #f2c66d;
  --danger: #ff7d8a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(86, 119, 255, 0.22), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(173, 84, 255, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: #b9c8ff; text-underline-offset: 0.2em; }
a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(18px);
}

.nav,
.container,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  min-width: 0;
  margin: 0 auto;
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.55rem;
  border-radius: 0.62rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 10px 28px rgba(94, 95, 255, .28);
  color: #fff;
  font-size: 0.9rem;
}

.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.92rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

main { padding: 4.5rem 0 5rem; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  min-height: 34rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #b9c8ff;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.16; letter-spacing: -0.025em; }
h1 { max-width: 13ch; margin: 0; font-size: clamp(2.7rem, 7vw, 5.6rem); }
h2 { margin-top: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }

.lead { max-width: 45rem; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 680;
  text-decoration: none;
}

.button.primary { border-color: transparent; background: linear-gradient(135deg, #668cff, #9b6fff); }

.signal-card,
.card,
.legal-panel,
.review-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(23,34,56,.92), rgba(13,20,34,.92));
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.signal-card { padding: 1.25rem; transform: rotate(1.5deg); }
.signal-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.status-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 1rem var(--success); }
.signal-number { margin: 1.3rem 0 .2rem; font-size: 3rem; font-weight: 760; }
.signal-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 0.35rem; height: 8rem; margin-top: 1rem; }
.signal-bars span { min-height: 12%; border-radius: .35rem .35rem .15rem .15rem; background: linear-gradient(#9b6fff, #668cff); }

.section { padding: 4rem 0; }
.section-heading { max-width: 44rem; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.35rem; box-shadow: none; }
.card p, .muted { color: var(--muted); }
.metric { display: block; margin-bottom: .35rem; color: #c7d2ff; font-size: 1.8rem; font-weight: 780; }

.page-heading { max-width: 50rem; margin-bottom: 2.5rem; }
.page-heading h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.legal-panel { padding: clamp(1.2rem, 4vw, 2.5rem); }
.legal-panel h2 { margin-top: 2.4rem; font-size: 1.45rem; }
.legal-panel h2:first-child { margin-top: 0; }
.legal-panel li + li { margin-top: .45rem; }

.notice {
  padding: 1rem 1.1rem;
  border-left: .25rem solid var(--warning);
  border-radius: .4rem;
  background: rgba(242, 198, 109, .08);
  color: #f7dfac;
}

.review-layout { display: grid; grid-template-columns: minmax(16rem, 24rem) 1fr; gap: 1.25rem; align-items: start; }
.review-layout > * { min-width: 0; }
.review-card { padding: 1.25rem; }
.qr-shell { padding: 1rem; border-radius: 1rem; background: #fff; }
.qr-shell img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
code { color: #d6deff; }
pre { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; padding: 1rem; border-radius: .8rem; background: #070b14; color: #d8e0f2; font-size: .78rem; white-space: pre-wrap; }

.status-list { display: grid; gap: .75rem; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.025); }
.status-pill { padding: .2rem .55rem; border-radius: 99rem; background: rgba(168,179,199,.14); color: var(--muted); font-size: .78rem; }
.status-pill.ok { background: rgba(85,214,165,.12); color: var(--success); }
.status-pill.fail { background: rgba(255,125,138,.12); color: var(--danger); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem 0; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }

@media (max-width: 780px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .nav-links { gap: .8rem; }
  .hero, .review-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .signal-card { transform: none; }
  .grid { grid-template-columns: 1fr; }
  main { padding-top: 3rem; }
}

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