/* ═══════════════════════════════════════════
   Cook A Dish — Shared Stylesheet
   Design: Organic / Fresh / Playful
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --primary:       hsl(189 37% 44%);
  --primary-lt:    hsl(189 37% 60%);
  --secondary:     hsl(80 46% 56%);
  --accent:        hsl(331 68% 70%);
  --bg:            hsl(0 0% 100%);
  --bg-muted:      hsl(48 80% 96%);
  --fg:            hsl(189 40% 16%);
  --fg-muted:      hsl(189 20% 48%);
  --border:        hsl(189 22% 88%);
  --card:          hsl(0 0% 100%);
  --radius-sm:     0.75rem;
  --radius:        1.25rem;
  --radius-lg:     2rem;
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow-sm:     0 2px 12px hsl(189 37% 30% / .08);
  --shadow:        0 8px 32px hsl(189 37% 30% / .14);
  --shadow-lg:     0 20px 60px hsl(189 37% 30% / .18);
  --ease:          cubic-bezier(.4,0,.2,1);
  --dur:           .3s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Container ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(0 0% 100% / .88);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  color: var(--fg); transition: opacity var(--dur) var(--ease);
}
.nav-brand:hover { opacity: .75; }
.nav-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--fg-muted);
  transition: color var(--dur) var(--ease); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: var(--dur) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border); padding: .5rem 0 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .65rem 0; font-size: .95rem; font-weight: 600;
  color: var(--fg-muted); transition: color var(--dur) var(--ease);
}
.nav-mobile a:hover { color: var(--primary); }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 2rem; border-radius: 999px;
  font-size: 1rem; font-weight: 700;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 6px 24px hsl(189 37% 44% / .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px hsl(189 37% 44% / .45);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%,
      hsl(80 46% 56% / .10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%,
      hsl(331 68% 70% / .08) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-muted) 0%, var(--bg) 55%, var(--bg-muted) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: hsl(189 37% 44% / .1); color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeUp .7s var(--ease) both;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeUp .7s .1s var(--ease) both;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--fg-muted);
  max-width: 460px; margin-bottom: 2.5rem; line-height: 1.75;
  animation: fadeUp .7s .2s var(--ease) both;
}
.hero-actions { animation: fadeUp .7s .3s var(--ease) both; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 2rem;
  animation: fadeUp .7s .4s var(--ease) both;
}
.badge {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--fg);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
.badge-dot.teal  { background: var(--primary); }
.badge-dot.green { background: var(--secondary); animation-delay: .6s; }
.badge-dot.pink  { background: var(--accent); animation-delay: 1.2s; }

/* Hero image */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeRight .8s .15s var(--ease) both;
}
.hero-visual-inner { position: relative; }
.hero-glow {
  position: absolute; inset: -30%; border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    hsl(189 37% 44% / .22),
    hsl(80 46% 56% / .18),
    hsl(331 68% 70% / .18),
    hsl(189 37% 44% / .22)
  );
  filter: blur(50px);
  animation: spin 12s linear infinite;
}
.hero-visual-inner img {
  position: relative; z-index: 1;
  width: clamp(200px, 28vw, 320px); height: clamp(200px, 28vw, 320px);
  object-fit: contain;
  filter: drop-shadow(0 24px 48px hsl(189 37% 25% / .28));
  transition: transform .5s var(--ease);
}
.hero-visual-inner img:hover { transform: scale(1.06) rotate(2deg); }

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.features { padding: 6rem 0; background: hsl(48 70% 97%); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -.02em; margin-bottom: .75rem;
}
.section-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow);
  border-color: hsl(189 37% 44% / .25);
}
.feature-icon {
  display: inline-flex; padding: .75rem; border-radius: 1rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, hsl(189 37% 44% / .12), hsl(80 46% 56% / .10));
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 1.8; fill: none; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .88rem; color: var(--fg-muted); line-height: 1.65; }

/* ═══════════════════════════════════════
   DOWNLOAD CTA
   ═══════════════════════════════════════ */
