:root {
  --bg: #070707;
  --bg-soft: #0d0d0f;
  --panel: rgba(255,255,255,0.045);
  --panel-strong: rgba(255,255,255,0.07);
  --line: rgba(212, 175, 55, 0.24);
  --gold: #d1aa4b;
  --gold-soft: #f1d28a;
  --text: #f4f1ea;
  --muted: #cfc8bb;
  --muted-deep: #9f978a;
  --max: 1240px;
  --radius: 28px;
  --shadow: 0 20px 80px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(209,170,75,0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(209,170,75,0.08), transparent 20%),
    radial-gradient(circle at 50% 130%, rgba(209,170,75,0.08), transparent 38%),
    linear-gradient(180deg, #050505 0%, #080809 35%, #050505 100%);
  color: var(--text);
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(7,7,7,0.9), rgba(7,7,7,0.58));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold) 40%, #6b4a17 80%);
  box-shadow: 0 0 30px rgba(209,170,75,0.35);
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a,
.ghost-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.ghost-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #111;
  font-weight: 700;
  background: linear-gradient(135deg, #f3dd9b, #c9972c 52%, #f0d78f);
  box-shadow: 0 14px 34px rgba(209,170,75,0.2);
}

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

.menu-toggle,
.mobile-nav {
  display: none;
}

