/* =========================================================================
   Base CSS - Mobile First
   Cookietup - Smart Meal Planning
   ========================================================================= */

:root {
  /* Premium Dark Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --border-color: rgba(255, 255, 255, 0.08);

  /* Brand Colors */
  --brand-peach: #F5B97D;
  --brand-peach-dark: #E3AA75;
  --brand-peach-glow: rgba(245, 185, 125, 0.15);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   Layout & Components
   ========================================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Header -- */
.header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image {
  height: 32px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF, var(--brand-peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.store-badge {
  height: 48px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* -- Curiosity Device Mockup -- */
.mockup-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  perspective: 1000px;
  z-index: 1;
}

.phone-mockup {
  background-color: var(--surface);
  border: 4px solid #333;
  border-radius: 40px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
  aspect-ratio: 9/19;
  position: relative;
  overflow: hidden;
  transform: rotateX(5deg) rotateY(-5deg) rotateZ(2deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-mockup:hover {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.phone-screen {
  background-color: var(--bg-primary);
  border-radius: 24px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background-color: #333;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.mockup-logo {
  width: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px var(--brand-peach-glow));
}

.mockup-title {
  color: var(--brand-peach);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.mockup-pill {
  background: var(--surface-hover);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* -- Floating Dishes -- */
.floating-dish {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
  opacity: 0.8;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.dish-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.dish-2 {
  top: 30%;
  right: 5%;
  animation-delay: 1s;
  width: 60px;
  height: 60px;
}

.dish-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
  width: 100px;
  height: 100px;
}

.dish-4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* -- Features / Value Props -- */
.features-section {
  padding: 64px 0;
  background-color: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  font-weight: 700;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--brand-peach);
  margin-bottom: 12px;
  font-weight: 600;
}

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

/* -- Target Audience -- */
.audience-section {
  padding: 64px 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.audience-card {
  background: linear-gradient(135deg, var(--surface) 0%, #151515 100%);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.audience-card h3 {
  color: #fff;
  font-size: 1.125rem;
}

/* -- Footer -- */
.footer {
  padding: 48px 0;
  background: #050505;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--brand-peach);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tagline-footer {
  color: var(--text-secondary);
  font-style: italic;
}


/* -- Feature Hero Images -- */
.hero-image-wrapper {
  margin: 0 auto;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
  position: relative;
  z-index: 1;
}

.hero-feature-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   Responsive Adjustments (Min-Width Enhancements)
   ========================================================================= */

@media (min-width: 768px) {
  .hero {
    padding: 80px 0 100px;
  }

  .hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
  }

  .hero p.tagline {
    font-size: 1.25rem;
  }

  .cta-group {
    flex-direction: row;
    gap: 24px;
  }

  .store-badge {
    height: 56px;
  }

  .feature-grid {
    flex-direction: row;
  }

  .card {
    flex: 1;
  }

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

@media (min-width: 1024px) {
  .floating-dish {
    width: 120px;
    height: 120px;
  }

  .dish-2 {
    width: 90px;
    height: 90px;
  }

  .dish-3 {
    width: 140px;
    height: 140px;
    left: 15%;
    bottom: 10%;
  }

  .dish-4 {
    right: 15%;
    top: 20%;
  }
}