/* ===============================================
   QUANTUM OASIS SHOWCASE - CYBERPUNK THEME
   Futuristic neon aesthetic with holographic UI
   =============================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Core Colors */
  --bg-primary: #0a0f1a;
  --bg-secondary: #0d1420;
  --bg-tertiary: #111827;
  --bg-card: rgba(13, 20, 32, 0.85);

  /* Neon Accents */
  --neon-cyan: #00d4ff;
  --neon-blue: #0088ff;
  --neon-purple: #8b5cf6;
  --neon-magenta: #ff00ff;
  --neon-gold: #ffd700;
  --neon-green: #00ff88;
  --neon-orange: #ff8c00;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;

  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
  --glow-blue: 0 0 20px rgba(0, 136, 255, 0.5);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
  --glow-text: 0 0 10px rgba(0, 212, 255, 0.8);

  /* Borders */
  --border-glow: 1px solid rgba(0, 212, 255, 0.4);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.1);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #1a1f3a 50%, #0a0f1a 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.05));
  --gradient-neon: linear-gradient(90deg, #00d4ff, #8b5cf6, #00d4ff);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-primary: 'Orbitron', 'Inter', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  background: var(--gradient-neon);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--neon-purple);
  text-shadow: var(--glow-text);
}

/* ===============================================
   NAVIGATION
   =============================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-glow);
  padding: var(--spacing-sm) var(--spacing-lg);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--glow-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: var(--glow-cyan);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.4);
  }
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition-normal);
  transform: translateX(-50%);
  box-shadow: var(--glow-cyan);
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition-normal);
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  padding-top: 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Animated particles background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 136, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  top: 20%;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
  content: '◆';
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* ===============================================
   MODULES SECTION
   =============================================== */

.modules-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Module Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
}

/* Module Card */
.module-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Category Filter Menu */
.module-filters {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-color: transparent;
  color: var(--bg-primary);
}

.module-card.hidden {
  display: none;
}

