/* ChefNet landing — built to DESIGN.md (warm food brand + refero-grade craft) */
:root {
  --primary: #E85A3F;
  --primary-dark: #C84629;
  --primary-soft: #FCE4DC;
  --bg: #FAF2E5;
  --surface: #FFFFFF;
  --surface-muted: #F5EDDF;
  --ink: #1F1B16;
  --text-secondary: #5C534A;
  --text-muted: #9A8F82;
  --border: #E5DCC9;
  --divider: #EFE6D3;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 12px 32px rgba(31, 27, 22, 0.14);
  --maxw: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Type scale (negative tracking at scale) ───────────────────────────── */
.display {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.title-light { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.overline { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 14px; }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--text-secondary); line-height: 1.55; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.1s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 242, 229, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.brand-mark { font-size: 22px; }
.brand-net { color: var(--primary); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(42,22,16,0.92) 0%, rgba(110,42,24,0.72) 42%, rgba(200,70,41,0.35) 100%),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,27,22,0.55), transparent 55%); }
.hero-inner { position: relative; padding: 96px 24px; max-width: 920px; }
.hero .overline { color: #ffd9cd; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--primary); }
.hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(16px, 2.1vw, 20px); margin: 22px 0 30px; max-width: 640px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: rgba(255,255,255,0.75); font-size: 13px; margin-top: 18px; }

/* ── Trust strip ───────────────────────────────────────────────────────── */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding: 18px 24px; font-size: 15px; opacity: 0.92; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-muted { background: var(--surface-muted); }
.section > .container > .title { margin-bottom: 40px; max-width: 720px; }

/* ── Cards / features ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.feature { padding: 28px 24px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-soft); display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { color: var(--text-secondary); font-size: 15px; }

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-num {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff; font-weight: 700; font-size: 18px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.012em; margin-bottom: 8px; }
.step p { color: var(--text-secondary); }

/* ── Split sections ────────────────────────────────────────────────────── */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text .title { margin: 12px 0 16px; }
.ticks { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary-dark); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.split-media {
  height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  background-size: cover; background-position: center;
}
.split-media[data-img="diner"] { background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1000&q=80&auto=format&fit=crop'); }
.split-media[data-img="resto"] { background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1000&q=80&auto=format&fit=crop'); }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, #2A1610 0%, #6E2A18 45%, #C84629 78%, #E85A3F 100%);
  color: #fff; text-align: center;
}
.cta-inner { padding: clamp(56px, 8vw, 96px) 24px; max-width: 720px; }
.cta-inner p { color: rgba(255,255,255,0.9); margin: 14px 0 28px; font-size: 18px; }
.cta-inner .hero-actions { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,0.82); }
.footer-inner { padding: 48px 24px; text-align: center; display: grid; gap: 10px; place-items: center; }
.footer .brand { color: #fff; }
.footer-note { font-size: 14px; }
.footer-fine { font-size: 12px; color: rgba(255,255,255,0.5); max-width: 640px; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
/* Only hide when JS is present (so it can reveal). No-JS = always visible. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.34s var(--ease), transform 0.34s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; gap: 28px; }
  .split-inner.reverse .split-media { order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .split-media { height: 280px; }
}
