:root {
  color-scheme: light dark;
  --bg: #f5f7fd;
  --bg-alt: #eef1fc;
  --surface: #ffffff;
  --surface-hover: #f7f9ff;
  --text: #12183a;
  --text-heading: #0a1030;
  --muted: #5a6080;
  --muted-light: #949ab5;
  --primary: #3656d4;
  --primary-hover: #2b49ba;
  --primary-subtle: #e8edff;
  --primary-text: #ffffff;
  --border: #dfe3f3;
  --border-light: #eef0fa;
  --shadow-sm: 0 1px 3px rgba(10, 16, 48, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 16, 48, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 16, 48, 0.10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;

  /* Card icon accent colors */
  --accent-today: #4f6fde;
  --accent-today-bg: #eef2ff;
  --accent-tasks: #10a861;
  --accent-tasks-bg: #ecfdf4;
  --accent-calendar: #d97730;
  --accent-calendar-bg: #fef6ec;
  --accent-shopping: #c84b6e;
  --accent-shopping-bg: #fef0f3;
  --accent-meals: #7c3aed;
  --accent-meals-bg: #f4f0ff;
  --accent-recipes: #059669;
  --accent-recipes-bg: #ecfdf5;
  --accent-assistant: #2563eb;
  --accent-assistant-bg: #eff6ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080b1a;
    --bg-alt: #0e1230;
    --surface: #111636;
    --surface-hover: #151b42;
    --text: #e0e4f7;
    --text-heading: #eef1ff;
    --muted: #a8aecf;
    --muted-light: #6b7198;
    --primary: #9fb3ff;
    --primary-hover: #b8c7ff;
    --primary-subtle: #1a2248;
    --primary-text: #0d1230;
    --border: #222850;
    --border-light: #1a2040;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    --accent-today: #8fabff;
    --accent-today-bg: #1a2340;
    --accent-tasks: #34d399;
    --accent-tasks-bg: #0d2e24;
    --accent-calendar: #f59e4b;
    --accent-calendar-bg: #2e2010;
    --accent-shopping: #fb7185;
    --accent-shopping-bg: #2e141e;
    --accent-meals: #a78bfa;
    --accent-meals-bg: #1e1640;
    --accent-recipes: #34d399;
    --accent-recipes-bg: #0d2e24;
    --accent-assistant: #60a5fa;
    --accent-assistant-bg: #14203a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Shell ─────────────────────────────── */

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* ── Hero ──────────────────────────────── */

.hero {
  padding: 40px 0 20px;
  text-align: center;
}

.mark {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #08143d 0%, #162066 100%);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(54, 86, 212, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mark:hover {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(54, 86, 212, 0.12);
}

.mark svg {
  width: 40px;
  height: 40px;
}

.eyebrow {
  margin: 32px 0 6px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(54, 86, 212, 0.2);
}

.button.primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(54, 86, 212, 0.3);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── Section title ──────────────────────── */

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

/* ── Features ───────────────────────────── */

.features {
  padding: 64px 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 28px 24px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  max-width: 380px;
  margin: 0 auto;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Card icon accent colors */
.today-icon      { background: var(--accent-today-bg);      color: var(--accent-today);      }
.tasks-icon      { background: var(--accent-tasks-bg);      color: var(--accent-tasks);      }
.calendar-icon   { background: var(--accent-calendar-bg);   color: var(--accent-calendar);   }
.shopping-icon   { background: var(--accent-shopping-bg);   color: var(--accent-shopping);   }
.meals-icon      { background: var(--accent-meals-bg);      color: var(--accent-meals);      }
.recipes-icon    { background: var(--accent-recipes-bg);    color: var(--accent-recipes);    }
.assistant-icon  { background: var(--accent-assistant-bg);  color: var(--accent-assistant);  }

/* ── How it works ───────────────────────── */

.how-it-works {
  padding: 64px 0 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-heading);
}

.step p {
  margin: 0 auto;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────── */

footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border-light);
}

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

.footer-logo {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-heading);
}

.footer-top nav {
  display: flex;
  gap: 20px;
}

.footer-top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 0.84rem;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 780px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card:last-child:nth-child(3n + 1) {
    grid-column: span 2;
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .shell {
    padding: 32px 16px 0;
  }

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card:last-child:nth-child(3n + 1) {
    grid-column: span 1;
  }

  .features {
    padding-top: 44px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
