/* =========================================================================
   FUNDARI — AI Grants Engine
   Design system + page styles (hand-crafted, no build step)
   Brand theming lives in :root — swap these vars to re-skin per client.
   ========================================================================= */

:root {
  /* Brand — sampled from the Fundari logo mark gradient */
  --brand-900: #131e5e;
  --brand-800: #1b2a86;
  --brand-700: #2b3ec8;
  --brand-600: #3057fd;
  --brand-500: #5b7cff;
  --brand-400: #7c97ff;
  --brand-50:  #eaf0ff;
  --brand-rgb: 48, 87, 253;
  --accent-600: #d97706;
  --accent-500: #f59e0b;

  /* Ink / neutrals (navy-black for dark sections, matched to brand) */
  --ink-900: #0a0e1f;
  --ink-800: #10162e;
  --ink-700: #141b3a;

  /* muted text tones for dark (ink) backgrounds */
  --on-ink-100: #e9ecfb;
  --on-ink-80:  #b9c2ec;
  --on-ink-60:  #8b96ce;
  --on-ink-40:  #6672a6;
  --on-ink-30:  #4e5885;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mut: #64748b;
  --border: #e5e8f2;
  --card: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 26px -12px rgba(15, 23, 42, .18), 0 6px 14px -10px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 60px -26px rgba(9, 12, 34, .32), 0 12px 26px -16px rgba(15, 23, 42, .16);
  --ring: 0 0 0 4px rgba(48, 87, 253, .18);

  --radius-btn: 10px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 40px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink-900); color: var(--on-ink-100); }

/* --------------------------------------------------------------- Typography */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.display { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-soft); line-height: 1.6; }
.section--ink .lead { color: var(--on-ink-80); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-500); }
.section--ink .eyebrow { color: var(--brand-400); }
.section--ink .eyebrow::before { background: var(--brand-400); }

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.section-head .eyebrow { margin-bottom: 18px; }

/* solid brand emphasis (was a multi-color gradient — toned down to read as a real brand) */
.text-grad { color: var(--brand-600); }
.section--ink .text-grad { color: var(--brand-400); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: 13px 22px; border-radius: var(--radius-btn); white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), color .2s, border-color .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--brand-700); box-shadow: 0 8px 18px -10px rgba(var(--brand-rgb), .55); }
.btn--primary:hover { background: var(--brand-800); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(var(--brand-rgb), .6); }
.btn--ghost { color: var(--text); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand-400); color: var(--brand-700); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn--light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.58);
  backdrop-filter: saturate(190%) blur(18px);
  -webkit-backdrop-filter: saturate(190%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 30px -22px rgba(15,23,42,.25);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.is-stuck {
  background: rgba(255,255,255,.78);
  border-bottom-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 30px -18px rgba(15,23,42,.35);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand__mark { height: 32px; width: auto; display: inline-flex; align-items: center; }
.brand__mark img { height: 100%; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--text-soft); transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--brand-700); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__login { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text); transition: color .2s; }
.nav__login:hover { color: var(--brand-700); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: var(--text); }
.nav__toggle svg { width: 26px; height: 26px; margin-inline: auto; }
.nav__m-only { display: none; }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: -18% -10% auto -10%; height: 62%;
  background: radial-gradient(48% 60% at 22% 8%, rgba(var(--brand-rgb),.12), transparent 62%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--slate-200) 1px, transparent 1px), linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 58%);
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 58%);
  opacity: .35;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.hero__copy { max-width: 620px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--text-soft);
}
.pill b { color: var(--brand-700); font-weight: 700; }
.pill__tag { background: var(--brand-700); color:#fff; font-weight:700; font-size:.66rem; letter-spacing:.08em; padding: 3px 9px; border-radius: 999px; }
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 5.6vw, 4.05rem); font-weight: 800; letter-spacing: -.035em; }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--text-soft); max-width: 560px; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-mut); }
.hero__note svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }

.hero__stats { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: var(--text); display: inline-flex; align-items: baseline; }
.stat__num .suffix { color: var(--accent-600); }
.stat__num .pre { font-size: 1.05rem; font-weight: 700; color: var(--text-soft); margin-right: 4px; }
.stat__label { font-size: .82rem; color: var(--text-mut); margin-top: 2px; }

