/* =============================================================
   DELIREN CONSULTING — Design System
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette */
  --ink: #06152b;
  --ink-2: #0b2140;
  --ink-3: #123058;
  --navy: #0f2b52;
  --deep: #051228;
  --blue: #1668cf;
  --blue-soft: #3f92e8;
  --blue-glow: rgba(22, 104, 207, .45);
  --cyan: #35b0ec;
  --amber: #f08000;
  --amber-soft: #ffa733;
  --white: #ffffff;
  --paper: #f5f8fc;
  --paper-2: #eaf1f9;
  --line: #dbe5f1;
  --line-dark: rgba(255, 255, 255, .13);
  --muted: #52627c;
  --muted-dark: rgba(222, 233, 248, .70);
  --ok: #17b98a;
  --warn: #f5a524;

  /* Typography */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --plex: "IBM Plex Sans", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.5rem, 6.2vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: clamp(1rem, 1.05vw, 1.075rem);
  --fs-small: .875rem;
  --fs-kicker: .74rem;

  /* Space & layout */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1220px;
  --maxw-narrow: 780px;
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(9, 20, 45, .06), 0 4px 14px rgba(9, 20, 45, .05);
  --shadow-md: 0 2px 6px rgba(9, 20, 45, .07), 0 18px 40px rgba(9, 20, 45, .09);
  --shadow-lg: 0 30px 80px rgba(6, 14, 35, .18);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-family: var(--plex); font-weight: 600; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--muted-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.section--dark .lead { color: var(--muted-dark); }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); font-weight: 500;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--amber); opacity: .9; }
.section--dark .kicker { color: var(--cyan); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin: .8rem 0 .9rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker::before { display: none; }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 550; font-size: .95rem;
  letter-spacing: -0.01em; transition: transform .35s var(--ease-out), background .3s var(--ease-out), box-shadow .35s var(--ease-out), color .3s var(--ease-out);
  border: 1px solid transparent; white-space: nowrap; text-align: center;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -12px var(--blue-glow); }
.btn--primary:hover { background: #1257b4; transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--blue-glow); }
.btn--ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: var(--line-dark); backdrop-filter: blur(10px); }
.btn--light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 550; font-size: .95rem; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out), background .3s var(--ease-out), transform .4s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { height: 40px; width: auto; }
.nav .brand { flex: none; }
.nav .brand img { height: 42px; transition: transform .35s var(--ease-out); }
.nav .brand:hover img { transform: scale(1.03); }
.footer .brand img { height: 52px; }
@media (min-width: 720px) { .nav .brand img { height: 46px; } }
.nav__menu { display: none; align-items: center; gap: .1rem; margin-inline: auto; }
.nav__link { padding: .5rem .75rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .25s var(--ease-out), background .25s var(--ease-out); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue); background: rgba(22, 104, 207, .08); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__actions .btn--ghost { display: none; }
.nav__actions { flex: none; }
.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); }
.nav__toggle span { width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 480; background: #fff;
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; }
.drawer .drawer__group { font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .4rem; }
.drawer .btn { margin-top: 1.6rem; }