.download {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%,
      hsl(189 37% 44% / .06) 0%, transparent 70%),
    linear-gradient(135deg, hsl(189 37% 44% / .04), hsl(80 46% 56% / .04), hsl(331 68% 70% / .04));
}
.download-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.download-icon-wrap {
  display: inline-flex; padding: 1.25rem; border-radius: 50%;
  background: hsl(189 37% 44% / .1); margin-bottom: 1.5rem;
}
.download-icon-wrap svg { width: 48px; height: 48px; stroke: var(--primary); stroke-width: 1.6; fill: none; }
.download h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 1rem; letter-spacing: -.02em;
}
.download p { font-size: 1.1rem; color: var(--fg-muted); margin-bottom: 2.5rem; line-height: 1.7; }
.download-note { font-size: .85rem; color: var(--fg-muted); margin-top: 1.5rem; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.footer-brand h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; margin-bottom: .1rem;
}
.footer-brand p { font-size: .82rem; color: var(--fg-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .85rem; color: var(--fg-muted); font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .82rem; color: var(--fg-muted); }

/* ═══════════════════════════════════════
   SUPPORT PAGE
   ═══════════════════════════════════════ */
.support-hero {
  padding: 8rem 0 3rem; text-align: center;
  background: linear-gradient(160deg, var(--bg-muted), var(--bg));
}
.support-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900; letter-spacing: -.02em; margin-bottom: .75rem;
}
.support-hero p { font-size: 1.1rem; color: var(--fg-muted); }

.support-body { padding: 3rem 0 5rem; }
.support-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }

/* Form card */
.form-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-card-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 2rem; }
.form-card-head .icon-wrap {
  flex-shrink: 0; display: inline-flex; padding: .6rem;
  border-radius: .75rem; background: hsl(189 37% 44% / .1);
}
.form-card-head svg { width: 22px; height: 22px; stroke: var(--primary); stroke-width: 1.8; fill: none; }
.form-card-head h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: .15rem;
}
.form-card-head .email-hint { font-size: .82rem; color: var(--fg-muted); }
.form-card-head .email-hint a { color: var(--primary); }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: .75rem;
  font-size: .92rem; color: var(--fg); background: var(--bg);
  transition: border-color var(--dur), box-shadow var(--dur); outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(189 37% 44% / .15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: .8rem; color: hsl(0 72% 55%); margin-top: .3rem; display: none; }
.form-error.show { display: block; }
.btn-submit {
  width: 100%; padding: .9rem 1.5rem; border-radius: .75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 16px hsl(189 37% 44% / .3);
  transition: transform var(--dur), box-shadow var(--dur), opacity var(--dur);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px hsl(189 37% 44% / .4); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

/* FAQ */
.faq-section h2 {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 900;
  letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.accordion { display: flex; flex-direction: column; gap: .85rem; }
.accordion-item {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--fg);
  background: var(--card); cursor: pointer;
  transition: background var(--dur);
}
.accordion-trigger:hover { background: var(--bg-muted); }
.accordion-trigger svg {
  flex-shrink: 0; width: 18px; height: 18px; stroke: var(--fg-muted);
  transition: transform var(--dur) var(--ease);
}
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s;
  background: var(--card); padding: 0 1.4rem;
}
.accordion-item.open .accordion-content {
  max-height: 400px; padding: 0 1.4rem 1.2rem;
}
.accordion-content p { font-size: .9rem; color: var(--fg-muted); line-height: 1.7; }

/* ═══════════════════════════════════════
   SUCCESS TOAST
   ═══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--fg); color: #fff;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════ */
.not-found {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: linear-gradient(160deg, var(--bg-muted), var(--bg));
}
.not-found-inner h1 {
  font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
}
.not-found-inner p { font-size: 1.2rem; color: var(--fg-muted); margin-bottom: 2rem; }
.not-found-inner a.btn { display: inline-flex; }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeRight{ from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }
@keyframes pulse    { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.7; transform:scale(1.15); } }
@keyframes spin     { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-glow { display: none; }
  .support-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
