/* =========================================================================
   GridFeed — Landing Page
   Deep-navy, modern-technical. Brand tokens pulled from the app (apps/web).
   No build step: plain CSS, custom properties, Inter via Google Fonts.
   ========================================================================= */

:root {
  /* Brand — action */
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  /* Brand — tri-color mark accents */
  --gold: #faaf3a;
  --green: #77bc59;
  --teal: #46aeab;

  /* Surface — deep navy scale */
  --navy-950: #08111f;
  --navy-900: #0d1b2e;   /* app sidebar bg */
  --navy-850: #101f36;
  --navy-800: #14263f;
  --navy-700: #1e3a5f;   /* app sidebar hover/border */

  /* Ink */
  --white: #ffffff;
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;  /* app muted text */
  --slate-500: #64748b;

  /* Status */
  --positive: #16a34a;

  /* Semantic */
  --bg: var(--navy-950);
  --panel: var(--navy-900);
  --panel-2: var(--navy-850);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e8eef6;
  --text-muted: var(--slate-400);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1800px;
  --gutter: clamp(20px, 4vw, 72px);

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.35), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 16px 50px -12px rgba(37, 99, 235, 0.5);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background — subtle brand glow, no busy gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(70, 174, 171, 0.10), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--slate-300); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 14px 0 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.grad { background: linear-gradient(120deg, var(--blue-400), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--blue-500); }
.btn-sm { padding: 9px 15px; font-size: 0.88rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 17, 31, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--slate-300); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero h1 .flip { color: var(--slate-400); font-weight: 700; }
.hero .lead { max-width: 34rem; }
.hero .lead-strong { margin-top: 12px; color: var(--white); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--slate-500); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }

/* ---------- App window mockup (screenshot placeholder) ---------- */
.window {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.window-bar .dot3 { width: 11px; height: 11px; border-radius: 50%; background: var(--navy-700); }
.window-bar .addr { margin-left: 12px; font-size: 0.76rem; color: var(--slate-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.window-body { position: relative; aspect-ratio: 16 / 10.5; display: grid; place-items: center; text-align: center; padding: 24px; }
.window-body.tall { aspect-ratio: 16 / 11; }
/* faux dashboard scaffold behind the label so the placeholder reads as "product" */
.window-body::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 100% 40px,
    radial-gradient(400px 200px at 70% 20%, rgba(59,130,246,0.10), transparent 70%);
  opacity: 0.9;
}
/* window body holding a real screenshot */
.window-body.shot { padding: 0; display: block; }
.window-body.shot::before { display: none; }
.window-body.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ph { position: relative; z-index: 1; }
.ph .ph-icon {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3);
}
.ph .ph-title { font-weight: 600; color: var(--slate-300); }
.ph .ph-sub { font-size: 0.82rem; color: var(--slate-500); margin-top: 4px; }
.ph-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-400); background: rgba(8,17,31,0.6); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: 999px;
}

/* floating stat card over the hero window */
.float-stat {
  position: absolute; z-index: 3;
  background: rgba(13, 27, 46, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 15px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}
.float-stat .fs-label { font-size: 0.72rem; color: var(--slate-400); }
.float-stat .fs-value { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.float-stat.tl { top: -18px; left: -22px; z-index: 50; }
.float-stat.br { bottom: -20px; right: -18px; z-index: 50; }
.up { color: var(--positive); }

/* ---------- Animated coverflow hero ---------- */
/* 4 real app screens cycle through 4 slots on a gentle, safe angle (no steep
   rotateY-near-camera math that can balloon/warp a pane). Every few seconds
   JS moves each slide's slot class forward one step — the front slide steps
   back, the next one steps up — a "revolving door" through the 4 screens. */
.hero-media { position: relative; overflow: visible; }
.stack {
  position: relative;
  height: clamp(340px, 34vw, 600px);
  width: 108%;
  margin-left: -4%;
  perspective: 1400px;
  perspective-origin: 68% 45%;
}
.stack .pane {
  position: absolute;
  top: 50%;
  left: 2%;
  width: 66%;
  /* matches the source screenshots' actual aspect ratio (~2.07:1 desktop
     capture) so object-fit: cover never has to crop the sides away */
  aspect-ratio: 2.07 / 1;
  height: auto;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1b2e;
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.9s ease,
              filter 0.9s ease, box-shadow 0.9s ease;
}
.stack .pane img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stack .pane figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 10px 14px; font-size: 0.78rem; font-weight: 600; color: var(--white);
  background: linear-gradient(0deg, rgba(8, 17, 31, 0.82), transparent);
  opacity: 0; transition: opacity 0.5s ease;
}
.slot-0 figcaption { opacity: 1; }
/* glass sheen across each real pane */
.stack .pane::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 40%);
  mix-blend-mode: screen;
}
/* slots: 0 = front/center, 3 = furthest back. Gentle, safe angle throughout. */
.slot-0 {
  transform: translateY(-50%) translateX(0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1; filter: none; z-index: 40;
  box-shadow: 0 36px 70px -20px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(96, 165, 250, 0.4),
              0 0 55px -10px rgba(37, 99, 235, 0.5);
}
.slot-1 {
  transform: translateY(-50%) translateX(36%) translateZ(-150px) rotateY(-24deg) scale(0.9);
  opacity: 0.8; filter: brightness(0.9) saturate(0.96); z-index: 30;
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.6);
}
.slot-2 {
  transform: translateY(-50%) translateX(60%) translateZ(-300px) rotateY(-24deg) scale(0.8);
  opacity: 0.56; filter: brightness(0.76) saturate(0.9) blur(0.3px); z-index: 20;
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.55);
}
.slot-3 {
  transform: translateY(-50%) translateX(80%) translateZ(-450px) rotateY(-24deg) scale(0.72);
  opacity: 0.34; filter: brightness(0.6) saturate(0.85) blur(0.6px); z-index: 10;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .stack .pane { transition: none; }
}

