/* ═══════════════════════════════════════════════════════════════════════════
   COMPLX — "FLOW" design system
   A decidr.ai-inspired, agentic-platform aesthetic for a premium AI firm.
   Warm light ground · gradient mesh fields · rounded bento cards · pill CTAs.
   Display: Clash Display · UI/Body: General Sans (both via Fontshare).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 0. Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
/* form fields carry an intrinsic min-width that breaks them out of grid/flex tracks — let them shrink */
input, textarea, select { min-width: 0; max-width: 100%; }
img { height: auto; }
:where(a, button) { -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: 88px; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ── 1. Tokens ────────────────────────────────────────────────────────────── */
:root {
  /* ground + ink */
  --paper:      #FBFAF8;   /* warm off-white page ground */
  --paper-2:    #F4F2ED;   /* recessed band */
  --card:       #FFFFFF;
  --ink:        #14151B;   /* near-black headline ink */
  --ink-1:      #2C2E38;   /* body */
  --ink-2:      #61636F;   /* muted */
  --ink-3:      #8A8C98;   /* faint / captions */
  --line:       #E8E5DE;   /* hairline on light */
  --line-2:     #DEDBD2;

  /* dark surfaces */
  --night:      #0C0D12;   /* deep ink section */
  --night-2:    #14161E;   /* raised panel on dark */
  --night-line: rgba(255,255,255,.10);
  --on-night:   #F4F4F7;
  --on-night-2: #A6A8B6;

  /* signature spectrum (coral → pink → violet → azure) */
  --coral:   #FF6B3D;
  --pink:    #FF4E8E;
  --violet:  #7B5CFF;
  --azure:   #4DA6FF;
  --grad-warm:  linear-gradient(120deg, #FF7A45 0%, #FF4E8E 48%, #8B5CF6 100%);
  --grad-cool:  linear-gradient(120deg, #FF4E8E 0%, #7B5CFF 55%, #4DA6FF 100%);
  --grad-text:  linear-gradient(95deg, #FF6B3D 0%, #FF4E8E 40%, #7B5CFF 88%);

  /* type */
  --f-display: "Clash Display", "General Sans", system-ui, sans-serif;
  --f-sans:    "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type scale */
  --t-mega:   clamp(2.55rem, 5.4vw, 4.85rem);
  --t-h1:     clamp(2.3rem, 4.8vw, 3.9rem);
  --t-h2:     clamp(1.9rem, 3.4vw, 2.9rem);
  --t-h3:     clamp(1.3rem, 1.7vw, 1.6rem);
  --t-lead:   clamp(1.075rem, 1.5vw, 1.32rem);
  --t-body:   1.0625rem;
  --t-small:  0.9375rem;
  --t-eyebrow: 0.78rem;

  /* spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 104px; --s-10: 144px;

  /* layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --margin: clamp(20px, 5vw, 56px);
  --radius:    22px;
  --radius-lg: 30px;
  --radius-sm: 13px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,21,27,.04), 0 4px 14px rgba(20,21,27,.05);
  --shadow:    0 2px 6px rgba(20,21,27,.05), 0 18px 48px -18px rgba(20,21,27,.18);
  --shadow-lg: 0 30px 80px -28px rgba(40,20,80,.30);
  --ring: 0 0 0 1px var(--line);
}

/* ── 2. Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--paper);
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; line-height: 1.15; }
p  { color: var(--ink-1); }
strong { color: var(--ink); font-weight: 600; }

/* fluid layout helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, var(--s-10)); }
.section-sm { padding-block: clamp(48px, 6vw, var(--s-9)); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 48ch; }

/* ── 3. Eyebrow / labels ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; border-radius: 2px;
  background: var(--grad-warm);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.pill {
  padding: 7px 14px 7px 12px; border-radius: var(--pill);
  background: var(--card); box-shadow: var(--ring), var(--shadow-sm);
  letter-spacing: 0.1em;
}
.gradient-text {
  background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ── 4. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-sans); font-weight: 600; font-size: var(--t-small);
  padding: 14px 24px; border-radius: var(--pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff; background: var(--ink);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-warm);
  opacity: 0; transition: opacity .3s ease;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255,78,142,.55); }
.btn-primary:hover::before { opacity: 1; }
.btn-grad { color: #fff; background-image: var(--grad-warm); box-shadow: 0 10px 26px -12px rgba(255,78,142,.6); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(123,92,255,.6); }
.btn-ghost {
  background: var(--card); color: var(--ink); box-shadow: var(--ring), var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.btn-night { background: rgba(255,255,255,.08); color: var(--on-night); border-color: var(--night-line); }
.btn-night:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: var(--t-body); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600;
  color: var(--ink); font-size: var(--t-small);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link.on-warm { color: var(--violet); }

/* ── 5. Navbar ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); padding: 9px 0; background: color-mix(in srgb, var(--paper) 86%, transparent); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin);
  display: flex; align-items: center; gap: var(--s-6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand .dot { color: var(--coral); }
.brand-ai { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: var(--s-4); }
.nav-spacer { flex: 1; }
.nav-link, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px; border-radius: var(--pill); border: 0; background: none;
  font-weight: 500; font-size: var(--t-small); color: var(--ink-1); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover, .nav-item > button:hover { background: rgba(20,21,27,.05); color: var(--ink); }
.nav-link[aria-current], .nav-item.is-active > button { color: var(--ink); font-weight: 600; }
.nav-link[aria-current]::after { content: ""; display: block; }
/* ROI link is a desktop action button; this copy surfaces it inside the mobile sheet */
.roi-mobile { display: none; }
@media (max-width: 920px) { .roi-mobile { display: flex; } }
.nav-item { position: relative; }
.nav-item > button .chev { width: 14px; height: 14px; transition: transform .22s ease; }
.nav-item.open > button .chev { transform: rotate(180deg); }
.nav-item.open > button { background: rgba(20,21,27,.05); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

/* mega panel */
.panel {
  position: absolute; top: calc(100% + 12px); left: 14px; transform: translateY(8px);
  width: min(620px, 88vw); padding: 12px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--ring), var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
}
.nav-item.open .panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
/* centered variant (used by the Industries dropdown, which sits further right) */
.panel-c { left: 50%; transform: translateX(-50%) translateY(8px); }
.nav-item.open .panel-c { transform: translateX(-50%) translateY(0); }
.panel-ind { width: min(560px, 88vw); }
.panel-sm { width: min(340px, 88vw); }
.panel-col { display: grid; grid-template-columns: 1fr; gap: 4px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.panel-link { display: flex; gap: 13px; padding: 14px; border-radius: 15px; transition: background .16s ease; }
.panel-link:hover { background: var(--paper-2); }
.panel-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.panel-ic svg { width: 20px; height: 20px; }
.pi-warm { background: linear-gradient(135deg, #FF7A45, #FF4E8E); }
.pi-violet { background: linear-gradient(135deg, #8B5CF6, #6D4AFF); }
.pi-azure { background: linear-gradient(135deg, #4DA6FF, #7B5CFF); }
.pi-teal { background: linear-gradient(135deg, #2BC9A0, #16A6C9); }
.panel-link h4 { font-family: var(--f-sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; letter-spacing: 0; }
.panel-link p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
.panel-foot {
  margin-top: 6px; padding: 14px; border-radius: 15px; background: var(--paper-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.panel-foot p { font-size: 0.85rem; color: var(--ink-2); }
.panel-foot strong { color: var(--ink); }

/* mobile toggle */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(20,21,27,.05); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
#nav-links.open ~ .nav-actions { /* keep actions visible */ }

/* ── 6. Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(56px, 8vw, 110px) clamp(56px, 8vw, 96px); overflow: clip; }
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 540px; height: 540px; top: -180px; left: -120px; background: radial-gradient(circle, #FFB199 0%, #FF6B3D 55%, transparent 72%); }
.orb-2 { width: 600px; height: 600px; top: -120px; right: -160px; background: radial-gradient(circle, #C9B8FF 0%, #7B5CFF 55%, transparent 72%); opacity: .42; }
.orb-3 { width: 460px; height: 460px; top: 120px; left: 40%; background: radial-gradient(circle, #FFC2D8 0%, #FF4E8E 55%, transparent 70%); opacity: .26; }
.orb-azure { background: radial-gradient(circle, #B6DBFF 0%, #4DA6FF 55%, transparent 72%); }
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: multiply;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: var(--t-mega); line-height: 1.06; margin-bottom: var(--s-5); text-wrap: balance; }

/* hero visual: gradient glow halo behind the live-workflow embed */
.hero-visual { position: relative; display: flex; flex-direction: column; }
.hero-visual .hero-trust { margin-top: var(--s-5); padding-left: var(--s-2); }
.visual-glow { position: absolute; inset: -11% -7% -7% -7%; z-index: -1; border-radius: 44px; filter: blur(28px);
  background: radial-gradient(56% 56% at 66% 34%, rgba(123,92,255,.32), transparent 72%), radial-gradient(50% 52% at 20% 78%, rgba(255,107,61,.28), transparent 72%); }
/* hero embed (interactive "live workflow" iframe) — frameless, transparent */
.hero-embed { position: relative; z-index: 1; display: block; width: 100%; max-width: 1000px; height: 540px; border: 0; background: transparent; }
@media (max-width: 860px) { .hero-embed { height: 320px; margin-inline: auto; } }

.frame-head { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.dotrow { display: inline-flex; gap: 7px; }
.dotrow span { width: 11px; height: 11px; border-radius: 50%; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #28C76F; box-shadow: 0 0 0 0 rgba(40,199,111,.5); animation: livepulse 2.2s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(40,199,111,.5); } 70% { box-shadow: 0 0 0 7px rgba(40,199,111,0); } 100% { box-shadow: 0 0 0 0 rgba(40,199,111,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.statchips { display: flex; gap: 12px; margin-top: 18px; }
.statchip { flex: 1; background: var(--paper-2); border-radius: 15px; padding: 15px 16px; }
.statchip .sc-n { font-family: var(--f-display); font-weight: 600; font-size: 1.58rem; letter-spacing: -.02em; line-height: 1; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.statchip .sc-n.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statchip .sc-n svg { width: 16px; height: 16px; }
.statchip .sc-l { font-size: .78rem; color: var(--ink-2); margin-top: 7px; }
.float-chip { position: absolute; left: -26px; top: -22px; background: var(--card); border-radius: 15px; padding: 11px 16px 11px 12px; box-shadow: var(--ring), var(--shadow); display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.float-chip small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-2); margin-top: 1px; }
.float-chip .fc-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-warm); display: grid; place-items: center; color: #fff; }
.float-chip .fc-ic svg { width: 17px; height: 17px; }
@media (max-width: 1180px) { .float-chip { display: none; } }
.hero .lead { font-size: var(--t-lead); color: var(--ink-1); max-width: 46ch; margin-bottom: var(--s-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: 0; }
.hero-trust { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; color: var(--ink-2); font-size: var(--t-small); }
.hero-trust .av { display: flex; }
.hero-trust .av span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -10px; background: var(--grad-cool); }
.hero-trust .av span:first-child { margin-left: 0; }
.hero-trust .stars { color: var(--coral); letter-spacing: 2px; }

/* ── 7. Cards / bento ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--ring), var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .3s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; margin-bottom: var(--s-5); box-shadow: var(--shadow-sm);
}
.card .ic svg { width: 25px; height: 25px; }
.ic-warm { background: linear-gradient(135deg, #FF7A45, #FF4E8E); }
.ic-violet { background: linear-gradient(135deg, #8B5CF6, #6D4AFF); }
.ic-azure { background: linear-gradient(135deg, #4DA6FF, #7B5CFF); }
.ic-ink { background: linear-gradient(135deg, #2C2E38, #14151B); }
.ic-teal { background: linear-gradient(135deg, #2BC9A0, #16A6C9); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: var(--t-small); }
.card .card-meta { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
/* equal-height cards: pin the CTA + divider to the bottom so they align across the row */
.card-cta { display: flex; flex-direction: column; }
.card-cta .card-meta { margin-top: auto; }
.card ul.ticks { margin-top: var(--s-4); display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 27px; font-size: var(--t-small); color: var(--ink-1); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-warm); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* feature card with big number/index */
.card .idx { position: absolute; top: 22px; right: 26px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink-3); }

/* cross-mark list (the "usual way" column) — mirrors .ticks but muted */
.crosses { margin-top: var(--s-4); display: grid; gap: 9px; }
.crosses li { position: relative; padding-left: 27px; font-size: var(--t-small); color: var(--ink-2); }
.crosses li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

/* span helpers for bento */
.span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

/* ── 8. Stats ─────────────────────────────────────────────────────────────── */
.stat .n { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { margin-top: 10px; color: var(--ink-2); font-size: var(--t-small); }

/* ── 9. Dark band ─────────────────────────────────────────────────────────── */
.band-dark {
  background: var(--night); color: var(--on-night); position: relative; overflow: clip;
  --ink: var(--on-night); --ink-1: #D7D8E0; --ink-2: var(--on-night-2); --line: var(--night-line); --card: var(--night-2);
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--on-night); }
.band-dark .card { box-shadow: inset 0 0 0 1px var(--night-line); }
.band-dark .eyebrow { color: var(--on-night-2); }
.band-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.band-glow .orb { opacity: .3; filter: blur(90px); }
.band-dark > .container { position: relative; z-index: 1; }

/* ── 10. Logos / marquee ──────────────────────────────────────────────────── */
.logos { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.logos span { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--ink-3); letter-spacing: -0.01em; opacity: .8; }
.logos-cap { text-align: center; color: var(--ink-3); font-size: var(--t-small); margin-bottom: var(--s-6); }

/* ── 11. Process steps ────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5); align-items: start; padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: var(--ring), var(--shadow-sm); color: var(--ink); }
.step .num.grad { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,78,142,.55); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 60ch; }
.step .when { font-size: 0.82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; display: block; }

/* ── 11b. Stage rows (how-we-work · "each one priced, each one optional") ──── */
.stage-rows { display: grid; gap: 16px; }
.stage-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(20px, 2.6vw, 32px); align-items: center;
  background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  box-shadow: var(--ring), var(--shadow-sm); transition: transform .22s ease, box-shadow .28s ease;
}
.stage-row:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.sr-num {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 1.85rem; letter-spacing: -.02em;
  background: var(--paper-2); color: var(--ink); position: relative;
}
.sr-num.grad { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 26px -12px rgba(255,78,142,.55); }
.sr-body { min-width: 0; }
.sr-when { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 7px; }
.sr-body h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); margin-bottom: 7px; }
.sr-body p { color: var(--ink-2); font-size: var(--t-small); max-width: 58ch; }
.sr-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.price-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: var(--pill); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.price-pill.free { background: rgba(40,199,111,.13); color: #199152; }
.price-pill.paid { background: rgba(123,92,255,.11); color: var(--violet); }
.exit-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.exit-tag svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .stage-row { grid-template-columns: 52px 1fr; row-gap: 14px; }
  .sr-num { width: 52px; height: 52px; font-size: 1.5rem; }
  .sr-aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; }
}

/* ── 11c. At-a-glance card (how-we-work overview) ──────────────────────────── */
.glance { background: var(--card); border-radius: var(--radius); box-shadow: var(--ring), var(--shadow); overflow: hidden; }
.glance::before { content: ""; display: block; height: 4px; background: var(--grad-warm); }
.glance-head { padding: 20px 24px 6px; }
.glance-head h3 { font-size: 1.18rem; }
.glance-head .eyebrow { margin-bottom: 10px; }
.glance-list { padding: 8px 0 12px; }
.glance-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 13px 24px; }
.glance-list li + li { border-top: 1px solid var(--line); }
.g-num { width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.g-name { font-weight: 600; color: var(--ink); }
.g-price { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: var(--pill); white-space: nowrap; }
.g-price.free { background: rgba(40,199,111,.13); color: #199152; }
.g-price.paid { background: rgba(123,92,255,.11); color: var(--violet); }

/* ── 12. FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .25s ease, background .25s ease, color .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details > p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 70ch; }

/* ── 13. Testimonial ──────────────────────────────────────────────────────── */
.quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); }
.quote .gradient-text { font-weight: 600; }
.byline { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.byline .ph { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-cool); flex: none; }
.byline b { color: var(--ink); display: block; }
.byline span { color: var(--ink-2); font-size: var(--t-small); }

/* ── 13b. People imagery ──────────────────────────────────────────────────── */
img.avatar { border-radius: 50%; object-fit: cover; display: block; }
.byline .avatar { width: 52px; height: 52px; flex: none; border: 2px solid var(--card); box-shadow: var(--shadow-sm); }
.band-dark .byline .avatar { border-color: var(--night-2); }
.hero-trust .av img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.hero-trust .av img:first-child { margin-left: 0; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.team-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--ring), var(--shadow-sm); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.28) contrast(1.03); transition: filter .5s ease, transform .6s ease; }
.team-card:hover .team-photo img { filter: none; transform: scale(1.05); }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,21,27,.32), transparent 42%); pointer-events: none; }
.team-photo.is-empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--paper-2), #ECE7DF); }
.team-photo.is-empty::after { display: none; }
.team-photo.is-empty svg { width: 34%; height: 34%; color: var(--ink-3); opacity: .42; }
.team-card h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; margin: 15px 0 2px; }
.team-card .role { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* in-section photography — rounded, soft-shadowed, with a faint brand tint */
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--ring), var(--shadow); background: var(--paper-2); aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,107,61,.10), rgba(255,78,142,.06) 45%, rgba(123,92,255,.12)); mix-blend-mode: multiply; }
.photo-frame.tall { aspect-ratio: 3 / 4; }
.photo-frame.wide { aspect-ratio: 16 / 9; }
.band-dark .photo-frame { box-shadow: inset 0 0 0 1px var(--night-line); }

/* ── 13c. Work / case studies ─────────────────────────────────────────────── */
.logo-mono { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; flex: none; box-shadow: var(--shadow-sm); }
.logo-mono svg { width: 22px; height: 22px; }
.brand-wm { height: 40px; width: auto; max-width: 250px; display: block; }
.brand-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: contain; background: var(--paper-2); padding: 7px; box-shadow: var(--ring), var(--shadow-sm); }
.logo-img { width: 48px; height: 48px; border-radius: 13px; flex: none; object-fit: contain; background: var(--card); box-shadow: var(--ring), var(--shadow-sm); }
.metric-card { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-lg); }
.metric-card .eyebrow { color: var(--on-night-2); }
.metric-card .m-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 3.7rem); line-height: 1; letter-spacing: -.03em; margin-top: 12px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-card .m-label { color: var(--on-night-2); font-size: .92rem; margin-top: 10px; }
.metric-card .m-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--night-line); font-size: .9rem; color: var(--on-night-2); }
.metric-card .m-sec b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; margin-bottom: 2px; }
.case { background: var(--card); border-radius: var(--radius); box-shadow: var(--ring), var(--shadow-sm); padding: clamp(22px, 2.4vw, 28px); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .3s ease; }
.case:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.case-head { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.case-head h3 { font-size: 1.12rem; line-height: 1.15; }
.case-head .sector { display: block; color: var(--ink-3); font-size: .76rem; margin-top: 3px; }
.case > p { color: var(--ink-2); font-size: var(--t-small); }
.case-outcome { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; color: var(--ink); }
.case-outcome::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--grad-warm); }

