:root {
  --bg: #050508;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-bright: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --glass-blur: 20px;
  --accent: #ff3b30;
  --accent-dim: #cc3026;
  --accent-glow: rgba(255, 59, 48, 0.2);
  --gold: #f5a623;
  --gold-dim: #c48a1d;
  --gold-glow: rgba(245, 166, 35, 0.15);
  --green: #30d158;
  --blue: #0a84ff;
  --purple: #bf5af2;
  --text: #f5f5f7;
  --text-dim: #a0a0a8;
  --text-faint: #58585e;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Animated Background ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.bg-glow-1 {
  width: 600px; height: 600px; background: var(--accent);
  top: -100px; left: -100px;
  animation: float1 20s ease-in-out infinite;
}
.bg-glow-2 {
  width: 500px; height: 500px; background: var(--gold);
  bottom: -50px; right: -50px;
  animation: float2 25s ease-in-out infinite;
}
.bg-glow-3 {
  width: 400px; height: 400px; background: var(--purple);
  top: 40%; left: 50%; opacity: 0.08;
  animation: float3 30s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(100px,80px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,-60px) scale(1.15); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-30%,-60%) scale(1.2); } }

/* ── Slide Container ── */
#deck {
  width: 100vw; height: 100vh;
  position: relative; z-index: 1;
}

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 60px 80px 100px;
  opacity: 0;
  transform: translateX(50px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  overflow-y: auto; overflow-x: hidden;
}
.slide::-webkit-scrollbar { width: 0; }
.slide.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.slide.prev { transform: translateX(-50px) scale(0.98); }

/* ── Glass Cards ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ── Progress Bar ── */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.03); z-index: 100; }
#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ── Branding ── */
.brand-tag {
  position: fixed; top: 22px; left: 30px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: 2.5px; color: var(--text-dim);
  z-index: 100; display: flex; align-items: center; gap: 8px;
}
.brand-tag .dot-mark {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }
.brand-tag span { color: var(--accent); }

.presenter-tag {
  position: fixed; top: 22px; right: 30px;
  font-size: 12px; color: var(--text-faint); z-index: 100; text-align: right;
}
.presenter-tag strong { color: var(--text-dim); display: block; font-size: 13px; font-weight: 600; }

/* ── Navigation ── */
#nav {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 12px 24px; z-index: 100;
}

.nav-btn {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-dim); cursor: pointer; font-size: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); transform: scale(1.1); }
.nav-btn:disabled { opacity: 0.2; cursor: default; transform: none; }
.nav-btn:disabled:hover { color: var(--text-faint); border-color: var(--glass-border); background: var(--glass); transform: none; }

#slide-counter {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); min-width: 70px; text-align: center; letter-spacing: 1.5px;
}

#dot-nav { display: flex; gap: 8px; align-items: center; padding: 0 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dot:hover { background: var(--text-dim); transform: scale(1.3); }
.dot.active { background: var(--accent); width: 28px; border-radius: 4px; box-shadow: 0 0 12px var(--accent-glow); }

/* ── Typography ── */
.slide-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 20px; display: inline-block; padding: 5px 14px;
  border: 1px solid var(--accent); border-radius: 100px; background: var(--accent-glow);
}

.slide-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 50px; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 16px; max-width: 900px; text-align: center;
}
.slide-title .accent { color: var(--accent); }
.slide-title .gold { color: var(--gold); }

.slide-subtitle {
  font-size: 20px; color: var(--text-dim); font-weight: 400;
  max-width: 780px; line-height: 1.55; margin-bottom: 44px; text-align: center;
}

/* ── Glass Card Grid ── */
.card-grid { display: grid; gap: 20px; max-width: 1040px; width: 100%; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover {
  background: var(--glass-bright); border-color: var(--glass-border-bright);
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.card:hover::before { opacity: 1; }

.card-icon { font-size: 34px; margin-bottom: 16px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }

/* ── Stats ── */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; max-width: 1000px; }
.stat { text-align: center; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 56px; line-height: 1; color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.stat-value.gold { color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }
.stat-value.green { color: var(--green); text-shadow: 0 0 30px rgba(48, 209, 88, 0.2); }
.stat-value.blue { color: var(--blue); text-shadow: 0 0 30px rgba(10, 132, 255, 0.2); }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2.5px; margin-top: 10px; }

/* ── Comparison Table ── */
.cmp-table {
  width: 100%; max-width: 1000px; border-collapse: separate; border-spacing: 0;
  font-size: 14.5px; border-radius: var(--radius); overflow: hidden;
}
.cmp-table th {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); padding: 18px 16px;
  border-bottom: 1px solid var(--glass-border-bright);
  text-align: left; background: var(--glass); backdrop-filter: blur(10px);
}
.cmp-table th.highlight { color: var(--accent); }
.cmp-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--glass-border);
  color: var(--text); background: var(--glass); backdrop-filter: blur(10px);
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td.highlight { color: var(--accent); font-weight: 600; }
.cmp-table tr:hover td { background: var(--glass-bright); }
.cmp-table .num { font-family: 'JetBrains Mono', monospace; text-align: right; }
.cmp-table .win { color: var(--green); font-weight: 600; }
.cmp-table .loss { color: var(--text-faint); }

