/* ============================================
   MEGAMIND AGI - thataiguy.org
   Blue/Purple/White/Black Neural Theme
   Version 4.0 - Complete Redesign
   ============================================ */

/* ============================================
   CSS Variables & Design System
   ============================================ */
:root {
  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --display: 'Space Grotesk', sans-serif;

  /* Core Palette - Blue/Purple/White/Black */
  --black: #000000;
  --black-deep: #030308;
  --black-soft: #0a0a12;
  --black-elevated: #12121f;

  --white: #ffffff;
  --white-soft: #f0f2ff;
  --white-muted: #c8cce6;

  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;

  /* Semantic Colors */
  --bg: var(--black-deep);
  --bg-elevated: var(--black-soft);
  --bg-card: rgba(15, 15, 30, 0.9);
  --bg-glass: rgba(10, 10, 20, 0.85);

  --text: var(--white);
  --text-secondary: var(--white-muted);
  --text-muted: #6b7280;

  --primary: var(--blue-500);
  --primary-bright: var(--blue-400);
  --primary-dim: rgba(59, 130, 246, 0.2);

  --accent: var(--purple-500);
  --accent-bright: var(--purple-400);
  --accent-dim: rgba(139, 92, 246, 0.2);

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --cyan: #06b6d4;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--blue-500) 0%, var(--purple-500) 100%);
  --gradient-primary-bright: linear-gradient(135deg, var(--blue-400) 0%, var(--purple-400) 100%);
  --gradient-neural: linear-gradient(135deg, var(--blue-600) 0%, var(--purple-600) 50%, var(--blue-500) 100%);
  --gradient-dark: linear-gradient(180deg, var(--black-deep) 0%, var(--black-soft) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.25) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.4);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.4);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.6);

  /* Borders */
  --border: rgba(139, 92, 246, 0.2);
  --border-bright: rgba(139, 92, 246, 0.4);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height: 72px;
  --max-width: 1440px;
  --content-width: 1200px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--purple-500);
  color: var(--white);
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover {
  color: var(--purple-400);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.shimmer-text {
  background: linear-gradient(90deg, var(--blue-400) 0%, var(--purple-400) 50%, var(--blue-400) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

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

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   Neural Background
   ============================================ */
#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg);
}

.neural-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--gradient-mesh);
  opacity: 0.6;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
}

.noise-overlay svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Preloader
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--black-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  animation: preload 1.5s ease-in-out forwards;
}

@keyframes preload {
  0% { width: 0%; }
  100% { width: 100%; }
}

.preloader-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.2em;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(3, 3, 8, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--black-soft);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 4rem) var(--space-lg) 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-300);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}

.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Panels (Dashboard Components)
   ============================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-status {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.panel-body {
  padding: 1.5rem;
}

/* ============================================
   Metrics
   ============================================ */
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.metric-value {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--white);
  font-weight: 500;
}

.metric-value.highlight {
  color: var(--purple-400);
}

.metric-value.cyan {
  color: var(--cyan);
}

.metric-value.blue {
  color: var(--blue-400);
}

/* ============================================
   Real-time Metrics Bar
   ============================================ */
.metrics-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 0 2rem;
}

.metrics-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.metrics-bar-label {
  color: var(--text-muted);
}

.metrics-bar-value {
  color: var(--blue-400);
  font-weight: 600;
}

.metrics-bar-value.purple {
  color: var(--purple-400);
}

.metrics-bar-value.success {
  color: var(--success);
}

.metrics-bar-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .metrics-bar {
    gap: 1.5rem;
    overflow-x: auto;
    justify-content: flex-start;
  }
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--black-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-500/20);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   Chat Interface
   ============================================ */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height) - 48px);
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) var(--space-lg) calc(48px + 2rem);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.chat-message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.chat-avatar.ai {
  background: var(--gradient-primary);
  color: var(--white);
}

.chat-avatar.user {
  background: var(--black-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chat-bubble {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.chat-message.ai .chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-message.user .chat-bubble {
  background: var(--gradient-primary);
  color: var(--white);
}

.chat-metrics {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.chat-metric {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-metric-value {
  color: var(--blue-400);
}

.chat-input-area {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.chat-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  resize: none;
  min-height: 56px;
  max-height: 200px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--purple-500);
}

.chat-send {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chat-send:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-purple);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4rem 0 calc(48px + 2rem);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-link a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 2rem var(--space-lg) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ============================================
   Animations
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: animateIn 0.6s var(--ease-out) forwards;
}

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

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Utility Classes
   ============================================ */
.highlight { color: var(--purple-400); }
.blue { color: var(--blue-400); }
.cyan { color: var(--cyan); }
.success { color: var(--success); }

/* ============================================
   Contact Cards
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.contact-card:hover::before,
.contact-card.featured::before {
  opacity: 1;
}

.contact-card.featured {
  border-color: var(--purple-500);
  box-shadow: var(--shadow-glow-purple);
}

.contact-tier {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-features {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-feature svg {
  color: var(--success);
  flex-shrink: 0;
}

.contact-btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* ============================================
   Connection Status
   ============================================ */
.connection-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.connection-status.connected {
  background: var(--success);
  animation: pulse 2s infinite;
}

.connection-status.disconnected {
  background: var(--error);
}

/* ============================================
   Error State
   ============================================ */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 2rem;
}

.error-icon {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--error);
}

.error-title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.error-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
