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

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:           #070705;
  --text:         #EAE4D8;
  --text-dim:     #6E6A62;
  --text-muted:   #353330;
  --gold:         #C4993A;
  --gold-bright:  #D9AF52;
  --gold-glow:    rgba(196, 153, 58, 0.07);
  --gold-border:  rgba(196, 153, 58, 0.16);
  --gold-hover:   rgba(196, 153, 58, 0.30);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
html { height: 100%; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

/* ─── Canvas ─────────────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Film grain ─────────────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(3%,  2%); }
  30%  { transform: translate(-1%,  4%); }
  40%  { transform: translate(4%, -1%); }
  50%  { transform: translate(-3%,  1%); }
  60%  { transform: translate(2%, -4%); }
  70%  { transform: translate(-4%,  3%); }
  80%  { transform: translate(1%,  2%); }
  90%  { transform: translate(-2%, -2%); }
}

/* ─── Vignette ───────────────────────────────────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.7) 100%
  );
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 56px 24px 72px;
}

.content {
  text-align: center;
  max-width: 390px;
  width: 100%;
  will-change: transform;
}

/* ─── Staggered entrance ─────────────────────────────────────────────────── */
.logo-wrap    { animation: rise 1.0s 0.0s  both cubic-bezier(.16,.84,.44,1); }
.brand        { animation: rise 1.0s 0.18s both cubic-bezier(.16,.84,.44,1); }
.tagline      { animation: rise 0.9s 0.34s both cubic-bezier(.16,.84,.44,1); }
.signup-form  { animation: rise 0.9s 0.50s both cubic-bezier(.16,.84,.44,1); }
.form-status  { animation: rise 0.7s 0.58s both cubic-bezier(.16,.84,.44,1); }
.consent-note { animation: rise 0.7s 0.64s both cubic-bezier(.16,.84,.44,1); }
.footer-links { animation: rise 0.7s 0.72s both cubic-bezier(.16,.84,.44,1); }

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

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  height: 90px;
}

.logo-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(196,153,58,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: halo 5s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1;   }
}

.logo-svg {
  position: relative;
  width: 50px;
  height: 75px;
  color: var(--gold);
  animation: breathe 7s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(196,153,58,0.2));
}

@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.82; }
  50%       { transform: scale(1.06); opacity: 1;   }
}

/* ─── Brand ──────────────────────────────────────────────────────────────── */
.brand { margin-bottom: 16px; }

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 200;
  letter-spacing: 0.10em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(196,153,58,0.08);
}

.brand-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.rule-line {
  flex: 0 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ─── Tagline ────────────────────────────────────────────────────────────── */
.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 44px;
  line-height: 1.5;
}

/* ─── Form — floating labels ─────────────────────────────────────────────── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.field-group {
  position: relative;
}

.field-group input {
  width: 100%;
  padding: 22px 16px 8px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.field-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: top 0.22s ease, transform 0.22s ease, font-size 0.22s ease,
              letter-spacing 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

/* Floated state — on focus or when filled */
.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label {
  top: 9px;
  transform: translateY(0);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.field-group input:focus {
  border-color: var(--gold-hover);
  background: var(--gold-glow);
  box-shadow: 0 0 0 1px rgba(196,153,58,0.05), inset 0 0 20px rgba(196,153,58,0.02);
}

/* ─── CTA Button ─────────────────────────────────────────────────────────── */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}

/* Fill from bottom on hover */
.cta-btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 0;
  background: rgba(196,153,58,0.07);
  transition: height 0.35s cubic-bezier(.16,.84,.44,1);
}
.cta-btn:hover::before { height: 100%; }

/* Shimmer sweep */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,153,58,0.10), transparent);
  transition: left 0.6s ease;
}
.cta-btn:hover::after { left: 150%; }

.cta-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cta-btn:active { transform: scale(0.986); }

.cta-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.16,.84,.44,1);
}
.cta-btn:hover .btn-arrow { transform: translateX(6px); }

/* ─── Status ─────────────────────────────────────────────────────────────── */
.form-status {
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: transparent;
  transition: color 0.3s ease;
  margin-bottom: 18px;
}
.form-status.ok  { color: var(--gold); }
.form-status.err { color: #C97070; }

/* ─── Consent ────────────────────────────────────────────────────────────── */
.consent-note {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

/* ─── Footer nav ─────────────────────────────────────────────────────────── */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.privacy-icon { color: var(--gold); opacity: 0.45; font-size: 11px; }
.sep { opacity: 0.3; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal-page {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 48px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.legal-page .back-link:hover { opacity: 1; }

.legal-page .page-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 16px;
}

.legal-page h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.2;
}

.legal-page h2 {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: #AAA49E;
  margin-bottom: 12px;
}

.legal-page strong {
  font-weight: 500;
  color: var(--text);
}

.legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page a { color: var(--gold); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal-hr {
  border: none;
  border-top: 1px solid rgba(196,153,58,0.10);
  margin: 40px 0;
}

/* ─── Confirmed / Error pages ────────────────────────────────────────────── */
.status-page {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.status-content { text-align: center; max-width: 420px; }
.status-content .logo-wrap { margin-bottom: 32px; height: 90px; }

.status-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.status-content p {
  font-size: 16px;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

.status-content a {
  font-size: 9.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.status-content a:hover { opacity: 1; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .brand-name { font-size: 32px; }
  .hero { padding: 48px 20px 64px; }
  .legal-page { padding: 40px 20px 60px; }
}