/* Card Preview Area */
.module-preview {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.module-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.module-icon {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

/* Interactive Demo Previews */
.demo-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.demo-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.demo-weather .temperature {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

.demo-weather .location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.demo-chat {
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.demo-chat .message {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  max-width: 80%;
}

.demo-chat .message.ai {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  align-self: flex-start;
}

.demo-chat .message.user {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--neon-purple);
  align-self: flex-end;
}

.demo-tarot {
  perspective: 1000px;
}

.tarot-card {
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, #1a1f3a, #2d3555);
  border: 2px solid var(--neon-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transition: var(--transition-normal);
  cursor: pointer;
}

.module-card:hover .tarot-card {
  transform: rotateY(180deg);
}

.demo-agents {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  justify-content: center;
}

.agent-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid;
  animation: agentPulse 2s ease-in-out infinite;
}

.agent-bubble:nth-child(1) {
  border-color: var(--neon-cyan);
  animation-delay: 0s;
}

.agent-bubble:nth-child(2) {
  border-color: var(--neon-purple);
  animation-delay: 0.3s;
}

.agent-bubble:nth-child(3) {
  border-color: var(--neon-green);
  animation-delay: 0.6s;
}

@keyframes agentPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Music Machine Preview */
.music-machine-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-machine-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.music-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.wave-bar {
  width: 6px;
  background: linear-gradient(to top, var(--neon-cyan), var(--neon-purple));
  border-radius: 3px;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}

.wave-bar:nth-child(2) {
  height: 35px;
  animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
  height: 50px;
  animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
  height: 60px;
  animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
  height: 45px;
  animation-delay: 0.4s;
}

.wave-bar:nth-child(6) {
  height: 30px;
  animation-delay: 0.5s;
}

.wave-bar:nth-child(7) {
  height: 15px;
  animation-delay: 0.6s;
}

@keyframes waveAnim {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.music-ai-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

/* Card Content */
.module-content {
  padding: var(--spacing-md);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.module-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.module-tag {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.module-tag.live {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.module-tag.demo {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.module-tag.beta {
  background: rgba(255, 140, 0, 0.15);
  color: var(--neon-orange);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.module-tag.new {
  background: rgba(255, 215, 0, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.module-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.module-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.feature-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.module-links {
  display: flex;
  gap: var(--spacing-sm);
}

.module-link {
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: center;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.module-link.primary {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.module-link.primary:hover {
  background: rgba(0, 212, 255, 0.25);
  box-shadow: var(--glow-cyan);
}

.module-link.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: var(--border-subtle);
}

.module-link.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ===============================================
   FEATURES SECTION
   =============================================== */

.features-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg-secondary);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===============================================
   CTA SECTION
   =============================================== */

.cta-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: var(--spacing-md);
}

.cta-description {
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
  background: var(--bg-secondary);
  border-top: var(--border-glow);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-section h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neon-cyan);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--spacing-xl) auto 0;
  padding-top: var(--spacing-lg);
  border-top: var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Tablet */
@media (max-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.98);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    border-bottom: var(--border-glow);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--spacing-xl) var(--spacing-md);
    padding-top: 100px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  .module-preview {
    height: 160px;
  }

  .module-links {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===============================================
   WEATHER AVATAR CAROUSEL
   =============================================== */

.module-card-featured {
  grid-column: span 1;
}

.weather-preview {
  height: 280px;
  position: relative;
  background: #0a0f1a;
}

.weather-avatars {
  width: 100%;
  height: 100%;
  position: relative;
}

.weather-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.weather-avatar.active {
  opacity: 1;
}

.weather-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(transparent, rgba(10, 15, 26, 0.95));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.weather-temp {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
  font-weight: 700;
}

.weather-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Avatar hover navigation dots */
.weather-preview::after {
  content: '';
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* Card frame effect for avatars */
.weather-avatars::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(210, 180, 140, 0.3);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 1;
}

/* Gold accent glow */
.module-card-featured:hover .weather-preview {
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
}

@media (max-width: 768px) {
  .weather-preview {
    height: 220px;
  }

  .weather-temp {
    font-size: 2rem;
  }
}

/* ===============================================
   TAMAHAGANE ZEN MODULE
   =============================================== */

.zen-preview {
  height: 280px;
  position: relative;
  background: #0a0a0a;
}

.zen-avatars {
  width: 100%;
  height: 100%;
  position: relative;
}

.zen-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.zen-avatar.active {
  opacity: 1;
}

.zen-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.zen-motto {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #ff6b35, #ffd700, #00bfff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.zen-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: var(--spacing-xs);
}

/* Fire/Ice glow effect */
#tamahagane::before {
  background: linear-gradient(90deg, #ff6b35, #ffd700, #00bfff, #ff6b35);
  background-size: 300% auto;
  animation: shimmer 4s linear infinite;
}

#tamahagane:hover .zen-preview {
  box-shadow:
    inset 0 0 40px rgba(255, 107, 53, 0.15),
    inset 0 0 40px rgba(0, 191, 255, 0.15);
}

@media (max-width: 768px) {
  .zen-preview {
    height: 220px;
  }

  .zen-motto {
    font-size: 1.2rem;
  }
}

/* ===============================================
   THE FORGE MODULE
   =============================================== */

.forge-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: linear-gradient(135deg, #1a1510, #2d2518);
}

.forge-icon {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.5));
  animation: forgeGlow 2s ease-in-out infinite;
}

@keyframes forgeGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 35px rgba(255, 140, 0, 0.8));
  }
}

.forge-grid {
  display: flex;
  gap: var(--spacing-sm);
}

.forge-cell {
  width: 50px;
  height: 50px;
  border: 2px solid var(--neon-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 140, 0, 0.1);
  animation: cellPulse 2s ease-in-out infinite;
}

.forge-cell:nth-child(2) {
  animation-delay: 0.3s;
}

.forge-cell:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes cellPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

#forge::before {
  background: linear-gradient(90deg, #ff8c00, #ffd700, #ff8c00);
  background-size: 200% auto;
}

/* ===============================================
   FEAR BOX MODULE
   =============================================== */

.module-card-warning::before {
  background: linear-gradient(90deg, #ff3333, #ff6600, #ff3333) !important;
  background-size: 200% auto;
  animation: shimmer 2s linear infinite;
}

.fearbox-preview {
  background: linear-gradient(135deg, #1a0a0a, #2d1515);
  position: relative;
  overflow: hidden;
}

.grid-collapse-viz {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg);
  position: relative;
}

.power-line {
  height: 4px;
  background: linear-gradient(90deg,
      rgba(255, 200, 0, 0.8) 0%,
      rgba(255, 200, 0, 0.3) 50%,
      rgba(255, 50, 50, 0.8) 100%);
  margin: var(--spacing-sm) 0;
  border-radius: 2px;
  position: relative;
  animation: flickerLine 3s ease-in-out infinite;
}

.power-line:nth-child(1) {
  animation-delay: 0s;
}

.power-line:nth-child(2) {
  animation-delay: 0.5s;
}

.power-line:nth-child(3) {
  animation-delay: 1s;
}

.power-line.active {
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.8);
}

@keyframes flickerLine {

  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    opacity: 1;
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    opacity: 0.3;
  }
}

.blackout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blackoutPulse 4s ease-in-out infinite;
}

@keyframes blackoutPulse {

  0%,
  70%,
  100% {
    background: rgba(0, 0, 0, 0);
  }

  75%,
  95% {
    background: rgba(0, 0, 0, 0.9);
  }
}

.blackout-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff3333;
  text-shadow: 0 0 20px rgba(255, 51, 51, 0.8);
  opacity: 0;
  animation: blackoutText 4s ease-in-out infinite;
}

@keyframes blackoutText {

  0%,
  70%,
  100% {
    opacity: 0;
  }

  75%,
  95% {
    opacity: 1;
  }
}

#fearbox:hover .power-line {
  animation: none;
  opacity: 0.2;
}

#fearbox:hover .blackout-overlay {
  animation: none;
  background: rgba(0, 0, 0, 0.9);
}

