/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070F;
  --surface: #0A0D1A;
  --surface-2: #0F1525;
  --border: #1A2035;
  --text: #E8EAF6;
  --text-muted: #8892B0;
  --accent-amber: #FF8C00;
  --accent-amber-dim: rgba(255, 140, 0, 0.12);
  --accent-violet: #A855F7;
  --accent-cyan: #06B6D4;
  --accent-blue: #3B82F6;
  --accent-rose: #F43F5E;
  --accent-green: #22C55E;
  --accent-orange: #F97316;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px clamp(20px, 5vw, 80px) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* === SOLAR SYSTEM VISUAL === */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.solar-system {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFF3C4, #FF8C00 60%, #FF6B00);
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.6), 0 0 80px rgba(255, 140, 0, 0.3), 0 0 120px rgba(255, 140, 0, 0.1);
  z-index: 2;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.orbit-1 { width: 90px; height: 90px; }
.orbit-2 { width: 160px; height: 160px; }
.orbit-3 { width: 230px; height: 230px; }
.orbit-4 { width: 300px; height: 300px; }
.orbit-5 { width: 370px; height: 370px; }

.planet {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: default;
}

.planet:hover { transform: scale(1.15); }

.planet-score {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Planet positions — orbiting the sun (top: 50%, left: 50%) */
.planet-1 { width: 22px; height: 22px; background: radial-gradient(circle at 35% 35%, #B8B8B8, #6B6B6B); top: calc(50% - 11px); left: calc(50% - 11px + 38px); animation: spin 8s linear infinite; }
.planet-2 { width: 26px; height: 26px; background: radial-gradient(circle at 35% 35%, #E8D5A3, #C4A35A); top: calc(50% - 13px); left: calc(50% - 13px + 67px); animation: spin 14s linear infinite; }
.planet-3 { width: 24px; height: 24px; background: radial-gradient(circle at 35% 35%, #5B9BD5, #2E5E8C); top: calc(50% - 12px); left: calc(50% - 12px - 100px); animation: spin 20s linear infinite; }
.planet-4 { width: 18px; height: 18px; background: radial-gradient(circle at 35% 35%, #C1440E, #8B2D0A); top: calc(50% - 9px); left: calc(50% - 9px + 143px); animation: spin 26s linear infinite; }
.planet-5 { width: 36px; height: 36px; background: radial-gradient(circle at 35% 35%, #D4A574, #A67C52); top: calc(50% - 18px); left: calc(50% - 18px - 165px); animation: spin 36s linear infinite; }

.planet-1::before, .planet-2::before, .planet-3::before, .planet-4::before, .planet-5::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes spin {
  from { transform: rotate(0deg) translateX(38px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(38px) rotate(-360deg); }
}

/* Correct positioning: planets orbit relative to the sun center */
.planet-1 { animation: orbit1 8s linear infinite; }
.planet-2 { animation: orbit2 14s linear infinite; }
.planet-3 { animation: orbit3 20s linear infinite; }
.planet-4 { animation: orbit4 26s linear infinite; }
.planet-5 { animation: orbit5 36s linear infinite; }

@keyframes orbit1 {
  from { transform: rotate(45deg) translateX(43px) rotate(-45deg); }
  to   { transform: rotate(405deg) translateX(43px) rotate(-405deg); }
}
@keyframes orbit2 {
  from { transform: rotate(160deg) translateX(78px) rotate(-160deg); }
  to   { transform: rotate(520deg) translateX(78px) rotate(-520deg); }
}
@keyframes orbit3 {
  from { transform: rotate(260deg) translateX(113px) rotate(-260deg); }
  to   { transform: rotate(620deg) translateX(113px) rotate(-620deg); }
}
@keyframes orbit4 {
  from { transform: rotate(100deg) translateX(148px) rotate(-100deg); }
  to   { transform: rotate(460deg) translateX(148px) rotate(-460deg); }
}
@keyframes orbit5 {
  from { transform: rotate(330deg) translateX(183px) rotate(-330deg); }
  to   { transform: rotate(690deg) translateX(183px) rotate(-690deg); }
}

/* Stars */
.stars {
  position: absolute;
  inset: -20px;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 95%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 75%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
}

/* === ORBIT SECTION === */
.orbit-section {
  padding: 80px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.orbit-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.orbit-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.orbit-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.orbit-step {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.orbit-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.orbit-step-icon--plus { background: rgba(34, 197, 94, 0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }
.orbit-step-icon--neutral { background: rgba(136, 146, 176, 0.12); color: #8892B0; border: 1px solid rgba(136,146,176,0.2); }
.orbit-step-icon--minus { background: rgba(244, 63, 94, 0.15); color: #F43F5E; border: 1px solid rgba(244,63,94,0.3); }

.orbit-step-text strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.orbit-step-text span { font-size: 13px; color: var(--text-muted); }

.orbit-arrow { color: var(--border); flex-shrink: 0; }

.orbit-rule {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* === RULES SECTION === */
.rules-section {
  padding: 100px clamp(20px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rule-card {
  background: var(--surface);
  padding: 0;
}

.rule-card--main {
  grid-column: 1 / -1;
  background: var(--surface-2);
}

.rule-card-inner {
  padding: 40px 36px;
}

.rule-card--main .rule-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 40px;
  align-items: start;
}

.rule-card--main .rule-card-orb {
  grid-row: 1 / 3;
  width: 200px;
  height: 200px;
}

.rule-card--main .rule-card-orb svg {
  width: 100%;
  height: 100%;
}

.rule-card--main h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  align-self: end;
}

.rule-card--main p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  align-self: start;
  max-width: 520px;
}

.rule-card-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.rule-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === FEATURES SECTION === */
.features-section {
  padding: 100px clamp(20px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-icon--violet { background: rgba(168, 85, 247, 0.1); }
.feature-card-icon--amber { background: rgba(255, 140, 0, 0.1); }
.feature-card-icon--cyan { background: rgba(6, 182, 212, 0.1); }
.feature-card-icon--rose { background: rgba(244, 63, 94, 0.1); }
.feature-card-icon--green { background: rgba(34, 197, 94, 0.1); }
.feature-card-icon--blue { background: rgba(59, 130, 246, 0.1); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px clamp(20px, 5vw, 80px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.manifesto-sub {
  font-size: 16px;
  color: var(--text-muted);
}

/* === FOOTER === */
.site-footer {
  padding: 48px clamp(20px, 5vw, 80px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-visual { order: -1; }

  .solar-system { width: min(300px, 80vw); }

  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rule-card--main {
    grid-column: 1 / -1;
  }

  .rule-card--main .rule-card-inner {
    grid-template-columns: 1fr;
  }

  .rule-card--main .rule-card-orb {
    width: 160px;
    height: 160px;
    grid-row: auto;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-nav { display: none; }

  .hero-headline { font-size: 36px; }
  .hero-lede { font-size: 16px; }

  .rules-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .orbit-steps { flex-direction: column; gap: 12px; }
  .orbit-arrow { transform: rotate(90deg); }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}