/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --gold: #c8a96e;
  --gold-dim: #8a6f3e;
  --gold-glow: rgba(200, 169, 110, 0.15);
  --black: #020204;
  --dark: #0b0b0f;
  --dark-mid: #111118;
  --text: #d4cfc8;
  --text-muted: #6b6760;
  --border: rgba(200, 169, 110, 0.18);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── BACKGROUND LAYERS ──────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 65%,
    rgba(2, 2, 4, 0.08) 85%,
    rgba(2, 2, 4, 0.22) 100%
  );
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  animation: scanShift 12s linear infinite;
}

@keyframes scanShift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(4px);
  }
}

/* ── LAYOUT ─────────────────────────────────────────── */
main {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────── */
.overline-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── MANIFESTO ──────────────────────────────────────── */
.manifesto {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  gap: 3rem;
}

/* Sigil */
.sigil-ring {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(200, 169, 110, 0.25));
}

/* Video sits centered inside the ring */
.sigil-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 215px; /* 82% of 300px — fits inside inner ring area */
  height: 215px;
  object-fit: cover;
  border-radius: 70%;
  z-index: 1;
}

/* SVG ring floats on top of the video */
.sigil-ring svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.ring-outer {
  animation: sigilRotate 50s linear infinite;
  transform-origin: 100px 100px;
}

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


/* Title */
.manifesto-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: #ede8df;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

.manifesto-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

/* Body text */
.manifesto-body {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.manifesto-body p {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.manifesto-close {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
  color: var(--gold) !important;
  letter-spacing: 0.02em;
}

.manifesto-declaration {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  letter-spacing: 0.3em;
  color: var(--gold-dim) !important;
  text-transform: uppercase;
  margin-top: 1rem;
  animation: blinkDeclaration 3s ease-in-out infinite;
}

@keyframes blinkDeclaration {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ── PROGRESS BAR SECTION ───────────────────────────── */
.progress-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
}

.progress-container {
  max-width: 680px;
  margin: 0 auto;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.progress-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.6s ease;
}

/* Track */
.progress-track {
  position: relative;
  height: 3px;
  background: rgba(200, 169, 110, 0.12);
  border-radius: 2px;
  overflow: visible;
  margin-bottom: 2rem;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold) 100%);
  border-radius: 2px;
  transition: width 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(200, 169, 110, 0.5);
}

.progress-pulse {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.6);
  animation: pulseRing 2s ease-out infinite;
  transition: left 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  left: 0%;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 169, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 169, 110, 0);
  }
}

/* Milestones */
.progress-milestones {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.milestone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: transparent;
  transition: all var(--transition);
}

.milestone-dot.active,
.milestone-dot.passed {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(200, 169, 110, 0.6);
}

.milestone-text {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Meta stats */
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.meta-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── CTA SECTION ────────────────────────────────────── */
.cta-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: #ede8df;
  margin-bottom: 1.8rem;
}

.cta-title em {
  font-style: italic;
  color: var(--gold);
}

.cta-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Form */
.waitlist-form {
  max-width: 480px;
}

.form-field {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-field:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 20px rgba(200, 169, 110, 0.1);
}

.form-field input[type="email"] {
  flex: 1;
  background: rgba(11, 11, 15, 0.8);
  border: none;
  outline: none;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-field input[type="email"]::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.btn-join {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  transition:
    background var(--transition),
    color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.btn-join:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn-join:hover .btn-arrow {
  transform: translateX(3px);
}

.form-hint {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  min-height: 1.2em;
  transition: color 0.3s;
}

.form-hint.success {
  color: var(--gold);
}
.form-hint.error {
  color: #c06060;
}

.cta-footnote {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Ornament */
.cta-ornament {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  opacity: 0.5;
  animation: ornamentPulse 6s ease-in-out infinite;
}

@keyframes ornamentPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  padding: 3rem 0 4rem;
  text-align: center;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.footer-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.footer-copy {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
}


.sigil-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #ede8df;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

/* ── ENTRANCE ANIMATIONS ────────────────────────────── */
.manifesto-content,
.sigil-ring,
.progress-container,
.cta-content {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sigil-ring {
  animation-delay: 0.1s;
}
.manifesto-content {
  animation-delay: 0.4s;
}
.progress-container {
  animation-delay: 0.2s;
}
.cta-content {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 680px) {
  .cta-section {
    grid-template-columns: 1fr;
  }
  .cta-ornament {
    display: none;
  }
  .progress-meta {
    gap: 1.5rem;
  }
  .meta-num {
    font-size: 1.6rem;
  }
  .progress-milestones {
    gap: 0.2rem;
  }
  .milestone-text {
    font-size: 0.42rem;
  }
  .sigil-ring {
    width: 240px;
    height: 240px;
  }
  .sigil-video {
    width: 196px;
    height: 196px;
  }
}

@media (max-width: 440px) {
  main {
    padding: 0 1.25rem;
  }
  .sigil-ring {
    width: 200px;
    height: 200px;
  }
  .sigil-video {
    width: 164px;
    height: 164px;
  }
  .progress-meta {
    flex-wrap: wrap;
  }
  .meta-divider {
    display: none;
  }
}
