:root {
  --bg-deep: #06080f;
  --bg-dark: #0a0e1a;
  --bg-card: #0f1424;
  --bg-card-hover: #141a2e;
  --gold: #d4a853;
  --gold-light: #e8c882;
  --gold-dim: #9a7a3a;
  --cream: #f0e8d8;
  --cream-dim: #a89e8c;
  --white: #ffffff;
  --text-primary: #e8e0d4;
  --text-secondary: #9a938a;
  --text-muted: #5a554e;
  --accent-glow: rgba(212,168,83,0.15);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ===== NAV ===== */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 2rem 3rem;
  z-index: 10;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.forge-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.12) 0%, rgba(212,168,83,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 4s ease-in-out infinite;
}
.particles span:nth-child(1) { left:20%; bottom:30%; animation-delay:0s; }
.particles span:nth-child(2) { left:45%; bottom:20%; animation-delay:0.5s; }
.particles span:nth-child(3) { left:70%; bottom:35%; animation-delay:1s; }
.particles span:nth-child(4) { left:35%; bottom:25%; animation-delay:1.5s; }
.particles span:nth-child(5) { left:60%; bottom:15%; animation-delay:2s; }
.particles span:nth-child(6) { left:25%; bottom:40%; animation-delay:2.5s; }
.particles span:nth-child(7) { left:80%; bottom:30%; animation-delay:0.8s; }
.particles span:nth-child(8) { left:50%; bottom:45%; animation-delay:1.3s; }
.particles span:nth-child(9) { left:15%; bottom:20%; animation-delay:3s; }
.particles span:nth-child(10) { left:55%; bottom:10%; animation-delay:1.8s; }
.particles span:nth-child(11) { left:40%; bottom:50%; animation-delay:2.2s; }
.particles span:nth-child(12) { left:75%; bottom:25%; animation-delay:3.2s; }

@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.8; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ===== THESIS ===== */
.thesis {
  padding: 8rem 3rem;
  background: var(--bg-dark);
}
.thesis-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.thesis-label, .engine-label, .constellation-label, .numbers-label, .philosophy-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}
.thesis-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 4rem;
}
.thesis-headline em {
  color: var(--gold);
  font-style: italic;
}
.thesis-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.thesis-col {
  padding: 2rem;
  border: 1px solid rgba(212,168,83,0.1);
  border-radius: 12px;
  background: var(--bg-card);
  transition: border-color 0.3s, background 0.3s;
}
.thesis-col:hover {
  border-color: rgba(212,168,83,0.25);
  background: var(--bg-card-hover);
}
.thesis-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.thesis-col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.thesis-col p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== ENGINE ===== */
.engine {
  padding: 8rem 3rem;
  background: var(--bg-deep);
  position: relative;
}
.engine::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  opacity: 0.3;
}
.engine-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.engine-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 4rem;
}
.engine-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pipeline-stage {
  position: relative;
  padding: 1.5rem 0;
}
.stage-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stage-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-dim));
  margin-bottom: 1.25rem;
  opacity: 0.4;
}
.pipeline-stage h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
.pipeline-stage p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== CONSTELLATION ===== */
.constellation {
  position: relative;
  padding: 10rem 3rem;
  background: var(--bg-dark);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.constellation-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(212,168,83,0.3);
  animation: twinkle 3s ease-in-out infinite;
}
.star:nth-child(odd) { animation-delay: 1.5s; width: 4px; height: 4px; }
.star:nth-child(3n) { animation-delay: 0.8s; width: 5px; height: 5px; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.thread {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,168,83,0.2), transparent);
}
.constellation-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.constellation h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.constellation h2 em {
  color: var(--gold);
  font-style: italic;
}
.constellation p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NUMBERS ===== */
.numbers {
  padding: 8rem 3rem;
  background: var(--bg-deep);
  position: relative;
}
.numbers::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  opacity: 0.3;
}
.numbers-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.numbers h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 3.5rem;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.number-card {
  padding: 2rem;
  border: 1px solid rgba(212,168,83,0.1);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}
.number-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.number-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.numbers-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 8rem 3rem;
  background: var(--bg-dark);
}
.philosophy-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.philosophy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 3.5rem;
}
.philosophy h2 em {
  color: var(--gold);
  font-style: italic;
}
.philosophy-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}
.comp-divider {
  width: 1px;
  min-height: 200px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  opacity: 0.4;
  align-self: stretch;
}
.comp-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.comp-others h4 { color: var(--text-muted); }
.comp-us h4 { color: var(--gold); }
.comp-col ul {
  list-style: none;
  padding: 0;
}
.comp-col li {
  padding: 0.6rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comp-others li { color: var(--text-muted); }
.comp-us li { color: var(--text-primary); }
.comp-col li:last-child { border-bottom: none; }

/* ===== CLOSING ===== */
.closing {
  position: relative;
  padding: 10rem 3rem;
  background: var(--bg-deep);
  text-align: center;
  overflow: hidden;
}
.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.closing-headline em {
  color: var(--gold);
  font-style: italic;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem;
  background: var(--bg-deep);
  border-top: 1px solid rgba(212,168,83,0.08);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 5rem 1.5rem 3rem; }
  .nav { padding: 1.5rem; }
  .thesis, .engine, .numbers, .philosophy { padding: 5rem 1.5rem; }
  .constellation { padding: 6rem 1.5rem; }
  .closing { padding: 6rem 1.5rem; }
  .site-footer { padding: 2rem 1.5rem; }
  
  .thesis-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .engine-pipeline { grid-template-columns: 1fr; gap: 2rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .philosophy-comparison {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .comp-divider {
    width: 100%;
    min-height: 0;
    height: 1px;
  }
  .number-value { font-size: 2rem; }
  .forge-glow { width: 400px; height: 300px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .thesis-headline, .engine-headline, .constellation h2, .numbers h2, .philosophy h2 { font-size: 1.6rem; }
  .closing-headline { font-size: 1.8rem; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
}
