/* ===========================================
   AI Kitchen — Golden Hour Palette
   Amber-forward, warm, handmade workshop feel
   =========================================== */

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

:root {
  /* Spacing (4pt base grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Surface (parchment / honey tint) */
  --bg-page: #faf7f2;
  --bg-alt: #f2ece0;
  --bg-cta: #f5edd8;

  /* Text — contrast-checked against both bg-page and bg-alt */
  --text-primary: #352e24;    /* ~11.5:1 on page */
  --text-secondary: #5e5444;  /*  ~5.5:1 on page */
  --text-muted: #6b5f50;      /*  ~5.8:1 on page — AA pass */

  /* Accent palette */
  --coral: #c4884a;           /* burnt amber — primary accent */
  --coral-light: rgba(196, 136, 74, 0.1);
  --mint: #7aaa8a;            /* sage */
  --mint-light: rgba(122, 170, 138, 0.1);
  --lavender: #7a8ab4;        /* slate blue */
  --lavender-light: rgba(122, 138, 180, 0.12);
  --sky: #aa8aaa;             /* mauve */
  --pink: #c47a6a;            /* terracotta */

  /* CTA — darker amber for white-text buttons; ~3.95:1 passes AA-large */
  --cta-bg: #aa7540;
  --cta-hover: #966535;
  --cta-active: #8a5c30;
  --cta-text: #ffffff;

  /* Shadows & Radius */
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lifted: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  color: var(--text-primary);
  line-height: 1.12;
}

a {
  color: var(--coral);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --- Layout --- */
.section {
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 32px);
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: var(--bg-alt);
}

.section--cta {
  background: var(--bg-cta);
  border-top: 3px solid var(--coral);
  padding-top: clamp(56px, 10vh, 112px);
  padding-bottom: clamp(56px, 10vh, 112px);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* --- Sticky Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px clamp(24px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-wordmark {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cta-text);
  background: var(--cta-bg);
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background 150ms var(--ease-out);
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(170, 117, 64, 0.3);
  background: var(--cta-hover);
  text-decoration: none;
}

.nav-cta:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  background: var(--cta-active);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding-top: clamp(40px, 10vh, 80px);
  padding-bottom: clamp(64px, 14vh, 112px);
}

.hero-logo {
  display: block;
  max-width: 140px;
  height: auto;
  margin: 0 auto var(--space-lg);
  opacity: 0.85;
  animation: fadeUp 600ms var(--ease-out) 0ms both;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: popIn 400ms var(--ease-out) both;
}

.badge--coral {
  background: rgba(196, 136, 74, 0.15);
  color: #7a5530;
}

.badge--mint {
  background: rgba(122, 170, 138, 0.18);
  color: #3a6a4a;
}

.badge--lavender {
  background: rgba(122, 138, 180, 0.2);
  color: #4a5570;
}

.badge:nth-child(1) { animation-delay: 200ms; }
.badge:nth-child(2) { animation-delay: 300ms; }
.badge:nth-child(3) { animation-delay: 400ms; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 0.3em;
  line-height: 1.05;
  animation: fadeUp 600ms var(--ease-out) 100ms both;
}

.hero h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
  animation: fadeUp 600ms var(--ease-out) 200ms both;
}

.hero-cta-wrap {
  animation: fadeUp 600ms var(--ease-out) 350ms both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  color: var(--cta-text);
  background: var(--cta-bg);
  padding: 16px 32px;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background 150ms var(--ease-out);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(170, 117, 64, 0.35);
  background: var(--cta-hover);
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(170, 117, 64, 0.2);
  background: var(--cta-active);
}

.cta-button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.hero-launch {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fadeUp 600ms var(--ease-out) 500ms both;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.blob--1 {
  width: clamp(200px, 35vw, 450px);
  height: clamp(200px, 35vw, 450px);
  background: var(--pink);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob--2 {
  width: clamp(150px, 25vw, 350px);
  height: clamp(150px, 25vw, 350px);
  background: var(--lavender);
  bottom: -5%;
  left: -5%;
  animation-delay: -3s;
}

.blob--3 {
  width: clamp(100px, 18vw, 250px);
  height: clamp(100px, 18vw, 250px);
  background: var(--coral);
  top: 30%;
  left: 10%;
  animation-delay: -6s;
}

/* --- Section Headings --- */
.section-heading {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: var(--space-lg);
}

.section-heading em {
  font-style: italic;
  color: var(--coral);
}

/* Accent line under section headings */
.section-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

/* Centered variant for CTA section */
.cta-section .section-accent {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* --- Feature Cards (What Is) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Styled accent dots */
.feature-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-dot--coral { background: rgba(196, 136, 74, 0.18); }
.feature-dot--mint { background: rgba(122, 170, 138, 0.22); }
.feature-dot--lavender { background: rgba(122, 138, 180, 0.22); }

.feature-dot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.feature-dot--coral::after { background: var(--coral); }
.feature-dot--mint::after { background: var(--mint); }
.feature-dot--lavender::after { background: var(--lavender); }

.feature-card h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Tier Cards (Formats) --- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.tier-card {
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  border-left: 5px solid;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.tier-card--taste {
  background: var(--coral-light);
  border-color: var(--coral);
}

.tier-card--slow {
  background: var(--mint-light);
  border-color: var(--mint);
}

.tier-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xs);
}

.tier-card--taste .tier-label { color: #8a6030; }
.tier-card--slow .tier-label { color: #3a6a4a; }

.tier-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  margin-bottom: var(--space-xs);
}

.tier-card .tier-subtitle {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.tier-card p {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.6;
  max-width: 55ch;
}

.tier-flavor {
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Mentor Callout --- */
.mentor-callout {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  border: 1px dashed var(--coral);
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgba(196, 136, 74, 0.04);
}

.mentor-heading {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.mentor-body {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto var(--space-md);
  line-height: 1.6;
}

.mentor-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 136, 74, 0.4);
}

.mentor-link:hover {
  text-decoration-color: var(--coral);
}

.mentor-questions {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.mentor-questions a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(94, 84, 68, 0.3);
}

.mentor-questions a:hover {
  text-decoration-color: var(--text-secondary);
}

/* --- Who It's For --- */
.audience-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.audience-list li {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.5;
  padding-left: 1.5em;
  position: relative;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* 5-color cycle */
.audience-list li:nth-child(5n+1)::before { background: var(--coral); }
.audience-list li:nth-child(5n+2)::before { background: var(--mint); }
.audience-list li:nth-child(5n+3)::before { background: var(--lavender); }
.audience-list li:nth-child(5n+4)::before { background: var(--sky); }
.audience-list li:nth-child(5n+5)::before { background: var(--pink); }

.audience-closer {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
}

.cta-section .section-heading {
  margin-bottom: var(--space-sm);
}

.cta-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.cta-fine {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-2xl) clamp(24px, 5vw, 32px);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-wordmark {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
}

.footer-logo {
  display: block;
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.footer a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(5px, -5px); }
  66% { transform: translate(-3px, 3px); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (pointer: coarse) {
  .nav-cta,
  .cta-button {
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .blob {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