/* ---------- Trust strip ---------- */
.trust { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); }
.trust-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--slate-300); font-size: 0.98rem; }
.trust-item svg { color: var(--teal); }
.trust-item.placeholder { color: var(--slate-500); font-weight: 500; border: 1px dashed var(--border-strong); border-radius: 8px; padding: 7px 13px; font-size: 0.85rem; }

/* ---------- Generic section spacing ---------- */
.block { padding: clamp(64px, 9vw, 108px) 0; }

/* ---------- Problem cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-400); font-size: 0.96rem; }
.ico.gold { color: var(--gold); }
.ico.green { color: var(--green); }
.ico.teal { color: var(--teal); }
.ico.blue { color: var(--blue-400); }

/* ---------- Solution: full-width flow diagram ---------- */
.flow-diagram {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  padding: clamp(16px, 3vw, 32px);
}
.flow-diagram-scroll { overflow-x: auto; }
.flow-diagram img {
  display: block; width: 100%; height: auto; min-width: 900px;
}
.flow-diagram-hint {
  display: none; text-align: center; font-size: 0.78rem; color: var(--slate-500);
  margin-top: 10px;
}

/* ---------- Capabilities ---------- */
.grid-cap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.cap::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent, var(--blue-500)); opacity: 0.7;
}
.cap h3 { font-size: 1.05rem; margin-bottom: 7px; }
.cap p { color: var(--slate-400); font-size: 0.9rem; }
.cap .cap-ico { margin-bottom: 14px; }

/* ---------- Outcomes band ---------- */
.outcomes { background: linear-gradient(180deg, var(--panel), var(--navy-950)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; }
.stat .big { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, var(--white), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .cap-txt { color: var(--slate-400); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Why us / comparison ---------- */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.pill-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.pill-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--slate-300); }
.pill-list .check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(22,163,74,0.15); color: var(--positive); margin-top: 2px; }

.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
table.cmp th, table.cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background-color 0.15s ease; }
table.cmp thead th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
table.cmp thead th.us { color: var(--white); }
table.cmp tbody td:first-child { color: var(--slate-400); font-weight: 500; }
table.cmp tbody tr:nth-child(even) td:not(.us) { background: rgba(255, 255, 255, 0.018); }
table.cmp tbody tr:hover td:not(.us) { background: rgba(255, 255, 255, 0.045); }
table.cmp td.us {
  color: var(--white);
  font-weight: 600;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.06));
  box-shadow: inset 1px 0 0 rgba(96, 165, 250, 0.25);
}
table.cmp td.us::before { content: "✓"; display: inline-block; margin-right: 8px; color: var(--blue-400); font-weight: 700; }
table.cmp tbody tr:hover td.us { background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.1)); }
table.cmp thead th.us {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.14));
  box-shadow: inset 1px 0 0 rgba(96, 165, 250, 0.3);
  position: relative;
}
table.cmp thead th.us::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--teal));
}
table.cmp tr:last-child td { border-bottom: none; }
.us-badge { display: inline-flex; align-items: center; gap: 7px; }
.us-badge img { height: 18px; }