.section {
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 108px;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(209,170,75,0), rgba(209,170,75,0.85), rgba(209,170,75,0));
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  letter-spacing: -0.03em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 12ch;
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.hero-text,
.section-heading p,
.system-panel p,
.glass-card p,
.proof-card p,
.timeline-step p,
.close-section p,
.demo-readout p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.hero-text { max-width: 62ch; margin: 24px 0 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-signals {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-signals li {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-signals li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(209,170,75,0.65);
}

.hero-visual { position: relative; }
.orbital-stage {
  position: relative;
  min-height: 680px;
  border-radius: 38px;
  background:
    radial-gradient(circle at center, rgba(209,170,75,0.12), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.orbital-stage::before,
.orbital-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 74%, rgba(255,255,255,0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 10%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 48%, rgba(255,255,255,0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 24% 38%, rgba(255,255,255,0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,0.75) 0 1px, transparent 1.5px);
  opacity: 0.55;
}

.orbital-stage::after {
  animation: drift 18s linear infinite;
  opacity: 0.2;
}

.core-halo,
.brand-core,
.core-ring,
.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.core-halo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,210,138,0.9), rgba(209,170,75,0.34) 42%, rgba(209,170,75,0) 72%);
  filter: blur(20px);
}

.brand-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6d7, #dfbd69 45%, #6e4d1a 100%);
  box-shadow: 0 0 46px rgba(209,170,75,0.45);
  display: grid;
  place-items: center;
  color: #111;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-core span:first-child { margin-right: -0.18em; }

.core-ring {
  border: 1px solid rgba(209,170,75,0.22);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.ring-one { width: 280px; height: 280px; }
.ring-two { width: 420px; height: 420px; animation-direction: reverse; animation-duration: 32s; }
.ring-three { width: 560px; height: 560px; animation-duration: 44s; }

.orbit-card {
  width: 170px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(7,7,7,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(20px);
}

.orbit-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.orbit-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.orbit-card-a { transform: translate(calc(-50% - 205px), calc(-50% - 150px)); }
.orbit-card-b { transform: translate(calc(-50% + 205px), calc(-50% - 85px)); }
.orbit-card-c { transform: translate(calc(-50% + 165px), calc(-50% + 155px)); }
.orbit-card-d { transform: translate(calc(-50% - 220px), calc(-50% + 115px)); }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
  margin: -24px auto 0;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  border-radius: 28px;
  backdrop-filter: blur(18px);
}

.stats-band div {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.stat-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold-soft);
}

.stat-label {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 38px;
}

.problem-grid,
.proof-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.glass-card,
.proof-card,
.timeline-step,
.system-panel,
.demo-shell,
.close-section {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card,
.proof-card,
.timeline-step,
.system-panel {
  padding: 28px;
}

.card-index,
.proof-type,
.panel-kicker,
.demo-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.system-switcher {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.system-tab,
.demo-trigger {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 220ms ease;
}

.system-tab.active,
.demo-trigger.active {
  color: #111;
  background: linear-gradient(135deg, #f3dd9b, #c9972c 52%, #f0d78f);
  font-weight: 700;
}

.system-panels { margin-top: 24px; }
.system-panel {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.system-panel.active { display: grid; }
.system-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.system-panel li {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.demo-shell { padding: 22px; }
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.demo-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
}

.demo-network {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(209,170,75,0.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.05);
}

.demo-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.link {
  fill: none;
  stroke: rgba(209,170,75,0.44);
  stroke-width: 0.8;
  stroke-dasharray: 4 4;
  animation: pulseLine 4s linear infinite;
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d7, #d0a23d 56%, #7a5116 100%);
  box-shadow: 0 0 24px rgba(209,170,75,0.5);
  transition: transform 360ms ease, left 360ms ease, top 360ms ease;
}

.node-a { left: 18%; top: 20%; }
.node-b { left: 50%; top: 34%; }
.node-c { left: 78%; top: 22%; }
.node-d { left: 20%; top: 76%; }
.node-e { left: 33%; top: 52%; }
.node-f { left: 82%; top: 50%; }

.demo-readout {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.demo-readout h3 { margin-bottom: 16px; }
.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.demo-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  font-size: 0.92rem;
}

.timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 18px;
  color: #111;
  font-weight: 700;
  background: linear-gradient(135deg, #f3dd9b, #c9972c 52%, #f0d78f);
}

.close-section {
  text-align: center;
  padding: 56px 28px;
  margin-bottom: 80px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-demo-theme="church"] .demo-network {
  background: radial-gradient(circle at center, rgba(209,170,75,0.18), transparent 26%), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
body[data-demo-theme="coach"] .demo-network {
  background: radial-gradient(circle at center, rgba(164,124,247,0.22), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
body[data-demo-theme="restaurant"] .demo-network {
  background: radial-gradient(circle at center, rgba(230,110,67,0.18), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
body[data-demo-theme="speaker"] .demo-network {
  background: radial-gradient(circle at center, rgba(76,168,219,0.2), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-14px); }
}
@keyframes pulseLine {
  0% { stroke-dashoffset: 0; opacity: 0.55; }
  100% { stroke-dashoffset: 16; opacity: 0.95; }
}

@media (max-width: 1100px) {
  .desktop-nav,
  .topbar-actions { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .mobile-nav.open { display: flex; }
  .hero,
  .demo-stage,
  .system-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
  .hero-visual { order: -1; }
  .problem-grid,
  .proof-grid,
  .timeline,
  .stats-band { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-shell { width: min(calc(100% - 22px), var(--max)); }
  .section { padding: 72px 0; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .problem-grid,
  .proof-grid,
  .timeline,
  .stats-band { grid-template-columns: 1fr; }
  .orbital-stage {
    min-height: 520px;
  }
  .ring-one { width: 220px; height: 220px; }
  .ring-two { width: 320px; height: 320px; }
  .ring-three { width: 420px; height: 420px; }
  .brand-core { width: 118px; height: 118px; font-size: 1.7rem; }
  .orbit-card {
    width: 140px;
    padding: 13px;
  }
  .orbit-card strong { font-size: 0.88rem; }
  .orbit-card-a { transform: translate(calc(-50% - 110px), calc(-50% - 145px)); }
  .orbit-card-b { transform: translate(calc(-50% + 110px), calc(-50% - 110px)); }
  .orbit-card-c { transform: translate(calc(-50% + 90px), calc(-50% + 140px)); }
  .orbit-card-d { transform: translate(calc(-50% - 112px), calc(-50% + 100px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
