/* BuyerIQ marketing site — one shared stylesheet for all pages. */
:root {
  --blue-50: #eff5ff;
  --blue-100: #dbe8ff;
  --blue-200: #bcd4ff;
  --blue-500: #2f6bff;
  --blue-600: #1f56e6;
  --blue-700: #1843b8;
  --navy: #0b1b3f;
  --ink: #0f1d3a;
  --body: #42506b;
  --muted: #6b7891;
  --line: #e3e9f4;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 58, .06), 0 2px 8px rgba(15, 29, 58, .04);
  --shadow-lg: 0 30px 60px -20px rgba(16, 45, 120, .28), 0 12px 24px -12px rgba(16, 45, 120, .18);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 "Inter", system-ui, sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b77ff 0%, var(--blue-600) 100%);
  box-shadow: 0 8px 20px -8px rgba(31, 86, 230, .7), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(31, 86, 230, .75), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: var(--blue-200); transform: translateY(-1px); }
.btn-light { color: var(--blue-700); background: #fff; }
.btn-light:hover { color: var(--blue-700); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.35); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 29, 58, .15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--blue-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--body); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 40px; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(47, 107, 255, .16) 0%, rgba(47, 107, 255, 0) 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(55% 45% at 50% 20%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(55% 45% at 50% 20%, #000 0%, transparent 100%);
  opacity: .7;
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; background: #8fb3ff; top: -160px; left: -120px; }
.orb-2 { width: 360px; height: 360px; background: #a9c7ff; top: -80px; right: -140px; animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--blue-100);
  color: var(--blue-700); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 0 rgba(47,107,255,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,107,255,.5); } 70% { box-shadow: 0 0 0 8px rgba(47,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); } }

.hero h1 { font-size: clamp(38px, 6.4vw, 70px); font-weight: 800; letter-spacing: -0.035em; margin: 26px auto 0; max-width: 900px; }
.grad-text { background: linear-gradient(92deg, var(--blue-600) 0%, #4f8bff 50%, #1b3fa8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin: 22px auto 0; color: var(--body); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Mockup ---------- */
.mockup-wrap { position: relative; margin: 64px auto 0; max-width: 1040px; perspective: 1800px; }
.mockup-wrap::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -30px; height: 80px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(31, 86, 230, .35), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.mockup {
  border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
  transform: rotateX(6deg); transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.mockup-wrap.in .mockup { transform: rotateX(0deg); }
/* The product visual: a static picture of the BuyerIQ desktop window. */
.mockup-wrap { max-width: 1112px; }
.app {
  --app-rail: #0f1e33;
  --app-rail-2: #1d3352;
  --app-rail-ink: #c3d0e2;
  --app-rail-mute: #7f93ae;
  --app-bg: #f4f7fb;
  --app-line: #e2e8f1;
  --app-ink: #13233a;
  --app-mute: #67768c;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px; line-height: 1.45; color: var(--app-ink);
}
.app-title { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--app-line); }
.app-title img { width: 15px; height: 15px; }
.app-title-text { font-size: 12px; color: var(--app-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-win { margin-left: auto; display: flex; gap: 18px; padding-right: 4px; }
.app-win i { width: 10px; height: 10px; border: 1.5px solid #9aa7b9; border-radius: 2px; }
.app-win i:first-child { height: 0; border-width: 1.5px 0 0; align-self: center; }
.app-win i:last-child { border: 0; position: relative; }
.app-win i:last-child::before, .app-win i:last-child::after { content: ""; position: absolute; left: 50%; top: -2px; width: 1.5px; height: 14px; background: #9aa7b9; }
.app-win i:last-child::before { transform: rotate(45deg); } .app-win i:last-child::after { transform: rotate(-45deg); }
.app-menu { display: flex; gap: 16px; height: 26px; align-items: center; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--app-line); font-size: 12px; color: var(--app-ink); }

.app-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 286px; height: 700px; background: var(--app-bg); }

/* Sidebar */
.app-side { background: var(--app-rail); color: var(--app-rail-ink); display: flex; flex-direction: column; padding: 16px 10px 12px; min-width: 0; }
.app-brand { padding: 0 6px 14px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.app-brand-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.app-dot { width: 9px; height: 9px; border-radius: 3px; background: #34c38f; box-shadow: 0 0 0 3px rgba(52,195,143,.18); }
.app-brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--app-rail-mute); margin-top: 6px; line-height: 1.5; }
.app-nav { display: grid; gap: 1px; }
.app-nav div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; white-space: nowrap; }
.app-nav div em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--app-rail-mute); }
.app-nav .on { background: var(--app-rail-2); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 #5b8cff; }
.app-legacy { margin-top: 10px; padding: 10px 10px 0; border-top: 1px solid rgba(255,255,255,.07); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--app-rail-mute); }
.app-status { margin-top: auto; padding: 10px 6px 8px; border-top: 1px solid rgba(255,255,255,.07); display: grid; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--app-rail-ink); }
.app-status div { display: flex; align-items: center; gap: 7px; }
.app-status i { width: 6px; height: 6px; border-radius: 50%; background: #e0a43a; }
.app-status i.ok { background: #34c38f; }
.app-powered { padding: 8px 6px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px; color: var(--app-rail-mute); }

/* Main column */
.app-main { display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; }
.app-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(180deg, rgba(244,247,251,0), var(--app-bg)); pointer-events: none; }
.app-top { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--app-line); }
.app-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--app-line); border-radius: 8px; background: #f8fafc; color: #8a97a9; font-style: italic; white-space: nowrap; overflow: hidden; max-width: 340px; }
.app-search svg { width: 14px; height: 14px; flex: none; }
.app-top-link { margin-left: auto; font-weight: 600; }
.app-btn { padding: 6px 12px; border: 1px solid var(--app-line); border-radius: 7px; background: #fff; font-weight: 600; white-space: nowrap; }
.app-content { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.app-h1row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-h1 { font-size: 19px; font-weight: 700; }
.app-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #e9eef6; font-size: 11.5px; }
.app-tabs span { padding: 4px 10px; border-radius: 6px; color: var(--app-mute); white-space: nowrap; }
.app-tabs .on { background: #fff; color: var(--app-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,29,58,.08); }
.app-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--app-mute); margin-top: 4px; }
.app-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.app-stat { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.app-stat span { display: block; font-size: 10.5px; color: var(--app-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-stat b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-stat small { display: block; font-size: 10.5px; color: var(--app-mute); margin-top: 2px; }
.app-stat.wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: linear-gradient(120deg, #fff 40%, #eef4ff); border-color: #d5e2fb; }
.app-stat.wide b { font-size: 22px; color: var(--blue-700); }
.app-stat.wide span { font-size: 11px; font-weight: 600; color: var(--app-ink); }
.app-cards { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; }
.app-card { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.app-card-h { margin-bottom: 8px; }
.app-card-h b { display: block; font-size: 12.5px; }
.app-card-h small { color: var(--app-mute); font-size: 10.5px; }
.app-table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.app-table th { text-align: left; font-weight: 600; color: var(--app-mute); font-size: 10.5px; padding: 0 6px 6px 0; border-bottom: 1px solid var(--app-line); }
.app-table td { padding: 6px 6px 6px 0; border-bottom: 1px solid #f0f3f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table .n { width: 62px; }
.app-table th.n.hide-sm { width: 66px; }
.app-table th:nth-child(2) { width: 62px; }
.app-table td:first-child { white-space: normal; line-height: 1.3; }
.app-table .n { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 6px; }
.app-table td:first-child { font-weight: 600; color: var(--blue-700); }
.app-mkts { display: grid; gap: 9px; padding-top: 2px; }
.app-mkt { display: grid; grid-template-columns: 70px minmax(0, 1fr) 52px; align-items: center; gap: 8px; font-size: 11.5px; }
.app-mkt i { height: 8px; border-radius: 4px; background: #edf2fa; overflow: hidden; }
.app-mkt s { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8fb3ff, var(--blue-600)); transform-origin: left; transform: scaleX(.05); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.app-mkt em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--app-mute); }
.app-cols { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.app-cols span { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #5a8dff, var(--blue-600)); transform-origin: bottom; transform: scaleY(.05); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.app-cols span:nth-child(odd) { background: linear-gradient(180deg, #b9d0ff, #8fb3ff); }
.app-cols-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--app-mute); margin-top: 4px; }
.mockup-wrap.in .app-cols span { transform: scaleY(1); }
.mockup-wrap.in .app-mkt s { transform: scaleX(1); }

/* Assistant column */
.app-ai { background: #fff; border-left: 1px solid var(--app-line); display: flex; flex-direction: column; min-width: 0; }
.app-ai-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--app-line); }
.app-ai-h b { display: block; font-size: 15px; }
.app-ai-h small { color: var(--app-mute); font-size: 10.5px; }
.app-ai-h > span { font-weight: 600; }
.app-ai-body { flex: 1; min-height: 0; padding: 12px 14px; display: grid; gap: 9px; align-content: start; overflow: hidden; }
.app-q { justify-self: end; max-width: 88%; padding: 7px 11px; border-radius: 12px 12px 3px 12px; background: var(--blue-600); color: #fff; font-weight: 500; }
.app-a { border: 1px solid var(--app-line); border-radius: 12px 12px 12px 3px; padding: 10px 12px; background: #fbfcfe; }
.app-a p { margin-bottom: 6px; }
.app-a-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--app-line); font-size: 11.5px; }
.app-a-row span { font-weight: 600; color: var(--blue-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-a-row em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--app-mute); }
.app-prov { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--app-line); display: grid; gap: 5px; font-size: 10.5px; color: var(--app-mute); }
.app-prov div { display: flex; align-items: center; gap: 6px; }
.app-prov .tag { font-size: 9.5px; padding: 2px 6px; flex: none; }
.tag { font-weight: 600; border-radius: 999px; white-space: nowrap; }
.tag-int { background: #e6f6ee; color: #18794e; }
.tag-web { background: var(--blue-50); color: var(--blue-700); }
.tag-ai { background: #f1ecff; color: #5b3cc4; }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-chips span { padding: 4px 9px; border: 1px solid var(--app-line); border-radius: 999px; font-size: 10.5px; color: var(--app-ink); background: #fff; }
.app-ai-input { padding: 10px 14px 12px; border-top: 1px solid var(--app-line); }
.app-ta { display: flex; align-items: flex-start; gap: 2px; min-height: 46px; padding: 8px 10px; border: 1px solid var(--app-line); border-radius: 8px; color: #8a97a9; font-style: italic; }
.caret { width: 1.5px; height: 14px; background: var(--blue-500); animation: blink 1.1s steps(1) infinite; flex: none; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.app-ai-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; }
.app-ai-foot label { display: flex; align-items: center; gap: 6px; }
.app-ai-foot label i { width: 12px; height: 12px; border-radius: 3px; background: var(--blue-600); position: relative; }
.app-ai-foot label i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.app-ask { padding: 5px 14px; border-radius: 7px; background: var(--blue-600); color: #fff; font-weight: 600; }
.mock-caption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* Narrower windows: assistant moves under the dashboard. */
@media (max-width: 1060px) {
  .app-body { grid-template-columns: 186px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  .app-main { max-height: 700px; }
  .app-ai { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--app-line); }
  .app-ai-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .app-q { grid-column: 1 / -1; }
  .app-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-cards { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: sidebar becomes a horizontal tab strip; everything stacks. */
@media (max-width: 760px) {
  .mockup { transform: none; border-radius: 14px; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; overflow: hidden; }
  .app-brand { border: 0; margin: 0; padding: 0 4px; flex: none; }
  .app-brand-name { font-size: 14px; }
  .app-brand-sub, .app-legacy, .app-status, .app-powered { display: none; }
  .app-nav { display: flex; gap: 4px; overflow: hidden; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .app-nav div { padding: 5px 9px; font-size: 11.5px; }
  .app-nav div em { display: none; }
  .app-nav .on { box-shadow: none; }
  .app-main { max-height: none; }
  .app-main::after { display: none; }
  .app-top { padding: 8px 12px; gap: 10px; }
  .app-top-link { display: none; }
  .app-btn { margin-left: auto; }
  .app-content { padding: 12px; }
  .app-tabs span:not(.on):last-child { display: none; }
  .app-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .app-stat { padding: 8px 9px; }
  .app-stat b { font-size: 14.5px; }
  .app-stat.wide b { font-size: 19px; }
  .app-chips span:nth-child(n+4) { display: none; }
  .app-search { max-width: none; }
  .app-cards { grid-template-columns: minmax(0, 1fr); }
  .app-activity { display: none; }
  .hide-sm { display: none; }
  .app-table th:nth-child(2) { width: 66px; }
  .app-ai-body { grid-template-columns: minmax(0, 1fr); }
  .app-title-text { font-size: 11px; }
}
@media (max-width: 400px) {
  .app-btn { display: none; }
  .app-tabs span:not(.on) { display: none; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 112px 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 18px; }
@media (max-width: 560px) { .section { padding: 80px 0; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.about p + p { margin-top: 16px; }
.about .copy p { font-size: 17px; }
.loop { display: grid; gap: 10px; counter-reset: loop; }
.loop li {
  list-style: none; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 500; font-size: 15px;
}
.loop li::before {
  counter-increment: loop; content: counter(loop);
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 13px;
}
.loop { padding: 0; margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cap {
  grid-column: span 2; position: relative; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cap:nth-child(4), .cap:nth-child(5) { grid-column: span 3; }
.cap:hover { transform: translateY(-4px); border-color: var(--blue-200); box-shadow: var(--shadow-lg); }
.cap-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue-600);
  margin-bottom: 20px; border: 1px solid var(--blue-100);
}
.cap-icon svg { width: 24px; height: 24px; }
.cap h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.cap p { font-size: 15.5px; }
@media (max-width: 960px) { .caps { grid-template-columns: 1fr 1fr; } .cap, .cap:nth-child(4), .cap:nth-child(5) { grid-column: span 1; } .cap:nth-child(5) { grid-column: span 2; } }
@media (max-width: 620px) { .caps { grid-template-columns: 1fr; } .cap:nth-child(5) { grid-column: span 1; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 36px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-200), var(--blue-200), transparent);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 20px; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #fff; position: relative;
  background: linear-gradient(145deg, #4f86ff, var(--blue-700));
  box-shadow: 0 14px 28px -12px rgba(31, 86, 230, .7);
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15.5px; max-width: 320px; margin: 0 auto; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 44px; } .steps::before { display: none; } }

/* Principles strip */
.principles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 56px; }
.principles span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.principles svg { width: 18px; height: 18px; color: var(--blue-600); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 32px; text-align: center; color: #dbe6ff;
  background: radial-gradient(80% 120% at 50% 0%, #2f6bff 0%, #1843b8 45%, #0b1b3f 100%);
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 760px; margin: 0 auto; }
.cta p { font-size: 18px; max-width: 600px; margin: 18px auto 0; }
.cta .hero-ctas { margin-top: 34px; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.cta .btn-outline:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-1px); }
@media (max-width: 560px) { .cta { padding: 56px 20px; border-radius: 20px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 112px; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--body); font-size: 14.5px; font-weight: 500; }
.footer-links a:hover { color: var(--blue-600); }
.footer small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.footer small a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal / inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-top: 18px; }
.page-hero p { margin: 16px auto 0; max-width: 620px; font-size: 17px; }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; }
.toc strong { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--blue-600); }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue-500); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-200); }
.prose a:hover { text-decoration-color: var(--blue-600); }
.callout { border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: 14px; padding: 18px 20px; margin: 0 0 24px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.meta { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: 14px; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; gap: 28px; } .toc { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.contact-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 15px; margin-bottom: 16px; }
.contact-card a.link { font-weight: 600; word-break: break-all; }
.contact-main {
  max-width: 1000px; margin: 0 auto 20px; padding: 40px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #fff, var(--blue-50)); border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm);
}
.contact-main h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.contact-main p { margin: 12px auto 0; max-width: 560px; }
.contact-main .email { display: inline-block; margin-top: 18px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; color: var(--blue-600); word-break: break-all; }
.contact-main .hero-ctas { margin-top: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-main { padding: 28px 20px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mockup { transform: none; }
  .app-cols span, .app-mkt s { transform: none; }
}

/* ---------- Small-screen fixes ---------- */
@media (max-width: 420px) {
  .nav .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { padding-top: 64px; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 340px) {
  .nav .btn { padding: 0 10px; font-size: 12px; }
}
.legal-wrap > * { min-width: 0; }

/* Above-the-fold content animates on load with CSS alone, so it never waits on script. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .reveal { opacity: 1; transform: none; transition: none; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal.d1 { animation-delay: .08s; } .hero .reveal.d2 { animation-delay: .16s; } .hero .reveal.d3 { animation-delay: .24s; }
