:root {
  --ivory: #f7f4ee;
  --surface: #ffffff;
  --charcoal: #191714;
  --muted: #6d675f;
  --copper: #c45b3c;
  --copper-dark: #9e452f;
  --green: #2f6b58;
  --amber: #a96f22;
  --border: #e4ded4;
  --ink-soft: #35302a;
  --shadow: 0 20px 55px rgba(25, 23, 20, 0.12);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(196, 91, 60, 0.42); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--charcoal);
  color: var(--surface);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100% - 32px, 1220px);
  margin: 0 auto;
}
.section-anchor { scroll-margin-top: 92px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 222, 212, 0.8);
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(14px);
}
.header-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand, .footer-shell strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-mark span {
  width: 18px;
  height: 14px;
  display: block;
  border-left: 4px solid var(--ivory);
  border-right: 4px solid var(--copper);
  transform: skewX(-12deg);
  position: relative;
}
.brand-mark span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 4px;
  height: 14px;
  background: var(--green);
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
}
.site-nav a:hover, .link-action:hover { color: var(--copper-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.link-action { color: var(--ink-soft); font-weight: 700; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--copper); color: var(--surface); }
.button-primary:hover { background: var(--copper-dark); }
.button-secondary { border-color: var(--border); color: var(--charcoal); background: rgba(255,255,255,0.58); }
.nav-toggle { display: none; }

.hero { padding: 72px 0 54px; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
}
.reverse { grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr); }
.reverse > :first-child { order: 1; }
.reverse > :last-child { order: 2; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
  font-weight: 850;
}
h1 {
  max-width: 690px;
  font-size: clamp(3.45rem, 5.55vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2.1rem, 4.25vw, 4.15rem);
  letter-spacing: -0.035em;
}
.hero-subtitle, .feature-copy p, .final-cta p {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
}
.hero-subtitle { max-width: 520px; margin: 24px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trial-note {
  max-width: 510px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.support-line {
  color: var(--charcoal);
  font-weight: 750;
}

.hero-system {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}
.panel, .phone-mock, .bill-card, .cash-card, .insights-board, .routing-visual, .floor-visual {
  border: 1px solid rgba(228, 222, 212, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.floor-panel {
  position: absolute;
  inset: 12px 0 auto auto;
  width: min(100%, 540px);
  padding: 20px;
  animation: floatSoft 7s ease-in-out infinite;
}
.panel-head, .kds-head, .insights-head, .bill-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  color: var(--muted);
}
.panel-head strong, .kds-head span { color: var(--green); }
.tables-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.table-chip {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfaf7;
}
.table-chip strong, .table-chip span { display: block; }
.table-chip span {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}
.table-chip.ready span, .floor-visual article:nth-child(3) span { color: var(--green); }
.table-chip.call span, .floor-visual article:nth-child(2) span { color: var(--copper-dark); }
.table-chip.warm span, .floor-visual article:nth-child(1) span { color: var(--amber); }
.table-chip.neutral span, .floor-visual article:nth-child(4) span { color: var(--copper); }
.order-card {
  position: absolute;
  right: 20px;
  top: 254px;
  width: 226px;
  padding: 18px;
  z-index: 2;
  animation: floatSoft 8s ease-in-out infinite 600ms;
}
.route-label, .status-badge, .status-pill, .balanced, .pass-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.route-label { background: var(--ivory); color: var(--muted); }
.status-badge.ready, .status-pill, .balanced { background: rgba(47, 107, 88, 0.12); color: var(--green); }
.kitchen-card {
  position: absolute;
  left: 86px;
  bottom: 0;
  width: 292px;
  padding: 21px;
  background: var(--charcoal);
  color: var(--surface);
  border-color: rgba(255,255,255,0.08);
  animation: floatSoft 7.5s ease-in-out infinite 250ms;
}
.kitchen-card .muted, .kds-card .muted { color: rgba(255,255,255,0.74); }
.kitchen-card .kds-head strong { color: rgba(255,255,255,0.72); }
.system-line {
  position: absolute;
  left: 56%;
  top: 210px;
  width: 2px;
  height: 160px;
  background: linear-gradient(var(--copper), rgba(196,91,60,0));
}
.system-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 3s ease-in-out infinite;
}

.flow-section {
  padding: 48px 0 56px;
  background: var(--surface);
}
.flow-section h2 {
  max-width: 980px;
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 3.75rem);
}
.flow-line {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  overflow: visible;
  padding-bottom: 0;
}
.flow-line span {
  min-height: 58px;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: var(--ivory);
  font-weight: 850;
  font-size: clamp(0.76rem, 1.15vw, 0.98rem);
  color: var(--ink-soft);
  position: relative;
  text-align: center;
}
.flow-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
  transform: rotate(45deg);
  background: var(--ivory);
  z-index: 1;
}