/* ── 14. CTA band ─────────────────────────────────────────────────────────── */
.cta-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--night); color: var(--on-night); padding: clamp(40px, 6vw, 80px);
  text-align: center;
}
.cta-wrap .band-glow .orb { opacity: .45; }
.cta-wrap > * { position: relative; z-index: 1; }
.cta-wrap h2 { color: #fff; max-width: 28ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.cta-wrap p { color: var(--on-night-2); max-width: 52ch; margin: var(--s-5) auto var(--s-7); }
.cta-wrap .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ── 15. Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--night); color: var(--on-night-2); padding-block: var(--s-9) var(--s-6); }
.footer a { color: var(--on-night-2); transition: color .16s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-7) var(--s-5); }
.footer .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-col h5 { font-family: var(--f-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6E7081; margin-bottom: var(--s-4); }
.footer-col li { margin-bottom: 11px; font-size: var(--t-small); }
.footer-about p { font-size: var(--t-small); max-width: 34ch; margin-bottom: var(--s-5); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--night-line); font-size: var(--t-small); }
.footer-bottom .socials { display: flex; gap: var(--s-3); }
.footer-bottom .socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ── 15b. ROI calculator ──────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.calc-fields { display: grid; gap: 22px; align-content: start; }
.calc-fields h3 { font-size: 1.2rem; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 11px; }
.field .val { color: var(--violet); font-weight: 600; font-variant-numeric: tabular-nums; }
.field input[type=number], .field select { width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--paper); font-size: 1rem; color: var(--ink); }
.field input[type=number]:focus-visible, .field select:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.field input[type=range] { width: 100%; height: 8px; accent-color: var(--violet); cursor: pointer; }
.result-card { position: sticky; top: 90px; background: var(--night); color: var(--on-night); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-lg); }
.result-card .eyebrow { color: var(--on-night-2); }
.result-card .big { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 3.7rem); line-height: 1; letter-spacing: -.03em; margin-top: 14px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.result-grid .n { font-family: var(--f-display); font-weight: 600; font-size: 1.55rem; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result-grid .l { color: var(--on-night-2); font-size: .8rem; margin-top: 4px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .result-card { position: static; } }

/* value-tier banner — fades in full-width under the calculator, one card per range */
.roi-tier:not(:empty) { margin-top: 22px; }
.tier-card { display: flex; align-items: center; justify-content: space-between; gap: 22px clamp(20px, 3vw, 40px); flex-wrap: wrap;
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 40px); animation: tierUp .5s cubic-bezier(.2,.7,.2,1); }
.tier-card .tc-text { flex: 1; min-width: min(100%, 300px); }
.tier-card .eyebrow { margin-bottom: 11px; }
.tier-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.tier-card p { margin-top: 8px; max-width: 62ch; }
.tier-card .btn { flex: none; }
@keyframes tierUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tier-card { animation: none; } }
.tier-card.t-light { background: var(--card); box-shadow: var(--ring), var(--shadow); }
.tier-card.t-light p { color: var(--ink-2); }
.tier-card.t-grad { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-warm) border-box; border: 1.6px solid transparent; box-shadow: var(--shadow); }
.tier-card.t-grad p { color: var(--ink-2); }
.tier-card.t-dark { background: var(--night); color: #fff; box-shadow: var(--shadow-lg); }
.tier-card.t-dark h3 { color: #fff; }
.tier-card.t-dark p { color: var(--on-night-2); }
.tier-card.t-dark .eyebrow { color: var(--on-night-2); }

/* ── 16. Page hero (interior) ─────────────────────────────────────────────── */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); overflow: clip; }
.page-hero h1 { font-size: var(--t-h1); margin-block: var(--s-4) var(--s-5); max-width: 18ch; }
.page-hero .lead { font-size: var(--t-lead); color: var(--ink-1); max-width: 54ch; }
.breadcrumb { font-size: var(--t-small); color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: -1; }

