/* ============================================================
   MEAL AI — site styles
   ============================================================ */

:root {
  --bg: #04060d;
  --bg-2: #0a1228;
  --bg-3: #0e1a3a;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.5);
  --ink-4: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --calm: #7b96ff;
  --angry: #e5544d;
  --raw: #d4b96a;
  --accent: #ff6a3d;
  --radius: 18px;
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(123, 150, 255, 0.18) 0%, transparent 60%),
    radial-gradient(70% 50% at 80% 110%, rgba(229, 84, 77, 0.10) 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--calm); color: #04060d; }

/* ===== type ===== */

.display {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.eyebrow {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ===== layout ===== */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== nav ===== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(4, 6, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(4, 6, 13, 0.78);
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 12px;
  text-transform: uppercase;
}
.nav .brand .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.nav .links { display: flex; gap: 28px; align-items: center; font-size: 13px; }
.nav .links a {
  color: var(--ink-2);
  transition: color 0.15s;
  position: relative;
}
.nav .links a:hover { color: var(--ink); }
.nav .cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #04060d;
  letter-spacing: 0.02em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.18); }

@media (max-width: 720px) {
  .nav .links { display: none; }
  .nav { padding: 14px 18px; }
}

/* ===== buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn-primary { background: #fff; color: #04060d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,255,255,0.22); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); }

/* ===== reveals ===== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ===== shared sections ===== */

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section h2.display {
  font-size: clamp(38px, 5.4vw, 76px);
}

/* ===== footer ===== */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  max-width: var(--max);
  margin: 0 auto;
}
.footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer .links a { color: var(--ink-3); transition: color 0.15s; }
.footer .links a:hover { color: var(--ink); }
.footer .brandmark {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer .brandmark .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* page-specific helpers */

.page-hero {
  padding: 160px 0 60px;
  position: relative;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255,255,255,0.03);
}
.tag .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
