/* Alterspin Helix – keyframes, prose, scrollable tables */

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes spinHelix {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0.5rem 0.1rem rgba(249,115,22,0.5); }
  50%       { box-shadow: 0 0 1.5rem 0.4rem rgba(14,165,233,0.7); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.helix-spin { animation: spinHelix 6s ease-in-out infinite; }
.pulse-glow  { animation: pulseGlow 2.5s ease-in-out infinite; }
.fade-up     { animation: fadeUp 0.7s ease both; }

/* Parallax hero */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero { background-attachment: scroll; }
}

/* Prose */
.prose { color: #e2e8f0; line-height: 1.8; font-size: 1rem; }
.prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #38bdf8;
  margin-top: 2em;
  margin-bottom: 0.6em;
  border-left: 4px solid #f97316;
  padding-left: 0.6em;
}
.prose h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #fb923c;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.prose p { margin-bottom: 1.2em; }
.prose a { color: #38bdf8; text-decoration: underline; }
.prose a:hover { color: #f97316; }
.prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 4px solid #f97316;
  padding-left: 1em;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5em 0;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.prose th {
  background: #0ea5e9;
  color: #0f172a;
  padding: 0.6em 0.8em;
  text-align: left;
  font-weight: 700;
}
.prose td { padding: 0.5em 0.8em; border-bottom: 1px solid #1e293b; color: #cbd5e1; }
.prose tr:nth-child(even) td { background: #1e293b; }
.prose img { max-width: 100%; border-radius: 0.5rem; margin: 1.5em auto; display: block; }

/* Table scroll wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table-scroll table { min-width: 28rem; }

/* Table responsive wrapper */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table-responsive table { min-width: 28rem; }

/* Mobile nav */
#mobile-menu {
  background: #0f172a;
  border-top: 2px solid #0ea5e9;
}

/* CTA button */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.75em 1.75em;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.7em 1.6em;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover { background: #0ea5e9; color: #0f172a; }

/* Card */
.card-dark {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card-dark:hover { transform: translateY(-4px); border-color: #f97316; }

/* Step badge */
.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Word cloud */
.word-cloud span {
  display: inline-block;
  margin: 0.3em;
  color: #38bdf8;
  font-weight: 700;
  transition: color 0.2s;
  cursor: default;
}
.word-cloud span:hover { color: #f97316; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #0ea5e9; border-radius: 3px; }
