/* ==========================================================================
   Innoventsoft — design system (aligned with the IMESH family look)
   Layout: alternating navy-gradient "showcase" bands with soft pink/blue glow
   and clean white content bands; rounded cards, pill buttons, Roboto type.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #001f48;
  --navy-2: #092346;
  --navy-deep: #041428;
  --pink: #ec277b;
  --pink-strong: #d4196a;  /* brand pink, deepened for text and white-on-pink (≥4.5:1) */
  --pink-hover: #bd145d;
  --blue: #277bec;
  --green: #27ec6c;
  --orange: #ec7e27;
  --red: #ec4627;

  /* Neutrals */
  --white: #ffffff;
  --soft: #f7f9fc;
  --line: #e5e7eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --heading: #111827;
  --text: #374151;
  --muted: #6b7280;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.76);

  --grad-navy: linear-gradient(150.29deg, var(--navy) 26.26%, var(--navy-2) 89.87%);
  --petals: linear-gradient(90deg, var(--orange) 0 18%, transparent 18% 20.5%, var(--blue) 20.5% 38.5%, transparent 38.5% 41%, var(--pink) 41% 59%, transparent 59% 61.5%, var(--green) 61.5% 79.5%, transparent 79.5% 82%, var(--red) 82% 100%);

  /* Type */
  --font: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-h1: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);

  /* Space */
  --section: clamp(4rem, 3rem + 4vw, 6.5rem);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 30px -14px rgba(17, 24, 39, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--pink-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-weight: 700; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.hl { color: var(--pink); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--petals); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--grad-navy); color: var(--on-dark); overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .eyebrow { color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.glow::before { width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(236, 39, 123, 0.22) 0%, rgba(39, 123, 236, 0.12) 45%, rgba(39, 123, 236, 0) 72%); }
.glow::after { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(39, 123, 236, 0.16) 0%, rgba(39, 123, 236, 0) 70%); }
.glow > * { position: relative; z-index: 1; }

