* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0f;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

/* Starfield */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Neural pattern */
.neural-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(74, 0, 128, 0.1) 0%, transparent 60%);
  animation: neuralPulse 10s ease-in-out infinite;
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Title */
.title-text {
  font-family: 'Orbitron', sans-serif;
  color: transparent;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
  animation: gradientShift 5s ease infinite;
}

.title-letter {
  display: inline-block;
  animation: letterReveal 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-predictor {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.5em;
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Tagline */
.tagline {
  animation: fadeInUp 1s ease 0.5s forwards;
  opacity: 0;
}

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

/* Days moved indicator */
.days-moved-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #ff00ff;
  padding: 0.5rem 1rem;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 4px;
  display: inline-block;
  animation: pulse 2s ease infinite;
}

/* Countdown */
.countdown-container {
  cursor: pointer;
  padding: 2rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.countdown-container:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .countdown-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ffff;
  text-shadow: 
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3);
  animation: numberPulse 1s ease infinite;
}

@media (min-width: 768px) {
  .countdown-number {
    font-size: 4rem;
  }
}

.countdown-number.reverse-glitch {
  animation: glitchReverse 0.1s ease infinite;
  color: #ff0000;
}

@keyframes numberPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes glitchReverse {
  0% { transform: translateX(-2px); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.countdown-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  color: #666;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .countdown-label {
    font-size: 0.75rem;
  }
}

/* Estimated date */
.estimated-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #888;
  letter-spacing: 0.1em;
}

.date-value {
  color: #ff00ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Buttons */
.accelerate-btn {
  position: relative;
  padding: 1rem 2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, #00ffff, #00cccc);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.accelerate-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.btn-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnGlowSpin 3s linear infinite;
}

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

.delay-btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: #666;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delay-btn:hover {
  color: #ff4444;
  border-color: #ff4444;
}

/* Section titles */
.section-title {
  font-family: 'Orbitron', sans-serif;
  color: transparent;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateY(-4px);
}

.metric-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.metric-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.metric-subtitle {
  font-size: 0.75rem;
  color: #666;
}

.metric-bar {
  height: 4px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.metric-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: #00ff00;
  margin-top: 0.5rem;
}

/* Sparkline */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  margin-top: 1rem;
}

.spark-bar {
  flex: 1;
  background: linear-gradient(to top, #00ffff, #ff00ff);
  border-radius: 1px;
  opacity: 0.7;
}

/* Compute bars */
.compute-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
  margin-top: 1rem;
}

.compute-bar {
  flex: 1;
  background: linear-gradient(to top, #00ffff, transparent);
  border-radius: 2px;
  animation: computePulse 1.5s ease infinite;
}

@keyframes computePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* AGI card */
.agi-card {
  position: relative;
  overflow: hidden;
}

.agi-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6600, #ff0066);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: agiPulse 2s ease infinite;
}

@keyframes agiPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.agi-confidence {
  font-size: 0.75rem;
  color: #ff6600;
}

.agi-pulse {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.1), transparent 70%);
  animation: agiRadiate 3s ease infinite;
}

@keyframes agiRadiate {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Warning card */
.warning-card {
  border-color: rgba(255, 0, 0, 0.3);
}

.warning-card:hover {
  border-color: rgba(255, 0, 0, 0.6);
}

.metric-value.warning {
  color: #ff4444;
}

.warning-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #ff4444;
  margin-top: 0.5rem;
}

.warning-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: warningBlink 1s ease infinite;
}

@keyframes warningBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.exponential-curve {
  margin-top: 1rem;
  height: 50px;
}

.curve-svg {
  width: 100%;
  height: 100%;
}

.curve-path {
  fill: none;
  stroke: #ff4444;
  stroke-width: 2;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCurve 3s ease forwards;
}

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

/* Brain icon */
.brain-icon {
  font-size: 2rem;
  margin: 0.5rem 0;
  animation: brainPulse 2s ease infinite;
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Merge progress */
.merge-progress {
  height: 6px;
  background: rgba(147, 51, 234, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1rem;
}

.merge-fill {
  height: 100%;
  background: linear-gradient(90deg, #9333ea, #ec4899);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00ffff, #ff00ff, transparent);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0;
  padding-left: 2rem;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 1.75rem;
  width: 12px;
  height: 12px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  transform: translateX(-5px);
}

.timeline-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: #888;
}

.singularity-item .timeline-node {
  background: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  animation: singularityPulse 1s ease infinite;
}

@keyframes singularityPulse {
  0%, 100% { transform: translateX(-5px) scale(1); }
  50% { transform: translateX(-5px) scale(1.5); }
}

.singularity-year {
  color: #ff00ff;
  font-size: 1.25rem;
}

.singularity-item .timeline-title {
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* Quotes */
.quote-container {
  position: relative;
  padding: 2rem;
}

.quote-marks {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: rgba(0, 255, 255, 0.2);
  position: absolute;
  top: -1rem;
  left: 0;
  line-height: 1;
}

.quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease;
}

@media (min-width: 768px) {
  .quote-text {
    font-size: 2rem;
  }
}

.quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #00ffff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quiz */
.quiz-start-btn,
.quiz-option,
.retake-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-start-btn:hover,
.quiz-option:hover,
.retake-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.6);
  transform: translateY(-2px);
}

.quiz-container {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
}

.quiz-progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #00ffff;
  margin-bottom: 1rem;
}

.quiz-question {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-result {
  text-align: center;
  padding: 2rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 12px;
}

.result-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: #ff00ff;
  text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
  margin-bottom: 0.5rem;
}

.result-title {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1rem;
}

.result-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Share button */
.share-btn {
  padding: 1rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1da1f2, #0077b5);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(29, 161, 242, 0.5);
}

/* Easter eggs */
.singularity-achieved,
.skynet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  animation: flashIn 0.5s ease;
}

.skynet-overlay {
  background: rgba(0, 0, 0, 0.95);
}

@keyframes flashIn {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 1; }
}

.glitch-text {
  animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
  25% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
  50% { text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff; }
  75% { text-shadow: -2px 2px #ff00ff, 2px -2px #00ffff; }
  100% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
}

.idle-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 8px;
  animation: flicker 0.1s ease infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Witching hour theme */
.witching-hour {
  filter: hue-rotate(30deg) saturate(1.5);
}

.witching-hour .starfield .star {
  background: #ff0000;
}

/* Animations */
.animate-fade-in {
  animation: fadeInUp 1s ease forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 640px) {
  .countdown-number {
    font-size: 1.75rem;
  }
  
  .title-text {
    font-size: 2rem;
  }
  
  .title-predictor {
    font-size: 0.6em;
    letter-spacing: 0.2em;
  }
}