.feature-section, .ecosystem-section, .multi-section { padding: 80px 0; }
.feature-section { background: var(--ivory); }
.feature-copy { max-width: 560px; }
.feature-copy p { max-width: 600px; }
.feature-copy p + p { margin-top: 18px; }
.phone-mock {
  width: min(100%, 390px);
  justify-self: center;
  padding: 18px;
  border-radius: 28px;
  background: #11100e;
  color: var(--surface);
}
.phone-top {
  padding: 20px 16px;
  font-size: 1.1rem;
  font-weight: 850;
}
.category-row, .segmented, .bill-tabs, .kds-actions, .roles-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-row span, .segmented span, .bill-tabs span, .kds-actions span, .roles-strip span {
  border: 1px solid rgba(228,222,212,0.72);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 750;
  font-size: 0.86rem;
}
.category-row .selected, .segmented span:first-child { background: var(--copper); border-color: var(--copper); color: var(--surface); }
.menu-item {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--charcoal);
}
.menu-item strong, .menu-item span, .menu-item label { display: block; }
.menu-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.segmented { margin: 18px 0; }
.menu-item label { margin: 10px 0; color: var(--muted); }
.menu-item button {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--copper);
  color: var(--surface);
  font-weight: 850;
}

.dark-section {
  background: var(--charcoal);
  color: var(--surface);
}
.dark-section .eyebrow { color: #e3a083; }
.dark-section p { color: rgba(255,255,255,0.72); }
.dark-section .support-line { color: var(--surface); }
.routing-visual {
  padding: 22px;
  background: #211f1b;
  border-color: rgba(255,255,255,0.1);
  color: var(--surface);
}
.route-source, .pass-chip {
  width: fit-content;
  background: rgba(196,91,60,0.18);
  color: #efc1b1;
}
.route-source {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.route-arrow {
  height: 38px;
  width: 2px;
  margin: 8px 0 8px 24px;
  background: var(--copper);
}
.route-box, .kds-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.045);
}
.route-box p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
}
.route-box span { color: #e3a083; font-weight: 850; }
.kds-card { margin-top: 16px; }
.kds-actions { margin-top: 18px; }
.kds-actions span:last-child { background: var(--green); border-color: var(--green); }
.pass-chip { margin-top: 16px; }

.floor-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.floor-visual article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfaf7;
}
.floor-visual strong, .floor-visual span { display: block; }
.floor-visual span {
  margin-top: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.bill-section, .ecosystem-section { background: var(--surface); }
.bill-card, .cash-card, .insights-board {
  padding: 22px;
}
.bill-total {
  color: var(--charcoal);
  font-size: 1.02rem;
}
.bill-total strong { font-size: 1.5rem; }
.bill-tabs { margin: 18px 0 22px; }
.bill-tabs span:first-child { background: var(--ivory); border-color: var(--copper); }
.bill-card p, .cash-card p, .adjustment-mini p, .insight-lines p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0;
}
.bill-card hr, .cash-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.settled strong { color: var(--green); }
.control-section { background: var(--ivory); }
.adjustment-mini {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
}
.cash-card strong {
  display: block;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.balanced {
  margin-top: 12px;
  min-height: 32px;
  padding-inline: 12px;
  box-shadow: inset 0 0 0 1px rgba(47,107,88,0.08);
}

.insights-section {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--surface), var(--ivory));
}
.insights-head { color: var(--muted); margin-bottom: 18px; }
.insights-head strong { color: var(--charcoal); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric-grid article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfaf7;
}
.metric-grid span, .insight-lines span { color: var(--muted); }
.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.46rem;
}
.chart-row {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--charcoal);
}
.chart-row span {
  flex: 1;
  min-width: 22px;
  height: var(--h);
  border-radius: 9px 9px 2px 2px;
  background: linear-gradient(180deg, #d87955, var(--copper-dark));
}
.chart-row span:nth-child(1) { --h: 34%; }
.chart-row span:nth-child(2) { --h: 42%; }
.chart-row span:nth-child(3) { --h: 58%; }
.chart-row span:nth-child(4) { --h: 78%; }
.chart-row span:nth-child(5) { --h: 66%; }
.chart-row span:nth-child(6) { --h: 49%; }

.section-heading { max-width: 820px; margin-bottom: 34px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.module-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--ivory);
}
.module-grid strong, .module-grid span { display: block; }
.module-grid span { margin-top: 42px; color: var(--muted); }
.multi-section { background: var(--ivory); }
.roles-strip {
  align-content: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.roles-strip span { background: #fbfaf7; }

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(196,91,60,0.14), transparent 34%),
    radial-gradient(circle at 85% 75%, rgba(47,107,88,0.10), transparent 28%),
    var(--charcoal);
  color: var(--surface);
}
.final-cta .shell {
  max-width: 850px;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.final-cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.final-cta p {
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 800;
}
.final-cta .final-brand {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efc1b1;
}
.final-cta .button { margin-top: 4px; min-width: 190px; }
.final-cta span { color: rgba(255,255,255,0.68); }

.site-footer {
  padding: 36px 0;
  background: var(--ivory);
  border-top: 1px solid var(--border);
}
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-shell p, .footer-shell > span { margin: 4px 0 0; color: var(--muted); }
.footer-shell nav { display: flex; gap: 18px; font-weight: 750; color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .site-nav { gap: 18px; }
  .header-shell { gap: 18px; }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
  h1 { font-size: clamp(3.35rem, 5.8vw, 4.45rem); }
  .hero-system { min-height: 500px; }
  .floor-panel { width: min(100%, 500px); }
  .kitchen-card { left: 56px; }
  .flow-line span { font-size: 0.76rem; padding-inline: 5px; }
}

@media (max-width: 900px) {
  .header-shell { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--charcoal);
  }
  .js .site-nav, .js .header-actions {
    display: none;
    grid-column: 1 / -1;
  }
  .js .site-header.nav-open .site-nav,
  .js .site-header.nav-open .header-actions {
    display: flex;
  }
  .js .site-header.nav-open .site-nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }
  .js .site-header.nav-open .header-actions {
    padding-bottom: 16px;
    flex-wrap: wrap;
  }
  .hero-grid, .split, .reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .reverse > :first-child, .reverse > :last-child { order: initial; }
  .hero { padding: 46px 0 42px; }
  .hero-system { min-height: auto; display: grid; gap: 14px; }
  .floor-panel, .order-card, .kitchen-card {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
  }
  .system-line { display: none; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid article { min-height: 154px; }
  .footer-shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1220px); }
  .site-header { position: sticky; }
  .header-shell { min-height: 66px; }
  h1 {
    font-size: clamp(2.55rem, 14.5vw, 4.15rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
  }
  h2 { font-size: clamp(1.92rem, 10vw, 3rem); }
  .hero-actions .button, .header-actions .button { width: 100%; }
  .tables-map, .floor-visual, .metric-grid, .module-grid {
    grid-template-columns: 1fr;
  }
  .flow-line {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .flow-line span:not(:last-child)::after {
    right: auto;
    bottom: -8px;
    transform: rotate(135deg);
  }
  .feature-section, .ecosystem-section, .multi-section, .insights-section {
    padding: 64px 0;
  }
  .final-cta { padding: 78px 0; }
  .phone-mock { border-radius: 18px; }
  .bill-tabs span, .roles-strip span { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .module-grid article:hover { transform: none; }
}
