:root {
  /* Foodie Adventures & PalateCru Official Design Tokens */
  --bg-primary: #FAF8F5;          /* Warm porcelain oat canvas */
  --bg-secondary: #F4EFEA;        /* Soft linen backdrop */
  --bg-card: #FFFFFF;             /* Crisp white card surface */
  --bg-card-border: #E8E2D8;      /* Organic warm stone border */
  --bg-subtle: #F0EBE1;           /* Pebble surface */
  
  --primary: #E0533C;             /* Bistro Vermilion / Charred Paprika */
  --primary-dark: #C23E28;        /* Roasted vermilion */
  --primary-light: #F06A52;       /* Sunlit coral */
  --primary-glow: rgba(224, 83, 60, 0.14);
  
  --accent-gold: #D97706;         /* Luminous warm amber */
  --accent-green: #059669;        /* Herb garden green */
  
  --text-primary: #191614;        /* Deep roasted espresso charcoal */
  --text-secondary: #544E48;      /* Warm slate */
  --text-muted: #6E6760;          /* Warm stone helper text */
  --text-light: #9E968D;          /* Subtle metadata */

  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(25, 22, 20, 0.04);
  --shadow-md: 0 6px 20px rgba(25, 22, 20, 0.07);
  --shadow-lg: 0 12px 36px rgba(25, 22, 20, 0.1);
  --shadow-primary: 0 6px 22px rgba(224, 83, 60, 0.28);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 248, 245, 0.92);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.brand:hover .brand-crest {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-cta {
  background-color: var(--primary);
  color: #FFFFFF !important;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(224, 83, 60, 0.25);
  display: inline-block;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(224, 83, 60, 0.35);
}

/* Hero Section */
.hero {
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero App Icon Showcase */
.hero-icon-wrapper {
  margin-bottom: 24px;
  display: inline-block;
}

.hero-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--bg-card-border);
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-app-icon:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(224, 83, 60, 0.2), 0 0 0 1px var(--primary);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(224, 83, 60, 0.08);
  border: 1px solid rgba(224, 83, 60, 0.22);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(224, 83, 60, 0.38);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Feature Cards Grid (Legacy / Overview) */
.features {
  padding: 50px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
  background: rgba(224, 83, 60, 0.08);
  width: 58px;
  height: 58px;
  line-height: 58px;
  text-align: center;
  border-radius: 14px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Showcases & Alternating Feature Rows with Native Mobile Phone Frames
   ========================================================================== */
.showcases {
  padding: 30px 0 90px;
}

.showcase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 68px;
  padding: 70px 0;
  border-bottom: 1px solid var(--bg-card-border);
}

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

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-visual {
  flex: 0 0 330px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.showcase-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 540px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Phone Mockup Chassis */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  background: #151312;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 
    0 24px 60px -10px rgba(25, 22, 20, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.phone-mockup:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 32px 75px -10px rgba(224, 83, 60, 0.28),
    0 0 0 1px var(--primary),
    inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #151312;
  border-radius: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #252220;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background-color: var(--bg-primary);
  display: block;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Showcase Content */
.showcase-content {
  flex: 1;
  max-width: 550px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(224, 83, 60, 0.08);
  border: 1px solid rgba(224, 83, 60, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.showcase-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.showcase-content h2 .highlight {
  color: var(--primary);
}

.showcase-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 22px;
}

.showcase-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
}

.showcase-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(224, 83, 60, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  margin-top: 2px;
  font-weight: 700;
}

.showcase-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 880px) {
  .showcase-row,
  .showcase-row.reverse {
    flex-direction: column !important;
    gap: 36px;
    padding: 48px 0;
    text-align: center;
  }
  .showcase-content {
    max-width: 100%;
  }
  .showcase-highlights {
    text-align: left;
  }
  .showcase-tag-strip {
    justify-content: center;
  }
  .phone-mockup {
    width: 280px;
    height: 560px;
  }
}

/* Legal & Policy Pages Content */
.legal-page {
  padding: 60px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-card-border);
}

.legal-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.45rem;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(224, 83, 60, 0.2);
}

.legal-content h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.legal-content p, .legal-content ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-callout {
  background: rgba(224, 83, 60, 0.06);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid rgba(224, 83, 60, 0.15);
  border-left-width: 4px;
}

.legal-callout p {
  color: var(--text-primary);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--bg-card-border);
  padding: 40px 0;
  background-color: var(--bg-secondary);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .hero {
    padding: 45px 0 35px;
  }
  .cta-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    gap: 14px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Multi-Page / Tabbed Components: About, Interactive Features Switcher, Download Hub
   ========================================================================== */

/* Main View Tabs (About, Features, Download) */
.main-view {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-view.active {
  display: block;
}

/* About Section & Pillars */
.about-section {
  padding: 60px 0 70px;
}

.about-intro-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.about-intro-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.about-intro-box h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-intro-box p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-intro-box p:last-child {
  margin-bottom: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.features-teaser-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.features-teaser-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.features-teaser-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* Interactive Feature Switcher (Tabs) */
.feature-tabs-wrapper {
  padding: 20px 0 70px;
}

.feature-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--bg-card-border);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-card-border);
}

.feature-panel {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-card-border);
}

.feature-step-indicator {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Download Page */
.download-page {
  padding: 50px 0 80px;
  text-align: center;
}

.download-card-hero {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 28px;
  padding: 56px 36px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.download-card-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.download-card-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.download-card-hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #191614;
  color: #FFFFFF !important;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  width: 100%;
  max-width: 360px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(25, 22, 20, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.store-badge-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 22, 20, 0.25);
  border-color: var(--primary);
}

.store-badge-btn.store-badge-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.store-badge-btn.store-badge-secondary:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.store-badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
}

.store-badge-sub {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.store-badge-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.tester-note-box {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tester-note-box a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .feature-tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px;
  }
  .tab-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}
