/* ============================================================
   BUKKA — Landing page styles
   Palette from the Bukka Tailwind v4 theme
   ============================================================ */

:root {
  /* Brand */
  --primary: #D95F2D;
  --primary-dark: #B04418;
  --menu-accent: #C64F18;
  --brand-green: #169C23;
  --ai-danger: #B42318;

  /* Backgrounds & surfaces */
  --bg: #FDFBF7;
  --bg-dark: #1A1A1A;
  --workspace: #F4F1EA;
  --surface: #F5F1E8;
  --sheet: #F7F2E9;
  --panel: #F8F5EE;
  --menu: #F4EFE6;
  --surface-soft: #F8F4EF;
  --card-soft: #FBFAF7;
  --card-warm: #FFFDF8;

  /* Text */
  --text-main: #2D2A26;
  --text-muted: #6B665F;
  --ink: #111111;

  /* AI placeholder gradient */
  --ai-start: #F4E9DF;
  --ai-end: #EEE8F7;

  /* Lines & shadows */
  --line: rgba(45, 42, 38, 0.12);
  --line-soft: rgba(45, 42, 38, 0.07);
  --line-light: rgba(253, 251, 247, 0.14);
  --shadow-soft: 0 2px 6px rgba(45, 42, 38, 0.05), 0 18px 40px -18px rgba(45, 42, 38, 0.18);
  --shadow-lift: 0 4px 10px rgba(45, 42, 38, 0.06), 0 30px 60px -20px rgba(45, 42, 38, 0.25);
  --shadow-dark: 0 30px 60px -20px rgba(0, 0, 0, 0.55);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 20px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body[data-loading] { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
::selection { background: var(--primary); color: var(--bg); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -2%); }
  80% { transform: translate(4%, 4%); }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none; z-index: 3000;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s, background 0.3s;
  mix-blend-mode: multiply;
  opacity: 0;
}
.cursor.is-visible { opacity: 0.9; }
.cursor.is-link { width: 44px; height: 44px; opacity: 0.18; }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center;
  background: var(--bg);
}
.preloader-curtain {
  position: absolute; inset: 0;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
}
.preloader-mark {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 2;
}
.preloader-word {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: clamp(90px, 12vw, 150px); position: relative; }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 95, 45, 0.15);
}
.eyebrow-light { color: rgba(253, 251, 247, 0.6); }

.section-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 22px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.section-lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Split-text word wrappers */
.split-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-word { display: inline-block; will-change: transform; }

/* Screen-reader only */
.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;
}

/* Hero typewriter word box — fixed width (sized to the longest word),
   content centered, so the sentence never reflows. The box is tall
   enough to contain italic swashes/descenders (no clipping). */
.word-roller {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: top;
  /* layout height stays within the line so it never stretches the line box */
  height: 1.02em;
  margin: 0 0.03em;
  padding: 0 0.25em;
  white-space: nowrap;
  color: var(--primary);
  font-style: italic;
  font-weight: 380;
}
/* The visible box — painted by a pseudo-element centered on the text line,
   tall enough for italic swashes/descenders, with equal visual gaps to the
   lines above and below (offset tuned from rendered measurements). */
.word-roller::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.25em;
  transform: translateY(calc(-50% + 2px));
  background: rgba(217, 95, 45, 0.06);
  border: 1.5px solid rgba(217, 95, 45, 0.18);
  border-radius: 0.24em;
  pointer-events: none;
}
.type-text {
  display: inline-block;
  line-height: 1.02;
  white-space: nowrap;
}
.type-caret {
  flex: none;
  width: 0.055em;
  height: 0.8em;
  margin-left: 0.12em;
  border-radius: 0.06em;
  background: var(--primary);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600; font-size: 15.5px;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
  overflow: hidden;
}
.btn-label { position: relative; z-index: 2; }
.btn-arrow { position: relative; z-index: 2; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--primary);
  color: #FFF8F0;
  box-shadow: 0 12px 30px -10px rgba(217, 95, 45, 0.55);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--primary-dark);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn-primary:hover::after { transform: translateY(0); }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--text-main);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-main); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-small { padding: 11px 22px; font-size: 14px; }

