/* Foodengine Presentation Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-glass: rgba(245, 247, 250, 0.9);

  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.75);
  --text-muted: rgba(26, 26, 46, 0.55);

  --accent-primary: #ff6b35;
  --accent-secondary: #ff8c5a;
  --accent-gradient: linear-gradient(135deg, #ff6b35, #ff8c5a, #ffb347);

  --success: #22c55e;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 10px 40px rgba(255, 107, 53, 0.15);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --slide-padding: 80px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Presentation Container */
.presentation {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Slide Base Styles */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--slide-padding);
  padding-bottom: calc(var(--slide-padding) + 60px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  background: var(--bg-primary);
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 100;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0s;
}

.slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100px);
  z-index: 1;
}

/* Slide Content */
.slide-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.slide-content.left-align {
  text-align: left;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo Styles */
.logo {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.logo-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}

@media (max-width: 768px) {
  .logo-image {
    max-width: 300px;
  }
}

/* Split Layout for Image + Text Slides */
.split-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  text-align: left;
}

.split-layout.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
  min-width: 300px;
}

.split-text h2 {
  text-align: left;
}

.split-text h3 {
  text-align: left;
}

.split-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.slide-screenshot {
  max-width: 100%;
  max-height: 450px;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
  object-fit: contain;
}

.feature-list.compact {
  margin-top: 1.5rem;
  max-width: 100%;
}

.feature-list.compact li {
  padding: 0.6rem 0;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .split-layout.reverse {
    flex-direction: column;
  }

  .split-text {
    min-width: auto;
    order: 2;
  }

  .split-image {
    min-width: auto;
    max-width: 100%;
    order: 1;
  }

  .split-text h2,
  .split-text h3 {
    text-align: center;
  }

  .slide-screenshot {
    max-height: 350px;
  }

  .feature-list.compact {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .slide-screenshot {
    max-height: 280px;
    border-radius: 12px;
  }
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
  line-height: 1.6;
}

/* Feature Note (callout text below feature list) */
.feature-note {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 107, 53, 0.08);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 100%;
}

