/* ========================================
   SEALED IN STARLIGHT — Landing Page
   Dark Romantasy Aesthetic
   ======================================== */

:root {
  /* Core palette */
  --midnight: #0a0a12;
  --deep-navy: #0d1117;
  --dark-plum: #1a1020;
  --charcoal: #141422;
  --slate: #1e1e30;

  /* Accent colors */
  --gold: #c9a84c;
  --gold-light: #f0d78c;
  --gold-dim: #8a7235;
  --burgundy: #6b1d3a;
  --burgundy-light: #9b2d5a;
  --rose: #c77d8a;
  --emerald: #2d5a3d;
  --silver: #a8a8b8;

  /* Text */
  --text-primary: #e8e4df;
  --text-secondary: #9a96a8;
  --text-dim: #6a6678;

  /* Fonts */
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- STARFIELD CANVAS ---- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 0.6; transform: translateY(-60px) scale(1); }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(107, 29, 58, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(45, 90, 61, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.seal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.6)); }
}

.pre-headline {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-up 1s ease 0.3s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  opacity: 0;
  animation: fade-up 1s ease 0.5s forwards;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-up 1s ease 0.7s forwards;
}

.sub-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade-up 1s ease 0.9s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fade-up 1s ease 1.1s forwards;
}

.cta-button:hover {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fade-up 1s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.section-title.left-align {
  text-align: left;
}

.gold-text {
  color: var(--gold);
}

/* ---- FEATURES ---- */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, transparent, rgba(26, 16, 32, 0.4), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  padding: 40px 32px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 2px;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- EXPERIENCE ---- */
.experience {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.experience-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.experience-text p:nth-child(3) {
  color: var(--rose);
  font-style: italic;
  font-size: 19px;
}

/* Letter mockup */
.letter-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope {
  position: relative;
  width: 280px;
  height: 200px;
  background: linear-gradient(145deg, #1a1520, #12101a);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(201, 168, 76, 0.1);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.envelope:hover {
  transform: rotate(0deg) scale(1.03);
}

.envelope::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom right, transparent 49.5%, rgba(201, 168, 76, 0.08) 50%);
  pointer-events: none;
}

.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, var(--burgundy-light), var(--burgundy));
  border-radius: 50%;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.wax-seal::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 18px;
  opacity: 0.8;
}

.envelope-text {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
}

.script-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-dim);
  letter-spacing: 1px;
}

/* ---- AUDIENCE ---- */
.audience {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, transparent, rgba(26, 16, 32, 0.3), transparent);
}

.audience-list {
  max-width: 640px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

.audience-item:last-child {
  border-bottom: none;
}

.thorn {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}

.audience-item p {
  font-size: 17px;
  color: var(--text-secondary);
}

.audience-item em {
  color: var(--rose);
  font-style: italic;
}

/* ---- WAITLIST ---- */
.waitlist {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0 calc(var(--section-padding) + 40px);
}

.waitlist-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 48px;
  background: rgba(20, 20, 34, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 2px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.waitlist-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: -30px auto 40px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.submit-button {
  width: 100%;
  padding: 18px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.submit-button:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.form-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Success state */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 16px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.success-message p {
  color: var(--text-secondary);
  font-style: italic;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 8px;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-title.left-align {
    text-align: center;
  }

  .experience-text {
    order: 1;
  }

  .experience-visual {
    order: 0;
  }

  .waitlist-card {
    padding: 40px 24px;
  }

  .envelope {
    width: 240px;
    height: 170px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 40px 16px;
  }

  .feature-card {
    padding: 32px 24px;
  }
}
