/* ==============================================================================
   CRAVE MATCH — OFFICIAL DESIGN SYSTEM & STYLESHEET
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=IBM+Plex+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Salmon Light & Dark Master Theme (Default) */
  --salmon: #FF7F6E;
  --salmon-light: #FFA08F;
  --salmon-dark: #E24F3A;
  --salmon-glow: rgba(255, 127, 110, 0.4);
  --salmon-tint: rgba(255, 127, 110, 0.12);

  --teal: #32B8A6;
  --teal-light: #52E2CF;
  --teal-dark: #1F8E80;
  --teal-glow: rgba(50, 184, 166, 0.35);

  --bg-page: #0E0B0A;
  --bg-card: #181412;
  --bg-card-hover: #221C1A;
  --bg-glass: rgba(26, 21, 19, 0.7);

  --ink-primary: #FFF7F4;
  --ink-secondary: #C8B8B2;
  --ink-muted: #8E7D77;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px rgba(255, 127, 110, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
}

/* Palette Overrides: Light (Daytime Theme) */
[data-theme="light"] {
  --salmon: #E24F3A;
  --salmon-light: #FF7F6E;
  --salmon-dark: #BA3624;
  --salmon-glow: rgba(226, 79, 58, 0.25);
  --salmon-tint: rgba(226, 79, 58, 0.08);

  --teal: #1B8577;
  --teal-light: #32B8A6;
  --teal-dark: #0E5E53;
  --teal-glow: rgba(27, 133, 119, 0.25);

  --bg-page: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F2ECE4;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --ink-primary: #1A1311;
  --ink-secondary: #5E524C;
  --ink-muted: #8E827B;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(226, 79, 58, 0.12);
}

[data-theme="light"] .navbar {
  background: rgba(250, 248, 245, 0.85);
}

[data-theme="light"] .phone-screen {
  background: #FAF8F5;
}

[data-theme="light"] .ai-chat-thread {
  background: #F4EFEA;
}

[data-theme="light"] .ai-bubble.assistant {
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid var(--line-strong);
}

[data-theme="light"] .ai-bubble.user {
  background: var(--salmon);
  color: #FFFFFF;
}

[data-theme="light"] .ingredient-chip {
  background: #FFFFFF;
  color: var(--ink-primary);
  border-color: var(--line);
}

[data-theme="light"] .ingredient-chip.active {
  background: var(--teal);
  color: #FFFFFF;
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line-strong);
  color: var(--ink-primary);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
}

[data-theme="light"] .theme-selector {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--line);
}

[data-theme="light"] .footer {
  background: #F4ECE4;
  border-top-color: var(--line-strong);
}

[data-theme="light"] .footer-brand .brand-name {
  color: #1A1311;
}

[data-theme="light"] .footer-brand p {
  color: var(--ink-secondary);
}

[data-theme="light"] .footer-bottom {
  border-top-color: var(--line);
  color: var(--ink-muted);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-page);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

::selection {
  background-color: var(--salmon);
  color: #2D0F08;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--salmon);
}

/* Ambient Canvas Particle Layer */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--salmon), var(--salmon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--salmon-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #3A0F08;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--salmon);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Switcher Pills */
.theme-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.theme-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.theme-pill:hover {
  transform: scale(1.15);
}

.theme-pill.active {
  box-shadow: 0 0 0 2px var(--ink-primary);
}

.theme-pill[data-val="salmon"] { background: #FF7F6E; }
.theme-pill[data-val="matcha"] { background: #5AA86A; }
.theme-pill[data-val="sapphire"] { background: #3C72FF; }

/* Mobile Burger Stack Button */
.mobile-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  padding: 9px 7px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.25s ease;
}

.mobile-burger-btn span {
  display: block;
  height: 2.2px;
  width: 100%;
  background: var(--ink-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-burger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--salmon);
}

.mobile-burger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-burger-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--salmon);
}

/* Mobile Nav Drawer Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Body lock when mobile nav is open */
body.mobile-nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #181412;
  border-top: 1px solid var(--line);
  border-bottom: 2.5px solid var(--salmon);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--salmon-glow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
  z-index: 999;
}