/* --------------------------------------------------- App mockup (CSS-drawn) */
.mock { position: relative; }
.mock__glow { position: absolute; inset: 12% -4% -10% 4%; z-index: -1; border-radius: 40px; background: rgba(var(--brand-rgb),.10); filter: blur(40px); }
.window { background: var(--white); border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--slate-100); background: var(--slate-50); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.window__dots i:nth-child(1){ background:#f87171; } .window__dots i:nth-child(2){ background:#fbbf24; } .window__dots i:nth-child(3){ background:#34d399; }
.window__url { margin-left: 8px; font-size: .74rem; color: var(--slate-500); background: var(--white); border: 1px solid var(--slate-200); border-radius: 7px; padding: 4px 12px; }
.app { display: grid; grid-template-columns: 62px 1fr; min-height: 380px; }
.app__rail { background: var(--ink-900); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app__rail .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--on-ink-60); }
.app__rail .dot.active { background: var(--brand-600); color: #fff; }
.app__rail .dot svg { width: 18px; height: 18px; }
.app__body { padding: 18px 20px; background: var(--slate-50); }
.app__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app__title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.app__title small { display:block; font-weight:500; font-size:.72rem; color: var(--slate-500); }
.chip { font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 7px; }
.chip--green { background: #dcfce7; color: #15803d; }
.chip--amber { background: #fef3c7; color: #b45309; }
.chip--brand { background: var(--brand-50); color: var(--brand-700); }

.match-list { display: flex; flex-direction: column; gap: 9px; }
.match { background: var(--white); border: 1px solid var(--slate-200); border-radius: 11px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.match__name { font-weight: 600; font-size: .86rem; }
.match__meta { font-size: .72rem; color: var(--slate-500); }
.match__score { text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--brand-700); }
.match__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.match__bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-600); }

.mock-float { position: absolute; background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 14px; display: flex; align-items: center; gap: 11px; }
.mock-float svg { width: 20px; height: 20px; }
.mock-float--a { right: -18px; top: 22%; }
.mock-float--b { left: -26px; bottom: 12%; }
.mock-float .mf__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mock-float .mf__ico--g { background: #dcfce7; color: #15803d; }
.mock-float .mf__ico--b { background: var(--brand-50); color: var(--brand-700); }
.mock-float b { font-size: .82rem; }
.mock-float small { display: block; font-size: .7rem; color: var(--slate-500); }

/* ---------------------------------------------------------------- Marquee */
.trust { padding-block: 30px; border-block: 1px solid var(--border); }
.trust__label { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--slate-600); box-shadow: var(--shadow-sm); }
.marquee__item i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ----------------------------------------------------------------- Cards / grids */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7ddf7; }
.card__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-50); color: var(--brand-700); }
.card__ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .95rem; }

/* Problem cards (ink) */
.pain { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 26px; }
.pain__stat { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: #fff; letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.pain__stat .suffix { color: var(--accent-500); font-size: 1.4rem; margin-left: 2px; }
.pain p { color: var(--on-ink-80); margin-top: 8px; font-size: .95rem; }

/* Solution split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.split--rev .split__media { order: -1; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ic { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; background: #dcfce7; color: #15803d; margin-top: 1px; }
.check-list .ic svg { width: 15px; height: 15px; }
.check-list b { font-family: var(--font-head); }
.check-list p { color: var(--text-soft); font-size: .92rem; margin-top: 2px; }

/* AI feature rows */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ai-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); border-radius: var(--radius); padding: 26px; }
.ai-card__k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-400); font-weight: 700; }
.ai-card h3 { font-size: 1.16rem; margin: 12px 0 8px; color: #fff; }
.ai-card p { color: var(--on-ink-80); font-size: .93rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 7px; background: rgba(var(--brand-rgb),.14); color: var(--brand-400); border: 1px solid rgba(124,151,255,.28); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 12px; }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 1rem; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--brand-700); }
.step h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.step p { color: var(--text-soft); font-size: .92rem; }
.step::after { content: ""; position: absolute; top: 33px; left: 54px; right: -11px; height: 2px; background: var(--slate-200); }
.step:last-child::after { display: none; }