/* ---------- Shared mock-UI atoms ---------- */
.ui-card {
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  font-size: 13.5px;
  color: var(--text-main);
}
.ui-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ui-ref {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
}
.ui-pill {
  display: inline-flex; align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-warm { background: rgba(217, 95, 45, 0.12); color: var(--primary-dark); }
.pill-green { background: rgba(22, 156, 35, 0.12); color: var(--brand-green); }
.pill-danger { background: rgba(180, 35, 24, 0.1); color: var(--ai-danger); }
.pill-status { background: var(--ink); color: var(--bg); transition: background 0.4s, color 0.4s; }
.pill-status.is-ready { background: var(--brand-green); color: #fff; }
.pill-status.is-served { background: var(--primary); color: #fff; }

.ui-lines { display: grid; gap: 8px; }
.ui-lines li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-muted);
}
.ui-lines li b { color: var(--text-main); font-weight: 600; }
.ui-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.ui-total { font-family: var(--font-display); font-weight: 600; font-size: 16px; }

/* KOT bits */
.kot-tear {
  height: 8px; margin: -18px -18px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(circle at 8px -2px, transparent 6px, var(--surface) 6.5px);
  background-size: 16px 8px;
  background-color: var(--surface);
}
.kot-age {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 12px;
  color: var(--ai-danger);
  background: rgba(180, 35, 24, 0.08);
  padding: 3px 9px; border-radius: 100px;
}
.kot-lines li { justify-content: flex-start; }
.kot-check {
  width: 13px; height: 13px; flex: none;
  border: 1.5px solid var(--line); border-radius: 4px;
}
.kot-note {
  font-size: 12px; font-style: italic;
  color: var(--primary-dark) !important;
}
.kot-actions {
  display: flex; gap: 6px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.kot-actions span {
  flex: 1; text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface);
  color: var(--text-muted);
}
.kot-actions span.is-active { background: var(--ink); color: var(--bg); }

/* Stock bar */
.stock-bar {
  height: 7px; border-radius: 100px;
  background: var(--surface);
  overflow: hidden;
}
.stock-bar i {
  display: block; height: 100%;
  width: var(--level, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.pill-danger + .stock-meta { color: var(--ai-danger); }

/* AI spark */
.ai-spark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
}
.ai-spark-lg { width: 36px; height: 36px; border-radius: 12px; }

/* Frames */
.ui-frame {
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 22px;
}
.ui-frame-dark {
  background: #232120;
  border: 1px solid rgba(253, 251, 247, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  padding: 22px;
  color: #EFE9DF;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.5s var(--ease-out), background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner {
  width: min(1320px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 100px;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text-main); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-badge {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(217, 95, 45, 0.1);
  border: 1px solid rgba(217, 95, 45, 0.25);
  padding: 6px 12px; border-radius: 100px;
}
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mobile-menu-links { display: grid; gap: 8px; text-align: center; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 6px 20px;
  transition: color 0.25s;
}
.mobile-menu-links a:hover { color: var(--primary); font-style: italic; }
.mobile-menu-links .mobile-cta { color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.hero-blob-1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(217, 95, 45, 0.22), transparent 65%);
}
.hero-blob-2 {
  width: 480px; height: 480px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(22, 156, 35, 0.1), transparent 65%);
}
.hero-ring {
  position: absolute;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}
.hero-ring-1 {
  width: 720px; height: 720px;
  top: 8%; right: -14%;
}

.hero-inner {
  width: min(1320px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  position: relative; z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 26px;
}
.hero-title em {
  font-style: italic; font-weight: 380;
  color: var(--primary);
}
.hero-lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-muted);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
}

/* Hero stage — floating cards */
.hero-stage {
  position: relative;
  height: clamp(460px, 44vw, 620px);
}
.hero-card { position: absolute; will-change: transform; }

.hero-card-order {
  width: min(300px, 64%);
  top: 4%; left: 2%;
  z-index: 4;
  rotate: -2.5deg;
}
.hero-card-kot {
  width: min(268px, 58%);
  top: 26%; right: 0;
  z-index: 5;
  rotate: 2deg;
  background: #FFFEFA;
}
.hero-card-menu {
  width: min(290px, 62%);
  bottom: 20%; left: 8%;
  z-index: 3;
  rotate: 1.5deg;
  padding-bottom: 14px;
}
.hero-card-pay {
  display: flex; align-items: center; gap: 12px;
  width: min(280px, 60%);
  bottom: 2%; right: 6%;
  z-index: 6;
  rotate: -1.5deg;
  padding: 14px 16px;
}
.hero-card-stock {
  width: min(230px, 50%);
  top: -2%; right: 10%;
  z-index: 2;
  rotate: 3deg;
  padding: 14px 16px;
}
.hero-card-ai {
  display: flex; gap: 10px; align-items: flex-start;
  width: min(250px, 56%);
  bottom: 36%; right: 24%;
  z-index: 7;
  rotate: -3deg;
  background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
  border: none;
  font-size: 12.5px;
  line-height: 1.5;
}
.hero-card-ai b { font-weight: 600; }

/* Menu card internals */
.menu-thumb {
  height: 86px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 35%, #E8B04B 0 18%, transparent 19%),
    radial-gradient(circle at 62% 55%, #C64F18 0 22%, transparent 23%),
    radial-gradient(circle at 45% 70%, #8C3A12 0 12%, transparent 13%),
    radial-gradient(circle at 75% 30%, #169C23 0 8%, transparent 9%),
    linear-gradient(160deg, #F6E3C8, #EFCFA4);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.menu-thumb-plate {
  position: absolute; inset: 12px 30%;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.5);
  border: 2px dashed rgba(176, 68, 24, 0.25);
}
.menu-item-info b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.menu-item-meta { font-size: 12px; color: var(--text-muted); }
.menu-tags { display: flex; gap: 6px; margin-top: 8px; }
.menu-tags span {
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
  background: var(--surface); color: var(--text-muted);
}
.menu-toggle {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 22px;
  border-radius: 100px;
  background: var(--brand-green);
  padding: 3px;
  transition: background 0.3s;
}
.menu-toggle i {
  display: block; width: 16px; height: 16px;
  border-radius: 50%; background: #fff;
  margin-left: auto;
  transition: margin 0.3s var(--ease-out);
}
.menu-live {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-green);
}

/* Pay card internals */
.pay-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-dark);
}
.pay-info { flex: 1; min-width: 0; }
.pay-info b { display: block; font-size: 13.5px; }
.pay-info span {
  display: block; font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pay-confirm {
  flex: none;
  font-size: 11.5px; font-weight: 700;
  color: #fff; background: var(--brand-green);
  padding: 7px 13px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 5px;
}
.pay-confirmed { background: var(--surface); color: var(--brand-green); }

/* Stock card internals */
.stock-row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.stock-row-head b { font-size: 13px; }
.stock-meta { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* Scroll cue */
.hero-scrollcue {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
  z-index: 3;
}
.hero-scrollcue i {
  width: 1.5px; height: 44px;
  background: linear-gradient(var(--text-muted), transparent);
  position: relative; overflow: hidden;
}
.hero-scrollcue i::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--primary);
  animation: cue-drop 1.8s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { top: -50%; } 70%, 100% { top: 110%; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: 20px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 34px;
  padding-right: 34px;
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 450;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text-main);
}
.marquee-group span:nth-child(4n + 3) { font-style: italic; color: var(--primary); }
.marquee-group i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--bg); }

