/* ============================================
   FUTURE GOD — Contemplative Futurism
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-bg: #0a0e1a;
  --color-bg-deep: #1a1040;
  --color-gold: #d4a857;
  --color-gold-dim: rgba(212, 168, 87, 0.3);
  --color-blue-white: #c8d8e8;
  --color-text: #e8e4df;
  --color-text-dim: rgba(232, 228, 223, 0.5);
  --color-text-muted: rgba(232, 228, 223, 0.35);

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --content-max-width: 720px;
  --gold-glow: 0 0 60px rgba(212, 168, 87, 0.25), 0 0 120px rgba(212, 168, 87, 0.1);
  --gold-glow-tight: 0 0 30px rgba(212, 168, 87, 0.3);
  --transition-reveal: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Base --- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* --- Canvas (Particle Field) --- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Sacred Geometry --- */
.sacred-geometry {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vmin;
  height: 90vmin;
  max-width: 800px;
  max-height: 800px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  color: var(--color-blue-white);
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

/* --- S1: THE VOID (Hero) --- */
.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 168, 87, 0.12) 0%,
    rgba(212, 168, 87, 0.05) 30%,
    rgba(26, 16, 64, 0.03) 60%,
    transparent 80%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: var(--gold-glow);
  line-height: 1.14;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: heroFadeIn 2s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero__date {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 400;
  color: var(--color-blue-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: heroFadeIn 2s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Gold Dividers --- */
.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 3rem auto;
  max-width: 320px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--dir, right),
    transparent,
    var(--color-gold-dim) 20%,
    var(--color-gold) 50%,
    var(--color-gold-dim) 80%,
    transparent
  );
}
.divider::before { --dir: right; }
.divider::after  { --dir: left; }
.divider__symbol {
  color: var(--color-gold);
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.8;
}

/* --- S2: THE QUESTION --- */
.question__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  border: none;
  padding: 0;
  margin: 0;
}

/* --- S3: THE DISCOVERY --- */
#the-discovery p {
  margin-bottom: 2.5rem;
  line-height: 2;
}
#the-discovery p:last-child {
  margin-bottom: 0;
}

/* --- Gold Text --- */
.gold-text {
  color: var(--color-gold);
}
.gold-text--emphasis {
  font-family: var(--font-display);
  font-size: 1.15em;
}

/* --- S4: THE PROPOSITION --- */
#the-proposition p {
  margin-bottom: 2rem;
  line-height: 2;
}
#the-proposition p:last-child {
  margin-bottom: 0;
}
.proposition__climax {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-shadow: var(--gold-glow-tight);
}

/* --- S5: THE QUOTE --- */
.quote {
  border-left: 2px solid var(--color-gold-dim);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 1.5rem;
}
.quote footer {
  display: block;
}
.quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
}

/* --- S6: THE HARD PROBLEM --- */
#the-hard-problem p {
  margin-bottom: 2rem;
  line-height: 2;
}

.traditions {
  list-style: none;
  margin: 2.5rem 0;
  line-height: 2.2;
}
.traditions li {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.hard-problem__proposition {
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 3rem auto 0;
  max-width: 540px;
  background: rgba(212, 168, 87, 0.03);
  position: relative;
}
.hard-problem__proposition p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 0;
}

/* --- S7: THE SIGNUP --- */
.section--signup {
  padding-top: clamp(6rem, 14vh, 10rem);
}

.signup__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.14;
  margin-bottom: 0.5rem;
}

.signup__subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin: 2.5rem 0 3rem;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.countdown__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.countdown__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* Signup CTA */
.signup__cta {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Form */
.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 380px;
  margin: 0 auto 2rem;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-gold-dim);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.signup-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: var(--gold-glow-tight);
}

.signup-form button[type="submit"] {
  padding: 0.85rem 2.75rem;
  background: transparent;
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.signup-form button[type="submit"]:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  box-shadow: var(--gold-glow-tight);
}
.signup-form button[type="submit"]:focus-visible {
  background: var(--color-gold);
  color: var(--color-bg);
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}
.signup-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Honeypot */
.form-assist {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Form status */
.form-status {
  font-size: 0.9rem;
  min-height: 1.5em;
  transition: opacity 0.4s ease;
}
.form-status--success {
  color: var(--color-gold);
}
.form-status--error {
  color: #e07a5f;
}

/* Fine print */
.signup__fine-print {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.signup__trust {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* --- S8: FOOTER --- */
.section--footer {
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Scroll Reveal --- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Focus States --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #starfield { display: none; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__title,
  .hero__subtitle,
  .hero__date {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .section {
    padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  }
  .hero__glow {
    width: 400px;
    height: 300px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 639px) {
  .section--hero {
    min-height: 100svh;
  }
  .hero__title {
    letter-spacing: 0.1em;
  }
  .hero__subtitle br {
    display: none;
  }
  .question__text br {
    display: none;
  }
  .countdown {
    gap: 0.75rem;
  }
  .countdown__number {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }
  .signup-form {
    max-width: 100%;
  }
  .signup-form input[type="email"] {
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
  .hero__glow {
    width: 300px;
    height: 200px;
  }
  .quote {
    padding-left: 1rem;
  }
  #the-discovery br,
  #the-proposition br,
  #the-hard-problem br,
  .signup__fine-print br {
    display: none;
  }
  .hard-problem__proposition {
    padding: 1.25rem;
  }
  .hard-problem__proposition br {
    display: none;
  }
}
