/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1428;
  --bg-secondary: #0F1B35;
  --surface: #142040;
  --surface-light: #1C2D55;
  --fg: #E8E3D8;
  --fg-muted: #8A94A8;
  --accent: #D4A853;
  --accent-dim: rgba(212, 168, 83, 0.15);
  --accent-glow: rgba(212, 168, 83, 0.4);
  --border: rgba(212, 168, 83, 0.12);
  --beam: rgba(212, 168, 83, 0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11,20,40,0.95) 0%, transparent 100%);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,168,83,0.05) 0%, transparent 60%), var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 42ch;
  line-height: 1.7;
}

/* ── Lighthouse Scene ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 440px;
}
.lighthouse-scene {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lighthouse-tower {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.lighthouse-top {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
}
.lighthouse-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
}
.lighthouse-body {
  width: 10px;
  height: 80px;
  background: linear-gradient(to top, var(--surface-light), var(--fg-muted));
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}
.lighthouse-base {
  width: 28px;
  height: 12px;
  background: var(--surface-light);
  border-radius: 2px;
}

/* Beams */
.lighthouse-beam {
  position: absolute;
  top: 50%;
  left: calc(50% + 8px);
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, rgba(212,168,83,0.4), transparent);
  transform-origin: left center;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.8;
  animation: beam-flicker 4s ease-in-out infinite;
}
.lighthouse-beam-2 {
  transform: translateY(-50%) rotate(5deg);
  animation-delay: 0.5s;
  opacity: 0.5;
}
@keyframes beam-flicker {
  0%, 100% { opacity: 0.7; }
  30% { opacity: 1; }
  60% { opacity: 0.5; }
}

/* Stars */
.stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(232,227,216,0.5);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.star:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 35%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 15%; left: 60%; animation-delay: 1s; }
.star:nth-child(4) { top: 50%; left: 10%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 10%; left: 30%; animation-delay: 2s; }
.star:nth-child(6) { top: 45%; left: 90%; animation-delay: 0.7s; }
.star:nth-child(7) { top: 25%; left: 50%; animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Waves */
.waves { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; }
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--bg);
  border-radius: 100% 100% 0 0;
  animation: wave-rise 6s ease-in-out infinite;
}
.wave-1 { z-index: 1; opacity: 0.9; }
.wave-2 { z-index: 2; bottom: -4px; opacity: 0.7; animation-delay: 1s; }
.wave-3 { z-index: 3; bottom: -8px; opacity: 0.5; animation-delay: 2s; }
@keyframes wave-rise {
  0% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}

/* Entry bubble */
.entry-bubble {
  position: absolute;
  top: 30px;
  left: -40px;
  z-index: 10;
  animation: float-bubble 5s ease-in-out infinite;
}
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.entry-bubble-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.entry-wave-icon { flex-shrink: 0; margin-top: 2px; }
.entry-bubble-text { display: flex; flex-direction: column; gap: 5px; }
.entry-line {
  height: 5px;
  background: var(--accent-dim);
  border-radius: 3px;
  width: 120px;
}
.entry-line-short { width: 80px; }

/* Pattern card */
.pattern-card {
  position: absolute;
  bottom: 80px;
  right: -20px;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float-pattern 6s ease-in-out infinite;
}
@keyframes float-pattern {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.pattern-icon { margin-bottom: 6px; }
.pattern-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.pattern-detail {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--fg), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(20px); }
}

/* ── Manifesto ── */
.manifesto {
  padding: 6rem 4rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 2rem;
}
.manifesto-context {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Features ── */
.features {
  padding: 6rem 4rem;
}
.features-header {
  text-align: center;
  margin-bottom: 4rem;
}
.features-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.features-header p {
  font-size: 1.1rem;
  color: var(--fg-muted);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}
.feature-icon-wrap {
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── How ── */
.how {
  padding: 6rem 4rem;
  background: var(--bg-secondary);
}
.how-inner { max-width: 900px; margin: 0 auto; }
.how-header { margin-bottom: 4rem; }
.how-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.step p {
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 52ch;
}
.step-connector {
  display: none;
}

/* ── Closing ── */
.closing {
  padding: 8rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.06) 0%, transparent 70%);
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Footer ── */
.footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.footer-tagline {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .manifesto, .features, .how, .closing { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step-number { font-size: 2rem; }
  .footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .nav-tagline { display: none; }
  .hero-headline { font-size: 2.2rem; }
}