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

:root {
  --blue-deep: #0a1628;
  --blue-mid: #0d2247;
  --blue-bright: #1a6cff;
  --blue-neon: #00d4ff;
  --silver: #c0cfe0;
  --silver-light: #e8f0f8;
  --chrome: #8fa8c8;
  --text-primary: #e8f0f8;
  --text-secondary: #a0b8d0;
  --accent-gold: #ffd700;
  --accent-glow: rgba(0,212,255,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--blue-deep);
  color: var(--text-primary);
  line-height: 1.6;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.4), 0 0 40px rgba(26,108,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(0,212,255,0.8), 0 0 80px rgba(26,108,255,0.4); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

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

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

.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

.marquee-wrapper { overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 30s linear infinite; }

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

.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(13,34,71,0.75) 50%, rgba(10,22,40,0.92) 100%);
}

.glass-card {
  background: rgba(13,34,71,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 1rem;
}

.neon-border {
  border: 1px solid rgba(0,212,255,0.5);
  box-shadow: 0 0 15px rgba(0,212,255,0.2), inset 0 0 15px rgba(0,212,255,0.05);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-neon) 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-glow 2.5s ease-in-out infinite;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(0,212,255,0.5);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blue-neon);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 3rem;
  text-decoration: none;
  border: 2px solid var(--blue-neon);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.btn-secondary:hover {
  background: rgba(0,212,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,212,255,0.2);
}

/* SVG pattern overlay */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.pattern-overlay > * { position: relative; z-index: 1; }

/* Prose styles for markdown pages */
.prose { color: var(--text-primary); max-width: 100%; }
.prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--silver-light);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0,212,255,0.3);
}
.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--blue-neon);
  margin: 1.5rem 0 0.75rem;
}
.prose p { margin-bottom: 1.25rem; color: var(--text-primary); line-height: 1.8; }
.prose a { color: var(--blue-neon); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--silver-light); }
.prose ul { list-style: none; padding-left: 0; margin-bottom: 1.25rem; }
.prose ul li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--text-primary);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--blue-neon);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,212,255,0.6);
}
.prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ol li { padding: 0.3rem 0; color: var(--text-primary); }
.prose blockquote {
  border-left: 4px solid var(--blue-neon);
  padding: 1rem 1.5rem;
  background: rgba(0,212,255,0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: var(--silver-light);
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.prose table thead { background: rgba(26,108,255,0.3); }
.prose table th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--blue-neon);
  font-weight: 700;
  border-bottom: 2px solid rgba(0,212,255,0.4);
}
.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  color: var(--text-primary);
}
.prose table tr:hover { background: rgba(0,212,255,0.04); }
.prose img { max-width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; display: block; }
.prose strong { color: var(--silver-light); font-weight: 700; }

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

/* Reel spinner decorative element */
.reel-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0,212,255,0.3);
  border-top-color: var(--blue-neon);
  border-radius: 50%;
  animation: spin-slow 3s linear infinite;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--silver);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--silver);
}

/* Step badge */
.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

/* Word cloud */
.word-cloud span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin: 0.3rem;
  background: rgba(26,108,255,0.15);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 2rem;
  color: var(--silver-light);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
}
.word-cloud span:hover {
  background: rgba(0,212,255,0.2);
  color: var(--blue-neon);
  transform: scale(1.05);
}

/* Nav styles */
.nav-link {
  color: var(--silver);
  font-weight: 600;
  transition: color 0.2s;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--blue-neon); }

/* Mobile menu */
#mobile-menu {
  background: var(--blue-mid);
  border-top: 1px solid rgba(0,212,255,0.2);
}

/* FAQ accordion */
.faq-item details > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--silver-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details[open] > summary { color: var(--blue-neon); }
.faq-item details > summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--blue-neon);
  transition: transform 0.3s;
}
.faq-item details[open] > summary::after { content: '−'; }
.faq-answer { padding: 0 1.25rem 1rem; color: var(--text-secondary); line-height: 1.7; }
