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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #0a0814;
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.slide-title, .slide-cta h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Fallback dark theme colors (in case Tailwind CDN custom config doesn't apply) */
.bg-surface-950 { background-color: #0a0814 !important; }
.bg-surface-900 { background-color: #0f0d1a !important; }
.bg-surface-900\/50 { background-color: rgba(15, 13, 26, 0.5) !important; }
.bg-surface-900\/98 { background-color: rgba(15, 13, 26, 0.98) !important; }
.bg-surface-850 { background-color: #181526 !important; }
.bg-surface-800 { background-color: #1e1b2e !important; }
.bg-brand-500 { background-color: #6d28d9 !important; }
.bg-brand-500\/10 { background-color: rgba(109, 40, 217, 0.1) !important; }
.bg-brand-500\/5 { background-color: rgba(109, 40, 217, 0.05) !important; }
.bg-brand-400 { background-color: #7c2df5 !important; }
.hover\:bg-brand-600:hover { background-color: #5b21b6 !important; }
.text-brand-300 { color: #9355f7 !important; }
.text-brand-400 { color: #7c2df5 !important; }
.from-brand-400 { --tw-gradient-from: #7c2df5; }
.from-brand-500 { --tw-gradient-from: #6d28d9; }
.to-brand-600 { --tw-gradient-to: #5b21b6; }
.border-brand-500\/20 { border-color: rgba(109, 40, 217, 0.2) !important; }

::selection {
  background: rgba(109, 40, 217, 0.4);
  color: #fff;
}

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0814;
}
::-webkit-scrollbar-thumb {
  background: #2e1065;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4c1d95;
}

/* ═══════════════ GRADIENT TEXT ═══════════════ */
.text-gradient {
  background: linear-gradient(135deg, #9355f7 0%, #6d28d9 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav-scrolled {
  background: rgba(10, 8, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s;
}
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════ HERO ═══════════════ */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stat-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 40, 217, 0.2);
  transform: translateY(-2px);
}

/* ═══════════════ HERO TERMINAL ═══════════════ */
.hero-terminal {
  border-radius: 1rem;
  background: #0c0a18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(109, 40, 217, 0.06);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
}
.terminal-tab.active {
  background: rgba(109, 40, 217, 0.15);
  color: #b68dfa;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 340px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow: hidden;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.terminal-scene-dot.active {
  background: #6d28d9;
  width: 18px;
  border-radius: 3px;
}

/* Terminal line animations */
.t-line {
  opacity: 0;
  transform: translateY(6px);
  animation: t-line-in 0.3s ease forwards;
}

@keyframes t-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.t-comment { color: #4a5568; }
.t-keyword { color: #c084fc; }
.t-fn { color: #60a5fa; }
.t-string { color: #4ade80; }
.t-number { color: #fb923c; }
.t-operator { color: #94a3b8; }
.t-output { color: #22d3ee; }
.t-success { color: #4ade80; }
.t-error { color: #f87171; }
.t-dim { color: #475569; }
.t-prompt { color: #6d28d9; }
.t-highlight { color: #fbbf24; }
.t-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.t-badge-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.t-badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.t-badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.t-badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #6d28d9;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.t-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0;
  overflow: hidden;
}
.t-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6d28d9, #3b82f6);
  animation: progress-fill 2s ease-in-out forwards;
}
@keyframes progress-fill {
  from { width: 0; }
}

.t-flow-arrow {
  color: #6d28d9;
  font-weight: bold;
}

/* ═══════════════ SERVICE CARDS ═══════════════ */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 40, 217, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(109, 40, 217, 0.08);
}

/* ═══════════════ PROJECT CARDS ═══════════════ */
.project-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(109, 40, 217, 0.2);
}

/* Project meta cards (origin, value, duration) */
.project-meta-card {
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* AI engine tags */
.ai-engine-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.625rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(109, 40, 217, 0.15);
  color: #b68dfa;
  font-size: 0.6875rem;
  font-weight: 600;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.15);
  color: #b68dfa;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ═══════════════ TECH STACK ═══════════════ */
.tech-stack-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
}
.tech-stack-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 40, 217, 0.2);
}

.tech-item {
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: all 0.2s;
}
.tech-item:hover {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.2);
  color: #fff;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact-card {
  display: block;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.4s;
  text-decoration: none;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 40, 217, 0.3);
  transform: translateY(-4px);
}

/* ═══════════════ AI FUNNEL BUILDER ═══════════════ */
.funnel-builder {
  border-radius: 1rem;
  background: #0c0a18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(109, 40, 217, 0.05);
}

.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.funnel-canvas {
  display: flex;
  gap: 0;
  min-height: 420px;
  position: relative;
}
.funnel-sidebar {
  width: 90px;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.funnel-tool {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  color: #94a3b8;
  cursor: grab;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}
.funnel-tool:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.funnel-flow {
  flex: 1;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  background-image:
    radial-gradient(circle, rgba(109, 40, 217, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Nodes */
.funnel-node {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}
.funnel-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(109, 40, 217, 0.3);
  transform: translateX(4px);
}

.node-animate {
  opacity: 0;
  transform: translateX(-20px);
  animation: node-slide-in 0.5s ease forwards;
}
@keyframes node-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-content {
  flex: 1;
  min-width: 0;
}
.node-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.node-desc {
  font-size: 0.625rem;
  color: #64748b;
}

.node-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.badge-active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-ai {
  background: rgba(109, 40, 217, 0.12);
  color: #b68dfa;
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.node-stats {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.stat-mini {
  font-size: 0.5625rem;
  color: #64748b;
}
.stat-mini span {
  font-weight: 700;
}

.node-status {
  flex-shrink: 0;
}

/* Connectors */
.funnel-connector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.125rem 0 0.125rem 1rem;
  height: 28px;
}
.connector-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.4), rgba(109, 40, 217, 0.1));
  border-radius: 1px;
  position: relative;
}
.connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d28d9;
  animation: connector-pulse 2s ease-in-out infinite;
}
@keyframes connector-pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(12px); }
}

.connector-label {
  font-size: 0.5625rem;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  text-transform: lowercase;
}

.connector-branch {
  display: flex;
  gap: 0.5rem;
}
.branch-hot {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #f87171;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  background: rgba(248, 113, 113, 0.1);
}
.branch-warm {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fbbf24;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  background: rgba(251, 191, 36, 0.1);
}

.funnel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile: hide sidebar */
@media (max-width: 640px) {
  .funnel-sidebar {
    display: none;
  }
  .funnel-canvas {
    min-height: 360px;
  }
}

/* ═══════════════ USE CASE CARDS ═══════════════ */
.usecase-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.usecase-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(109, 40, 217, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 80px rgba(109, 40, 217, 0.1);
}
.usecase-card:hover .flex.items-center.gap-2 {
  gap: 0.75rem;
}

/* ═══════════════ USE CASE MODAL ═══════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 3, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-overlay.hidden { display: none; }

.modal-content {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: linear-gradient(160deg, #100d20 0%, #0a0814 50%, #0d0820 100%);
  border: 1px solid rgba(109, 40, 217, 0.15);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(109, 40, 217, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal glow effect */
.modal-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6d28d9, #3b82f6, transparent);
  border-radius: 2px;
  z-index: 1;
}

.modal-slide-container {
  flex: 1;
  overflow-y: auto;
  min-height: 380px;
  position: relative;
}

/* Slide canvas dot grid */
.modal-slide-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(109, 40, 217, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

#slide-content {
  position: relative;
  z-index: 1;
}

/* ── Slide Title ── */
.slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.slide-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Animated VS divider ── */
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.vs-line {
  flex: 1;
  height: 1px;
}
.vs-line-red { background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4)); }
.vs-line-green { background: linear-gradient(270deg, transparent, rgba(34, 197, 94, 0.4)); }
.vs-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(109, 40, 217, 0.15);
  color: #b68dfa;
  border: 1px solid rgba(109, 40, 217, 0.25);
  animation: vs-pulse 2s ease-in-out infinite;
}
@keyframes vs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(109, 40, 217, 0.15); }
}

/* ── Comparison Grid ── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

/* ── Old Way Panel ── */
.old-way {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(239, 68, 68, 0.01) 100%);
  border: 1px solid rgba(239, 68, 68, 0.12);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-20px);
  animation: panel-in-left 0.5s 0.2s ease forwards;
}
.old-way::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #f87171, rgba(239, 68, 68, 0.2));
  border-radius: 3px;
}
.old-way::after {
  content: '✕';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
@keyframes panel-in-left {
  to { opacity: 1; transform: translateX(0); }
}

.old-way-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

/* ── New Way Panel ── */
.new-way {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(109, 40, 217, 0.03) 100%);
  border: 1px solid rgba(34, 197, 94, 0.12);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(20px);
  animation: panel-in-right 0.5s 0.35s ease forwards;
}
.new-way::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #4ade80, rgba(109, 40, 217, 0.4));
  border-radius: 3px;
}
.new-way::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}
@keyframes panel-in-right {
  to { opacity: 1; transform: translateX(0); }
}

.new-way-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

/* ── Panel Content ── */
.panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.panel-text {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ── Animated Stat Counter ── */
.panel-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.panel-stat-value {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1;
}
.panel-stat-label {
  font-size: 0.6875rem;
  color: #475569;
  line-height: 1.3;
}

/* Stat glow animation */
.stat-glow-red {
  text-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}
.stat-glow-green {
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* ── CTA Slide ── */
.slide-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.slide-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.slide-cta h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
}
.slide-cta p {
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ── Slide Navigation Dots ── */
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}
.slide-dot:hover {
  background: rgba(255, 255, 255, 0.2);
}
.slide-dot.active {
  background: #6d28d9;
  width: 28px;
  border-radius: 4px;
  border-color: rgba(109, 40, 217, 0.4);
  box-shadow: 0 0 12px rgba(109, 40, 217, 0.3);
}

/* ── Slide Transition ── */
.slide-fade-enter {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}
.slide-fade-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer-link {
  font-size: 0.8125rem;
  color: #64748b;
  transition: color 0.2s;
  display: inline-block;
}
.footer-link:hover {
  color: #fff;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.step-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s;
}
.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(109, 40, 217, 0.25);
  transform: translateY(-4px);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}
.step-connector {
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.4), transparent);
}
@media (max-width: 768px) {
  .step-connector { display: none; }
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-1000 { animation-delay: 1s; }

/* ═══════════════ REVEAL ON SCROLL ═══════════════ */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-section:nth-child(2) { transition-delay: 0.1s; }
.reveal-section:nth-child(3) { transition-delay: 0.2s; }
.reveal-section:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 640px) {
  .stat-card {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .project-card {
    padding: 1.5rem;
  }
}
