:root {
  --bg: oklch(0.98 0.004 85);
  --bg-alt: oklch(0.955 0.006 85);
  --ink: oklch(0.18 0.01 250);
  --ink-2: oklch(0.36 0.01 250);
  --ink-3: oklch(0.58 0.01 250);
  --line: oklch(0.88 0.006 85);
  --line-2: oklch(0.93 0.005 85);
  --accent: #FF5A1F;                /* signal orange */
  --accent-ink: #D94711;
  --red: oklch(0.52 0.17 25);
  --green: oklch(0.55 0.10 155);
  --blue: oklch(0.52 0.10 245);

  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.008 250);
  --bg-alt: oklch(0.20 0.010 250);
  --ink: oklch(0.96 0.004 85);
  --ink-2: oklch(0.78 0.006 85);
  --ink-3: oklch(0.58 0.008 85);
  --line: oklch(0.28 0.010 250);
  --line-2: oklch(0.24 0.010 250);
  --accent: #FF7A48;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","zero","tnum"; }
.display { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 17px;
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: -0.05em;
  border-radius: 7px;
  line-height: 1;
}
.logo-mark.sm { width: 26px; height: 26px; font-size: 11px; border-radius: 6px; }
.logo-one { color: var(--accent); }
.logo-word { font-weight: 600; letter-spacing: -0.025em; }
.nav-links {
  display: flex; gap: 28px; font-size: 14px; color: var(--ink-2);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 2px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 32px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
  font-family: "Inter Tight", serif;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.hero-meta > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta > div:nth-child(2n) { border-right: 0; }
.hero-meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.hero-meta .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta .v { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -0.02em; margin-top: 10px; font-weight: 600; }
.hero-meta .d { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* marquee */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
}
.strip-inner { display: inline-flex; gap: 40px; animation: marquee 45s linear infinite; padding-left: 40px; }
.strip span::before { content: "·"; margin-right: 40px; color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
section.section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vh, 64px);
}
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 12px 0 0;
  font-weight: 600;
  text-wrap: balance;
}
.sec-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- MODULES ---------- */
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.module {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vh, 72px) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.module:last-child { border-bottom: 0; }
@media (max-width: 1080px) { .module { grid-template-columns: 1fr; } }

.module-text .eyebrow { display: flex; align-items: center; gap: 10px; }
.module-text .eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px; background: var(--accent);
}
.module-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.module-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 18px;
  font-weight: 600;
}
.module-text p { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.45;
}
.bullets li::before {
  content: "→"; font-family: var(--font-mono); color: var(--accent-ink);
  font-size: 13px; line-height: 1.6;
}

/* MOCK UI — shared surface */
.mock {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.mock-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase;
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }

/* KPI strip */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-bottom: 12px;
}
.kpi-strip > div { background: var(--bg); padding: 10px 12px; }
.kpi-strip .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.kpi-strip .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-strip .d { font-family: var(--font-mono); font-size: 10.5px; margin-top: 2px; color: var(--ink-3); }
.kpi-strip .d.up { color: var(--red); }
.kpi-strip .d.ok { color: var(--green); }

/* Restaurant rows */
.rlist { display: grid; gap: 6px; }
.rrow {
  display: grid; grid-template-columns: 1fr 90px 1fr 60px; gap: 10px;
  align-items: center; font-size: 12.5px;
  padding: 8px 10px; background: var(--bg-alt);
  border: 1px solid var(--line);
}
.rrow .name { font-weight: 500; }
.rrow .bar {
  height: 6px; background: var(--line-2); position: relative; border-radius: 0;
}
.rrow .bar > i {
  position: absolute; inset: 0 auto 0 0; background: var(--accent);
}
.rrow .bar.over > i { background: var(--red); }
.rrow .pct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); text-align: right; }

/* ---------- PROOF / STATS ---------- */
.proof {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.proof h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 600;
  margin: 12px 0 48px;
  max-width: 18ch;
  text-wrap: balance;
}
.proof .eyebrow { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: color-mix(in oklab, var(--bg) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}
.proof-grid > div { background: var(--ink); padding: 28px 28px 32px; }
.proof-grid .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: 0.5; }
.proof-grid .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4.2vw, 54px); letter-spacing: -0.025em; line-height: 1; margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.proof-grid .v em { font-style: normal; color: var(--accent); }
.proof-grid .d { font-size: 13px; opacity: 0.65; margin-top: 10px; line-height: 1.4; }

@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTORS ---------- */
.sectors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.sectors > div {
  padding: 32px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.sectors > div:last-child { border-right: 0; }
.sectors h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em; margin: 0;
}
.sectors ul { padding: 0; list-style: none; margin: 0; display: grid; gap: 8px; }
.sectors li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.sectors li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; } .sectors > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- STACK ---------- */
.stack-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.stack-table th, .stack-table td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.stack-table th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.stack-table td.layer { font-weight: 600; width: 180px; }
.stack-table td.mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(80px, 12vh, 140px) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 32px;
  max-width: 18ch; text-wrap: balance;
}
.cta h2 em { font-style: normal; color: var(--accent-ink); }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta-contact { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-left: auto; }

/* ---------- FOOTER ---------- */
footer {
  padding: 40px 0 32px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- DASHBOARD PAGES ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1080px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-card {
  background: var(--bg);
  padding: 22px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.dash-card header h4 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px; letter-spacing: -0.02em;
  margin: 6px 0 6px;
}
.dash-card header p {
  font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.45;
}
.dash-mock { margin-top: auto; }
.mock.sm { min-height: 220px; padding: 12px; }
.mock.sm .mock-chrome { padding-bottom: 8px; margin-bottom: 10px; font-size: 10px; }

/* ---------- TWEAKS ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 14px 16px;
  z-index: 50;
  font-size: 13px;
  box-shadow: 0 20px 60px -20px oklch(0 0 0 / 0.25);
}
.tweaks h5 {
  margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}
.tweaks .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-2); }
.tweaks .row:first-of-type { border-top: 0; }
.tweaks label { color: var(--ink-2); font-size: 12px; font-family: var(--font-mono); }
.tweaks .opts { display: inline-flex; gap: 4px; }
.tweaks .opt {
  width: 22px; height: 22px; border: 1px solid var(--line); cursor: pointer;
}
.tweaks .opt[aria-selected="true"] { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -4px; }

/* Fine details */
::selection { background: var(--accent); color: var(--ink); }