.broken-chain {
  display: flex; align-items: stretch;
  gap: 0;
  margin-block: clamp(40px, 6vw, 70px);
  padding: 26px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow-x: auto;
  scrollbar-width: none;
}
.broken-chain::-webkit-scrollbar { display: none; }
.chain-node {
  flex: 1 0 auto;
  display: grid; place-items: center;
  min-width: 108px;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  text-align: center;
  font-size: 12px; font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}
.chain-link {
  flex: 0 0 34px;
  display: grid; place-items: center;
  position: relative;
}
.chain-link i {
  width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
}
.chain-link.is-broken::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 44%, var(--ai-danger) 44%, var(--ai-danger) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ai-danger) 44%, var(--ai-danger) 56%, transparent 56%);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pain-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.3s;
}
.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(217, 95, 45, 0.3);
}
.pain-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 16px;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 19.5px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.pain-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}
.statement-text {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.statement-text em { font-style: italic; color: var(--primary); font-weight: 400; }
.statement-text .st-word { opacity: 0.16; transition: none; }

.statement-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(30px, 6vw, 80px);
  margin-top: clamp(40px, 6vw, 64px);
}
.stat { display: grid; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   FLOW (pinned, dark)
   ============================================================ */
.flow { background: var(--bg-dark); color: #F3EEE6; position: relative; }
.flow-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(70px, 9vw, 110px);
  overflow: clip;
}
.flow .section-title { color: #FAF6EF; }
.flow .section-lede { color: rgba(243, 238, 230, 0.62); }

.flow-stage { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.flow-line {
  position: absolute;
  left: 0; right: 0;
  top: 13px;
  width: 100%; height: 40px;
  overflow: visible;
}
.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 26px);
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.flow-step { display: grid; gap: 20px; justify-items: start; }
.flow-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 251, 247, 0.25);
  display: grid; place-items: center;
  background: var(--bg-dark);
  transition: border-color 0.4s, box-shadow 0.4s;
  position: relative; z-index: 2;
}
.flow-dot i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(253, 251, 247, 0.25);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}
.flow-step.is-lit .flow-dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(217, 95, 45, 0.18);
}
.flow-step.is-lit .flow-dot i { background: var(--primary); transform: scale(1.25); }