.head { display: grid; gap: 14px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--pink-strong); color: #fff; box-shadow: 0 8px 20px -10px rgba(236, 39, 123, 0.7); }
.btn--primary:hover { background: var(--pink-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--heading); border-color: #d1d5db; }
.btn--ghost:hover { border-color: var(--heading); color: var(--heading); }
.section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: 0.95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--pink-strong); text-decoration: none; }
.more::after { content: "→"; transition: transform 0.2s var(--ease); }
a:hover > .more::after, .more:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 24, 39, 0.4); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); flex-shrink: 0; }
.brand__logo { display: block; height: 46px; width: auto; }
.brand--large .brand__logo { height: 60px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link, .nav__trigger { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; color: var(--heading); text-decoration: none; cursor: pointer; }
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--pink-strong); }
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--pink-strong); }
.nav__trigger svg { width: 10px; transition: transform 0.2s; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 12px); left: -16px; z-index: 60; width: min(560px, 80vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(17, 24, 39, 0.35); padding: 10px; }
.mega[hidden] { display: none; }
.mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.mega--narrow { width: min(320px, 80vw); }
.mega--narrow .mega__list { grid-template-columns: minmax(0, 1fr); }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--heading); font-weight: 500; font-size: 0.93rem; line-height: 1.3; }
.mega__link:hover { background: var(--soft); color: var(--pink-strong); }
.mega__link .tile { width: 34px; height: 34px; border-radius: 8px; }
.mega__link .tile svg { width: 18px; height: 18px; }
.mega__all { display: block; margin-top: 6px; padding: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--pink-strong); text-decoration: none; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--heading); position: relative; transition: transform 0.2s, background-color 0.2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav details, .mobile-nav > a:not(.btn) { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-size: 1.1rem; font-weight: 600; color: var(--heading); text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details ul { padding: 0 2px 14px; display: grid; gap: 2px; }
.mobile-nav details a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; }
.mobile-nav .btn { width: 100%; margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Icon tiles ---------- */
.tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--c, var(--pink)); background: color-mix(in srgb, var(--c, var(--pink)) 12%, white); }
.tile svg { width: 24px; height: 24px; }
.section--dark .tile, .hero .tile, .page-hero .tile { background: color-mix(in srgb, var(--c, var(--pink)) 20%, transparent); }
.c-pink { --c: var(--pink); } .c-blue { --c: var(--blue); } .c-green { --c: #16b955; } .c-orange { --c: var(--orange); } .c-red { --c: var(--red); }
.section--dark .c-green, .hero .c-green, .page-hero .c-green { --c: var(--green); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-navy); color: #fff; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #fff; }
.hero .lead { color: var(--on-dark-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 0.85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--heading); background: #fff; }
.hero .pill, .section--dark .pill, .page-hero .pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }

/* Orbit visual */
.orbit { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.16); inset: var(--i); animation: spin var(--t, 40s) linear infinite; }
.orbit__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--dot, var(--pink)); box-shadow: 0 0 14px var(--dot, var(--pink)); }
.orbit__ring--1 { --i: 4%; --t: 46s; border-color: rgba(236, 39, 123, 0.35); }
.orbit__ring--2 { --i: 20%; --t: 32s; --dot: var(--blue); animation-direction: reverse; }
.orbit__ring--3 { --i: 34%; --t: 22s; --dot: var(--green); }
.orbit__core { position: absolute; inset: 39%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #0a2a52 0%, #041428 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 60px rgba(236, 39, 123, 0.35); }
.orbit__core img { width: 60%; height: auto; }
.orbit__node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 0.8rem; font-weight: 500; color: #fff; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(9, 35, 70, 0.92); border: 1px solid rgba(255, 255, 255, 0.16); }
.orbit__node i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.orbit__node--agent { background: var(--pink-strong); border-color: var(--pink); font-weight: 600; }
.orbit__node--agent i { background: #fff; }

/* ---------- Flow strip (request → outcome) ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; }
.flow__line { position: absolute; left: calc(100% / var(--n, 5) / 2); right: calc(100% / var(--n, 5) / 2); top: 31px; height: 2px; background: var(--line); }
.flow__line::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-strong); box-shadow: 0 0 12px rgba(236, 39, 123, 0.7); animation: travel 6s var(--ease) infinite; }
.section--dark .flow__line { background: var(--line-dark); }
.flow__step { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 12px; }
.flow__dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--c, var(--pink)); box-shadow: var(--shadow); }
.flow__dot svg { width: 26px; height: 26px; }
.section--dark .flow__dot { background: var(--navy); border-color: rgba(255, 255, 255, 0.2); }
.flow__step b { font-weight: 600; color: var(--heading); font-size: 1rem; line-height: 1.3; }
.flow__step span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; max-width: 20ch; }
.section--dark .flow__step b { color: #fff; }
.section--dark .flow__step span { color: var(--on-dark-muted); }
.flow__step.is-human .flow__dot { border-style: dashed; border-color: var(--orange); color: var(--orange); }
.flow__step.is-outcome .flow__dot { background: var(--pink-strong); border-color: var(--pink); color: #fff; }

/* Vertical stepper (used in page heroes) */
.stepper { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: 16px; padding: 22px; }
.stepper__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.stepper ol { display: grid; counter-reset: st; }
.stepper li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; position: relative; padding-block: 7px; color: #fff; font-weight: 500; }
.stepper li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); z-index: 1; animation: lit 8s infinite; animation-delay: calc(var(--k) * 1s); }
.stepper li + li::after { content: ""; position: absolute; left: 15px; top: -9px; height: 18px; width: 2px; background: rgba(255, 255, 255, 0.14); }
.stepper li.is-human::before { border: 1.5px dashed var(--orange); color: var(--orange); background: transparent; animation: none; }
.stepper li.is-human { color: #ffd2b0; }
.stepper li.is-outcome::before { background: var(--pink-strong); border-color: var(--pink); animation: none; }
.stepper__key { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: var(--on-dark-muted); }
.stepper__key span { display: inline-flex; align-items: center; gap: 6px; }
.stepper__key i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--orange); }
.stepper__key i.o { border: 0; background: var(--pink-strong); }

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

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--pink)) 40%, var(--line)); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card--navy { background: var(--navy); border-color: var(--navy); }
.card--navy h3 { color: #fff; }
.card--navy p { color: var(--on-dark-muted); }
.card--navy .more { color: #ff8fbf; }
.card .more { margin-top: auto; }
.section--dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section--dark .card p { color: var(--on-dark-muted); }
.card__num { position: absolute; top: 16px; right: 20px; font-size: 3rem; font-weight: 300; line-height: 1; color: rgba(236, 39, 123, 0.35); }
.card ul { display: grid; gap: 10px; }
.card li { display: flex; gap: 10px; align-items: center; color: var(--heading); font-weight: 500; }
.card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--pink)); flex-shrink: 0; }

