:root {
  --bg: #0a0d0c;
  --bg-2: #101513;
  --panel: rgba(15, 22, 19, 0.82);
  --panel-solid: #101614;
  --panel-2: #151d19;
  --ink: #edf7ef;
  --muted: #8ca08f;
  --line: rgba(237, 247, 239, 0.12);
  --line-strong: rgba(237, 247, 239, 0.22);
  --accent: #8cff66;
  --accent-2: #f5ff98;
  --danger: #ff6c65;
  --danger-soft: rgba(255, 108, 101, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(140, 255, 102, 0.18), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(245, 255, 152, 0.08), transparent 22%),
    linear-gradient(180deg, #090b0a 0%, #0a100d 48%, #0a0d0c 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.mono {
  font-family: var(--mono);
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 34rem;
  height: 34rem;
  margin-left: -17rem;
  margin-top: -17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 255, 102, 0.16), transparent 62%);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.08s linear;
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 2vw, 2rem);
  background: rgba(10, 13, 12, 0.72);
  border-bottom: 1px solid rgba(237, 247, 239, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mark-pip {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(140, 255, 102, 0.55);
  animation: pulse 3s ease-in-out infinite;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.skin-toggle {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.skin-toggle button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 0.48rem 0.86rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.skin-toggle button.active {
  color: #081009;
  background: var(--accent);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  padding-top: 2.2rem;
  padding-bottom: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  padding-top: clamp(1rem, 6vw, 4rem);
}

.hero-title {
  margin-top: 1rem;
  display: grid;
  gap: 0.2rem;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
}

.hero-line {
  display: block;
}

.hero-kinetic {
  display: inline-block;
  color: var(--accent);
  margin-right: 0.2em;
  text-shadow: 0 0 22px rgba(140, 255, 102, 0.16);
  animation: flicker 9s ease-in-out infinite;
}

.hero-dek,
.section-copy,
.manifesto-copy p,
.sim-copy p,
.gate-meter p,
.format-card p,
.cta p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-dek {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) auto;
  gap: 0.72rem;
  align-items: start;
  margin-top: 1.8rem;
  max-width: 39rem;
}

.signup-form input {
  width: 100%;
  min-height: 3.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 0 1.15rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-form input::placeholder {
  color: rgba(237, 247, 239, 0.45);
}

.signup-form input:focus {
  border-color: rgba(140, 255, 102, 0.66);
  box-shadow: 0 0 0 4px rgba(140, 255, 102, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.signup-status {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.signup-form[data-state="success"] .signup-status {
  color: var(--accent);
}

.signup-form[data-state="error"] .signup-status {
  color: var(--danger);
}

.signup-form[data-state="loading"] button {
  opacity: 0.78;
  cursor: wait;
}

.cta-signup {
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #081009;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(140, 255, 102, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.hero-points span,
.swarm-readout span,
.rail-detail,
.lesson-card,
.simulator-card,
.format-card,
.gate,
.truth-board,
.swarm-window,
.gate-meter {
  backdrop-filter: blur(16px);
}

.hero-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stage {
  display: grid;
  gap: 1rem;
}

.truth-board,
.swarm-window,
.lesson-card,
.simulator-card,
.gate-meter,
.format-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.truth-board {
  padding: 1.1rem;
}

.board-head,
.swarm-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.board-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.board-score {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
}

.board-stack {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.board-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(140, 255, 102, 0.44);
}

.board-label {
  flex: 1;
  color: var(--muted);
  font-weight: 650;
}

.board-tag {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(140, 255, 102, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.board-row-bad {
  border-color: rgba(255, 108, 101, 0.28);
  background: rgba(255, 108, 101, 0.08);
}

.board-row-bad .board-dot {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 108, 101, 0.42);
}

.board-row-bad .board-label,
.board-row-bad .board-tag {
  color: #ffc4c1;
}

.board-row-bad .board-tag {
  background: rgba(255, 108, 101, 0.18);
}

.board-row.revealed {
  background: rgba(255, 108, 101, 0.13);
  border-color: rgba(255, 108, 101, 0.4);
  transform: translateX(-0.25rem);
}

.board-row.revealed .board-dot {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 108, 101, 0.4);
}

.board-row.revealed .board-label {
  color: #ffd0cd;
}

.board-row.revealed .board-tag {
  background: rgba(255, 108, 101, 0.18);
  color: #ffd0cd;
}

.board-toggle {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.board-toggle.revealed {
  color: var(--danger);
  border-color: rgba(255, 108, 101, 0.34);
  background: rgba(255, 108, 101, 0.08);
}

.swarm-window {
  padding: 1rem;
}

.swarm-head strong {
  display: block;
  margin-top: 0.35rem;
  max-width: 24ch;
  line-height: 1.3;
}

.swarm-readout {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
}

.swarm-readout span:last-child {
  color: var(--danger);
}

#swarmCanvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(237, 247, 239, 0.06);
  background:
    radial-gradient(circle at 50% 50%, rgba(140, 255, 102, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #0a0f0d;
}

.sim-controls {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.sim-range {
  display: grid;
  gap: 0.7rem;
}

.sim-range input {
  width: 100%;
  accent-color: var(--accent);
}

.sim-range-values {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.sim-metric {
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.sim-metric span,
.dial-strip span,
.rail-detail p,
.tip-row span,
.gate .mono,
.format-arrow {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sim-metric strong,
.dial-strip strong,
.tip-row strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.3;
}

.thesis-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  padding-top: 1.2rem;
  color: var(--muted);
}

.thesis-strip span {
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(237, 247, 239, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.manifesto {
  margin-top: 4rem;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border-top: 1px solid rgba(237, 247, 239, 0.08);
  border-bottom: 1px solid rgba(237, 247, 239, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: end;
}

.manifesto-intro {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.2;
  color: #d5e6d7;
}

.manifesto-copy strong {
  display: block;
  max-width: 13ch;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.manifesto-copy p {
  margin-top: 1rem;
  max-width: 48ch;
}

.lessons,
.simulator,
.checklist,
.formats,
.cta {
  padding-top: 6rem;
}

.section-head {
  max-width: 52rem;
}

.section-head h2,
.cta h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.3rem, 5vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.section-copy {
  margin-top: 1rem;
  max-width: 54ch;
}

.lesson-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.lesson-rail {
  position: relative;
}

.rail-sticky {
  position: sticky;
  top: 5.8rem;
  display: grid;
  gap: 1rem;
}

.rail-meter {
  position: relative;
  width: 2px;
  height: 18rem;
  background: rgba(237, 247, 239, 0.08);
  margin-left: 0.55rem;
}

.rail-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 14%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(140, 255, 102, 0.35);
  transition: height 0.35s ease;
}

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.rail-item {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.65rem;
  color: rgba(237, 247, 239, 0.48);
  transition: color 0.25s ease, transform 0.25s ease;
}

.rail-item.active {
  color: var(--ink);
  transform: translateX(0.25rem);
}

.rail-detail {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.rail-detail strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.lesson-cards {
  display: grid;
  gap: 1rem;
}

.lesson-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.2fr) minmax(16rem, 0.82fr);
  gap: 1.2rem;
  padding: 1.3rem;
  align-items: center;
}

.lesson-index {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(140, 255, 102, 0.26);
}

.lesson-body h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lesson-body p {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-body b {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.lesson-art {
  min-height: 11rem;
  border-radius: 22px;
  border: 1px solid rgba(237, 247, 239, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-board,
.proof-row,
.review-lane,
.lesson-art-votes {
  width: 100%;
}

.mini-board {
  display: grid;
  gap: 0.55rem;
}

.mini-row {
  display: grid;
  grid-template-columns: 0.55rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}

.mini-row span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.mini-row em {
  font-style: normal;
  color: var(--muted);
}

.mini-row strong {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.mini-row.good {
  background: rgba(140, 255, 102, 0.08);
}

.mini-row.good span {
  background: var(--accent);
}

.mini-row.good strong {
  color: var(--accent);
}

.mini-row.bad {
  background: rgba(255, 108, 101, 0.1);
}

.mini-row.bad span {
  background: var(--danger);
}

.mini-row.bad strong {
  color: var(--danger);
}

.lesson-art-votes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
}

.lesson-art-votes p {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  color: var(--danger);
}

.vote-pill {
  border-radius: 999px;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.vote-pill.honest {
  border: 1px solid rgba(140, 255, 102, 0.28);
  background: rgba(140, 255, 102, 0.08);
  color: var(--accent);
}

.vote-pill.liar {
  border: 1px solid rgba(255, 108, 101, 0.28);
  background: rgba(255, 108, 101, 0.08);
  color: var(--danger);
}

.review-lane {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.review-node {
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.review-node.pass {
  background: rgba(140, 255, 102, 0.09);
  color: var(--accent);
}

.review-node.faded {
  opacity: 0.58;
}

.review-node.fail {
  background: rgba(255, 108, 101, 0.1);
  color: var(--danger);
}

.review-arrow {
  color: var(--muted);
}

.lesson-art-curve svg {
  width: 100%;
  max-width: 240px;
  fill: none;
}

.lesson-art-curve path:first-of-type {
  stroke: var(--accent);
  stroke-width: 2;
}

.lesson-art-curve line {
  stroke: var(--danger);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.lesson-art-curve circle {
  fill: var(--accent-2);
}

.lesson-art-mesh {
  position: relative;
  min-height: 12rem;
}

.lesson-art-mesh .mesh-node {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(237, 247, 239, 0.12);
}

.lesson-art-mesh .source {
  top: 1rem;
  left: calc(50% - 0.5rem);
  background: rgba(140, 255, 102, 0.18);
  box-shadow: 0 0 20px rgba(140, 255, 102, 0.3);
}

.lesson-art-mesh .good:nth-of-type(2) {
  left: 2.5rem;
  top: 4.6rem;
  background: rgba(140, 255, 102, 0.14);
}

.lesson-art-mesh .good:nth-of-type(3) {
  right: 2.5rem;
  top: 4.6rem;
  background: rgba(140, 255, 102, 0.14);
}

.lesson-art-mesh .bad:nth-of-type(4) {
  left: 5rem;
  bottom: 2rem;
  background: rgba(255, 108, 101, 0.16);
}

.lesson-art-mesh .bad:nth-of-type(5) {
  right: 5rem;
  bottom: 2rem;
  background: rgba(255, 108, 101, 0.16);
}

.lesson-art-mesh p {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  text-align: center;
  color: var(--muted);
}

.lesson-art-contract {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.contract-side {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.contract-side strong {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.contract-split {
  color: var(--danger);
  font-size: 1.5rem;
}

.lesson-art-proof {
  display: grid;
  gap: 0.5rem;
}

.proof-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.proof-row.better {
  background: rgba(140, 255, 102, 0.05);
}

.proof-row.strong {
  background: rgba(140, 255, 102, 0.1);
}

.simulator-grid,
.checklist-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.simulator-card {
  padding: 1.2rem;
}

.dial-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.sim-copy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(237, 247, 239, 0.08);
}

.tipping-bars {
  display: grid;
  gap: 0.8rem;
}

.tip-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.tip-bar,
.gate-meter-bar {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(237, 247, 239, 0.08);
  overflow: hidden;
}

.tip-fill,
.gate-meter-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 999px;
}

.tip-fill.good,
.gate-meter-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.tip-fill.bad {
  background: linear-gradient(90deg, var(--danger), #ffb6b2);
}

.gate-meter {
  padding: 1.2rem;
}

.gate-meter p {
  margin-top: 1rem;
  max-width: 34ch;
}

.gate-list {
  display: grid;
  gap: 0.7rem;
}

.gate {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gate:hover,
.gate:focus-visible {
  transform: translateX(-0.25rem);
  border-color: rgba(140, 255, 102, 0.32);
}

.gate-check {
  opacity: 0;
  color: var(--accent);
  font-weight: 800;
  transition: opacity 0.2s ease;
}

.gate.active {
  background: rgba(140, 255, 102, 0.08);
  border-color: rgba(140, 255, 102, 0.34);
}

.gate.active .gate-check {
  opacity: 1;
}

.format-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.format-card {
  min-height: 15rem;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.format-card:hover,
.format-card:focus-visible {
  transform: translateY(-0.35rem);
  border-color: rgba(140, 255, 102, 0.3);
}

.format-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.format-card p {
  margin-top: 0.9rem;
  flex: 1;
}

.cta {
  margin-bottom: 2.2rem;
}

.cta h2 {
  max-width: 12ch;
}

.cta p {
  margin-top: 1rem;
  max-width: 52ch;
}

body.client-skin {
  --accent: #7fcbff;
  --accent-2: #dff3ff;
}

body.client-skin .button-primary,
body.client-skin .skin-toggle button.active {
  color: #071019;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(140, 255, 102, 0.38);
  }
  50% {
    box-shadow: 0 0 20px rgba(140, 255, 102, 0.58);
  }
}

@keyframes flicker {
  0%,
  88%,
  100% {
    opacity: 1;
  }
  90% {
    opacity: 0.42;
  }
  92% {
    opacity: 1;
  }
  94% {
    opacity: 0.58;
  }
  96% {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .lesson-layout,
  .simulator-grid,
  .checklist-grid,
  .manifesto {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    grid-template-columns: 4rem 1fr;
  }

  .lesson-art {
    grid-column: 1 / -1;
  }

  .rail-sticky {
    position: static;
  }

  .rail-meter {
    height: 8rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .site-header .skin-toggle {
    justify-self: end;
  }

  .sim-metrics,
  .dial-strip,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5.6rem);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 1rem, 1260px);
  }

  .lesson-card,
  .gate,
  .lesson-art-contract {
    grid-template-columns: 1fr;
  }

  .lesson-index {
    font-size: 2.2rem;
  }

  .hero-points,
  .hero-actions,
  .thesis-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .sim-controls {
    gap: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-aura {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