/* Mega menu (desktop) */
.mega {
  position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 460;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s var(--ease-out), transform .3s var(--ease-out), visibility .28s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner { max-width: var(--maxw); margin-inline: auto; padding: 2.2rem var(--gutter) 2.6rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.mega__col h4 { font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .9rem; }
.mega__col a { display: block; padding: .42rem 0; font-size: .93rem; color: var(--ink-2); transition: color .2s var(--ease-out), transform .25s var(--ease-out); }
.mega__col a:hover { color: var(--blue); transform: translateX(3px); }
.mega__promo { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; }
.mega__promo p { font-size: .88rem; color: var(--muted); margin: .4rem 0 1rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
}
.hero__mesh { position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: -2; opacity: .95; }
.hero__mesh span { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.hero__mesh span:nth-child(1) { width: 46vw; height: 46vw; background: rgba(29, 92, 255, .55); top: -6%; left: 4%; }
.hero__mesh span:nth-child(2) { width: 38vw; height: 38vw; background: rgba(52, 211, 255, .28); top: 18%; right: 2%; }
.hero__mesh span:nth-child(3) { width: 34vw; height: 34vw; background: rgba(240, 128, 0, .22); bottom: -8%; left: 34%; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.hero h1 { font-size: var(--fs-display); color: #fff; margin: 1.1rem 0 1.2rem; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--amber-soft), var(--cyan) 55%, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.hero__proof div strong { display: block; font-family: var(--plex); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.hero__proof div span { font-size: .8rem; color: var(--muted-dark); }

/* Dashboard mock */
.dash {
  background: linear-gradient(165deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 1.1rem; backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
}
.dash__bar { display: flex; align-items: center; gap: .45rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-dark); }
.dash__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dash__bar b { margin-left: auto; font-family: var(--mono); font-size: .68rem; font-weight: 400; color: var(--muted-dark); letter-spacing: .08em; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .9rem 0; }
.dash__kpi { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: .7rem .75rem; }
.dash__kpi span { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.dash__kpi strong { font-family: var(--plex); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.dash__kpi em { font-style: normal; font-size: .7rem; color: var(--ok); }
.dash__chart { display: flex; align-items: flex-end; gap: .35rem; height: 108px; padding: .8rem .2rem .2rem; }
.dash__chart i { flex: 1; background: linear-gradient(180deg, var(--blue-soft), rgba(29,92,255,.25)); border-radius: 4px 4px 2px 2px; height: 12%; transition: height 1.2s var(--ease-out); }
.dash__flow { display: grid; gap: .4rem; margin-top: .4rem; }
.dash__row { display: flex; align-items: center; gap: .6rem; font-size: .76rem; padding: .5rem .6rem; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid transparent; }
.dash__row.is-live { border-color: rgba(52,211,255,.35); }
.dash__row i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.dash__row span { color: var(--muted-dark); margin-left: auto; font-family: var(--mono); font-size: .66rem; }

/* Logos / trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; padding-block: 1.6rem; }
.trust p { text-align: center; font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.2rem; }
.trust__row span { font-family: var(--plex); font-weight: 600; font-size: 1rem; color: #93a0b8; letter-spacing: -0.02em; transition: color .3s var(--ease-out); }
.trust__row span:hover { color: var(--ink-2); }

/* =============================================================
   7. Cards
   ============================================================= */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.2vw, 1.8rem); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s var(--ease-out);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d6ee; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .94rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(140deg, rgba(22,104,207,.12), rgba(240,128,0,.14)); color: var(--blue);
}
.card__icon svg { width: 20px; height: 20px; }
.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; padding: .22rem .55rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.section--dark .card p { color: var(--muted-dark); }
.section--dark .tag { background: rgba(255,255,255,.07); color: var(--muted-dark); }
.card--flat { background: var(--paper); border-color: transparent; }
.card--feature { padding: clamp(1.6rem, 3vw, 2.4rem); }

/* Metric cards */
.metric { border-left: 2px solid var(--amber); padding-left: 1.1rem; }
.metric strong { display: block; font-family: var(--plex); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.metric span { font-size: .9rem; color: var(--muted); }
.section--dark .metric span { color: var(--muted-dark); }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .6rem; background: #fff;
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .93rem; }
.section--dark .step::before { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--cyan); }

/* Architecture diagram */
.arch { display: grid; gap: .8rem; }
.arch__layer { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; }
.arch__layer h4 { font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; font-weight: 500; }
.arch__items { display: flex; flex-wrap: wrap; gap: .4rem; }
.arch__items span { font-size: .8rem; padding: .32rem .7rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.arch__arrow { text-align: center; color: var(--muted); font-size: 1rem; line-height: 1; }
.section--dark .arch__layer { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.section--dark .arch__items span { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--muted-dark); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; text-align: left; font-weight: 550; font-family: var(--plex); font-size: 1.02rem; }
.faq__q i { flex: none; width: 20px; height: 20px; position: relative; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--blue); transition: transform .3s var(--ease-out); }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q i::after { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq__a p { padding-bottom: 1.2rem; color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* =============================================================
   8. Forms
   ============================================================= */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 550; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: .93rem; color: var(--ink-2);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,207,.16); }
.field textarea { min-height: 118px; resize: vertical; }
.field--row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.form__consent input { width: 16px; height: 16px; margin-top: .18rem; flex: none; }
.form__note { font-size: .78rem; color: var(--muted); }
.form__status { font-size: .88rem; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form__status.is-ok { display: block; background: rgba(23,185,138,.1); color: #0d7a5b; }
.form__status.is-error { display: block; background: rgba(245,165,36,.12); color: #94620a; }
.section--dark .field label { color: #fff; }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }
.section--dark .field input::placeholder, .section--dark .field textarea::placeholder { color: rgba(255,255,255,.4); }

/* =============================================================
   9. CTA blocks / footer
   ============================================================= */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.6rem); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -60% -10% auto -10%; height: 150%; z-index: -1; background: radial-gradient(50% 50% at 20% 20%, rgba(22,104,207,.55), transparent 70%), radial-gradient(45% 45% at 85% 60%, rgba(240,128,0,.22), transparent 70%); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--muted-dark); max-width: 52ch; margin: .9rem 0 1.6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer h4 { font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; font-weight: 500; }
.footer a { display: block; padding: .28rem 0; font-size: .9rem; transition: color .25s var(--ease-out); }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer__about p { font-size: .9rem; margin: 1rem 0; max-width: 34ch; }
.footer__bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; font-size: .8rem; }
.footer__bottom a { display: inline; }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 420;
  display: flex; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }

/* =============================================================
   10. Tools: ROI calculator, assessment, chat
   ============================================================= */
.tool { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; align-items: start; }
.tool__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 2.5vw, 2rem); box-shadow: var(--shadow-sm); }
.tool__result { background: var(--ink); color: #fff; position: sticky; top: calc(var(--nav-h) + 20px); }
.tool__result .metric { border-color: var(--cyan); }
.tool__result .metric span { color: var(--muted-dark); }
.range-field { display: grid; gap: .35rem; margin-bottom: 1.15rem; }
.range-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.range-field label { font-size: .88rem; font-weight: 550; }
.range-field output { font-family: var(--mono); font-size: .95rem; color: var(--blue); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(22,104,207,.4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; cursor: pointer; }
.result-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }

.quiz__progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 1.6rem; }
.quiz__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); width: 0; transition: width .5s var(--ease-out); }
.quiz__q { font-family: var(--plex); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.quiz__opts { display: grid; gap: .55rem; }
.quiz__opt { text-align: left; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .94rem; transition: border-color .25s var(--ease-out), background .25s var(--ease-out), transform .25s var(--ease-out); }
.quiz__opt:hover { border-color: var(--blue); background: rgba(22,104,207,.06); transform: translateX(3px); }
.quiz__opt.is-selected { border-color: var(--blue); background: rgba(22,104,207,.09); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; gap: 1rem; }
.quiz__meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.gauge { display: grid; gap: .5rem; }
.gauge__bar { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.gauge__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); width: 0; transition: width .8s var(--ease-out); }