/* Use-case tiles */
.uc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.uc li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; color: var(--heading); line-height: 1.3; }
.uc li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; background: var(--c, var(--pink)); transform: rotate(45deg); }
.uc li:nth-child(5n + 2) { --c: var(--blue); } .uc li:nth-child(5n + 3) { --c: #16b955; } .uc li:nth-child(5n + 4) { --c: var(--orange); } .uc li:nth-child(5n + 5) { --c: var(--red); }

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.groups .card:nth-child(2) { --c: var(--blue); } .groups .card:nth-child(3) { --c: #16b955; }

/* Problem → AI → outcome */
.brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.brief > div { padding: 28px; display: grid; gap: 12px; align-content: start; position: relative; }
.brief > div + div { border-left: 1px solid var(--line); }
.brief > div + div::before { content: "→"; position: absolute; left: -15px; top: 26px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-strong); color: #fff; font-size: 0.85rem; z-index: 1; }
.brief small { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.brief p { font-size: 1.12rem; font-weight: 500; color: var(--heading); line-height: 1.4; }
.brief > div:last-child { background: color-mix(in srgb, var(--pink) 5%, white); border-radius: 0 var(--radius) var(--radius) 0; }
.brief > div:last-child small { color: var(--pink-strong); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; color: var(--heading); text-decoration: none; }
a.chip:hover { border-color: var(--pink); color: var(--pink-strong); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.section--dark .chip, .page-hero .chip { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: var(--line-dark); }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 500; color: var(--heading); }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--green) 18%, white); color: #0f9a45; font-weight: 700; font-size: 0.85rem; }
.section--dark .checks li { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); color: #fff; }
.section--dark .checks li::before { background: rgba(39, 236, 108, 0.16); color: var(--green); }

.note { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--blue) 8%, white); color: var(--heading); font-size: 0.97rem; }
.note svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.section--dark .note { background: rgba(255, 255, 255, 0.06); color: #fff; }
.placeholder { font-size: 0.82rem; font-weight: 500; background: #fff4e8; color: #8f4308; border: 1px dashed #e9a46c; padding: 2px 8px; border-radius: 6px; display: inline-block; line-height: 1.5; }

/* Intelligence layer hub */
.hub { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 34px 24px 24px; border-radius: 20px; border: 1.5px dashed rgba(236, 39, 123, 0.55); }
.hub__label { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--pink-strong); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.hub__core { grid-column: 2 / span 2; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: 14px; background: rgba(236, 39, 123, 0.14); border: 1px solid rgba(236, 39, 123, 0.45); font-weight: 600; color: #fff; }
.hub__core img { width: 36px; height: auto; }
.hub__sys { display: grid; place-items: center; text-align: center; padding: 14px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); font-size: 0.88rem; font-weight: 500; color: #fff; animation: lit-sys 8.4s infinite; animation-delay: calc(var(--k) * 0.7s); }

/* Stack */
.stack { display: grid; gap: 8px; }
.stack li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); font-weight: 600; color: #fff; }
.stack li span { font-weight: 400; font-size: 0.88rem; color: var(--on-dark-muted); text-align: right; }
.stack li.is-agents { background: var(--pink-strong); border-color: var(--pink-strong); }
.stack li.is-agents span { color: rgba(255, 255, 255, 0.9); }
.stack__arrow { justify-content: center !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--on-dark-muted) !important; font-size: 0.8rem; }

/* Industry tiles */
.ind-tile { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; position: relative; overflow: hidden; }
.ind-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--pink)) 9%, transparent); transition: transform 0.4s var(--ease); }
.ind-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--pink)) 40%, var(--line)); }
.ind-tile:hover::after { transform: scale(1.35); }
.ind-tile h3 { font-size: 1.3rem; }
.ind-tile p { color: var(--muted); }
.ind-tile .pills { margin-top: auto; }
.ind-tile .pill { font-size: 0.78rem; padding: 4px 10px; background: var(--soft); border-color: transparent; }

/* Process self-check */
.check-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.check-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-card legend { font-weight: 700; font-size: 1.15rem; color: var(--heading); margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--heading); transition: border-color 0.2s, background-color 0.2s; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); }
.check:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 6%, white); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--pink)); transition: width 0.35s var(--ease); }
.check-card__result { font-weight: 500; color: var(--heading); }

