/* ─────────────────────────────────────────────────────────────
   Ayooka — Marketing Site
   Design tokens + base styles + shared components
   ───────────────────────────────────────────────────────────── */

:root {
  /* Accent — Vital Red */
  --red-500: #be0316;
  --red-600: #991b1b;
  --red-400: #e8041e;
  --red-tint: #fef2f2;

  /* Neutrals — Light */
  --ink-0:  #ffffff;
  --ink-50: #f7f7f7;
  --ink-100: #f1f1f1;
  --ink-150: #e9e9e9;
  --ink-200: #e5e5e5;
  --ink-300: #d4d4d4;
  --ink-400: #a3a3a3;
  --ink-500: #737373;
  --ink-600: #525252;
  --ink-700: #404040;
  --ink-800: #262626;
  --ink-900: #1a1a1a;
  --ink-950: #0a0a0a;

  /* Data viz */
  --viz-green:  #059669;
  --viz-orange: #ea580c;
  --viz-blue:   #2563eb;
  --viz-purple: #9333ea;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.18), 0 8px 16px -6px rgba(0,0,0,.08);
  --shadow-xl: 0 48px 96px -24px rgba(0,0,0,.32), 0 16px 32px -8px rgba(0,0,0,.12);

  /* Typography */
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: 32px;
  --nav-h: 64px;

  /* Tokens for theming */
  --bg: var(--ink-0);
  --bg-elevated: var(--ink-50);
  --fg: var(--ink-950);
  --fg-muted: var(--ink-600);
  --fg-subtle: var(--ink-400);
  --border: var(--ink-200);
  --border-strong: var(--ink-300);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Type ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; }
h4 { font-size: 18px; }
p { text-wrap: pretty; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-line::before { display: none; }

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 62ch;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
}
.nav-brand img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--fg); background: var(--red-tint); }
.nav-link.is-active { color: var(--red-500); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-lang:hover { background: var(--ink-100); border-color: var(--ink-300); }
.nav-lang .nav-lang-flag { font-size: 14px; line-height: 1; }
.nav-lang .nav-lang-label { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }
.nav-lang-mobile {
  height: 44px;
  padding: 0 14px;
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--fg);
}
.nav-mobile-toggle:hover { background: var(--ink-100); }
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-mobile-toggle { display: flex; }
}

.nav-mobile-panel {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel .nav-link { font-size: 18px; padding: 14px 12px; }
.nav-mobile-panel .nav-mobile-cta {
  display: flex; gap: 8px; margin-top: 16px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--red-500);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover { background: var(--red-600); }
.btn-primary:active { transform: translateY(0.5px); }

.btn-secondary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--ink-50); border-color: var(--ink-400); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover { background: var(--ink-100); }

.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; }

.btn-icon-r svg { width: 14px; height: 14px; transition: transform .2s; }
.btn:hover .btn-icon-r svg { transform: translateX(2px); }

/* Inverted button (on dark sections) */
.section-dark .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.section-dark .btn-secondary:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.3);
}

/* ── Sections ──────────────────────────────────────────── */
section {
  padding: var(--space-9) 0;
  position: relative;
}
section.tight { padding: var(--space-8) 0; }
@media (max-width: 760px) {
  section { padding: var(--space-8) 0; }
}

.section-dark {
  background: var(--ink-950);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,.66); }
.section-dark .eyebrow { color: var(--red-400); }

.section-tint {
  background: var(--ink-50);
}

/* Section header */
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head > .chip {
  align-self: flex-start;
  background: var(--red-tint);
  color: var(--red-500);
  border-color: rgba(190,3,22,.18);
}
.section-head.center > .chip {
  align-self: center;
}
.section-dark .section-head > .chip,
.section-dark .vision-left > .chip {
  background: rgba(190,3,22,.15);
  color: var(--red-400);
  border-color: rgba(190,3,22,.28);
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

/* ── Cards & surfaces ──────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-flat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-5);
}

.tile-dark {
  background: var(--ink-900);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  color: #fff;
}

/* ── Tags / chips ──────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--ink-100);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.chip-red {
  background: var(--red-tint);
  color: var(--red-500);
  border-color: rgba(190,3,22,.15);
}
.chip-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink-950);
  color: rgba(255,255,255,.66);
  padding: var(--space-9) 0 var(--space-6);
  font-size: 14px;
}
.footer h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.66); transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand img { height: auto; max-width: 120px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.footer-socials { display: flex; gap: 4px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
}
.footer-socials a:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff !important;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.store-badge:hover { background: #1a1a1a; border-color: rgba(255,255,255,.3); color: #fff !important; }
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-sup {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.store-badge-main {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #fff;
  margin-top: 2px;
}
.newsletter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.newsletter button { margin-top: 0 !important; align-self: center; }

.newsletter input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { border-color: var(--red-400); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1), transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Utilities ─────────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--border); width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Subtle background patterns ────────────────────────── */
.bg-grid-dark {
  background-color: var(--ink-950);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-light {
  background-image:
    linear-gradient(var(--ink-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-100) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-fade-bottom::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--ink-950));
  pointer-events: none;
}

/* Subtle glow */
.glow-red {
  position: absolute;
  pointer-events: none;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,3,22,.25), transparent 65%);
  filter: blur(40px);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hide elements visually but keep them accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Page-specific helpers exposed for variants */
[data-hide-variant] { display: none; }
[data-hide-variant].is-active { display: block; }

/* ── Reusable: stock cells (used across product surfaces) ─ */
.stock-cell {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.stock-cell.crit { border-color: rgba(190,3,22,.3); background: var(--red-tint); }
.stock-cell-grp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.stock-cell-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stock-cell-bar {
  height: 4px;
  background: var(--ink-150);
  border-radius: 999px;
  overflow: hidden;
}
.stock-cell-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.stock-cell-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-muted);
}

/* ── Reusable: dash tags ─────────────────────────────────── */
.dash-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink-100);
  color: var(--fg-muted);
  width: fit-content;
}
.dash-tag.crit { background: var(--red-tint); color: var(--red-500); }
.dash-tag.warn { background: rgba(234,88,12,.08); color: var(--viz-orange); }
.dash-tag.ok { background: rgba(5,150,105,.08); color: var(--viz-green); }
.dash-tag.info { background: rgba(37,99,235,.08); color: var(--viz-blue); }
