@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --gold: #d4a843;
  --gold-light: #f0c96b;
  --velvet: #0a0d1a;
  --velvet-2: #11142b;
  --velvet-3: #1a1d38;
  --velvet-4: #22254a;
  --text-primary: #f0f0f5;
  --text-secondary: #b0b3cc;
  --text-muted: #7a7d9a;
}

* { box-sizing: border-box; }

body {
  background-color: var(--velvet);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(16,185,129,0.45), 0 0 36px rgba(212,168,67,0.2); }
  50% { box-shadow: 0 0 32px rgba(16,185,129,0.75), 0 0 64px rgba(212,168,67,0.4); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

.glow-pulse { animation: glow-pulse 2.8s ease-in-out infinite; }
.float-up { animation: float-up 3.5s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }

.gold-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.emerald-text { color: var(--emerald-light); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #ffffff;
  font-weight: 600;
  padding: 0.85em 2.2em;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16,185,129,0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  padding: 0.85em 2.2em;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 1rem;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,168,67,0.35);
  background: rgba(212,168,67,0.1);
}

.card-velvet {
  background: linear-gradient(145deg, var(--velvet-3), var(--velvet-2));
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card-velvet:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.5);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 0.4em;
}

.section-divider {
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 9999px;
  margin: 0 auto 2rem auto;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,26,0.72) 0%, rgba(10,13,26,0.88) 60%, rgba(10,13,26,0.97) 100%);
  z-index: 0;
}
.hero-bg > * { position: relative; z-index: 1; }

.badge-bonus {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(212,168,67,0.12));
  border: 2px solid var(--gold);
  border-radius: 1.2rem;
  padding: 1.8rem 2.4rem;
  display: inline-block;
  max-width: 520px;
  width: 100%;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.step-badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,13,26,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,185,129,0.2);
}

.mobile-menu {
  display: none;
  background: #0a0d1a;
  border-top: 1px solid rgba(16,185,129,0.2);
  padding: 1rem 1.5rem;
}
.mobile-menu.open { display: block; }

/* Prose styles for Markdown content */
.prose {
  max-width: 100%;
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1rem;
}
.prose h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--gold-light);
  margin-top: 2em;
  margin-bottom: 0.6em;
  border-left: 4px solid var(--emerald);
  padding-left: 0.75em;
}
.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--emerald-light);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.prose p { margin-bottom: 1.2em; color: var(--text-secondary); }
.prose a { color: var(--emerald-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-light); }
.prose ul { list-style: none; padding-left: 0; margin-bottom: 1.2em; }
.prose ul li { padding-left: 1.5em; position: relative; margin-bottom: 0.5em; color: var(--text-secondary); }
.prose ul li::before { content: '▸'; color: var(--emerald); position: absolute; left: 0; }
.prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose ol li { margin-bottom: 0.5em; color: var(--text-secondary); }
.prose blockquote {
  border-left: 4px solid var(--gold);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: rgba(212,168,67,0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-primary);
  font-style: italic;
}
.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}
.prose table th {
  background: var(--velvet-4);
  color: var(--gold-light);
  padding: 0.7em 1em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--emerald);
}
.prose table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
}
.prose table tr:hover td { background: rgba(16,185,129,0.05); }
.prose img { max-width: 100%; border-radius: 0.75rem; margin: 1.5em 0; display: block; }

.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.provider-cloud span {
  display: inline-block;
  padding: 0.3em 0.9em;
  margin: 0.3em;
  border-radius: 9999px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--emerald-light);
  font-size: 0.88rem;
  transition: background 0.2s;
}
.provider-cloud span:hover { background: rgba(16,185,129,0.25); }

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.8em;
}

@media (min-width: 1440px) {
  .container-max { max-width: 1440px; margin: 0 auto; }
}
