/* ChainSpin Custom CSS */
:root {
  --cs-navy: #0a0f1e;
  --cs-cobalt: #1a2a5e;
  --cs-steel: #2d3a5c;
  --cs-neon: #4fc3f7;
  --cs-gold: #f0c040;
  --cs-accent: #00e5ff;
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px var(--cs-neon); }
  50% { box-shadow: 0 0 24px var(--cs-neon), 0 0 40px var(--cs-accent); }
}

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

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

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

.pulse-glow {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.spin-hub {
  animation: spin-hub 12s linear infinite;
}

/* Prose Styles */
.prose {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4fc3f7;
  margin-top: 2em;
  margin-bottom: 0.6em;
  border-bottom: 2px solid #1a2a5e;
  padding-bottom: 0.3em;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0c040;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose a {
  color: #4fc3f7;
  text-decoration: underline;
}

.prose a:hover {
  color: #00e5ff;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 4px solid #4fc3f7;
  padding-left: 1em;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em 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.5em;
}

.prose thead {
  background-color: #1a2a5e;
}

.prose th {
  padding: 0.6em 1em;
  color: #4fc3f7;
  font-weight: 700;
  text-align: left;
  border: 1px solid #2d3a5c;
}

.prose td {
  padding: 0.5em 1em;
  border: 1px solid #2d3a5c;
  color: #cbd5e1;
}

.prose tr:nth-child(even) {
  background-color: #111827;
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Nav */
.nav-bg {
  background-color: #060b18;
  border-bottom: 1px solid #1a2a5e;
}

.mobile-menu-bg {
  background-color: #060b18;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #1a6ef5, #00e5ff);
  color: #fff;
  font-weight: 700;
  border-radius: 0.4rem;
  padding: 0.75em 1.8em;
  display: inline-block;
  transition: filter 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #4fc3f7;
  color: #4fc3f7;
  font-weight: 600;
  border-radius: 0.4rem;
  padding: 0.7em 1.6em;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #4fc3f7;
  color: #060b18;
}

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

.hero-overlay {
  background: linear-gradient(to bottom, rgba(6,11,24,0.82) 0%, rgba(6,11,24,0.72) 60%, rgba(6,11,24,0.95) 100%);
}

/* Cards */
.cs-card {
  background: linear-gradient(145deg, #0f1b38, #1a2a5e22);
  border: 1px solid #2d3a5c;
  border-radius: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(79,195,247,0.15);
}

/* SVG pattern background */
.pattern-bg {
  background-color: #0a0f1e;
  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='%231a2a5e' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Step badges */
.step-badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6ef5, #00e5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* Word cloud */
.word-cloud span {
  display: inline-block;
  margin: 0.3em;
  padding: 0.3em 0.7em;
  border-radius: 2rem;
  background: #1a2a5e;
  color: #4fc3f7;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #2d3a5c;
  transition: background 0.2s;
}

.word-cloud span:hover {
  background: #4fc3f7;
  color: #060b18;
}