.mobile-nav-drawer.open {
  max-height: 440px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-content {
  padding: 22px 20px 26px;
  background: #181412;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: block;
  padding: 8px 0;
  transition: color 0.2s;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-links a:hover {
  color: var(--salmon);
}

/* Light Theme Overrides for Mobile Drawer */
[data-theme="light"] .mobile-nav-drawer {
  background: #FFFFFF;
  border-top-color: #EFEAE6;
  border-bottom-color: var(--salmon);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-nav-content {
  background: #FFFFFF;
}

[data-theme="light"] .mobile-nav-links a {
  color: #1A1311;
  border-bottom-color: #EFEAE6;
}

[data-theme="light"] .mobile-nav-links a:hover {
  color: var(--salmon-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--salmon);
  color: #3A0F08;
  box-shadow: 0 6px 20px var(--salmon-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--salmon-light);
  box-shadow: 0 10px 28px var(--salmon-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-primary);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #062622;
  box-shadow: 0 6px 20px var(--teal-glow);
}

.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

/* Overhauled Hero Action Buttons */
.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF7F6E 0%, #FF9788 50%, #FFA89B 100%);
  color: #2D0C07;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px var(--salmon-glow), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero-primary:hover::before {
  left: 120%;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #FFA08F 0%, #FF8574 100%);
  box-shadow: 0 16px 40px var(--salmon-glow), 0 0 35px rgba(255, 127, 110, 0.6);
  transform: translateY(-2px);
}

.btn-live-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2D0C07;
  box-shadow: 0 0 0 0 rgba(45, 12, 7, 0.7);
  animation: livePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  flex-shrink: 0;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 12, 7, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(45, 12, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 12, 7, 0);
  }
}

.btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid rgba(255, 127, 110, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 127, 110, 0.06);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-engine-icon {
  color: var(--salmon);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.btn-hero-secondary:hover {
  border-color: var(--salmon);
  background: var(--salmon-tint);
  color: var(--ink-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 25px var(--salmon-glow);
  transform: translateY(-2px);
}

.btn-hero-secondary:hover .btn-engine-icon {
  transform: rotate(45deg);
  color: var(--salmon-light);
}

[data-theme="light"] .btn-hero-primary {
  background: linear-gradient(135deg, #E24F3A 0%, #FF7F6E 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px rgba(226, 79, 58, 0.35);
}

[data-theme="light"] .btn-hero-primary .btn-live-indicator {
  background: #FFFFFF;
  animation: livePulseLight 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes livePulseLight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

[data-theme="light"] .btn-hero-secondary {
  background: #FFFFFF;
  color: #1A1311;
  border-color: rgba(226, 79, 58, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-hero-secondary:hover {
  background: rgba(226, 79, 58, 0.08);
  border-color: #E24F3A;
  box-shadow: 0 10px 28px rgba(226, 79, 58, 0.2);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero-section {
  padding: 160px 0 100px;
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--salmon-tint);
  border: 2px solid rgba(255, 127, 110, 0.45);
  color: var(--salmon);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(255, 127, 110, 0.15);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--salmon-light) 0%, var(--salmon) 60%, var(--salmon-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.metric-item .metric-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.metric-item .metric-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero 3D Interactive Phone Chassis */
.hero-phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-mockup {
  width: 330px;
  height: 630px;
  background: #14110F;
  border-radius: 44px;
  border: 8px solid #28211E;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7), 0 0 50px var(--salmon-glow);
  position: relative;
  padding: 10px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 16px;
  background: #28211E;
  border-radius: 10px;
  z-index: 30;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Card Stack inside Phone */
.swipe-card-stack {
  flex: 1;
  position: relative;
  margin: 34px 12px 8px;
  min-height: 0;
}

.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: 22px;
  border: 1.5px solid rgba(255, 127, 110, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: grab;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  box-sizing: border-box;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card-img {
  width: 100%;
  height: 58%;
  min-height: 0;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.swipe-card-body {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 4px;
  box-sizing: border-box;
}

.swipe-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swipe-card-meta {
  font-size: 0.80rem;
  color: var(--salmon);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag-pill.match {
  background: rgba(50, 184, 166, 0.16);
  border-color: rgba(50, 184, 166, 0.4);
  color: var(--teal-light);
}

/* Like / Pass Stamps */
.stamp {
  position: absolute;
  top: 24px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0;
  transform: rotate(-15deg);
  pointer-events: none;
  transition: opacity 0.15s;
}

.stamp.like {
  right: 20px;
  border: 3px solid var(--teal);
  color: var(--teal);
  transform: rotate(15deg);
}

.stamp.pass {
  left: 20px;
  border: 3px solid var(--salmon);
  color: var(--salmon);
  transform: rotate(-15deg);
}

/* Interactive Floating Controls */
.phone-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 0 16px;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.control-btn.pass {
  border: 2px solid rgba(255, 127, 110, 0.45);
  background: rgba(255, 127, 110, 0.08);
  color: var(--salmon);
}

.control-btn.like {
  border: 2px solid rgba(50, 184, 166, 0.45);
  background: rgba(50, 184, 166, 0.08);
  color: var(--teal);
}

.control-btn:hover {
  transform: scale(1.12);
}

.control-btn.pass:hover {
  background: var(--salmon);
  color: #3A0F08;
  border-color: var(--salmon);
  box-shadow: 0 0 22px var(--salmon-glow);
}

.control-btn.like:hover {
  background: var(--teal);
  color: #062622;
  border-color: var(--teal);
  box-shadow: 0 0 22px var(--teal-glow);
}

/* ==============================================================================
   SECTION HEADERS & SHARED UI
   ============================================================================== */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--salmon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==============================================================================
   INTERACTIVE SWIPE SIMULATOR & ALGORITHM SECTION
   ============================================================================== */
.algorithm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.glass-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 127, 110, 0.3);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 127, 110, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.glass-card:hover {
  border-color: var(--salmon);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px var(--salmon-glow);
}

.sandbox-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 127, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md), 0 0 25px rgba(255, 127, 110, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.sandbox-card:hover {
  border-color: var(--salmon);
  box-shadow: var(--shadow-lg), 0 0 40px var(--salmon-glow);
}

.taste-profile-tracker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.taste-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.taste-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.taste-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.taste-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--salmon), var(--teal));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Formula Callout Box */
.formula-box {
  background: rgba(255, 127, 110, 0.06);
  border: 2px solid rgba(255, 127, 110, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.formula-box:hover {
  border-color: var(--salmon);
  box-shadow: 0 0 25px var(--salmon-glow);
}

.formula-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--salmon-light);
  line-height: 1.6;
}

/* ==============================================================================
   CELEBRITY CHEF & HERITAGE SPOTLIGHT
   ============================================================================== */
.chef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.chef-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 127, 110, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.chef-card:hover {
  border-color: var(--salmon);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 40px var(--salmon-glow);
}

.chef-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-lg) - 2px);
  border-top-right-radius: calc(var(--radius-lg) - 2px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.chef-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: calc(var(--radius-lg) - 2px);
  border-top-right-radius: calc(var(--radius-lg) - 2px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chef-card:hover .chef-img-wrapper img {
  transform: translateZ(0) scale(1.06);
}

.chef-badge-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(14, 11, 10, 0.85);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--salmon);
  border: 1px solid rgba(255, 127, 110, 0.3);
}

.chef-card-body {
  padding: 24px;
}

.chef-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.chef-card-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.recipe-micro-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-micro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==============================================================================
   PANTRY & SMART GROCERY SANDBOX
   ============================================================================== */
.pantry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fridge-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fridge-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-card-hover);
  border: 2px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.fridge-chip:hover {
  border-color: var(--teal);
  color: var(--ink-primary);
}

.fridge-chip.selected {
  background: rgba(50, 184, 166, 0.18);
  border: 2.2px solid var(--teal);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(50, 184, 166, 0.35);
}

[data-theme="light"] .fridge-chip {
  background: #F4F1ED;
  border-color: #E6DFD9;
  color: #5C4B45;
}

[data-theme="light"] .fridge-chip:hover {
  border-color: var(--teal);
  color: #1A1311;
}

[data-theme="light"] .fridge-chip.selected {
  background: rgba(27, 133, 119, 0.12);
  border-color: #1B8577;
  color: #073832;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(27, 133, 119, 0.25);
}

.matched-recipe-preview {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* ==============================================================================
   AI MOOD ASSISTANT PLAYGROUND
   ============================================================================== */
.ai-chat-simulator {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 85%;
}

.ai-bubble.assistant {
  background: var(--bg-card-hover);
  border: 1px solid var(--line);
  color: var(--ink-primary);
  align-self: flex-start;
}

.ai-bubble.user {
  background: var(--salmon);
  color: #3A0F08;
  font-weight: 600;
  align-self: flex-end;
}

.ai-input-bar {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ai-input-bar input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-page);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.ai-input-bar input:focus {
  border-color: var(--salmon);
  box-shadow: 0 0 0 3px var(--salmon-tint);
}

/* ==============================================================================
   DEVICE WIDGETS SHOWCASE
   ============================================================================== */
.widgets-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.device-widget-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 127, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.device-widget-card:hover {
  border-color: var(--salmon);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 35px var(--salmon-glow);
}

/* ==============================================================================
   RECIPE DETAIL & STEP-BY-STEP COOKING MODAL
   ============================================================================== */
.recipe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.recipe-modal {
  background: var(--bg-card);
  border: 2.5px solid var(--salmon);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px var(--salmon-glow);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.recipe-modal-backdrop.open .recipe-modal {
  transform: translateY(0) scale(1);
}

.modal-header-hero {
  height: 200px;
  position: relative;
}

.modal-header-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 11, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF !important;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 127, 110, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--salmon);
  color: #3A0F08 !important;
  border-color: var(--salmon-light);
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 8px 24px var(--salmon-glow);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.modal-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-tab-btn.active {
  background: var(--salmon-tint);
  color: var(--salmon);
}

.cooking-step-card {
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-page);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .brand-name {
  color: var(--ink-primary);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--salmon);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--salmon);
}

/* Patent & IP Notice Bar */
.footer-patent-bar {
  margin-bottom: 40px;
}

.patent-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 127, 110, 0.05);
  border: 2px solid rgba(255, 127, 110, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 127, 110, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.patent-badge:hover {
  border-color: var(--salmon);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 35px var(--salmon-glow);
}

.patent-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.patent-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patent-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--salmon-light);
  letter-spacing: 1px;
}

.patent-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

[data-theme="light"] .patent-badge {
  background: rgba(226, 79, 58, 0.06);
  border-color: rgba(226, 79, 58, 0.3);
}

[data-theme="light"] .patent-title {
  color: var(--salmon-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Animations */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================== */

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-subtitle {
    margin: 0 auto 32px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
    gap: 28px;
  }
  .algorithm-grid,
  .pantry-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
  }
}

/* Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: clamp(1.85rem, 6.5vw, 2.3rem);
    letter-spacing: -0.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .navbar {
    padding: 12px 0;
  }
  .brand-name {
    font-size: 1.3rem;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .brand-icon svg {
    width: 18px;
    height: 18px;
  }
  .nav-links {
    display: none;
  }
  .desktop-cta {
    display: none !important;
  }
  .mobile-burger-btn {
    display: flex;
  }
  .nav-actions {
    gap: 10px;
  }
  .theme-pill {
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  .chef-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .widgets-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .patent-badge {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
  }
}

/* Smartphones & Portrait Mobile (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 14px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: clamp(2.1rem, 9.5vw, 2.75rem);
    letter-spacing: -0.6px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 36px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 24px;
    width: 100%;
  }
  .metric-item .metric-number {
    font-size: 1.55rem;
  }
  .metric-item .metric-label {
    font-size: 0.76rem;
  }

  /* 3D Phone Chassis on Mobile */
  .hero-phone-showcase {
    perspective: none;
    width: 100%;
  }
  .phone-mockup {
    width: 100%;
    max-width: 315px;
    height: 580px;
    border-radius: 38px;
    border-width: 7px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px var(--salmon-glow);
  }
  .phone-screen {
    border-radius: 28px;
  }
  .swipe-card-stack {
    margin: 30px 10px 8px;
  }
  .swipe-card-img {
    height: 56%;
  }
  .swipe-card-body {
    padding: 10px 12px;
    gap: 3px;
  }
  .swipe-card-title {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .swipe-card-meta {
    font-size: 0.78rem;
    margin-bottom: 3px;
  }
  .swipe-card-tags {
    gap: 4px;
  }
  .tag-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .phone-controls {
    gap: 20px;
    padding: 8px 0 14px;
  }
  .control-btn {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }

  /* Sandbox & Glass Cards on Mobile */
  .glass-card {
    padding: 20px 16px !important;
  }
  .sandbox-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }
  .formula-box {
    padding: 14px;
    overflow-x: auto;
  }
  .formula-code {
    font-size: 0.78rem;
    white-space: normal;
    word-break: break-word;
  }

  /* Chef Cards */
  .chef-card-body {
    padding: 18px 14px;
  }
  .chef-card-title {
    font-size: 1.25rem;
  }

  /* AI Assistant Simulator */
  .ai-bubble {
    font-size: 0.85rem;
    padding: 10px 14px;
    max-width: 90%;
  }
  .ai-input-bar {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .ai-input-bar input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    font-size: 0.86rem;
    box-sizing: border-box;
  }
  .ai-input-bar button {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  /* Download Section */
  #download .glass-card {
    padding: 40px 18px !important;
  }
  #download h2 {
    font-size: 2.1rem !important;
  }
  #download p {
    font-size: 0.95rem !important;
  }
  #download .btn {
    width: 100%;
    justify-content: center;
  }

  /* Recipe & Cooking Modal */
  .recipe-modal {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 20px;
  }
  .modal-header-hero {
    height: 150px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  #modal-title {
    font-size: 1.3rem !important;
  }
  .cooking-step-card {
    padding: 16px 12px;
    font-size: 0.98rem;
    min-height: 110px;
  }

  /* Footer */
  .footer {
    padding: 50px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.78rem;
  }
}