/* Infra */
.infra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.infra__card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 24px; }
.infra__card .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--brand-rgb),.16); color: var(--brand-400); margin-bottom: 16px; }
.infra__card .ic svg { width: 22px; height: 22px; }
.infra__card h3 { color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.infra__card p { color: var(--on-ink-80); font-size: .9rem; }

/* Market */
.market-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,52px); align-items: start; }
.market-list { display: grid; gap: 16px; }
.market-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.market-item .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.market-item .ic svg { width: 20px; height: 20px; }
.market-item b { font-family: var(--font-head); }
.market-item p { color: var(--text-soft); font-size: .9rem; margin-top: 3px; }
.map-card { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 26px; background: var(--ink-800); color: var(--on-ink-80); }
.map-card h3 { color: #fff; font-size: 1.1rem; }
.map-card .flags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.map-card .flags span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 7px 14px; font-size: .82rem; }
.rev { display: grid; gap: 10px; }
.rev div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.rev div b { color: #fff; }

/* Traction */
.traction { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.traction__card { text-align: center; padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.traction__num { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; letter-spacing: -.02em; color: var(--brand-700); display: inline-flex; align-items: baseline; justify-content: center; }
.traction__num .suffix { font-size: 1.6rem; }
.traction__label { font-size: .86rem; color: var(--text-soft); margin-top: 4px; }
.banner { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center; background: var(--brand-50); border: 1px solid #cfd8f9; border-radius: var(--radius); padding: 18px 24px; font-size: .95rem; color: var(--brand-800); }
.banner b { color: var(--brand-800); }

/* Testimonial */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--text); }
.quote footer { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--brand-600); }
.quote cite { font-style: normal; text-align: left; }
.quote cite b { display: block; font-family: var(--font-head); }
.quote cite span { font-size: .84rem; color: var(--text-mut); }

/* Roadmap */
.roadmap { position: relative; display: grid; gap: 4px; }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; }
.phase:first-child { border-top: none; }
.phase__tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.phase__tag i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); box-shadow: 0 0 0 4px var(--slate-100); }
.phase--done .phase__tag i { background: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.18); }
.phase--now .phase__tag i { background: var(--accent-500); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.phase__body h3 { font-size: 1.08rem; margin-bottom: 5px; }
.phase__body p { color: var(--text-soft); font-size: .92rem; }
.phase__state { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; margin-left: 10px; }
.phase--done .phase__state { background: #dcfce7; color: #15803d; }
.phase--now .phase__state { background: #fef3c7; color: #b45309; }
.phase--next .phase__state { background: var(--slate-100); color: var(--slate-500); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 640px; margin-inline: auto; align-items: start; }
.member { text-align: center; }
.member__ph { width: 168px; aspect-ratio: 1; margin-inline: auto; border-radius: var(--radius); background: var(--slate-100); display: grid; place-items: center; color: var(--slate-500); font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; position: relative; overflow: hidden; }
.member__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; margin-top: 18px; }
.member .role { color: var(--brand-700); font-size: 1rem; font-weight: 600; font-family: var(--font-head); }
.member p { color: var(--text-soft); font-size: .92rem; margin-top: 10px; }
.member .li { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--brand-700); font-family: var(--font-head); }
.member__socials { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.member__socials .li svg { width: 20px; height: 20px; }
.member .li svg { width: 20px; height: 20px; }

/* CTA / contact */
.cta-wrap { background: var(--ink-900); border-radius: var(--radius-xl); padding: clamp(34px, 5vw, 64px); color: var(--on-ink-100); position: relative; overflow: hidden; }
.cta-wrap::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 82% 0%, #000, transparent 68%); mask-image: radial-gradient(circle at 82% 0%, #000, transparent 68%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items: center; }
.cta-grid h2 { color: #fff; }
.cta-grid .lead { color: var(--on-ink-80); }
.form { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.form h3 { color: var(--text); font-size: 1.15rem; }
.field { margin-top: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-400); box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 92px; }
.form__note { font-size: .78rem; color: var(--text-mut); margin-top: 14px; text-align: center; }
.form__ok { display: none; text-align: center; padding: 20px 0; }
.form__ok .ic { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; margin: 0 auto 14px; }
.form__ok .ic svg { width: 28px; height: 28px; }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: block; }
.cta-list { display: grid; gap: 14px; margin-top: 24px; }
.cta-list li { display: flex; gap: 11px; align-items: center; font-size: .95rem; color: var(--on-ink-80); }
.cta-list .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(var(--brand-rgb),.2); color: var(--brand-400); flex: none; }
.cta-list .ic svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--ink-900); color: var(--on-ink-80); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; }
.footer__about { margin-top: 16px; max-width: 320px; font-size: .9rem; color: var(--on-ink-60); }
.footer__contact { margin-top: 14px; max-width: 320px; font-size: .86rem; color: var(--on-ink-60); display: flex; flex-direction: column; gap: 4px; }
.footer__contact a { color: var(--on-ink-60); }
.footer__contact a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { font-size: .9rem; color: var(--on-ink-80); transition: color .2s; }
.footer a:hover { color: var(--brand-400); }
.footer__disclaimer { margin-top: 36px; font-size: .78rem; color: var(--on-ink-40); max-width: 720px; }

