:root {
  --frost-blue: #4dd9f0;
  --frost-blue-dark: #00a8c8;
  --graphite-900: #0f1219;
  --graphite-800: #161b27;
  --graphite-700: #1e2535;
  --graphite-600: #252d42;
  --graphite-500: #2e3850;
  --silver-glow: #b8c8d8;
  --silver-light: #dce8f0;
  --text-primary: #e8f4f8;
  --text-secondary: #98b8cc;
  --accent-glow: rgba(77,217,240,0.18);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px 2px rgba(77,217,240,0.3); }
  50% { box-shadow: 0 0 28px 6px rgba(77,217,240,0.6); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes float-up {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.spin-slow { animation: spin-slow 18s linear infinite; }
.pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }
.float-anim { animation: float-up 0.6s ease forwards; }

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

.shimmer-btn {
  background: linear-gradient(90deg, var(--frost-blue-dark) 0%, var(--frost-blue) 40%, #a0eeff 60%, var(--frost-blue-dark) 100%);
  background-size: 200% auto;
  animation: shimmer 2.5s linear infinite;
  color: #0f1219;
  font-weight: 700;
}

.frost-card {
  background: var(--graphite-600);
  border: 1px solid rgba(77,217,240,0.18);
  border-radius: 1rem;
  transition: border-color 0.3s, transform 0.3s;
}
.frost-card:hover {
  border-color: rgba(77,217,240,0.55);
  transform: translateY(-3px);
}

.svg-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(77,217,240,0.12);
  pointer-events: none;
}

/* Prose styles */
.prose {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}
.prose h2 {
  color: var(--frost-blue);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(77,217,240,0.2);
  padding-bottom: 0.4rem;
}
.prose h3 {
  color: var(--silver-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.prose p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}
.prose a {
  color: var(--frost-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: #a0eeff; }
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}
.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--frost-blue);
  padding: 0.6rem 1.2rem;
  background: rgba(77,217,240,0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.2rem 0;
  color: var(--silver-light);
  font-style: italic;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(77,217,240,0.2);
  margin: 1.5rem 0;
  display: block;
}
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}
.prose thead tr {
  background: var(--graphite-500);
  color: var(--frost-blue);
}
.prose th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid rgba(77,217,240,0.3);
  white-space: nowrap;
}
.prose td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(77,217,240,0.1);
  color: var(--text-primary);
  white-space: nowrap;
}
.prose tbody tr:hover { background: rgba(77,217,240,0.05); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--graphite-800); }
::-webkit-scrollbar-thumb { background: var(--frost-blue-dark); border-radius: 3px; }

/* Parallax */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero { background-attachment: scroll; }
  .prose h2 { font-size: 1.3rem; }
  .prose h3 { font-size: 1.05rem; }
}

/* Mobile menu */
#mobile-menu {
  background: var(--graphite-800);
}

/* Table wrapper for inner pages */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 1.5rem;
}
