/* ========================================
   PURA CABRA — PRESENTATION STYLES
   Warm orange/gold theme matching brand
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #0a0a0f; }

:root {
  --bg: #0a0a0f;
  --bg-surface: #141419;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --cyan: #ff6b35;
  --cyan-dark: #cc4400;
  --cyan-glow: rgba(255, 107, 53, 0.4);
  --purple: #ffd166;
  --purple-dark: #6e5a00;
  --purple-light: #ffe299;
  --pink: #06d6a0;
  --white: #fff;
  --text: #e8e8e8;
  --text-muted: #a8a8b2;
  --text-dim: #6b6b78;
  --text-faint: #4a4a60;
  --success: #06d6a0;
  --error: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.presentation {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ========================================
   SLIDES
   ======================================== */

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

.slide-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide-exit-left {
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

.slide-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* ========================================
   LAYOUTS
   ======================================== */

.slide-title-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.slide-center-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.slide-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.slide-two-col-reverse {
  direction: rtl;
}

.slide-two-col-reverse > * {
  direction: ltr;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.slide-eyebrow {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-weight: 600;
}

.slide-main-title {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ff6b35, #ffd166, #ff6b35);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

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

.slide-subtitle-big {
  font-size: 1.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.slide-tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

.slide-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1.5rem;
}

.slide-heading {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.slide-heading-big {
  font-size: 3.8rem;
  background: linear-gradient(135deg, #ff6b35, #ffd166, #ff6b35);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.slide-body {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  font-family: var(--font-body);
}

.slide-body strong {
  color: var(--white);
  font-weight: 600;
}

.title-icon {
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(14, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
  background: var(--cyan-dark);
  color: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.nav-prev { left: 1.5rem; }
.nav-next { right: 1.5rem; }

/* ========================================
   PROGRESS DOTS
   ======================================== */

.progress-dots {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(14, 14, 26, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 107, 53, 0.3);
}

.dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* ========================================
   SLIDE COUNTER
   ======================================== */

.slide-counter {
  position: fixed;
  top: 1.5rem; right: 2rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.6;
}

.home-link {
  position: fixed;
  top: 1.5rem;
  right: 5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(14, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 2px 12px var(--cyan-glow);
}

/* ========================================
   AUDIO CONTROLS
   ======================================== */

.audio-controls {
  position: fixed;
  top: 1.5rem; left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(14, 14, 26, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.audio-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cyan);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  padding: 4px;
  font-size: 1rem;
}

.audio-toggle:hover { color: var(--white); }

.audio-toggle.muted { color: var(--text-faint); }
.audio-toggle.muted .audio-on { display: none; }
.audio-toggle.muted .audio-off { display: block !important; }

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  border: none;
}

.audio-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  opacity: 0.5;
}

.audio-progress {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.audio-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.2s linear;
}

/* ========================================
   PLAY OVERLAY
   ======================================== */

.play-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.play-overlay-btn:hover { transform: scale(1.08); }

.play-overlay-btn span {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ========================================
   PROBLEM STATS
   ======================================== */

.problem-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.problem-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-visual-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   FEATURE PILLS
   ======================================== */

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.feature-pill {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

/* ========================================
   PIPELINE
   ======================================== */

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2rem;
  width: 100%;
  max-width: 950px;
}

.pipeline-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-phase.visible {
  opacity: 1;
  transform: translateY(0);
}

.phase-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.phase-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.phase-content p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 200px;
  font-family: var(--font-body);
}

.pipeline-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: -2rem;
}

.pipeline-illustration {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 2rem;
  border-radius: 16px;
  opacity: 0.4;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.feature-card-highlight {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.06);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.12);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-card-img {
  opacity: 1;
  transform: scale(1.08);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  font-family: var(--font-body);
}

/* ========================================
   DEMO WINDOW
   ======================================== */

.demo-window {
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(14, 14, 26, 0.6);
  border-bottom: 1px solid var(--border);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:last-child { background: #28c840; }

.demo-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.demo-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-msg {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: var(--font-body);
}

.demo-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--cyan), #e85d2c);
  color: white;
  max-width: 80%;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.25);
}

.demo-msg-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 90%;
  border-bottom-left-radius: 4px;
}

.demo-msg-ai p { margin-bottom: 0.5rem; }
.demo-msg-ai p:last-child { margin-bottom: 0; }

.demo-cite {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 500;
}

.demo-disclaimer {
  color: var(--purple);
  font-size: 0.82rem;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

/* ========================================
   WORKSPACE DEMO
   ======================================== */

.demo-workspace {
  max-width: 900px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 300px;
}

.workspace-sidebar {
  background: rgba(10, 10, 15, 0.6);
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ws-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.ws-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.ws-file:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ws-file-icon {
  flex-shrink: 0;
}

.ws-file-new {
  color: var(--cyan);
  opacity: 0.6;
  cursor: pointer;
  border: 1px dashed rgba(255, 107, 53, 0.2);
}

.ws-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ws-badge-audio {
  color: var(--purple);
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.2);
}

.ws-report-status {
  font-size: 0.78rem;
  color: var(--success);
  font-family: var(--font-body);
}

.workspace-main {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ========================================
   SEVERITY / TECH STACK
   ======================================== */

.severity-scale {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.severity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.severity-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.sev-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.severity-item.crit .sev-dot { background: var(--cyan); box-shadow: 0 0 6px rgba(255, 107, 53, 0.4); }
.severity-item.high .sev-dot { background: var(--purple); box-shadow: 0 0 6px rgba(255, 209, 102, 0.4); }
.severity-item.med .sev-dot { background: var(--info); }
.severity-item.low .sev-dot { background: var(--success); }
.severity-item.info .sev-dot { background: var(--text-dim); }

.sev-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  min-width: 90px;
}

.sev-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ========================================
   INFRASTRUCTURE
   ======================================== */

.infra-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.infra-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.infra-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.infra-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.04);
}

.infra-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.infra-icon-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  opacity: 0.9;
}

.infra-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.infra-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.infra-item span:not(.infra-icon) {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
  font-family: var(--font-body);
}

/* ========================================
   PRICING
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-4px);
}

.pricing-featured {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.05);
  box-shadow: 0 8px 40px rgba(255, 107, 53, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  color: var(--text-muted);
  vertical-align: top;
  margin-right: 2px;
}

.pricing-decimal {
  font-size: 1.8rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.pricing-grid-two {
  grid-template-columns: 1fr 1fr;
  max-width: 700px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  font-family: var(--font-body);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ========================================
   FINAL SLIDE
   ======================================== */

.slide-final {
  gap: 1rem;
}

.final-features {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.final-feature {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.final-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.final-sep {
  color: var(--text-faint);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--cyan-glow);
  font-family: var(--font);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
  color: var(--white);
}

.final-cli {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
}

.final-cli code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

/* ========================================
   ILLUSTRATIONS
   ======================================== */

.title-illustration {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 8px 40px rgba(255, 107, 53, 0.15);
  animation: float 4s ease-in-out infinite;
}

.slide-illustration {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  opacity: 0.85;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ========================================
   LANGUAGE TOGGLE
   ======================================== */

.lang-toggle {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 0;
  background: rgba(14, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  color: var(--cyan);
  background: rgba(255, 107, 53, 0.12);
  box-shadow: inset 0 0 8px rgba(255, 107, 53, 0.15);
}

/* ========================================
   RESPONSIVE — TABLET (≤ 768px)
   ======================================== */

@media (max-width: 768px) {
  .slide {
    padding: 4.5rem 1.5rem 5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
  }

  .slide-content {
    max-width: 100%;
  }

  .slide-main-title { font-size: 4rem; }
  .slide-subtitle-big { font-size: 1.4rem; }
  .slide-heading { font-size: 2rem; }
  .slide-heading-big { font-size: 2.5rem; }
  .slide-body { font-size: 1.05rem; }
  .slide-eyebrow { font-size: 0.85rem; }
  .slide-tagline { font-size: 1rem; }

  .slide-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slide-two-col-reverse { direction: ltr; }

  .slide-visual-side {
    order: -1;
  }

  .slide-illustration {
    max-height: 200px;
  }

  .title-illustration {
    width: 140px;
    height: 140px;
  }

  .pipeline-flow {
    flex-direction: column;
    gap: 0;
  }

  .pipeline-connector {
    width: 2px;
    height: 20px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--cyan), var(--purple));
  }

  .phase-number {
    width: 44px; height: 44px;
    font-size: 1.1rem;
  }

  .pipeline-illustration {
    max-width: 300px;
    margin-top: 1rem;
  }

  .problem-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .stat-number { font-size: 2.2rem; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .feature-card-img { width: 48px; height: 48px; border-radius: 10px; margin-bottom: 0.5rem; }
  .feature-card h3 { font-size: 0.9rem; }
  .feature-card p { font-size: 0.78rem; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.5rem 1.25rem;
  }

  .pricing-price { font-size: 2.8rem; }

  .demo-window {
    max-width: 100%;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .ws-section { flex: 1; min-width: 150px; }
  .ws-file { font-size: 0.72rem; padding: 0.25rem 0.4rem; }
  .ws-badge { font-size: 0.55rem; }

  .workspace-main { padding: 0.75rem; }

  .pricing-grid-two { grid-template-columns: 1fr; max-width: 400px; }

  .demo-msg { font-size: 0.82rem; padding: 0.8rem 1rem; }
  .demo-msg-user { max-width: 90%; }
  .demo-cite { font-size: 0.75rem; }
  .demo-disclaimer { font-size: 0.75rem; }

  /* Navigation — bottom corners, bigger touch targets */
  .nav-arrow {
    width: 44px; height: 44px;
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }

  .nav-prev { left: 1rem; }
  .nav-next { right: 1rem; }

  /* Audio controls — compact horizontal bar */
  .audio-controls {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 0.5rem 1rem;
    justify-content: center;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-bottom: none;
    gap: 0.5rem;
  }

  .volume-slider { width: 50px; }
  .audio-progress { width: 30px; }

  /* Progress dots — above audio bar */
  .progress-dots {
    bottom: 3.5rem;
    padding: 0.35rem 0.75rem;
  }

  .dot { width: 8px; height: 8px; }

  /* Slide counter — top right, smaller */
  .slide-counter {
    top: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
  }

  /* Language toggle — top center */
  .lang-toggle {
    top: 0.6rem;
  }

  .lang-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  /* Severity / tech stack */
  .sev-label { min-width: 70px; font-size: 0.85rem; }
  .sev-desc { font-size: 0.8rem; }

  /* Final slide */
  .final-features { flex-wrap: wrap; justify-content: center; }
  .final-feature { font-size: 0.95rem; }
  .cta-button { padding: 0.85rem 2rem; font-size: 1rem; }
  .final-cli code { font-size: 0.7rem; }
}

/* ========================================
   RESPONSIVE — PHONE (≤ 480px)
   ======================================== */

@media (max-width: 480px) {
  .slide {
    padding: 4rem 1rem 5rem;
  }

  .slide-main-title { font-size: 2.8rem; }
  .slide-subtitle-big { font-size: 1.15rem; }
  .slide-heading { font-size: 1.6rem; }
  .slide-heading-big { font-size: 2rem; }
  .slide-body { font-size: 0.95rem; line-height: 1.6; }
  .slide-tagline { font-size: 0.9rem; }

  .title-illustration {
    width: 110px;
    height: 110px;
    border-radius: 18px;
  }

  .slide-illustration {
    max-height: 160px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature-card {
    padding: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-direction: row;
  }

  .feature-card-icon {
    font-size: 1.3rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card h3 { font-size: 0.88rem; margin-bottom: 0.15rem; }
  .feature-card p { font-size: 0.75rem; }

  .problem-stats { gap: 1rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.72rem; }

  .phase-content h3 { font-size: 0.95rem; }
  .phase-content p { font-size: 0.78rem; max-width: 260px; }

  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 1.25rem 1rem; }
  .pricing-price { font-size: 2.4rem; }
  .pricing-name { font-size: 1rem; }
  .pricing-features li { font-size: 0.8rem; }

  .demo-body { padding: 1rem; gap: 0.75rem; }
  .demo-msg { padding: 0.7rem 0.85rem; font-size: 0.78rem; }

  /* Nav arrows — smaller, tighter */
  .nav-arrow { width: 38px; height: 38px; bottom: 4rem; }
  .nav-prev { left: 0.5rem; }
  .nav-next { right: 0.5rem; }

  .progress-dots {
    bottom: 3rem;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
  }

  .dot { width: 7px; height: 7px; }

  .final-features { flex-direction: column; gap: 0.25rem; }
  .final-sep { display: none; }
  .final-feature { font-size: 0.85rem; }
  .cta-button { padding: 0.75rem 1.5rem; font-size: 0.9rem; width: 100%; justify-content: center; }

  .sev-label { min-width: 60px; font-size: 0.78rem; }
  .sev-desc { font-size: 0.72rem; }

  /* Feature pills */
  .feature-pills { gap: 0.35rem; }
  .feature-pill { font-size: 0.78rem; padding: 0.25rem 0.65rem; }
}

/* ========================================
   RESPONSIVE — VERY SMALL (≤ 360px)
   ======================================== */

@media (max-width: 360px) {
  .slide-main-title { font-size: 2.2rem; }
  .slide-heading { font-size: 1.4rem; }
  .slide-heading-big { font-size: 1.7rem; }
  .slide-subtitle-big { font-size: 1rem; }

  .audio-controls { gap: 0.3rem; padding: 0.4rem 0.5rem; }
  .volume-slider { width: 35px; }
  .audio-progress { display: none; }
  .audio-divider:last-of-type { display: none; }
}

/* ========================================
   SAFE AREAS (notch / home indicator)
   ======================================== */

@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .audio-controls {
      padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .slide {
      padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
  }
}

/* ========================================
   LANDSCAPE PHONE
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .slide {
    padding: 3.5rem 3rem 3rem;
  }

  .slide-main-title { font-size: 2.5rem; }
  .slide-heading { font-size: 1.8rem; }
  .slide-heading-big { font-size: 2rem; }
  .slide-subtitle-big { font-size: 1.1rem; }

  .title-illustration {
    width: 100px;
    height: 100px;
  }

  .slide-illustration {
    max-height: 150px;
  }

  .pipeline-illustration { display: none; }

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

  .feature-card { padding: 0.65rem; }
  .feature-card-icon { font-size: 1.2rem; margin-bottom: 0.3rem; }
  .feature-card h3 { font-size: 0.8rem; }
  .feature-card p { font-size: 0.7rem; }

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

  .pricing-card { padding: 1rem 0.75rem; }
  .pricing-price { font-size: 2rem; }

  .nav-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .progress-dots { bottom: 0.5rem; }
  .audio-controls { bottom: 0; }
}
