:root {
  --rl-black:   #0D0D0D;
  --rl-dark:    #161616;
  --rl-panel:   #1E1E1E;
  --rl-border:  #2E2E2E;
  --rl-muted:   #888;
  --rl-light:   #C8C8C8;
  --rl-white:   #F0F0F0;

  /* Alert colours */
  --glad:   #22C55E;
  --sad:    #EAB308;
  --bad:    #F97316;
  --mad:    #EF4444;

  /* Back-label colours */
  --none:   #E5E7EB;
  --fun:    #22C55E;
  --run:    #EAB308;
  --shun:   #F97316;
  --done:   #EF4444;

  --accent: #EAB308;   /* radiation yellow */
  --max-w:  1100px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--rl-black);
  color: var(--rl-light);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }

h1, h2, h3 { color: var(--rl-white); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p  { color: var(--rl-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── HERO ────────────────────────────────────── */
.hero {
  background: var(--rl-dark);
  border-bottom: 1px solid var(--rl-border);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(234,179,8,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234,179,8,0.12);
  border: 1px solid rgba(234,179,8,0.35);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '☢';
  font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--rl-white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--rl-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1rem;
  color: var(--rl-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.85; text-decoration: none; }

/* ── DEVICE MOCKUP ───────────────────────────── */
.device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.device {
  width: 220px;
  background: #1A1A1A;
  border: 2px solid #2A2A2A;
  border-radius: 16px;
  padding: 20px 16px 24px;
  box-shadow: 0 0 60px rgba(234,179,8,0.08), 0 20px 60px rgba(0,0,0,0.6);
  font-family: 'Inter', monospace;
}
.device-screen {
  background: #0A0A0A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px 12px;
  margin-bottom: 16px;
  text-align: center;
}
.device-level {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--glad);
  text-shadow: 0 0 20px rgba(34,197,94,0.5);
  margin-bottom: 4px;
  transition: color 0.4s;
}
.device-reading {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.06em;
}
.device-reading span {
  color: var(--glad);
  font-weight: 600;
  font-size: 0.9rem;
}
.device-label {
  font-size: 0.55rem;
  color: #444;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.device-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 12px;
}
.device-bar-seg {
  flex: 1;
  border-radius: 3px;
}
.device-bar-seg.glad  { background: var(--glad); }
.device-bar-seg.sad   { background: var(--sad); opacity: 0.2; }
.device-bar-seg.bad   { background: var(--bad); opacity: 0.2; }
.device-bar-seg.mad   { background: var(--mad); opacity: 0.2; }
.device-button-row {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}
.device-btn {
  width: 28px;
  height: 28px;
  background: #222;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #555;
  letter-spacing: 0.04em;
}
.device-speaker {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  justify-content: center;
}
.device-speaker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2A2A2A;
}
.device-brand {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  margin-top: 10px;
}

/* ── STAT BAR ────────────────────────────────── */
.stat-bar {
  background: var(--rl-panel);
  border-top: 1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
  padding: 32px 0;
}
.stat-bar-inner {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--rl-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SCALE SECTION ───────────────────────────── */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.scale-card {
  background: var(--rl-panel);
  border: 1px solid var(--rl-border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scale-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.scale-card.glad::before { background: var(--glad); }
.scale-card.sad::before  { background: var(--sad); }
.scale-card.bad::before  { background: var(--bad); }
.scale-card.mad::before  { background: var(--mad); }

.scale-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.scale-card.glad .scale-name { color: var(--glad); }
.scale-card.sad  .scale-name { color: var(--sad); }
.scale-card.bad  .scale-name { color: var(--bad); }
.scale-card.mad  .scale-name { color: var(--mad); }

.scale-range {
  font-size: 0.75rem;
  color: var(--rl-muted);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.scale-action {
  font-size: 0.8rem;
  color: var(--rl-light);
  margin-top: 10px;
  line-height: 1.4;
}

/* ── TIERS ───────────────────────────────────── */
.tiers { background: var(--rl-dark); }
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tier-card {
  background: var(--rl-panel);
  border: 1px solid var(--rl-border);
  border-radius: var(--radius);
  padding: 28px;
}
.tier-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.tier-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(234,179,8,0.1);
  border: 1px solid rgba(234,179,8,0.25);
  padding: 3px 10px;
  border-radius: 100px;
}
.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rl-white);
}
.tier-price {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.tier-desc {
  font-size: 0.9rem;
  color: var(--rl-muted);
  margin-bottom: 16px;
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-features li {
  font-size: 0.85rem;
  color: var(--rl-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-features li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── MESH SECTION ────────────────────────────── */
.mesh-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mesh-visual {
  display: flex;
  justify-content: center;
}
.mesh-diagram {
  position: relative;
  width: 280px;
  height: 240px;
}
.mesh-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rl-panel);
  border: 2px solid var(--rl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mesh-node.active { border-color: var(--glad); color: var(--glad); }
.mesh-node.warn   { border-color: var(--sad);  color: var(--sad); }
.mesh-node.center { border-color: var(--accent); color: var(--accent); }
.mesh-line {
  position: absolute;
  background: var(--rl-border);
  height: 1px;
  transform-origin: 0 50%;
}

/* ── BACK LABEL ──────────────────────────────── */
.back-label {
  background: var(--rl-dark);
  border-top: 1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
}
.label-card {
  background: var(--rl-panel);
  border: 1px solid var(--rl-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
  margin: 48px auto 0;
}
.label-header {
  background: var(--rl-border);
  padding: 10px 20px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rl-muted);
  font-weight: 700;
}
.label-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rl-border);
  padding: 12px 20px;
  gap: 12px;
}
.label-row:last-child { border-bottom: none; }
.label-swatch {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.label-row.none  .label-swatch { color: var(--none); }
.label-row.fun   .label-swatch { color: var(--fun); }
.label-row.run   .label-swatch { color: var(--run); }
.label-row.shun  .label-swatch { color: var(--shun); }
.label-row.done  .label-swatch { color: var(--done); }
.label-range {
  font-size: 0.75rem;
  color: var(--rl-muted);
  font-variant-numeric: tabular-nums;
}
.label-meaning {
  font-size: 0.8rem;
  color: var(--rl-light);
}
.label-action {
  font-size: 0.75rem;
  color: var(--rl-muted);
  font-style: italic;
}

/* ── CTA ─────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 80px 0;
  background: var(--rl-panel);
  border-top: 1px solid var(--rl-border);
}
.cta h2 { margin-bottom: 16px; }
.cta p  { margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--rl-border);
  color: var(--rl-light);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── SECTION HEADER ──────────────────────────── */
.section-header { margin-bottom: 0; }
.section-header .eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .device-wrap { display: none; }
  .scale-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; }
  .mesh-inner { grid-template-columns: 1fr; }
  .mesh-visual { display: none; }
}
@media (max-width: 560px) {
  .scale-grid { grid-template-columns: 1fr; }
  .label-row { grid-template-columns: 70px 1fr 1fr; }
  .label-action { display: none; }
}
