:root {
  --bg: #0b0e12;
  --bg-soft: #10151c;
  --card: rgba(255,255,255,0.06);
  --card-strong: rgba(255,255,255,0.09);
  --text: #ebf0f5;
  --muted: #aab6c3;
  --line: rgba(255,255,255,0.10);
  --accent: #d9ff56;
  --accent-2: #84d7ff;
  --danger: #ff7575;
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #17202b 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.55;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.45) 0.5px, transparent 0.5px);
  background-size: 12px 12px;
}

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

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061017;
  font-size: 0.85rem;
}

nav a, .footer-links li {
  color: var(--muted);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

nav a:hover { color: var(--text); }

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  max-width: 9ch;
}

h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
h3 { font-size: 1.25rem; }

.lede {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 0.5rem;
}

.sublede, .section-heading p {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), #ecffac);
  color: #10151c;
  border-color: transparent;
}
.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.hero-panel, .card, .test-card, .download-card {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.metric-card { padding: 1.5rem; }
.metric-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.metric-value {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.metric-meta { color: var(--muted); }
.danger { color: var(--danger); }
.bar-wrap { margin-top: 1.35rem; }
.bar-bg {
  position: relative;
  height: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 67%;
  background: linear-gradient(90deg, var(--accent-2), var(--danger));
}
.bar-threshold {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.9);
}
.bar-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.crossed-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.mini-label, .tiny, .muted { color: var(--muted); }
.mini-label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.22rem;
}
.tiny { font-size: 0.8rem; }

.section {
  padding: 4.5rem 0;
}
.section-dark {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading { margin-bottom: 2rem; }

.cards {
  display: grid;
  gap: 1.2rem;
}
.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  padding: 1.35rem;
}
.card ul, .footer-links {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card li { margin-bottom: 0.35rem; }

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.symptom {
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  font-weight: 600;
}

.test-card {
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.gravity-form {
  display: grid;
  gap: 0.85rem;
}
label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}
input {
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}
.gravity-result {
  grid-column: 1 / -1;
  min-height: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text);
}

.pill {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(132,215,255,0.14);
  border: 1px solid rgba(132,215,255,0.22);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.briefing-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
blockquote {
  margin: 1.25rem 0 0.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.04);
  border-radius: 0.75rem;
  color: var(--text);
}
.download-card { padding: 1.3rem; }

.site-footer {
  padding: 2.25rem 0 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 1.5rem;
}
.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.footer-links {
  list-style: none;
  padding-left: 0;
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-brand { margin-bottom: 0.75rem; }

@media (max-width: 920px) {
  .hero-grid,
  .three-up,
  .symptom-grid,
  .test-card,
  .briefing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  nav { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 3.5rem; }
  .crossed-box {
    grid-template-columns: 1fr;
  }
}