/* ---------- Design partner ---------- */
.dp {
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(37,99,235,0.16), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  position: relative;
  overflow: hidden;
}
.dp .eyebrow { color: var(--gold); }
.dp .eyebrow::before { background: linear-gradient(90deg, var(--gold), transparent); }
.dp h2 { margin: 14px 0 16px; max-width: 620px; }
.dp p { color: var(--slate-300); max-width: 620px; }
.dp-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk .p-ico { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.perk h4 { margin: 0 0 3px; font-size: 0.98rem; font-weight: 600; }
.perk p { font-size: 0.88rem; color: var(--slate-400); }
.dp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.dp-foot .fine { font-size: 0.82rem; color: var(--slate-500); }

/* ---------- Shared form field styling (modal + contact form) ---------- */
.field-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
input[type="email"], input[type="text"], input[type="number"] {
  flex: 1; min-width: 200px;
  background: rgba(8,17,31,0.6); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 0.95rem;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="number"]:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* ---------- Whitepaper modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: var(--gutter);
  opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--navy-850), var(--navy-900));
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  padding: clamp(24px, 4vw, 36px);
  transform: translateY(8px) scale(0.98); transition: transform 0.2s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03); color: var(--slate-400);
  cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.modal-close:hover { color: var(--white); border-color: var(--blue-500); }
.modal-card h3 { margin: 14px 0 10px; font-size: 1.4rem; }
.modal-sub { color: var(--slate-400); font-size: 0.92rem; margin-bottom: 4px; }
.modal-card .field-row { margin-top: 20px; }
.modal-card .field-row input { min-width: 0; }
.modal-card .field-row .btn { flex-shrink: 0; }

/* form success state — shared by the whitepaper and demo-request forms */
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; }
.form-success[hidden] { display: none; }
.form-success-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(22, 163, 74, 0.15); color: var(--positive); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 14px;
}
.form-success-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.form-success-sub { color: var(--slate-400); font-size: 0.92rem; max-width: 32rem; margin-bottom: 18px; }

/* ---------- Final CTA / demo request form ---------- */
.final { text-align: center; }
.final h2 { max-width: 720px; margin: 0 auto 16px; }
.final p { color: var(--slate-300); max-width: 560px; margin: 0 auto 30px; }
.final .hero-cta { justify-content: center; }
/* ---------- Demo / design-partner form toggle ---------- */
.form-toggle {
  display: inline-flex; gap: 4px; padding: 5px; margin: 18px 0 26px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong);
}
.form-toggle-btn {
  padding: 9px 22px; border-radius: 999px; border: none; background: transparent;
  color: var(--slate-400); font-weight: 600; font-size: 0.9rem; font-family: inherit;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.form-toggle-btn:hover { color: var(--slate-300); }
.form-toggle-btn.active {
  background: var(--blue-600); color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}
.form-toggle-btn.active[data-set-mode="partner"] {
  background: var(--gold); color: var(--navy-950);
  box-shadow: 0 6px 16px -6px rgba(250, 175, 58, 0.55);
}
.contact-card {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 0.25s ease, background 0.25s ease;
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue-500); transition: background 0.25s ease;
}
.contact-card[data-mode="partner"] {
  border-color: rgba(250, 175, 58, 0.3);
  background: linear-gradient(180deg, rgba(250, 175, 58, 0.06), rgba(255, 255, 255, 0.01));
}
.contact-card[data-mode="partner"]::before { background: linear-gradient(90deg, var(--gold), #f5c76a); }
.contact-card[data-mode="partner"] .btn-primary {
  background: var(--gold); color: var(--navy-950);
  box-shadow: 0 8px 24px -8px rgba(250, 175, 58, 0.7);
}
.contact-card[data-mode="partner"] .btn-primary:hover { background: #f5c76a; }
.form-section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--slate-400); margin-bottom: 14px;
}
.form-section-label.optional { margin-top: 28px; }
.form-section-label.optional span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--slate-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; color: var(--slate-300); }
.form-field input { width: 100%; }
.contact-form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px;
}
.contact-form-foot .fine { font-size: 0.85rem; color: var(--slate-500); }
.contact-form-foot .fine a { color: var(--blue-400); }
.form-error {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5; font-size: 0.85rem;
}
.form-error[hidden] { display: none; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  background: var(--navy-950);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand p { color: var(--slate-500); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.foot-col h5 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--slate-400); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--slate-500); font-size: 0.85rem; }
.badge-soon { font-size: 0.68rem; color: var(--slate-500); border: 1px dashed var(--border-strong); border-radius: 6px; padding: 2px 6px; margin-left: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-cap, .grid-4, .dp-perks { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .float-stat.tl { top: -14px; left: 8px; }
  .float-stat.br { bottom: -14px; right: 8px; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--border); padding: 18px var(--gutter); gap: 16px;
  }
  .grid-3, .grid-cap, .grid-4, .dp-perks, .foot-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-foot { flex-direction: column; align-items: stretch; }
  .contact-form-foot .btn { width: 100%; justify-content: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .nav-actions .btn-ghost { display: none; }
  .flow-diagram-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
