/* ============================================================
   Low Latency Food Ordering Platform — BuildspaceLabs
   "Every stall, every order, every payout — one operations layer."
   Design system: warm-vibrant marketplace, Bricolage Grotesque + Inter
   ============================================================ */

:root {
  --base: #FFF8F0;
  --surface: #FFFFFF;
  --ink: #201812;
  --muted: #7A6A5C;
  --hair: #F0E6D8;
  --hair-2: #E8DBC9;

  --red: #EF4444;
  --red-600: #DC2626;
  --gold: #F59E0B;
  --green: #16A34A;

  --red-soft: rgba(239, 68, 68, 0.10);
  --gold-soft: rgba(245, 158, 11, 0.12);
  --green-soft: rgba(22, 163, 74, 0.12);

  --shadow-sm: 0 1px 2px rgba(32, 24, 18, 0.05);
  --shadow-md: 0 8px 30px rgba(32, 24, 18, 0.08);
  --shadow-lg: 0 30px 70px -20px rgba(32, 24, 18, 0.28);
  --shadow-plate: 0 40px 90px -30px rgba(120, 60, 20, 0.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

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

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.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;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(239, 68, 68, 0.75);
}
.btn-primary:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(220, 38, 38, 0.8);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hair-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: #d8c6ad;
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--hair);
  box-shadow: 0 6px 26px -18px rgba(32, 24, 18, 0.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--red), var(--gold));
  box-shadow: 0 8px 18px -8px rgba(239, 68, 68, 0.7);
  color: #fff;
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 1px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.built-by {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.5);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.built-by:hover { color: var(--ink); border-color: var(--hair-2); }
.built-by svg { width: 12px; height: 12px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .built-by { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(50% 60% at 22% 30%, rgba(245, 158, 11, 0.16), transparent 70%),
    radial-gradient(46% 55% at 78% 22%, rgba(239, 68, 68, 0.16), transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.15rem);
  margin-top: 22px;
  letter-spacing: -0.035em;
}
.hero h1 .hl {
  background: linear-gradient(105deg, var(--red) 20%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--muted);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* ---------- Signature hero animation: order flow ---------- */
.flow {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px 22px 26px;
  overflow: hidden;
  min-height: 420px;
}
.flow::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
  pointer-events: none;
}
.flow-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.flow-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}
.flow-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.flow-head .tag {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  background: var(--base); border: 1px solid var(--hair);
}