.bms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bms li { padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; }
.bms b { font-size: 1.15rem; color: var(--heading); }
.bms span { font-size: 0.9rem; color: var(--muted); }
.bms li:nth-child(1) { border-top: 3px solid var(--blue); }
.bms li:nth-child(2) { border-top: 3px solid var(--green); }
.bms li:nth-child(3) { border-top: 3px solid var(--pink); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.stack-v { display: grid; gap: 20px; align-content: start; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--grad-navy); color: #fff; padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.page-hero__copy { display: grid; gap: 20px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.3rem); }
.page-hero .eyebrow { color: #fff; }
.page-hero .lead { color: var(--on-dark-muted); }
.page-hero--plain .page-hero__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.page-hero__icon { width: 120px; height: 120px; border-radius: 28px; justify-self: center; box-shadow: 0 0 80px color-mix(in srgb, var(--c) 40%, transparent); }
.page-hero__icon svg { width: 56px; height: 56px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .head { margin-bottom: 28px; }
.cta .btns { justify-content: center; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.92rem; color: var(--heading); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--heading); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(236, 39, 123, 0.15); }
.field [aria-invalid="true"] { border-color: #dc2626; }
.field__error { font-size: 0.82rem; color: #dc2626; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; }
.seg input { accent-color: var(--pink); margin: 0; }
.seg label:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 6%, white); }
.form__status { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--green) 14%, white); font-size: 0.95rem; color: var(--heading); }
.form__status--warn { background: #fff4e8; color: #8f4308; }
.form__fine { font-size: 0.82rem; color: var(--muted); }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompts button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.88rem; color: var(--heading); text-align: left; }
.prompts button:hover { border-color: var(--pink); color: var(--pink-strong); }
.aside { display: grid; gap: 28px; }
.aside h2 { font-size: 1.25rem; font-weight: 600; }
.next { display: grid; gap: 16px; counter-reset: nx; }
.next li { counter-increment: nx; display: flex; gap: 14px; align-items: center; font-weight: 500; color: var(--heading); }
.next li::before { content: counter(nx); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--pink-strong); color: #fff; font-weight: 700; font-size: 0.9rem; }
.contact-card { display: grid; gap: 8px; padding: 20px; border-radius: 12px; background: var(--soft); font-size: 0.93rem; }

/* Case study template */
.cs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: cs; }
.cs li { counter-increment: cs; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.cs li::before { content: counter(cs, decimal-leading-zero); font-size: 0.8rem; font-weight: 700; color: var(--pink-strong); }
.cs li b { font-weight: 600; color: var(--heading); font-size: 0.95rem; line-height: 1.3; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; display: grid; gap: 36px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; }
.legal p, .legal li { color: var(--text); font-size: 1.02rem; }
.legal ul { display: grid; gap: 8px; padding-left: 4px; }
.legal li { display: flex; gap: 12px; align-items: baseline; }
.legal li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex-shrink: 0; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.93rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { max-width: 32ch; }
.footer__col h2 { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 0.85rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-v { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes lit { 0%, 10% { background: var(--pink-strong); border-color: var(--pink-strong); } 16%, 100% { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); } }
@keyframes lit-sys { 0%, 8% { border-color: rgba(236, 39, 123, 0.75); background: rgba(236, 39, 123, 0.14); } 14%, 100% { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.05); } }
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .cs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid, .page-hero__grid, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief { grid-template-columns: minmax(0, 1fr); }
  .brief > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .brief > div + div::before { content: "↓"; left: 28px; top: -15px; }
  .brief > div:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow__line { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; }
  .flow__line::after { left: -4px; animation-name: travel-v; }
  .flow__step { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding-block: 8px; }
  .flow__dot { grid-row: span 2; }
  .flow__step b { align-self: end; }
  .flow__step span { align-self: start; max-width: none; }
  .head--row { grid-template-columns: minmax(0, 1fr); }
  .page-hero__icon { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__logo { height: 38px; }
  .grid--2, .grid--3, .grid--4, .groups, .form__row, .seg, .bms, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .cs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 14px 16px; }
  .hub__core { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .orbit__node { font-size: 0.68rem; padding: 4px 9px 4px 6px; }
  .btns .btn { flex: 1 1 auto; }
  .stack li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stack li span { text-align: left; }
}