/* Chat assistant */
.chat-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 440;
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px var(--blue-glow);
  transition: transform .35s var(--ease-out);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-panel {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 68px); z-index: 445;
  width: min(380px, calc(100vw - 2rem)); max-height: min(560px, 72vh);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), visibility .3s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-panel__head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; }
.chat-panel__head strong { font-family: var(--plex); font-size: .96rem; }
.chat-panel__head span { font-size: .74rem; color: var(--ok); display: flex; align-items: center; gap: .3rem; }
.chat-panel__head button { margin-left: auto; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .7rem; align-content: start; }
.chat-msg { max-width: 86%; padding: .65rem .85rem; border-radius: 14px; font-size: .89rem; line-height: 1.5; }
.chat-msg--bot { background: var(--paper); border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .7rem; }
.chat-suggest button { font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: border-color .25s, color .25s; }
.chat-suggest button:hover { border-color: var(--blue); color: var(--blue); }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .88rem; }
.chat-form input:focus { outline: 0; border-color: var(--blue); }
.chat-form button { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }

/* Exit intent modal */
.modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,11,22,.6); backdrop-filter: blur(4px); }
.modal__card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .4s var(--ease-out); }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: .8rem; right: 1rem; font-size: 1.4rem; color: var(--muted); line-height: 1; }

/* Breadcrumb */
.crumbs { font-size: .8rem; color: var(--muted-dark); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* Article / prose */
.prose { max-width: 72ch; }
.prose h2 { margin: 2.4rem 0 .9rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: #354056; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .45rem; margin: 1rem 0; }
.prose blockquote { border-left: 2px solid var(--blue); padding-left: 1.2rem; font-size: 1.1rem; color: var(--ink-2); margin: 1.6rem 0; }

/* Checklist */
.checks { display: grid; gap: .7rem; }
.checks li { list-style: none; display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--blue); font-weight: 700; flex: none; line-height: 1.5; }
.section--dark .checks li::before { color: var(--cyan); }

/* =============================================================
   11. Reveal effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.is-no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   12. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field--row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.4rem; }
}
@media (min-width: 960px) {
  .nav__menu { display: flex; }
  .nav .brand img { height: 44px; }
  .nav__link { padding: .5rem .55rem; font-size: .88rem; }
  .nav__toggle { display: none; }
  .drawer { display: none; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .mega__inner { grid-template-columns: repeat(3, 1fr) .9fr; }
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .tool { grid-template-columns: 1.15fr .85fr; }
  .sticky-cta { display: none; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
}
@media (min-width: 1280px) {
  .nav__actions .btn--ghost { display: inline-flex; }
  .grid-3--wide { grid-template-columns: repeat(3, 1fr); }
  .nav .brand img { height: 52px; }
  .nav__link { padding: .5rem .75rem; font-size: .92rem; }
}
@media (min-width: 1600px) {
  .nav .brand img { height: 56px; }
}

/* =============================================================
   13. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__mesh span { animation: none !important; }
  .dash__row.is-live { animation: none !important; }
}

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

@media print {
  .nav, .chat-fab, .chat-panel, .sticky-cta, .modal, .footer { display: none !important; }
  body { color: #000; }
}