@media (max-width: 768px) {
  .feature-note {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}

/* Step Cards */
.steps-container {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(10px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.step-card p {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
}

/* List Styles */
.feature-list {
  list-style: none;
  text-align: left;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .check {
  width: 28px;
  height: 28px;
  background: rgba(74, 222, 128, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Channel Icons Grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.channel-icon {
  width: 100px;
  height: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.channel-icon:hover {
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.channel-item span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* QR Code Section */
.qr-demo {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
}

.qr-visual {
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-visual::before {
  content: '';
  width: 150px;
  height: 150px;
  background:
    linear-gradient(90deg, var(--text-primary) 50%, transparent 50%),
    linear-gradient(90deg, var(--text-primary) 50%, transparent 50%),
    linear-gradient(0deg, var(--text-primary) 50%, transparent 50%),
    linear-gradient(0deg, var(--text-primary) 50%, transparent 50%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px, 0 0, 10px 10px;
  opacity: 0.2;
}

.qr-steps {
  flex: 1;
  text-align: left;
}

.qr-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.qr-step-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.qr-step-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.qr-step-content p {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  z-index: 100;
}

/* Navigation Controls */
.nav-controls {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 1rem;
  z-index: 100;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.nav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Slide Counter */
.slide-counter {
  position: fixed;
  bottom: 40px;
  left: 40px;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 100;
}

.slide-counter .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Background Decorations */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bg-glow.top-right {
  top: -200px;
  right: -200px;
}

.bg-glow.bottom-left {
  bottom: -200px;
  left: -200px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --slide-padding: 40px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .qr-demo {
    flex-direction: column;
    gap: 2rem;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-box {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --slide-padding: 22px;
  }

  /* ── Typography ── */
  h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }

  h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* ── Logo ── */
  .logo-image {
    max-width: 220px;
  }

  /* ── Stats grid: 3 large cards filling full width ── */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    width: 100%;
  }

  .stat-item {
    padding: 1.5rem 0.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

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

  .stat-label {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    text-align: center;
    line-height: 1.3;
  }

  /* ── Channel grid: bigger, app-icon style ── */
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    width: 100%;
  }

  .channel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .channel-icon {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
    border-radius: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .channel-item span {
    font-size: 0.95rem;
    font-weight: 600;
  }

  /* ── Feature cards: horizontal layout to prevent cutoff ── */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .feature-card {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.3rem;
    border-radius: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card-text {
    flex: 1;
  }

  .feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .feature-card p {
    font-size: 0.875rem;
    margin: 0;
  }

  /* ── Steps ── */
  .steps-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .step-card {
    max-width: 100%;
    min-width: auto;
    padding: 1.25rem;
    padding-top: 1.75rem;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    top: -14px;
    left: 18px;
  }

  .step-card h4 {
    font-size: 1rem;
  }

  .step-card p {
    font-size: 0.875rem;
  }

  /* ── Feature list (checklist) ── */
  .feature-list {
    margin-top: 1.25rem;
  }

  .feature-list li {
    padding: 0.7rem 0;
    font-size: 1rem;
    gap: 0.75rem;
  }

  .feature-list .check {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* ── QR demo ── */
  .qr-demo {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .qr-visual {
    width: 150px;
    height: 150px;
  }

  .qr-visual::before {
    width: 110px;
    height: 110px;
    background-size: 15px 15px;
  }

  .qr-step {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .qr-step-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .qr-step-content h4 {
    font-size: 1rem;
  }

  .qr-step-content p {
    font-size: 0.9rem;
  }

  /* ── CTA button ── */
  .cta-button {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    margin-top: 2rem;
    border-radius: 50px;
    width: 100%;
    justify-content: center;
  }

  /* ── Navigation ── */
  .nav-controls {
    bottom: 15px;
    right: 15px;
    gap: 0.75rem;
  }

  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .slide-counter {
    bottom: 20px;
    left: 15px;
    font-size: 0.85rem;
  }

  .progress-bar {
    height: 3px;
  }

  .bg-glow {
    width: 280px;
    height: 280px;
    opacity: 0.5;
  }

  /* ── Pain points / benefits ── */
  .benefits-grid {
    margin: 1.5rem auto;
  }

  /* ── Comparison ── */
  .comparison-boxes {
    gap: 1rem;
  }

  .comparison-box {
    min-width: auto;
    padding: 1.25rem;
  }

  .competitor-table {
    font-size: 0.85rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 0.75rem 1rem;
  }

  .table-header {
    font-size: 0.75rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  :root {
    --slide-padding: 16px;
  }

  .slide {
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: 80px;
  }

  /* Title & CTA slides: spread content evenly to fill screen */
  .slide[data-slide="1"],
  .slide[data-slide="22"] {
    justify-content: space-evenly;
    padding-top: 40px;
  }

  /* Stats slide: also spread evenly */
  .slide[data-slide="4"] {
    justify-content: space-evenly;
    padding-top: 30px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  h3 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  .logo-image {
    max-width: 200px;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

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

  .channel-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    border-radius: 14px;
  }

  .channel-item span {
    font-size: 0.75rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .feature-card h4 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

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

  .stat-item {
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  .qr-visual {
    width: 120px;
    height: 120px;
  }

  .qr-visual::before {
    width: 90px;
    height: 90px;
  }

  .split-layout {
    gap: 1rem;
  }

  .split-image {
    max-width: 85%;
  }

  .feature-list.compact li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .feature-list .check {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .nav-controls {
    bottom: 12px;
    right: 12px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .slide-counter {
    bottom: 18px;
    left: 12px;
    font-size: 0.8rem;
  }

  .pain-points {
    gap: 0.5rem;
  }

  .pain-point {
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .pain-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .pain-point span {
    font-size: 0.85rem;
  }

  .benefits-grid {
    gap: 0.5rem;
    margin: 1rem auto;
  }

  .benefit-item {
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .benefit-item span {
    font-size: 0.85rem;
  }

  .comparison-boxes {
    gap: 0.75rem;
  }

  .comparison-box {
    padding: 1rem;
    border-radius: 14px;
  }

  .comparison-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .comparison-row {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .savings-highlight {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
  }

  .savings-amount {
    font-size: 1.25rem;
  }

  .savings-note {
    font-size: 0.85rem;
  }

  .competitor-table {
    border-radius: 14px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  .table-header {
    font-size: 0.7rem;
  }

  .step-card {
    padding: 1rem;
    padding-top: 1.5rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    top: -12px;
    left: 16px;
  }

  .step-card h4 {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .step-card p {
    font-size: 0.85rem;
  }

  .steps-container {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  .qr-demo-container {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .qr-image {
    width: 160px;
    height: 160px;
  }

  .qr-code-large {
    padding: 1rem;
    border-radius: 16px;
  }

  .qr-instructions p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .qr-note {
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  .comparison-note {
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.slide.active .slide-content>* {
  animation: fadeInUp 0.6s ease forwards;
}

.slide.active .slide-content>*:nth-child(1) {
  animation-delay: 0.1s;
}

.slide.active .slide-content>*:nth-child(2) {
  animation-delay: 0.2s;
}

.slide.active .slide-content>*:nth-child(3) {
  animation-delay: 0.3s;
}

.slide.active .slide-content>*:nth-child(4) {
  animation-delay: 0.4s;
}

.slide.active .slide-content>*:nth-child(5) {
  animation-delay: 0.5s;
}

/* Social Logos Grid */
.social-grid {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  border-color: var(--accent-primary);
}

.social-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 900px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .benefit-item {
    padding: 1rem;
    gap: 0.75rem;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .benefit-item span {
    font-size: 0.95rem;
  }
}

/* Problem/Pain Points */
.pain-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 900px;
}

.pain-point {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
}

.pain-icon {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ef4444;
}

.pain-point span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .pain-points {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .pain-point {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pain-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .pain-point span {
    font-size: 0.95rem;
  }
}

/* Before/After Comparison Boxes */
.comparison-boxes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.comparison-box {
  background: var(--bg-glass);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  min-width: 300px;
  flex: 1;
  max-width: 400px;
}

.comparison-box.without {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.comparison-box.with {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.comparison-box h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row span {
  color: var(--text-secondary);
}

.comparison-row strong {
  font-weight: 600;
}

.comparison-row.total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.comparison-row.total strong {
  font-size: 1.25rem;
}

.negative {
  color: #ef4444 !important;
}

.positive {
  color: #22c55e !important;
}

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

/* Savings Highlight */
.savings-highlight {
  margin-top: 2rem;
  padding: 1.5rem 3rem;
  background: var(--accent-gradient);
  border-radius: 100px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}

.savings-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.savings-note {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Competitor Comparison Table */
.competitor-table {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem 1.5rem;
}

.table-header {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-row {
  border-top: 1px solid var(--border);
}

.table-row.competitor {
  color: var(--text-secondary);
}

.table-row.foodengine {
  background: rgba(34, 197, 94, 0.08);
  font-weight: 600;
}

.table-row span {
  display: flex;
  align-items: center;
}

.comparison-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Getting Started Steps */
.getting-started-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.start-step {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: all 0.3s ease;
}

.start-step:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
}

.step-circle {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.start-step h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.start-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.step-arrow {
  font-size: 2rem;
  color: var(--text-muted);
}

.getting-started-note {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* Live Demo QR Code */
.qr-demo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.qr-code-large {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--border);
}

.qr-image {
  width: 200px;
  height: 200px;
  display: block;
}

.qr-instructions {
  text-align: left;
}

.qr-instructions p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-align: left;
}

.qr-instructions p:last-child {
  margin-bottom: 0;
}

.qr-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive styles for new components */
@media (max-width: 768px) {
  .comparison-boxes {
    flex-direction: column;
    gap: 1rem;
  }

  .comparison-box {
    min-width: auto;
    padding: 1.5rem;
  }

  .savings-highlight {
    padding: 1rem 2rem;
  }

  .savings-amount {
    font-size: 1.5rem;
  }

  .competitor-table {
    font-size: 0.9rem;
  }

  .table-header,
  .table-row {
    padding: 0.75rem 1rem;
  }

  .getting-started-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  .start-step {
    min-width: auto;
    max-width: 100%;
  }

  .qr-demo-container {
    flex-direction: column;
    gap: 2rem;
  }

  .qr-image {
    width: 180px;
    height: 180px;
  }

  .qr-instructions p {
    font-size: 1.1rem;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --slide-padding: 16px;
  }

  .slide {
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 50px;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .split-layout {
    flex-direction: row;
    gap: 2rem;
  }

  .split-layout.reverse {
    flex-direction: row-reverse;
  }

  .split-text {
    order: unset;
  }

  .split-image {
    order: unset;
  }

  .slide-screenshot {
    max-height: 250px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .feature-card {
    padding: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

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

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .benefit-item {
    padding: 0.5rem 0.75rem;
  }

  .pain-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .pain-point {
    padding: 0.5rem 0.75rem;
  }

  .steps-container {
    flex-direction: row;
    margin-top: 1rem;
  }

  .step-card {
    padding: 1rem;
    padding-top: 1.5rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .comparison-boxes {
    flex-direction: row;
  }

  .logo-image {
    max-width: 250px;
  }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .slide {
    padding-left: max(var(--slide-padding), env(safe-area-inset-left));
    padding-right: max(var(--slide-padding), env(safe-area-inset-right));
  }

  .nav-controls {
    bottom: max(15px, env(safe-area-inset-bottom));
    right: max(15px, env(safe-area-inset-right));
  }

  .slide-counter {
    bottom: max(15px, env(safe-area-inset-bottom));
    left: max(15px, env(safe-area-inset-left));
  }

  .progress-bar {
    bottom: env(safe-area-inset-bottom, 0px);
  }
}