:root {
  --aqua: #22d3ee;
  --aqua-dark: #0891b2;
  --aqua-glow: rgba(34,211,238,0.25);
  --midnight: #07111f;
  --midnight-2: #0d1e30;
  --midnight-3: #132640;
  --silver: #94a3b8;
  --silver-light: #cbd5e1;
  --frost: rgba(255,255,255,0.06);
  --frost-border: rgba(34,211,238,0.2);
}

* { box-sizing: border-box; }

body {
  background-color: var(--midnight);
  color: var(--silver-light);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

@keyframes pulse-aqua {
  0%, 100% { box-shadow: 0 0 0 0 var(--aqua-glow); }
  50% { box-shadow: 0 0 24px 8px var(--aqua-glow); }
}

@keyframes parallax-drift {
  0% { background-position: center 0%; }
  100% { background-position: center 20%; }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease both; }
.animate-pulse-aqua { animation: pulse-aqua 2.4s ease-in-out infinite; }

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

.card-frost {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-frost:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--aqua-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--aqua-dark), var(--aqua));
  color: #07111f;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  display: inline-block;
  transition: filter 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover { filter: brightness(1.12); transform: scale(1.04); }

.btn-secondary {
  background: transparent;
  color: var(--aqua);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 2px solid var(--aqua);
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover { background: var(--aqua); color: var(--midnight); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--silver);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.nav-bg {
  background: rgba(7,17,31,0.97);
  border-bottom: 1px solid var(--frost-border);
  backdrop-filter: blur(12px);
}

.mobile-menu-bg {
  background: #0d1e30;
  border-top: 1px solid var(--frost-border);
}

/* Prose styles */
.prose { color: var(--silver-light); max-width: 100%; }
.prose h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin: 2rem 0 0.75rem; border-left: 4px solid var(--aqua); padding-left: 0.75rem; }
.prose h3 { color: var(--aqua); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p { line-height: 1.8; margin-bottom: 1.1rem; }
.prose a { color: var(--aqua); text-decoration: underline; }
.prose a:hover { color: #fff; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote { border-left: 4px solid var(--aqua); padding-left: 1rem; color: var(--silver); font-style: italic; margin: 1.5rem 0; }
.prose img { max-width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }
.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.5rem;
}
.prose th { background: var(--midnight-3); color: var(--aqua); padding: 0.65rem 1rem; text-align: left; font-weight: 700; border: 1px solid var(--frost-border); }
.prose td { padding: 0.6rem 1rem; border: 1px solid var(--frost-border); color: var(--silver-light); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--frost); }

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

/* Responsive container */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1.25rem; }

@media (max-width: 640px) {
  .btn-primary, .btn-secondary { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
}