/* ── Bar Chart ── */
.bar-chart { display: flex; flex-direction: column; gap: 16px; max-width: 720px; width: 100%; }
.bar-row { display: flex; align-items: center; gap: 16px; }
.bar-label { width: 150px; font-size: 14px; font-weight: 500; text-align: right; flex-shrink: 0; }
.bar-track {
  flex: 1; height: 32px; background: var(--glass);
  backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
  border-radius: 8px; overflow: hidden; position: relative;
}
.bar-fill {
  height: 100%; border-radius: 7px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; color: white;
  white-space: nowrap; position: relative; overflow: hidden;
}
.bar-fill::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  border-radius: 7px;
}
.bar-fill.accent { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); box-shadow: 0 0 20px var(--accent-glow); }
.bar-fill.gold { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); box-shadow: 0 0 20px var(--gold-glow); }
.bar-fill.blue { background: linear-gradient(90deg, #0055aa, var(--blue)); box-shadow: 0 0 20px rgba(10, 132, 255, 0.15); }
.bar-fill.purple { background: linear-gradient(90deg, #8b3dcc, var(--purple)); box-shadow: 0 0 20px rgba(191, 90, 242, 0.15); }
.bar-fill.dim { background: rgba(255, 255, 255, 0.1); color: var(--text-dim); }

/* ── Hero Slide ── */
.hero-slide { text-align: center; }
.hero-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px;
  padding: 7px 18px; margin-bottom: 32px;
  text-transform: uppercase; letter-spacing: 2px;
  background: var(--accent-glow); backdrop-filter: blur(10px);
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 80px; line-height: 1.05; letter-spacing: -3px;
  margin-bottom: 24px; text-shadow: 0 0 60px var(--accent-glow);
}
.hero-title .accent { color: var(--accent); }
.hero-title .gold { color: var(--gold); }
.hero-subtitle {
  font-size: 22px; color: var(--text-dim);
  max-width: 700px; margin: 0 auto 44px; line-height: 1.55;
}
.hero-stats { display: flex; gap: 52px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ── CTA Slide ── */
.cta-slide { text-align: center; }
.cta-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 60px; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px;
}
.cta-subtitle { font-size: 20px; color: var(--text-dim); max-width: 600px; margin: 0 auto 44px; line-height: 1.55; }
.cta-btn {
  display: inline-block; background: var(--accent); color: white;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 17px; padding: 16px 42px; border-radius: 100px;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 8px; border: 1px solid var(--accent); box-shadow: 0 4px 20px var(--accent-glow);
}
.cta-btn:hover { background: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }
.cta-btn.secondary {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-bright); color: var(--text); box-shadow: var(--glass-shadow);
}
.cta-btn.secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── Feature List ── */
.feature-list { display: flex; flex-direction: column; gap: 0; max-width: 680px; padding: 36px 40px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--glass-border);
}
.feature-item:last-child { border-bottom: none; }
.feature-check { color: var(--green); font-size: 18px; flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 0 8px rgba(48, 209, 88, 0.3)); }
.feature-text { font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.feature-text strong { color: var(--text); }

/* ── Use Case Cards ── */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; width: 100%; }
.usecase-card {
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.usecase-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.usecase-card:hover::before { transform: scaleX(1); }
.usecase-card:hover {
  background: var(--glass-bright); border-color: var(--glass-border-bright);
  transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.usecase-card .emoji { font-size: 36px; margin-bottom: 16px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.usecase-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.usecase-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; margin-bottom: 14px; }
.usecase-card .tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--gold);
  background: var(--gold-glow); border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 4px; padding: 3px 9px;
}

/* ── Price Cards ── */
.price-cards { display: flex; gap: 20px; max-width: 1000px; width: 100%; justify-content: center; }
.price-card {
  padding: 36px; flex: 1; max-width: 300px; text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 50px var(--accent-glow), var(--glass-shadow); }
.price-card.featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.price-card:hover { transform: translateY(-4px); }
.price-card .price-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 10px; color: var(--text-dim); }
.price-card .price-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; margin-bottom: 4px; }
.price-card .price-value.accent { color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.price-card .price-unit { font-size: 13px; color: var(--text-faint); margin-bottom: 22px; }
.price-card .price-detail { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.price-card .price-badge {
  display: inline-block; font-size: 10.5px; font-family: 'JetBrains Mono', monospace;
  background: var(--accent); color: white; border-radius: 100px;
  padding: 4px 12px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* ── Sources ── */
.sources { font-size: 11px; color: var(--text-faint); text-align: center; max-width: 600px; line-height: 1.5; margin-top: 24px; }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.slide.active .animate-in { animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.slide.active .animate-scale { animation: fadeInScale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.slide.active .animate-in:nth-child(1) { animation-delay: 0.1s; }
.slide.active .animate-in:nth-child(2) { animation-delay: 0.2s; }
.slide.active .animate-in:nth-child(3) { animation-delay: 0.3s; }
.slide.active .animate-in:nth-child(4) { animation-delay: 0.4s; }
.slide.active .animate-in:nth-child(5) { animation-delay: 0.5s; }
.slide.active .animate-in:nth-child(6) { animation-delay: 0.6s; }
.slide.active .animate-in:nth-child(7) { animation-delay: 0.7s; }

/* ── Keyboard Hints ── */
.kbd-hint {
  position: fixed; bottom: 30px; right: 30px;
  font-size: 11px; color: var(--text-faint); z-index: 100;
  display: flex; align-items: center; gap: 6px;
}
.kbd {
  font-family: 'JetBrains Mono', monospace;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 4px;
  padding: 3px 7px; font-size: 10px; color: var(--text-dim);
}

@media (max-width: 768px) {
  .slide { padding: 40px 20px 100px; }
  .hero-title { font-size: 46px; }
  .slide-title { font-size: 32px; }
  .cta-title { font-size: 40px; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .price-cards { flex-direction: column; align-items: center; }
  .stat-row { gap: 28px; }
  .stat-value { font-size: 42px; }
  .brand-tag, .presenter-tag, .kbd-hint { display: none; }
  .feature-list { padding: 24px 28px; }
  .bar-label { width: 100px; font-size: 12px; }
}