/* Full-bleed giant wordmark, sized to fit the viewport width exactly via JS */
.footer__wordmark { position: relative; width: 100%; overflow: hidden; text-align: center; padding: 46px 0 6px; user-select: none; cursor: default; }
.footer__wordmark span {
  display: inline-block; white-space: nowrap; font-family: var(--font-head); font-weight: 800; line-height: .8; letter-spacing: -.01em;
  color: #fff;
  background-image: linear-gradient(100deg, #fff 38%, var(--brand-400) 50%, #fff 62%);
  background-size: 260% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: wordmarkShine 8s ease-in-out infinite;
}
@keyframes wordmarkShine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
/* Mouse-reactive spotlight, position driven by --mx/--my set in app.js */
.footer__wordmark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), .55), transparent 70%);
  mix-blend-mode: overlay;
  opacity: 0; transition: opacity .35s;
}
.footer__wordmark:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .footer__wordmark span { animation: none; background-position: 0% 0%; }
}

.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer__legal { padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--on-ink-40); }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: background .2s; }
.footer__socials a:hover { background: rgba(var(--brand-rgb),.2); }
.footer__socials svg { width: 20px; height: 20px; }

/* --------------------------------------------------------- Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"]{ transition-delay: .07s; } .js .reveal[data-d="2"]{ transition-delay: .14s; }
.js .reveal[data-d="3"]{ transition-delay: .21s; } .js .reveal[data-d="4"]{ transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } .marquee__track { animation: none; } }

/* ------------------------------------------------------------- Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__aside { position: relative; background: var(--ink-900); color: var(--on-ink-80); padding: clamp(34px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth__aside::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(circle at 30% 18%, #000, transparent 72%); mask-image: radial-gradient(circle at 30% 18%, #000, transparent 72%); }
.auth__aside > * { position: relative; }
.auth__quote { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: #fff; max-width: 420px; }
.auth__points { display: grid; gap: 14px; margin-top: 26px; }
.auth__points li { display: flex; gap: 11px; align-items: center; font-size: .95rem; color: var(--on-ink-80); }
.auth__points .ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(var(--brand-rgb),.2); color: var(--brand-400); display: grid; place-items: center; flex: none; }
.auth__points .ic svg { width: 15px; height: 15px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 56px); }
.auth__card { width: 100%; max-width: 400px; }
.auth__card h1 { font-size: 1.8rem; }
.auth__card .sub { color: var(--text-soft); margin-top: 8px; margin-bottom: 24px; }
.oauth { display: grid; gap: 10px; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 10px; font-weight: 600; font-family: var(--font-head); font-size: .92rem; transition: border-color .2s, background .2s; background: var(--white); }
.oauth button:hover { border-color: var(--brand-400); background: var(--slate-50); }
.oauth svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-mut); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.auth__row { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; margin-top: 4px; }
.auth__row a { color: var(--brand-700); font-weight: 600; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--text-soft); }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.auth__foot { text-align: center; font-size: .9rem; color: var(--text-soft); margin-top: 22px; }
.auth__foot a { color: var(--brand-700); font-weight: 700; }
.auth__back { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--text-soft); margin-bottom: 30px; }
.auth__back svg { width: 16px; height: 16px; }
.strength { height: 5px; border-radius: 999px; background: var(--slate-200); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s, background .3s; }

/* --------------------------------------------------------------- Legal pages */
.legal { max-width: 800px; margin-inline: auto; }
.legal__meta { color: var(--text-mut); font-size: .88rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--brand-700); font-weight: 600; }
.callout { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--brand-500); border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; color: var(--text); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { margin-top: 30px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .split, .market-grid, .cta-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .infra { grid-template-columns: 1fr; }
  .traction { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }

  /* --- Mobile nav: full-screen menu with Login (after Team) + Request demo --- */
  .nav__links { display: none; }
  .nav__cta .btn, .nav__cta .nav__login { display: none; }   /* top bar only shows brand + toggle on mobile */
  .nav__toggle { display: grid; place-items: center; }
  .nav.open .nav__links {
    display: flex; position: fixed; inset: 72px 0 0 0; height: calc(100dvh - 72px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 20px var(--gutter) 40px; overflow-y: auto; z-index: 60;
  }
  .nav.open .nav__links > a:not(.btn) { padding: 17px 4px; font-size: 1.12rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--slate-100); }
  .nav.open .nav__links > a:not(.btn):hover { color: var(--brand-700); }
  .nav.open .nav__m-only { display: inline-flex; width: 100%; }
  .nav.open .nav__m-login { margin-top: 22px; color: var(--text); }
  .nav.open .nav__m-demo { margin-top: 12px; color: #fff; }
  .nav__toggle .ic-close { display: none; }
  .nav.open .nav__toggle .ic-open { display: none; }
  .nav.open .nav__toggle .ic-close { display: block; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps, .traction, .team { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .hero__stats { gap: 20px 26px; }
  .mock-float { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}