/* vendor chips row */
.vendors {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vchip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
  background: var(--base); border: 1px solid var(--hair);
}
.vchip i {
  width: 8px; height: 8px; border-radius: 3px; display: inline-block;
}
.vchip.v1 i { background: var(--red); }
.vchip.v2 i { background: var(--gold); }
.vchip.v3 i { background: var(--green); }
.vchip.v4 i { background: #8b5cf6; }

/* the stream lane where tiles fly */
.lane {
  position: relative;
  height: 92px;
  margin: 14px 0 6px;
}
.tile {
  position: absolute;
  top: 50%;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px; font-weight: 600;
  padding: 8px 11px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-30px, -50%);
}
.tile .amt { color: var(--red-600); font-variant-numeric: tabular-nums; }
.tile i { width: 7px; height: 7px; border-radius: 2px; }
.tile.t1 i { background: var(--red); }
.tile.t2 i { background: var(--gold); }
.tile.t3 i { background: var(--green); }
.tile.t4 i { background: #8b5cf6; }

.flow.play .tile { animation: stream 4.4s var(--ease) infinite; }
.flow.play .tile.t1 { animation-delay: 0s; }
.flow.play .tile.t2 { animation-delay: 1.1s; }
.flow.play .tile.t3 { animation-delay: 2.2s; }
.flow.play .tile.t4 { animation-delay: 3.3s; }

@keyframes stream {
  0%   { opacity: 0; transform: translate(-30px, -50%) scale(0.9); }
  12%  { opacity: 1; transform: translate(0, -50%) scale(1); }
  55%  { opacity: 1; transform: translate(58%, -50%) scale(1); }
  74%  { opacity: 0; transform: translate(82%, -50%) scale(0.7); }
  100% { opacity: 0; transform: translate(82%, -50%) scale(0.7); }
}

/* aggregation counter */
.aggregate {
  position: relative;
  background: linear-gradient(135deg, #2a1e15, #201812);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: #fff;
  overflow: hidden;
}
.aggregate::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(245,158,11,0.22), transparent 60%);
}
.aggregate .lbl {
  position: relative;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.aggregate .val {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  line-height: 1;
}
.aggregate .val .cur { color: var(--gold); }
.aggregate .sub {
  position: relative;
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

/* commission split bars */
.split {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.splitrow {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.splitrow .track {
  height: 9px;
  border-radius: 999px;
  background: var(--base);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.splitrow .fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.4s var(--ease);
}
.flow.play .splitrow.payout .fill { width: 82%; }
.flow.play .splitrow.commission .fill { width: 18%; }
.splitrow.payout .fill { background: linear-gradient(90deg, var(--green), #22c55e); }
.splitrow.commission .fill { background: linear-gradient(90deg, var(--red), var(--gold)); }
.splitrow .pct { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Trust band ---------- */
.band {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
}
@media (min-width: 720px) {
  .band-grid { grid-template-columns: repeat(4, 1fr); }
}
.band-cell {
  background: var(--surface);
  padding: 26px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.band-cell .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.band-cell .num em { font-style: normal; color: var(--red); }
.band-cell .cap { font-size: 13.5px; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 118px); }
.section-head { max-width: 640px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
}

/* ---------- Modules grid ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 680px) { .modules { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .modules { grid-template-columns: repeat(4, 1fr); } }

.module {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 22px 20px 24px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.module::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mod-c, var(--red));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--hair-2);
}
.module:hover::before { opacity: 1; }
.module .ico {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--mod-bg, var(--red-soft));
  color: var(--mod-c, var(--red));
  margin-bottom: 16px;
}
.module .ico svg { width: 21px; height: 21px; }
.module .idx {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--display);
  font-size: 13px; font-weight: 700;
  color: var(--hair-2);
  font-variant-numeric: tabular-nums;
}
.module h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.module p { margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Settlement worked example ---------- */
.settle-wrap {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .settle-wrap { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
}
.settle-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.settle-card .step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.settle-card .step b {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--base); border: 1px solid var(--hair);
  font-family: var(--display); font-size: 12px; color: var(--ink);
}
.settle-card h3 { font-size: 1.3rem; }
.settle-card .desc { margin-top: 8px; font-size: 14px; color: var(--muted); }
.settle-card .figure {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  padding-top: 20px;
}
.settle-card.c-order .figure { color: var(--ink); }
.settle-card.c-commission .figure { color: var(--red-600); }
.settle-card.c-payout { background: linear-gradient(160deg, #f0fdf4, var(--surface)); border-color: #cdeed6; }
.settle-card.c-payout .figure { color: var(--green); }
.settle-card .flowline {
  font-size: 12.5px; color: var(--muted); margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.settle-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  gap: 9px;
  align-items: flex-start;
}
.settle-note svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Product tour ---------- */
.tour-item { margin-top: clamp(40px, 6vw, 72px); }
.tour-item:first-child { margin-top: 0; }
.tour-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tour-head .k {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--red); letter-spacing: 0.04em;
}
.tour-head h3 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.tour-head p { flex-basis: 100%; color: var(--muted); font-size: 15px; max-width: 640px; }

.plate {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
}
.plate-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--base);
}
.plate-chrome .dots { display: flex; gap: 6px; }
.plate-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair-2); }
.plate-chrome .dots i:nth-child(1){ background: #ff6159; }
.plate-chrome .dots i:nth-child(2){ background: #ffbd2e; }
.plate-chrome .dots i:nth-child(3){ background: #28c840; }
.plate-chrome .url {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 7px;
}
.plate-chrome .url svg { width: 12px; height: 12px; }
.plate img { width: 100%; display: block; }
.plate-cap {
  padding: 15px 20px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }

.feature {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-600);
  margin-bottom: 20px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.3rem; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.feature .roles {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.feature .role {
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--base); border: 1px solid var(--hair);
  color: var(--muted);
}

/* ---------- Tech chips ---------- */
.tech {
  border-top: 1px solid var(--hair);
  background: var(--surface);
}
.tech-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding-block: clamp(40px, 6vw, 60px);
}
.tech-lbl {
  width: 100%;
  text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--base);
  border: 1px solid var(--hair);
  transition: transform 0.3s var(--ease), border-color 0.2s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--hair-2); }
.chip .d { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  background: linear-gradient(150deg, #2a1c12 0%, #201812 55%, #1a120c 100%);
  border-radius: var(--r-xl);
  padding: clamp(44px, 7vw, 80px) clamp(28px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 60% at 12% 8%, rgba(239,68,68,0.30), transparent 62%),
    radial-gradient(48% 66% at 92% 100%, rgba(245,158,11,0.28), transparent 62%);
}
.cta-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000, transparent 75%);
}
.cta-card .eyebrow { color: var(--gold); }
.cta-card .eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--red)); }
.cta-card h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 16px;
  max-width: 640px;
}
.cta-card p {
  margin-top: 18px;
  color: rgba(255,255,255,0.7);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 520px;
}
.cta-card .hero-cta { margin-top: 34px; }
.cta-card .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--surface);
  padding-block: clamp(44px, 6vw, 64px);
}
.footer-top {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  margin-top: 16px; font-size: 14px; color: var(--muted);
}
.foot-col h4 {
  font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  padding: 5px 0;
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--red-600); }
.foot-col a svg { width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.credit .bs {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--red), var(--gold));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.credit strong { color: var(--ink); font-weight: 600; }
.credit-line { font-size: 13px; color: var(--muted); max-width: 340px; }

/* ---------- Contact page ---------- */
.contact-hero { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 0; }
.contact-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; }
}
.contact-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-top: 18px;
}
.contact-copy p { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 440px; }
.contact-alt {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.contact-alt a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--hair);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.contact-alt a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hair-2); }
.contact-alt .ai {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--red-soft); color: var(--red-600); flex-shrink: 0;
}
.contact-alt .ai svg { width: 19px; height: 19px; }
.contact-alt .at { font-size: 12px; color: var(--muted); }
.contact-alt .av { font-size: 15px; font-weight: 600; color: var(--ink); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field label .req { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hair-2);
  background: var(--base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #b7a795; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.field textarea { resize: vertical; min-height: 128px; }
.form-card .btn-primary { width: 100%; justify-content: center; }
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.form-note svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* ---------- Thank you page ---------- */
.thanks {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}
.thanks-inner { max-width: 520px; }
.thanks-badge {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  animation: pop 0.6s var(--ease) both;
}
.thanks-badge svg { width: 40px; height: 40px; }
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.thanks h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.thanks p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.thanks-cta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.thanks-email { margin-top: 24px; font-size: 14px; color: var(--muted); }
.thanks-email a { color: var(--red-600); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }
.reveal[data-d="7"] { transition-delay: 0.56s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .flow .tile { opacity: 1; }
  .flow .tile.t2, .flow .tile.t3, .flow .tile.t4 { display: none; }
  .flow.play .splitrow.payout .fill { width: 82%; }
  .flow.play .splitrow.commission .fill { width: 18%; }
}