/* Extra Small Phones (<= 375px) */
@media (max-width: 375px) {
  .brand-name {
    display: none;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .phone-mockup {
    max-width: 290px;
    height: 540px;
    border-width: 6px;
    padding: 7px;
    border-radius: 34px;
  }
  .phone-screen {
    border-radius: 24px;
  }
  .swipe-card-stack {
    margin: 26px 8px 8px;
  }
  .swipe-card-img {
    height: 54%;
  }
  .swipe-card-body {
    padding: 9px 10px;
    gap: 2px;
  }
  .swipe-card-title {
    font-size: 0.98rem;
    line-height: 1.18;
  }
  .swipe-card-meta {
    font-size: 0.74rem;
    margin-bottom: 2px;
  }
  .swipe-card-tags {
    gap: 4px;
  }
  .tag-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .phone-controls {
    gap: 18px;
    padding: 6px 0 12px;
  }
  .control-btn {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
}

/* Super Narrow Phones (<= 320px) */
@media (max-width: 320px) {
  .phone-mockup {
    max-width: 270px;
    height: 500px;
    border-width: 5px;
    padding: 6px;
  }
  .swipe-card-stack {
    margin: 22px 6px 6px;
  }
  .swipe-card-img {
    height: 50%;
  }
  .swipe-card-title {
    font-size: 0.90rem;
  }
  .swipe-card-meta {
    font-size: 0.70rem;
  }
  .control-btn {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}
