/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&family=Space+Mono:wght@400;700&display=swap');

/* Custom base styles beyond Tailwind */
:root {
  --loto-red: #DA291C;
  --loto-darkred: #B71C1C;
  --loto-bg: #0A0A0A;
  --loto-surface: #141414;
  --loto-surface-light: #1E1E1E;
  --loto-gold: #FFB800;
  --loto-green: #22C55E;
  --loto-text-secondary: #A3A3A3;
  --loto-text-muted: #666666;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--loto-bg);
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

.font-mono-accent {
  font-family: 'Space Mono', monospace;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--loto-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--loto-surface-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--loto-text-muted);
}

/* Accordion custom styles */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content.open {
  max-height: 500px;
}
.accordion-chevron {
  transition: transform 0.3s ease;
}
.accordion-chevron.open {
  transform: rotate(180deg);
}

/* Pulsing animation for CTA */
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.pulse-animation {
  animation: pulse-scale 2s ease-in-out infinite;
}

/* Mobile menu transition */
.mobile-drawer {
  transition: transform 0.3s ease;
}
.mobile-drawer.closed {
  transform: translateX(100%);
}
.mobile-drawer.open {
  transform: translateX(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--loto-red);
  outline-offset: 2px;
}

/* Star filled style */
.star-filled {
  fill: var(--loto-gold);
  color: var(--loto-gold);
}

/* Input styling */
input::placeholder,
textarea::placeholder {
  color: var(--loto-text-muted);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ===== MASTERMIND ORBIT ANIMATIONS ===== */
.mastermind-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mastermind-orbit {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), inset 0 0 4px rgba(0,0,0,0.2);
  z-index: 20;
  pointer-events: none;
}

.mastermind-orbit::after {
  content: attr(data-number);
}

/* Orbit paths around the brain image */
@keyframes orbit1 {
  0%   { top: 10%; left: 5%; }
  25%  { top: 5%; left: 50%; }
  50%  { top: 10%; left: 90%; }
  75%  { top: 50%; left: 95%; }
  100% { top: 10%; left: 5%; }
}
@keyframes orbit2 {
  0%   { top: 80%; left: 85%; }
  25%  { top: 90%; left: 50%; }
  50%  { top: 80%; left: 10%; }
  75%  { top: 50%; left: 0%; }
  100% { top: 80%; left: 85%; }
}
@keyframes orbit3 {
  0%   { top: 50%; left: 2%; }
  33%  { top: 10%; left: 20%; }
  66%  { top: 85%; left: 30%; }
  100% { top: 50%; left: 2%; }
}
@keyframes orbit4 {
  0%   { top: 20%; left: 88%; }
  33%  { top: 70%; left: 75%; }
  66%  { top: 40%; left: 92%; }
  100% { top: 20%; left: 88%; }
}
@keyframes orbit5 {
  0%   { top: 92%; left: 45%; }
  50%  { top: 70%; left: 60%; }
  100% { top: 92%; left: 45%; }
}
@keyframes orbit6 {
  0%   { top: 35%; left: 92%; }
  50%  { top: 15%; left: 70%; }
  100% { top: 35%; left: 92%; }
}
@keyframes orbit7 {
  0%   { top: 60%; left: 5%; }
  50%  { top: 80%; left: 20%; }
  100% { top: 60%; left: 5%; }
}
@keyframes orbit8 {
  0%   { top: 5%; left: 40%; }
  50%  { top: 20%; left: 15%; }
  100% { top: 5%; left: 40%; }
}

/* Glow pulse for orbits */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), inset 0 0 4px rgba(0,0,0,0.2); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), inset 0 0 4px rgba(0,0,0,0.2); transform: scale(1.08); }
}

.orbit-1 { animation: orbit1 8s ease-in-out infinite, glowPulse 2s ease-in-out infinite; }
.orbit-2 { animation: orbit2 10s ease-in-out infinite, glowPulse 2.5s ease-in-out infinite 0.3s; }
.orbit-3 { animation: orbit3 9s ease-in-out infinite, glowPulse 2.2s ease-in-out infinite 0.6s; }
.orbit-4 { animation: orbit4 11s ease-in-out infinite, glowPulse 2.8s ease-in-out infinite 0.9s; }
.orbit-5 { animation: orbit5 7s ease-in-out infinite, glowPulse 1.8s ease-in-out infinite 1.2s; }
.orbit-6 { animation: orbit6 12s ease-in-out infinite, glowPulse 2.4s ease-in-out infinite 0.4s; }
.orbit-7 { animation: orbit7 8.5s ease-in-out infinite, glowPulse 2.1s ease-in-out infinite 0.7s; }
.orbit-8 { animation: orbit8 9.5s ease-in-out infinite, glowPulse 2.6s ease-in-out infinite 1.0s; }

/* Color variations for different numbers */
.orbit-1 { background: #FFD700; }
.orbit-2 { background: #DA291C; color: white; }
.orbit-3 { background: #32CD32; }
.orbit-4 { background: #1E90FF; color: white; }
.orbit-5 { background: #FFD700; }
.orbit-6 { background: #8B4513; color: white; }
.orbit-7 { background: #32CD32; }
.orbit-8 { background: #1E90FF; color: white; }

/* Responsive: hide orbits on small screens */
@media (max-width: 640px) {
  .mastermind-orbit {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }
}

/* Hero SVG line animation */
.hero-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-line 2.5s ease-out 0.5s forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* Spinner animation */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
