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

:root {
  --night:       #09091a;
  --deep:        #0d0d2b;
  --ink:         #12122a;
  --dusk:        #1c1c40;
  --nebula-blue: #4a6cf7;
  --nebula-purple: #8b5cf6;
  --nebula-pink: #c084fc;
  --gold:        #c9a96e;
  --gold-light:  #e0c48a;
  --text-primary: #f0eeff;
  --text-muted:  #8888aa;
  --text-dim:    #55556a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --section-pad: 100px 24px;
  --max-width:   1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--night);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(9,9,26,0.95) 0%, rgba(9,9,26,0) 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9,9,26,0.85) 0%,
    rgba(13,13,43,0.5) 50%,
    rgba(9,9,26,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-book {
  width: 280px;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow:
    0 0 60px rgba(139,92,246,0.3),
    0 0 120px rgba(74,108,247,0.15),
    0 40px 80px rgba(0,0,0,0.6);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--nebula-pink);
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--nebula-purple), transparent);
  margin: 0 auto;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
}

.btn-primary.large {
  font-size: 16px;
  padding: 18px 36px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--night);
}

.play-icon {
  width: 16px;
  height: 16px;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ── Features Grid ───────────────────────────────────────────── */
.features {
  background: var(--night);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: linear-gradient(135deg, var(--dusk), var(--ink));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 8px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Time Capsule Section ────────────────────────────────────── */
.capsule-section {
  overflow: hidden;
}

.capsule-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.capsule-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  transform: scaleX(-1);
}

.capsule-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9,9,26,0.97) 40%, rgba(9,9,26,0.7) 100%);
}

.capsule-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 80px;
}

.capsule-text {
  flex: 1;
}

.capsule-list {
  list-style: none;
  margin-bottom: 40px;
}

.capsule-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.capsule-list li:last-child {
  border-bottom: none;
}

.check {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.capsule-visual {
  flex-shrink: 0;
  width: 300px;
}

.hourglass-img {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(74,108,247,0.3),
    0 40px 80px rgba(0,0,0,0.5);
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.plan-price--store {
  font-size: 28px;
  line-height: 1.3;
}

.plan-price--store span {
  display: block;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-dim);
  font-weight: 300;
}

.pricing-section {
  background: var(--deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-card {
  background: linear-gradient(135deg, var(--dusk), var(--ink));
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 8px;
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.3s;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,0.08), var(--ink));
}

.pricing-card:hover {
  border-color: rgba(139,92,246,0.35);
}

.pricing-card.featured:hover {
  border-color: var(--gold-light);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--gold);
  color: var(--night);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1;
}

.plan-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 300;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.plan-features li::before {
  content: '— ';
  color: var(--text-dim);
}

.btn-plan {
  display: block;
  text-align: center;
  border: 1px solid rgba(139,92,246,0.4);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-plan:hover {
  background: rgba(139,92,246,0.15);
  border-color: var(--nebula-purple);
}

.btn-plan.featured {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  font-weight: 600;
}

.btn-plan.featured:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,26,0.75);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.footer-by {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px 20px;
  }

  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-book {
    width: 200px;
    order: -1;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .capsule-inner {
    flex-direction: column;
    gap: 48px;
  }

  .capsule-visual {
    width: 220px;
    margin: 0 auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

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

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

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-book,
  .hourglass-img,
  .hero-scroll-hint span {
    animation: none;
  }
}
