/* ==============================
   ELARA AI — THEME CSS
   Void Black / Champagne Gold
   Cinzel + Inter Typography
   ============================== */

/* ---- TOKENS ---- */
:root {
  --void: #030303;
  --void-2: #0a0a0a;
  --void-3: #111111;
  --void-4: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(212, 175, 55, 0.15);
  --gold: #D4AF37;
  --gold-light: #F0D67A;
  --gold-bright: #F9F1D8;
  --gold-dark: #A88420;
  --text-primary: #F0EDE6;
  --text-secondary: rgba(240, 237, 230, 0.6);
  --text-muted: rgba(240, 237, 230, 0.35);
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
  --radius-md: 4px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: linear-gradient(180deg, rgba(3,3,3,0.9) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: baseline; gap: 6px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.logo-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

/* ---- SECTION BASE ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,175,55,0.04) 0%, transparent 70%),
              var(--void);
}
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120vh) scale(1); }
}
.p1 { width: 3px; height: 3px; background: var(--gold); left: 15%; top: 80%; animation-duration: 18s; animation-delay: 0s; }
.p2 { width: 2px; height: 2px; background: var(--gold-bright); left: 28%; top: 90%; animation-duration: 22s; animation-delay: 3s; }
.p3 { width: 4px; height: 4px; background: var(--gold); left: 42%; top: 85%; animation-duration: 16s; animation-delay: 7s; }
.p4 { width: 2px; height: 2px; background: var(--gold-light); left: 58%; top: 95%; animation-duration: 20s; animation-delay: 2s; }
.p5 { width: 3px; height: 3px; background: var(--gold); left: 72%; top: 88%; animation-duration: 24s; animation-delay: 5s; }
.p6 { width: 2px; height: 2px; background: var(--gold-bright); left: 85%; top: 92%; animation-duration: 19s; animation-delay: 9s; }
.p7 { width: 5px; height: 5px; background: var(--gold); left: 50%; top: 75%; animation-duration: 28s; animation-delay: 1s; }
.p8 { width: 2px; height: 2px; background: var(--gold-light); left: 8%; top: 70%; animation-duration: 21s; animation-delay: 11s; }

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 48px 100px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero-headline br { display: none; }
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-cta-group { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-cta-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* ---- BUTTONS ---- */
.btn-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.35); background-position: 100% 0; }
.btn-gold:hover::before { opacity: 1; }
.btn-gold span, .btn-gold { position: relative; z-index: 1; }
.btn-large { padding: 20px 56px; font-size: 0.85rem; }

/* ---- BLEEDING (PROBLEMS) ---- */
.bleeding { padding: 120px 0; background: var(--void-2); }
.bleeding-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 64px;
  max-width: 700px;
}
.bleeding-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bleed-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bleed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.bleed-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-4px); }
.bleed-card:hover::before { opacity: 1; }
.bleed-icon { margin-bottom: 24px; }
.bleed-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.bleed-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- ROSTER (AGENTS) ---- */
.roster { padding: 120px 0; background: var(--void); }
.roster-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.roster-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
  max-width: 500px;
}
.agent-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.agent-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 48px 32px 40px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.agent-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-8px); }
.agent-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.4s;
}
.agent-card:hover .agent-glow { opacity: 0.18; }
.closer-glow { background: radial-gradient(circle, #00D4AA, transparent); }
.concierge-glow { background: radial-gradient(circle, #7B61FF, transparent); }
.operator-glow { background: radial-gradient(circle, #FF8C00, transparent); }
.agent-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
}
.agent-icon-wrap {
  width: 64px;
  height: 64px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color var(--transition);
}
.agent-card:hover .agent-icon-wrap { border-color: var(--gold); }
.agent-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.agent-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.agent-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- ROI ---- */
.roi { padding: 120px 0; background: var(--void-2); }
.roi-content { text-align: center; }
.roi-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.roi-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.roi-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin: 0 auto 48px;
}
.roi-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.roi-stat { display: flex; flex-direction: column; gap: 8px; }
.roi-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.roi-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.roi-highlight .roi-number { color: var(--gold); }
.roi-arrow { opacity: 0.7; }
.roi-sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- PRICING ---- */
.pricing { padding: 120px 0; background: var(--void); }
.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pricing-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 28px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.price-card:hover { border-color: rgba(212,175,55,0.35); transform: translateY(-4px); }
.featured-label {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% 200%;
  padding: 6px 20px;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.waitlist-label {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  background: var(--void-3);
}
.price-featured {
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.04);
  transform: translateY(-8px);
}
.price-featured:hover { transform: translateY(-12px); }
.tier-header { margin-bottom: 16px; }
.tier-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tier-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}
.tier-features { margin-bottom: 32px; }
.tier-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}
.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--gold-dark);
}
.tier-cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 14px 20px;
  transition: all var(--transition);
}
.tier-cta:hover { color: var(--void); background: var(--gold); border-color: var(--gold); }
.tier-cta-featured { color: var(--void); background: linear-gradient(135deg, var(--gold), var(--gold-bright)); border-color: var(--gold); }
.tier-cta-featured:hover { box-shadow: 0 8px 24px rgba(212,175,55,0.4); }
.tier-cta-waitlist { color: var(--gold); border-color: var(--gold-dark); }
.tier-cta-waitlist:hover { background: var(--gold-dark); color: var(--void); }
.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 48px;
}

/* ---- ULTIMATUM ---- */
.ultimatum {
  padding: 160px 0;
  background: var(--void);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ultimatum-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ultimatum-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.ultimatum-sub {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-style: italic;
}
.ultimatum-cta { margin-bottom: 24px; }
.ultimatum-limit {
  position: relative;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-style: italic;
}

/* ---- FOOTER ---- */
.footer { padding: 80px 0; background: var(--void-2); border-top: 1px solid var(--glass-border); }
.footer-inner { text-align: center; }
.footer-logo { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-cards { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero-content { padding: 120px 24px 80px; }
  .hero-headline { font-size: 2rem; }
  .section-inner { padding: 0 24px; }
  .bleeding-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .roi-visual { flex-direction: column; gap: 16px; }
  .roi-arrow { transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .hero-headline br { display: block; }
  .btn-large { padding: 16px 36px; font-size: 0.78rem; }
}

/* ---- ENTRANCE ANIMATIONS ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fade-up 0.8s ease-out backwards; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-cta-group { animation-delay: 0.5s; }

@keyframes fade-up-late {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bleed-card, .agent-card, .price-card {
  opacity: 0;
  animation: fade-up-late 0.7s ease-out forwards;
}
.bleed-card:nth-child(1), .agent-card:nth-child(1), .price-card:nth-child(1) { animation-delay: 0.1s; }
.bleed-card:nth-child(2), .agent-card:nth-child(2), .price-card:nth-child(2) { animation-delay: 0.2s; }
.bleed-card:nth-child(3), .agent-card:nth-child(3), .price-card:nth-child(3) { animation-delay: 0.3s; }
.price-card:nth-child(4) { animation-delay: 0.4s; }