.flow-card {
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.flow-step.is-lit .flow-card { opacity: 1; transform: translateY(0); }
.flow-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}
.flow-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.flow-card p { font-size: 13px; line-height: 1.55; color: rgba(243, 238, 230, 0.58); }

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.feature-grid-rev .feature-copy { order: 2; }
.feature-grid-rev .feature-visual { order: 1; }

.check-list { display: grid; gap: 14px; margin-top: 30px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 15.5px; font-weight: 500;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(22, 156, 35, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.4 2.4 4.6-5' fill='none' stroke='%23169C23' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-visual { position: relative; }

/* --- Menu mock --- */
.menu-mock { max-width: 460px; margin-inline: auto; font-size: 13.5px; }
.menu-mock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.menu-mock-brand { display: flex; align-items: center; gap: 12px; }
.menu-mock-brand b { display: block; font-family: var(--font-display); font-size: 16.5px; letter-spacing: -0.01em; }
.menu-mock-brand span { font-size: 11.5px; color: var(--text-muted); }
.menu-mock-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 68%, transparent 9px, #FFF8F0 9.5px, #FFF8F0 11px, transparent 11.5px),
    var(--primary);
}
.menu-mock-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.menu-mock-filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.menu-mock-filters span {
  font-size: 11.5px; font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.menu-mock-filters span.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}
.menu-mock-items { display: grid; gap: 10px; margin-bottom: 16px; }
.mm-item {
  display: flex; align-items: center; gap: 13px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--card-soft);
}
.mm-thumb {
  width: 48px; height: 48px; flex: none;
  border-radius: 10px;
}
.mm-thumb-1 { background: radial-gradient(circle at 35% 40%, #E8B04B 0 26%, transparent 27%), radial-gradient(circle at 65% 60%, #B04418 0 24%, transparent 25%), linear-gradient(150deg, #F3D9AE, #E9BE83); }
.mm-thumb-2 { background: radial-gradient(circle at 40% 35%, #7BAF4E 0 24%, transparent 25%), radial-gradient(circle at 65% 62%, #C64F18 0 22%, transparent 23%), linear-gradient(150deg, #EDDFC0, #DCC394); }
.mm-thumb-3 { background: radial-gradient(circle at 45% 45%, #A33B17 0 28%, transparent 29%), radial-gradient(circle at 68% 30%, #E8B04B 0 16%, transparent 17%), linear-gradient(150deg, #F0D3B2, #DFB27E); }
.mm-info { flex: 1; min-width: 0; }
.mm-info b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.mm-info span { font-size: 11.5px; color: var(--text-muted); }
.mm-add {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px; font-weight: 500;
  line-height: 0;
  box-shadow: 0 6px 14px -6px rgba(217, 95, 45, 0.6);
}
.mm-item.is-paused { opacity: 0.62; }
.mm-item.is-paused .mm-thumb { filter: grayscale(0.7); }
.mm-paused-pill {
  flex: none;
  font-size: 10.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
  background: var(--surface); color: var(--text-muted);
}
.menu-mock-cart {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
}
.mm-cart-info b { display: block; font-size: 13.5px; }
.mm-cart-info span { font-size: 11.5px; opacity: 0.65; }
.mm-cart-cta {
  font-size: 12.5px; font-weight: 700;
  background: var(--primary);
  padding: 9px 16px; border-radius: 100px;
}

/* --- AI mock --- */
.feature-ai { background: linear-gradient(var(--bg), var(--surface-soft) 30%, var(--bg)); }
.ai-mock { max-width: 480px; margin-inline: auto; font-size: 13.5px; }
.ai-mock-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.ai-mock-head b { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.ai-chat { display: grid; gap: 12px; margin-bottom: 16px; }
.ai-msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.55; }
.ai-msg-user {
  justify-self: end;
  background: var(--ink); color: var(--bg);
  border-bottom-right-radius: 4px;
}
.ai-msg-bot {
  justify-self: start;
  background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
  border-bottom-left-radius: 4px;
  width: 92%;
}
.ai-msg-bot > p { margin-bottom: 10px; font-weight: 500; }
.ai-picks { display: grid; gap: 8px; }
.ai-pick {
  display: flex; align-items: center; gap: 11px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.ai-pick .mm-thumb { width: 38px; height: 38px; }
.ai-pick > div:nth-child(2) { flex: 1; }
.ai-pick b { display: block; font-size: 12.5px; }
.ai-pick span:not(.mm-add) { font-size: 11px; color: var(--text-muted); }
.ai-pick .mm-add { width: 26px; height: 26px; font-size: 15px; }
.ai-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Dark: floor & kitchen --- */
.feature-dark { background: var(--bg-dark); color: #F3EEE6; overflow: clip; }
.feature-dark .section-title { color: #FAF6EF; }
.feature-dark .section-lede { color: rgba(243, 238, 230, 0.62); }
.feature-dark-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }

.floor-kitchen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.fk-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
}
.fk-head b { font-family: var(--font-display); font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.fk-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10.5px; font-weight: 600; color: rgba(243, 238, 230, 0.55); }
.fk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-free { background: #6B665F; }
.dot-ordering { background: #E8B04B; }
.dot-preparing { background: var(--primary); }
.dot-ready { background: var(--brand-green); }
.dot-bill { background: #7E9CCB; }

.floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ftable {
  aspect-ratio: 1.15;
  border-radius: 14px;
  border: 1px solid rgba(253, 251, 247, 0.08);
  background: rgba(253, 251, 247, 0.035);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}
.ftable::before {
  content: "";
  position: absolute; top: 8px; left: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.ftable.dot-free { color: #6B665F; }
.ftable.dot-ordering { color: #E8B04B; }
.ftable.dot-preparing { color: var(--primary); }
.ftable.dot-ready { color: var(--brand-green); }
.ftable.dot-bill { color: #7E9CCB; }
.ftable b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #F3EEE6; }
.ftable span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; color: rgba(243, 238, 230, 0.5); }
.ftable.is-pulsing::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--brand-green);
  animation: table-pulse 2.2s var(--ease-out) infinite;
}
@keyframes table-pulse {
  0% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}

.kot-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-green);
}
.kot-live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green);
  animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink { 50% { opacity: 0.25; } }

.kot-board { display: grid; gap: 12px; }
.kot-ticket {
  background: #FBF7EF;
  color: var(--text-main);
  border-radius: 16px;
  padding: 16px;
  font-size: 13px;
  position: relative;
}
.kot-ticket .kot-tear { margin: -16px -16px 12px; }
.kot-ticket.is-late { outline: 1.5px solid rgba(180, 35, 24, 0.45); }
.kot-ticket.is-late .kot-age { background: var(--ai-danger); color: #fff; }

/* ============================================================
   BENTO
   ============================================================ */
.bento-section { background: var(--bg); }
.bento-section .section-title { margin-bottom: clamp(40px, 5vw, 60px); }
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.bento-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--card-soft);
  padding: clamp(22px, 3vw, 34px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.3s;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(217, 95, 45, 0.28);
}
.bento-visual { margin-bottom: 24px; }
.bento-card h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.bento-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.62; max-width: 48ch; }

/* Payments mock */
.pay-mock { display: grid; gap: 10px; }
.pay-mock-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  font-size: 13px;
}
.pay-method {
  flex: none;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(217, 95, 45, 0.12); color: var(--primary-dark);
}
.pay-method-cash { background: rgba(22, 156, 35, 0.12); color: var(--brand-green); }
.pay-mock-info { flex: 1; min-width: 0; }
.pay-mock-info b { display: block; font-size: 13px; }
.pay-mock-info span {
  display: block; font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Inventory mock */
.inv-mock { display: grid; gap: 12px; }
.inv-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 1.4fr auto;
  align-items: center; gap: 13px;
  font-size: 12.5px;
}
.inv-row > span:last-child { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.inv-margin {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  font-size: 12.5px;
}
.inv-margin > span { opacity: 0.7; }
.inv-margin > b { color: #7BD488; font-size: 13px; }
.inv-margin-bar {
  grid-column: 1 / -1;
  height: 6px; border-radius: 100px;
  background: rgba(253, 251, 247, 0.14);
  overflow: hidden;
}
.inv-margin-bar i {
  display: block; height: 100%; width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-green), #7BD488);
}

/* Reservations mock */
.res-mock { display: grid; gap: 10px; }
.res-card {
  padding: 15px 17px;
  border-radius: 14px;
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  display: grid; gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.res-card.is-seated { border-color: rgba(22, 156, 35, 0.3); }
.res-head { display: flex; align-items: center; justify-content: space-between; }
.res-head b { color: var(--text-main); font-size: 13.5px; }
.res-note { font-style: italic; color: var(--primary-dark); }

/* Reports mock */
.rep-mock {
  padding: 18px;
  border-radius: 14px;
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
}
.rep-bars {
  display: flex; align-items: flex-end; gap: 8px;
  height: 110px;
  margin-bottom: 12px;
}
.rep-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(217, 95, 45, 0.35), rgba(217, 95, 45, 0.12));
  transform-origin: bottom;
}
.rep-bars i.is-hot { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.rep-meta { display: grid; gap: 2px; font-size: 11.5px; color: var(--text-muted); }
.rep-meta b { color: var(--text-main); font-size: 12.5px; }

/* ============================================================
   ROLES
   ============================================================ */
.roles { background: var(--surface); border-block: 1px solid var(--line-soft); }
.roles .section-title, .roles .section-lede { margin-inline: 0; }
.roles-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: clamp(44px, 5vw, 64px);
}
.role-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card-warm);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.3s;
}
.role-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-soft);
  border-color: rgba(217, 95, 45, 0.3);
}
.role-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.role-card h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.role-card p { font-size: 13px; line-height: 1.55; color: var(--text-muted); flex: 1; }
.role-tag {
  align-self: flex-start;
  margin-top: 16px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(217, 95, 45, 0.1);
  padding: 5px 11px; border-radius: 100px;
}

/* ============================================================
   WHY
   ============================================================ */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(44px, 5vw, 60px);
}
.why-card {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.why-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.why-card:hover::before { transform: scaleX(1); }
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.62; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--surface-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}
.faq-intro { position: sticky; top: 120px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card-warm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.faq-item[open] { border-color: rgba(217, 95, 45, 0.35); box-shadow: var(--shadow-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(16px, 1.6vw, 18.5px);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.45s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.8px;
  background: var(--text-main);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--primary); border-color: var(--primary); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 26px; overflow: hidden; }
.faq-body p {
  padding-bottom: 24px;
  font-size: 15px; line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-block: clamp(60px, 8vw, 110px); background: var(--bg); }
.cta-panel {
  position: relative;
  border-radius: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(255, 176, 128, 0.35), transparent 55%),
    linear-gradient(140deg, var(--primary) 0%, var(--menu-accent) 55%, var(--primary-dark) 100%);
  color: #FFF6EC;
  padding: clamp(44px, 6vw, 90px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  box-shadow: 0 40px 80px -30px rgba(176, 68, 24, 0.5);
}
.cta-rings { position: absolute; inset: 0; pointer-events: none; }
.cta-rings i {
  position: absolute;
  border: 1px solid rgba(255, 246, 236, 0.16);
  border-radius: 50%;
}
.cta-rings i:nth-child(1) { width: 420px; height: 420px; right: -120px; top: -160px; }
.cta-rings i:nth-child(2) { width: 620px; height: 620px; right: -220px; top: -260px; }
.cta-rings i:nth-child(3) { width: 300px; height: 300px; left: -140px; bottom: -160px; }

.cta-copy { position: relative; z-index: 2; }
.cta .eyebrow-light { color: rgba(255, 246, 236, 0.75); }
.cta .eyebrow-dot { background: #FFF6EC; box-shadow: 0 0 0 4px rgba(255, 246, 236, 0.2); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 15ch;
}
.cta-title em { font-style: italic; font-weight: 380; }
.cta-lede {
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.65;
  color: rgba(255, 246, 236, 0.85);
  max-width: 46ch;
  margin-bottom: 34px;
}
.cta-field {
  display: flex; gap: 8px;
  padding: 8px;
  border-radius: 100px;
  background: rgba(255, 246, 236, 0.14);
  border: 1px solid rgba(255, 246, 236, 0.28);
  backdrop-filter: blur(6px);
  max-width: 480px;
  transition: border-color 0.3s, background 0.3s;
}
.cta-field:focus-within { border-color: rgba(255, 246, 236, 0.65); background: rgba(255, 246, 236, 0.2); }
.cta-field input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #FFF6EC;
  padding-inline: 18px;
  font-size: 15px;
}
.cta-field input::placeholder { color: rgba(255, 246, 236, 0.55); }
.cta-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255, 246, 236, 0.65);
  transition: color 0.3s;
}
.cta-note.is-success { color: #C9F2CE; font-weight: 600; }
.cta-note.is-error { color: #FFD9D2; font-weight: 600; }

.cta-visual { position: relative; z-index: 2; display: grid; place-items: center; }
.cta-ticket {
  width: min(280px, 100%);
  rotate: 3deg;
  background: #FFFEFA;
  box-shadow: 0 30px 60px -20px rgba(90, 30, 5, 0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(243, 238, 230, 0.72);
  padding: clamp(56px, 7vw, 90px) 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(253, 251, 247, 0.1);
}
.footer-brand .nav-logo { color: #FAF6EF; margin-bottom: 18px; }
.footer-brand p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(243, 238, 230, 0.5);
  max-width: 30ch;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col b {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(243, 238, 230, 0.4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14.5px;
  color: rgba(243, 238, 230, 0.72);
  transition: color 0.25s, transform 0.3s var(--ease-out);
  width: fit-content;
}
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(243, 238, 230, 0.42);
}
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: rgba(123, 212, 136, 0.85);
}
.footer-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-green);
  animation: live-blink 1.8s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding-top: 140px; }
  .hero-stage { height: clamp(420px, 60vw, 520px); max-width: 640px; }
  .hero-scrollcue { display: none; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-track { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .flow-line { display: none; }
}

@media (max-width: 900px) {
  .nav-links, .nav-badge { display: none; }
  .nav-burger { display: flex; }
  .feature-grid { grid-template-columns: 1fr; gap: 52px; }
  .feature-grid-rev .feature-copy { order: 1; }
  .feature-grid-rev .feature-visual { order: 2; }
  .floor-kitchen { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
}

@media (max-width: 640px) {
  .nav-actions .btn { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .roles-track { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-card-stock { display: none; }
  .hero-card-ai { bottom: 44%; right: 4%; }
  .cta-field { flex-direction: column; border-radius: 24px; }
  .cta-field input { padding: 12px 18px; }
  .cta-field .btn { justify-content: center; }
}

@media (max-width: 460px) {
  .roles-track { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .hero-card-order { width: 74%; }
  .hero-card-kot { width: 66%; }
  .hero-card-menu { width: 72%; left: 2%; }
  .hero-card-pay { width: 76%; }
}

/* Safari desktop: keep scroll compositing cheap (native scroll is used there) */
.safari-desktop .grain { animation: none; }
.safari-desktop .cursor { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .type-caret { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .marquee-track { animation: none; }
}