#fearbox:hover .blackout-text {
  animation: none;
  opacity: 1;
}

/* ===============================================
   THE ALCHEMICAL YEAR MODULE
   =============================================== */

.alchemical-preview {
  height: 280px;
  position: relative;
  background: linear-gradient(135deg, #1a0a1f, #0f1520, #1a1510);
  overflow: hidden;
}

.alchemical-phases {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phase-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    linear-gradient(90deg, #ff6b35, #ffd700, #8b5cf6, #00d4ff) border-box;
  animation: phaseRotate 20s linear infinite;
}

.phase-icon {
  font-size: 1.8rem;
  position: absolute;
  filter: drop-shadow(0 0 10px currentColor);
}

.phase-icon:nth-child(1) {
  top: -15px;
  color: #ff6b35;
}

.phase-icon:nth-child(2) {
  right: -15px;
  color: #ffd700;
}

.phase-icon:nth-child(3) {
  bottom: -15px;
  color: #8b5cf6;
}

.phase-icon:nth-child(4) {
  left: -15px;
  color: #00d4ff;
}

@keyframes phaseRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.alchemical-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.year-text {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  line-height: 1;
}

.days-text {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-top: 4px;
}

.alchemical-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(transparent, rgba(10, 5, 15, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.alchemical-motto {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.alchemical-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* Gold/Purple glow effect on hover */
#alchemical-year::before {
  background: linear-gradient(90deg, #ff6b35, #ffd700, #8b5cf6, #00d4ff, #ff6b35);
  background-size: 400% auto;
  animation: shimmer 6s linear infinite;
}

#alchemical-year:hover .alchemical-preview {
  box-shadow:
    inset 0 0 50px rgba(255, 215, 0, 0.1),
    inset 0 0 50px rgba(139, 92, 246, 0.1);
}

/* NEW module tag styling */
.module-tag.new {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.2));
  color: var(--neon-gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
  animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

@media (max-width: 768px) {
  .alchemical-preview {
    height: 220px;
  }

  .phase-ring {
    width: 140px;
    height: 140px;
  }

  .year-text {
    font-size: 2.5rem;
  }

  .alchemical-motto {
    font-size: 0.95rem;
  }
}

/* ===============================================
   EYESPEAK HEROLINK MODULE
   =============================================== */

.eyespeak-preview {
  height: 280px;
  position: relative;
  background: linear-gradient(135deg, #0a1525, #1a0a2a, #0a1525);
  overflow: hidden;
}

.eyespeak-visualization {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-child {
  font-size: 5rem;
  animation: heroFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.5));
  z-index: 2;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.body-tracking-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tracking-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--neon-cyan);
  animation: trackingPulse 2s ease-in-out infinite;
}

.tracking-dot:nth-child(1) {
  top: 30%;
  left: 30%;
  animation-delay: 0s;
}

.tracking-dot:nth-child(2) {
  top: 40%;
  right: 30%;
  animation-delay: 0.3s;
}

.tracking-dot:nth-child(3) {
  bottom: 35%;
  left: 50%;
  animation-delay: 0.6s;
}

@keyframes trackingPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.maggie-guide {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  animation: maggieGlow 2s ease-in-out infinite;
}

@keyframes maggieGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 25px rgba(0, 191, 255, 0.9));
  }
}

.eyespeak-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(transparent, rgba(10, 21, 37, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.eyespeak-motto {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

.eyespeak-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

#eyespeak::before {
  background: linear-gradient(90deg, #00d4ff, #8b5cf6, #ff69b4, #00d4ff);
  background-size: 300% auto;
  animation: shimmer 5s linear infinite;
}

#eyespeak:hover .eyespeak-preview {
  box-shadow:
    inset 0 0 40px rgba(0, 212, 255, 0.15),
    inset 0 0 40px rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
  .eyespeak-preview {
    height: 220px;
  }

  .hero-child {
    font-size: 4rem;
  }

  .eyespeak-motto {
    font-size: 1rem;
  }
}

/* ===============================================
   MAGGIE.AI MODULE
   =============================================== */

.maggie-preview {
  height: 280px;
  position: relative;
  background: #0a0a12;
  overflow: hidden;
}

.maggie-avatars {
  width: 100%;
  height: 100%;
  position: relative;
}

.maggie-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1s ease;
}

.maggie-avatar.active {
  opacity: 1;
}

.maggie-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, rgba(10, 10, 18, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.maggie-motto {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff6b9d;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.maggie-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

#maggie::before {
  background: linear-gradient(90deg, #ff6b9d, #ffd700, #00d4ff, #ff6b9d);
  background-size: 300% auto;
  animation: shimmer 5s linear infinite;
}

#maggie:hover .maggie-preview {
  box-shadow:
    inset 0 0 40px rgba(255, 107, 157, 0.15),
    inset 0 0 40px rgba(255, 215, 0, 0.1);
}

@media (max-width: 768px) {
  .maggie-preview {
    height: 220px;
  }

  .maggie-motto {
    font-size: 1.1rem;
  }
}

/* Video Background for Modules */
.maggie-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}