@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f0eb;
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ── Scroll-driven Animations ── */
/* Initial hidden states — JS overrides with inline styles based on scroll progress */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  will-change: opacity, transform;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-logo {
  width: 128px;
  height: 128px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.typing-word {
  display: inline;
  font-style: italic;
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: #1a1a1a;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #666;
  max-width: 500px;
  line-height: 1.6;
}

.hero-beta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.4rem;
  background: #8b741a;
  color: #f5f0eb;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-beta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 116, 26, 0.3);
  background: #a0870f;
}

.scroll-hint {
  margin-top: 3rem;
  animation: bounce 2s ease infinite;
  color: #999;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── Feature Sections ── */
.feature-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.feature-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.feature-content.reversed {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.feature-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #555;
  line-height: 1.7;
}

.feature-image {
  flex: 0 0 auto;
}

.feature-image img {
  width: 280px;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* ── Pantry + Matches Dual Section ── */
.dual-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.dual-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dual-card {
  flex: 1;
  text-align: center;
}

.dual-card img {
  width: 240px;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  margin-bottom: 2rem;
}

.dual-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dual-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}

.cta-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 450px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #1a1a1a;
  color: #f5f0eb;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ── Beta Elements ── */
.beta-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: #8b741a;
  color: #f5f0eb;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.cta-section .reveal-scale {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.beta-steps {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  width: 100%;
  justify-content: center;
}

.beta-step {
  flex: 1;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1a1a1a;
  color: #f5f0eb;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}

.beta-step p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0;
}

.beta-step a {
  color: #8b741a;
  text-decoration: underline;
}

.beta-feedback {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #888;
}

.beta-feedback a {
  color: #8b741a;
  text-decoration: none;
  font-weight: 600;
}

.beta-feedback a:hover {
  text-decoration: underline;
}

footer a {
  color: #8b741a;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .beta-steps {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* ── Side Accent Ingredients ── */
.side-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
}

.accent-left {
  left: -30px;
}

.accent-right {
  right: -30px;
}

/* Individual ingredient silhouette */
.ingredient-shape {
  display: block;
  overflow: visible;
  animation: ingredient-float 3.3s ease-in-out infinite;
}

.ingredient-fill {
  fill: #8b741a;
  stroke: none;
}

/* Gentle floating animation */
@keyframes ingredient-float {
  0%, 100% {
    transform: var(--base-rotate) translateY(0px);
  }
  50% {
    transform: var(--base-rotate) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ingredient-shape {
    animation: none;
  }
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .side-accent {
    display: none;
  }

  .feature-content,
  .feature-content.reversed {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .feature-image img {
    width: 220px;
  }

  .dual-content {
    flex-direction: column;
    align-items: center;
  }

  .dual-card img {
    width: 200px;
  }
}