/* visual frame */
.frame { border-radius: var(--radius); background: var(--card); box-shadow: var(--ring), var(--shadow); padding: clamp(18px, 2vw, 26px); position: relative; overflow: hidden; }
.frame.on-grad { background: var(--grad-warm); padding: clamp(28px, 3vw, 44px); }

/* ── 17. Reveal animation ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .08s; } .rv-3 { transition-delay: .16s; }
.rv-4 { transition-delay: .24s; } .rv-5 { transition-delay: .32s; }
html:not(.js) .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; transition: none; } }

/* float anim for hero visual */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* ── 18. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  /* backdrop-filter makes .nav a containing block for fixed children, trapping the
     off-canvas sheet inside the ~84px bar. Drop it on mobile so the sheet is viewport-fixed. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav.is-scrolled { background: var(--paper); }
  /* drawer overlaps the whole bar; hide the logo while open so it doesn't sit on the menu,
     keep only the close button above the drawer */
  .nav-toggle { position: relative; z-index: 95; }
  .nav:has(#nav-links.open) .brand { opacity: 0; visibility: hidden; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); margin: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); padding: 88px 20px 28px; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-link, .nav-item > button { width: 100%; justify-content: space-between; padding: 13px 16px; font-size: 1.05rem; }
  .nav-item { width: 100%; }
  .panel {
    position: static; transform: none; width: 100%; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; padding: 4px 0 8px; background: none;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-item.open .panel { transform: none; max-height: 640px; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-foot { display: none; }
  .nav-toggle { display: grid; }
  .nav-toggle.is-open .menu { display: none; } .nav-toggle.is-open .x { display: block; }
  .nav-spacer { display: none; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .hero-visual .hero-trust { margin-top: var(--s-4); }
  .split, .split.rev .split-media { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: auto; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: var(--s-3); }
  .btn { width: 100%; }
  .hero-ctas .btn, .cta-wrap .btn { width: 100%; }
}
