/* ============================================================
   DocuEco — Cinematic layer (dark/light hybrid)
   Loaded AFTER main.css. Adds the elevated hero, dark sections,
   bento grid, marquee, perspective grid, glow & grain.
   ============================================================ */

:root {
  --d-deep: #060b10;       /* deepest bg (not pure black) */
  --d-base: #0a1218;       /* base dark */
  --d-elev: #101a22;       /* elevated surface */
  --d-surface: rgba(255,255,255,.04);
  --d-border: rgba(255,255,255,.09);
  --d-border-strong: rgba(255,255,255,.16);
  --d-fg: #eaf2f5;
  --d-fg-muted: #93a6b0;
  --glow-teal: rgba(0,163,196,.55);
  --easing: cubic-bezier(.16,1,.3,1);
}

/* ---------- DARK SECTION BASE ---------- */
.dark {
  background: var(--d-base);
  color: var(--d-fg);
  position: relative;
  isolation: isolate;
}
.dark .eyebrow { color: var(--teal-300); }
.dark .eyebrow__dot { background: var(--teal-400); box-shadow: 0 0 0 4px rgba(0,163,196,.18), 0 0 18px var(--glow-teal); }
.dark h1, .dark h2, .dark h3 { color: var(--d-fg); }
.dark .lead, .dark .muted { color: var(--d-fg-muted); }
.dark .text-grad {
  background: linear-gradient(100deg, #36d2e8, #00a3c4 60%, #6ee7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* grain overlay (very subtle) */
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark > * { position: relative; z-index: 1; }

/* ambient light blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; will-change: transform; }
.blob--teal { background: radial-gradient(circle, rgba(0,163,196,.40), transparent 70%); }
.blob--cyan { background: radial-gradient(circle, rgba(64,210,232,.30), transparent 70%); }
.blob--violet { background: radial-gradient(circle, rgba(99,102,241,.28), transparent 70%); }

/* ---------- CINEMATIC HERO ---------- */
.chero {
  position: relative;
  display: flex; align-items: center;
  /* Fill the screen using the dynamic viewport unit so mobile browser
     chrome (address bar) doesn't leave the hero looking cut off. */
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--s8)); padding-bottom: var(--s7);
  background:
    radial-gradient(120% 70% at 50% -5%, rgba(0,163,196,.20), transparent 55%),
    linear-gradient(180deg, var(--d-deep), var(--d-base) 75%, var(--d-elev));
  overflow: hidden;
}
.chero__perspective {
  position: absolute; inset: auto 0 0 0; height: 38%; z-index: 0; pointer-events: none;
  perspective: 600px; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 95%); mask-image: linear-gradient(to top, #000 0%, transparent 95%);
}
.chero__grid {
  position: absolute; inset: 0 -50%; transform: rotateX(70deg);
  background-image:
    linear-gradient(to right, rgba(0,163,196,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,163,196,.18) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridmove 8s linear infinite;
}
@keyframes gridmove { to { background-position: 0 56px; } }
@media (prefers-reduced-motion: reduce) { .chero__grid { animation: none; } }

.chero__inner { position: relative; z-index: 2; width: 100%; }
.chero__center { max-width: 920px; margin-inline: auto; text-align: center; }
.chero__badge {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--s5);
  padding: .4rem .9rem .4rem .5rem; border-radius: var(--r-full);
  background: rgba(255,255,255,.05); border: 1px solid var(--d-border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--d-fg); backdrop-filter: blur(8px);
}
.chero__badge { padding: .4rem .9rem; }
.chero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fe0f2; box-shadow: 0 0 0 4px rgba(0,163,196,.18), 0 0 14px var(--glow-teal); flex-shrink: 0; }
.chero__title {
  font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -.04em; color: #fff; margin-bottom: var(--s5);
}
.chero__title .word-grad {
  background: linear-gradient(100deg, #5fe0f2 0%, #00a3c4 45%, #7c8cff 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) { .chero__title .word-grad { animation: none; } }
.chero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--d-fg-muted); max-width: 42ch; margin: 0 auto var(--s6); }
.chero__cta { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s7); }

/* glowing primary on dark */
.btn--glow {
  background: linear-gradient(100deg, #00a3c4, #0890b0); color: #fff; position: relative;
  box-shadow: 0 10px 40px -8px var(--glow-teal), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--glow:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px var(--glow-teal), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--glass {
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--d-border-strong); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* trust row on dark */
.chero__trust { display: flex; align-items: center; justify-content: center; gap: var(--s2) var(--s5); flex-wrap: wrap; color: var(--d-fg-muted); font-size: var(--fs-sm); font-weight: 500; }
.chero__trust-item { display: inline-flex; align-items: center; gap: 7px; }
.chero__trust-item svg { width: 16px; height: 16px; color: var(--teal-400); }
.chero__trust-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--d-border-strong); }

/* ---------- HERO MOCKUP (scroll-assembled) ---------- */
.chero__stage { position: relative; max-width: 980px; margin: var(--s7) auto 0; perspective: 1600px; }
.cmock {
  position: relative; border-radius: 18px; overflow: hidden; transform-style: preserve-3d;
  background: linear-gradient(180deg, #0f1c24, #0b151b);
  border: 1px solid var(--d-border); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,163,196,.08);
}
.cmock::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 0%, rgba(0,163,196,.12), transparent 70%); pointer-events: none; z-index: 2; }
.cmock__bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--d-border); background: rgba(255,255,255,.02); }
.cmock__bar .mockup__dots span { background: rgba(255,255,255,.2); }
.cmock__bar .mockup__dots span:nth-child(1){background:#ff5f57}.cmock__bar .mockup__dots span:nth-child(2){background:#febc2e}.cmock__bar .mockup__dots span:nth-child(3){background:#28c840}
.cmock__appname { font-size: var(--fs-xs); font-weight: 700; color: var(--d-fg-muted); }
.cmock__body { padding: var(--s6); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); }
.cmock__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--d-fg-muted); margin-bottom: var(--s3); }
.cmock__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-bottom: var(--s5); }
.cmock__stat { background: rgba(255,255,255,.04); border: 1px solid var(--d-border); border-radius: 12px; padding: var(--s4); }
.cmock__stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.cmock__stat--t .cmock__stat-num { color: #5fe0f2; }
.cmock__stat--v .cmock__stat-num { color: #9aa6ff; }
.cmock__stat--a .cmock__stat-num { color: #ffcf8a; }
.cmock__stat-label { font-size: var(--fs-xs); color: var(--d-fg-muted); margin-top: 4px; display: block; }
.cmock__row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.cmock__row + .cmock__row { border-top: 1px solid var(--d-border); }
.cmock__row-info { flex: 1; }
.cmock__row-name { font-size: var(--fs-sm); font-weight: 600; color: var(--d-fg); margin-bottom: 7px; display: block; }
.cmock__bar-track { height: 6px; border-radius: var(--r-full); background: rgba(255,255,255,.08); overflow: hidden; }
.cmock__bar-fill { display: block; height: 100%; width: 0; border-radius: var(--r-full); background: linear-gradient(90deg, #00a3c4, #5fe0f2); transition: width 1.1s var(--easing); }
.cmock__badge { font-size: 11px; font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-full); background: rgba(40,200,120,.16); color: #4ee39e; }
.cmock__side { display: grid; gap: var(--s3); align-content: start; }
.cmock__pill { display: flex; align-items: center; gap: var(--s3); background: rgba(255,255,255,.04); border: 1px solid var(--d-border); border-radius: 12px; padding: var(--s3) var(--s4); }
.cmock__pill-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.cmock__pill-ic svg { width: 18px; height: 18px; }
.cmock__pill-ic--green { background: rgba(40,200,120,.16); color: #4ee39e; }
.cmock__pill-ic--teal { background: rgba(0,163,196,.18); color: #5fe0f2; }
.cmock__pill-ic--violet { background: rgba(99,102,241,.18); color: #9aa6ff; }
.cmock__pill-txt { font-size: var(--fs-xs); }
.cmock__pill-txt strong { display: block; color: var(--d-fg); font-weight: 600; }
.cmock__pill-txt span { color: var(--d-fg-muted); }

/* ============================================================
   FLOW DEMO — self-running mini story of the product
   ============================================================ */
.flowdemo { position: relative; max-width: 760px; margin: var(--s7) auto 0; perspective: 1600px; }
.flowdemo__frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.6);
  display: flex;
}

/* real app top navbar, reused from the dual-view mock for 1:1 fidelity */
.flowdemo__appnav { position: absolute; inset: 0 0 auto 0; height: 48px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); border-bottom: 1px solid #edf1f2; background: #fff; z-index: 4; }
.flowdemo__appnav-logo { font-weight: 800; font-size: .88rem; color: #12202a; }
.flowdemo__appnav-logo span { color: var(--teal-700); }
.flowdemo__appnav-spacer { flex: 1; }
.flowdemo__appnav-org { font-size: 11px; color: #5b6b74; background: #f4f7f8; border: 1px solid #e1e8eb; border-radius: 8px; padding: .3rem .6rem; }

/* real app sidebar, reused from the dual-view mock for 1:1 fidelity.
   One sidebar for the whole demo: logo + profile avatar stay put,
   only the nav list swaps between the org and client menus. */
.flowdemo__sidebar { width: 148px; flex-shrink: 0; background: #fff; border-right: 1px solid #edf1f2; padding: 62px var(--s2) var(--s3); display: none; }
.flowdemo__sidebar-logo { display: block; margin: 0 auto var(--s3); object-fit: contain; }
.flowdemo__sidebar-user { display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 9px; background: #f4f9fa; margin-bottom: var(--s3); }
.flowdemo__sidebar-av { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-700); color: #fff; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.flowdemo__sidebar-user div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.flowdemo__sidebar-user strong { display: block; font-size: 9.5px; color: #12202a; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowdemo__sidebar-user div span { font-size: 8.5px; color: #5b6b74; }
.flowdemo__sidebar-nav { display: grid; gap: 2px; }
.flowdemo__sidebar-nav a { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 7px; font-size: 10.5px; color: #5b6b74; font-weight: 500; }
.flowdemo__sidebar-nav a svg { width: 13px; height: 13px; flex-shrink: 0; }
.flowdemo__sidebar-nav a.is-active { background: #e8f4f7; color: var(--teal-700); font-weight: 700; }
@media (min-width: 640px) { .flowdemo__sidebar { display: block; } }

/* org vs client nav list toggle (swapped by JS per active scene) */
.flowdemo__sidebar-nav--client { display: none; }
.flowdemo--client .flowdemo__sidebar-nav--org { display: none; }
.flowdemo--client .flowdemo__sidebar-nav--client { display: grid; }
.flowdemo__sidebar-user--client { display: none; }
.flowdemo--client .flowdemo__sidebar-user--org { display: none; }
.flowdemo--client .flowdemo__sidebar-user--client { display: flex; }

.flowdemo__main { flex: 1; min-width: 0; padding-top: 48px; }

/* progress rail of 4 steps */
.flowdemo__rail { display: flex; gap: 8px; padding: var(--s4) var(--s5) 0; position: relative; z-index: 2; }
.flowdemo__rail-seg { flex: 1; height: 4px; border-radius: 99px; background: #e8eef0; overflow: hidden; }
.flowdemo__rail-seg i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--teal-700); }
.flowdemo__rail-seg.done i { width: 100%; transition: width .5s var(--easing); }
.flowdemo__rail-seg.active i { width: 100%; transition: width 2.4s linear; }

/* stage holds the 4 scenes */
.flowdemo__stage { position: relative; min-height: 440px; padding: var(--s5); z-index: 1; background: #fbfdfd; }
.flowscene { position: absolute; inset: var(--s5); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--easing), transform .5s var(--easing); pointer-events: none; }
.flowscene.is-live { opacity: 1; transform: none; }
.flowscene__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.flowscene__head > div { min-width: 0; }
.flowscene__title { font-size: var(--fs-base); font-weight: 700; color: #12202a; overflow-wrap: break-word; }
.flowscene__sub { font-size: var(--fs-xs); color: #5b6b74; overflow-wrap: break-word; }

/* generic row item used inside scenes */
.flowrow { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 12px; background: #fff; border: 1px solid #e1e8eb; margin-bottom: var(--s3); }
.flowrow__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.flowrow__ic svg { width: 18px; height: 18px; }
.flowrow__ic--teal { background: #e8f4f7; color: var(--teal-700); }
.flowrow__ic--green { background: rgba(40,175,110,.12); color: #1e8a5f; }
.flowrow__ic--violet { background: rgba(99,102,241,.12); color: #5b5ee0; }
.flowrow__ic--amber { background: rgba(224,146,47,.14); color: #c97a1e; }
.flowrow__txt { flex: 1; min-width: 0; }
.flowrow__name { font-size: var(--fs-sm); font-weight: 600; color: #12202a; display: block; }
.flowrow__meta { font-size: var(--fs-xs); color: #5b6b74; }
.flowrow__badge { font-size: 10px; font-weight: 700; padding: .22rem .55rem; border-radius: 99px; flex-shrink: 0; }
.flowrow__badge--wait { background: rgba(224,146,47,.14); color: #c97a1e; }
.flowrow__badge--ok { background: rgba(0,115,150,.12); color: var(--teal-700); }
.flowrow__badge--send { background: #e8f4f7; color: var(--teal-700); }

/* scene 1: form builder bubbles */
.flowq { padding: var(--s3) var(--s4); border-radius: 10px; background: #fff; border: 1px dashed #c9d4d8; margin-bottom: var(--s3); font-size: var(--fs-sm); color: #12202a; display: flex; align-items: center; gap: var(--s3); }
.flowq__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal-700); flex-shrink: 0; }
.flowq__doc { margin-left: auto; font-size: 9.5px; font-weight: 700; color: var(--teal-700); background: #e8f4f7; padding: .25rem .55rem; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }

/* scene 1: template picker card (real "Plantillas de formularios" modal) */
.flowtpl { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 12px; background: #fff; border: 1px solid #e1e8eb; margin-bottom: var(--s4); }
.flowtpl__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: #e8f4f7; color: var(--teal-700); }
.flowtpl__ic svg { width: 18px; height: 18px; }
.flowtpl__txt { flex: 1; min-width: 0; }
.flowtpl__txt strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: #12202a; }
.flowtpl__txt span { font-size: 11px; color: #5b6b74; }
.flowtpl__btn { font-size: 11px; font-weight: 700; color: #fff; background: var(--teal-700); padding: .4rem .8rem; border-radius: 8px; flex-shrink: 0; white-space: nowrap; }
.flowtpl__btn--block { display: inline-block; margin-top: var(--s2); }
.flowtpl__btn--ghost { background: #fff; border: 1px solid var(--teal-700); color: var(--teal-700); }

/* scene 1: "Listado de formularios" header with both entry points */
.flowlist__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.flowlist__title { font-size: 12.5px; font-weight: 700; color: #12202a; }
.flowlist__actions { display: flex; gap: 8px; }

/* scene 2: faithful "Agregar nuevo cliente" modal replica */
.flowmodal { background: #fff; border-radius: 12px; border: 1px solid #e1e8eb; box-shadow: 0 20px 50px -18px rgba(18,32,42,.28); padding: var(--s4); max-width: 320px; margin-inline: auto; }
.flowmodal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); padding-bottom: 10px; border-bottom: 1px solid #edf1f2; }
.flowmodal__head b { font-size: 13.5px; font-weight: 700; color: var(--teal-700); }
.flowmodal__x { font-size: 1rem; line-height: 1; color: #9aa6ac; }
.flowmodal__field { margin-bottom: 10px; }
.flowmodal__field label { display: block; font-size: 10px; font-weight: 600; color: #12202a; margin-bottom: 4px; }
.flowmodal__input { display: block; width: 100%; padding: .4rem .6rem; border-radius: 7px; border: 1px solid #d7dfe2; font-size: 10.5px; color: #12202a; background: #fff; box-sizing: border-box; }
.flowmodal__input--select { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); color: #5b6b74; }
.flowmodal__input--select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flowmodal__input--select svg { width: 12px; height: 12px; flex-shrink: 0; color: #9aa6ac; }
.flowmodal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: var(--s3); }
.flowmodal__btn { font-size: 10.5px; font-weight: 700; padding: .4rem .85rem; border-radius: 7px; }
.flowmodal__btn--ghost { background: #fff; border: 1px solid #d7dfe2; color: #12202a; }
.flowmodal__btn--primary { background: var(--teal-700); color: #fff; }

/* scene 3: "Lista de Documentos" table (question / answer / document / status) */
.flowdoc__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flowdoc { border-radius: 10px; overflow: hidden; border: 1px solid #e1e8eb; min-width: 480px; }
.flowdoc__head { display: grid; grid-template-columns: 1.8fr .8fr 1.5fr .9fr .7fr .6fr; gap: var(--s2); padding: 10px var(--s3); background: var(--teal-700); }
.flowdoc__head span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; text-align: center; white-space: nowrap; }
.flowdoc__head span:first-child { text-align: left; }
.flowdoc__row { display: grid; grid-template-columns: 1.8fr .8fr 1.5fr .9fr .7fr .6fr; gap: var(--s2); align-items: center; padding: 10px var(--s3); background: #fff; border-top: 1px solid #e1e8eb; }
.flowdoc__row span { font-size: 10.5px; color: #12202a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowdoc__row span:nth-child(2) { color: #5b6b74; }
.flowdoc__row span:nth-child(5) { color: #9aa6ac; font-size: 10px; }
.flowdoc__action { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--teal-700); color: var(--teal-700); display: grid; place-items: center; }
.flowdoc__action svg { width: 11px; height: 11px; }

/* scene 3: upload progress */
.flowup__bar { height: 8px; border-radius: 99px; background: #e8eef0; overflow: hidden; margin-top: 8px; }
.flowup__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--teal-700); }
.flowscene.is-live .flowup__bar i { animation: flowfill 2s var(--easing) forwards; }
@keyframes flowfill { from { width: 8%; } to { width: 100%; } }

/* scene 4: dashboard recap */
.flowdash { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-bottom: var(--s3); }
.flowdash__stat { border-radius: 12px; padding: var(--s3) var(--s4); position: relative; overflow: hidden; }
.flowdash__stat:nth-child(1) { background: linear-gradient(135deg, #00a3c4, #007396); }
.flowdash__stat:nth-child(2) { background: linear-gradient(135deg, #7c7ff2, #5b5ee0); }
.flowdash__stat:nth-child(3) { background: linear-gradient(135deg, #e0922f, #c97a1e); }
.flowdash__stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.flowdash__stat span { display: block; font-size: 11px; color: rgba(255,255,255,.85); overflow-wrap: break-word; }
.flowrow--card { margin-bottom: 0; }
@media (max-width: 420px) {
  .flowdash { grid-template-columns: 1fr 1fr; }
  .flowdash__stat:nth-child(3) { grid-column: span 2; }
}

/* floating confirmation chip */
.flowdemo__chip {
  position: absolute; right: -14px; top: 30%; z-index: 5;
  display: flex; align-items: center; gap: var(--s2);
  background: #fff; border: 1px solid #e1e8eb; border-radius: 12px;
  padding: var(--s3) var(--s4); box-shadow: 0 18px 40px -12px rgba(0,0,0,.25);
  font-size: var(--fs-xs); color: #12202a; opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .4s var(--easing), transform .4s var(--easing);
}
.flowdemo__chip.show { opacity: 1; transform: none; }
.flowdemo__chip svg { width: 18px; height: 18px; color: #1e8a5f; }
@media (max-width: 600px) { .flowdemo__chip { right: 8px; top: auto; bottom: 12px; } .flowdemo__stage { min-height: 400px; } }
@media (max-width: 480px) { .flowdemo__stage { min-height: 560px; padding: var(--s4); } .flowscene { inset: var(--s4); } }

/* ============================================================
   DUAL MOCKUP — organisation view vs client view (toggle)
   Faithful replica of the real app UI: white background,
   real top navbar and left sidebar, exactly like the product.
   ============================================================ */
.dual { max-width: 1040px; margin-inline: auto; }
.dual__switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--d-border); margin: 0 auto var(--s6); }
.dual__switch button { padding: .6rem 1.2rem; border-radius: 99px; font-weight: 600; font-size: var(--fs-sm); color: var(--d-fg-muted); transition: color .25s, background .25s; }
.dual__switch button.is-active { background: linear-gradient(100deg,#00a3c4,#0890b0); color: #fff; box-shadow: 0 6px 18px -6px var(--glow-teal); }
.dual__switch-wrap { text-align: center; }
.dual__viewport { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); background: #fff; box-shadow: 0 40px 120px -30px rgba(0,0,0,.55); min-height: 560px; }
.dual__view { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(.99); transition: opacity .5s var(--easing), transform .5s var(--easing); pointer-events: none; padding: 0; display: flex; }
.dual__view.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* App top navbar (real product chrome) */
.dual__appnav { position: absolute; inset: 0 0 auto 0; height: 52px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); border-bottom: 1px solid #edf1f2; background: #fff; z-index: 3; }
.dual__appnav-logo { font-weight: 800; font-size: .95rem; color: #12202a; }
.dual__appnav-logo span { color: var(--teal-700); }
.dual__appnav-spacer { flex: 1; }
.dual__appnav-org { font-size: 12px; color: #5b6b74; background: #f4f7f8; border: 1px solid #e1e8eb; border-radius: 8px; padding: .35rem .7rem; }
.dual__appnav-cta { font-size: 12px; font-weight: 600; color: var(--teal-700); border: 1px solid var(--teal-700); border-radius: 8px; padding: .35rem .7rem; white-space: nowrap; }

/* Left sidebar (real product chrome) */
.dual__sidebar { width: 168px; flex-shrink: 0; background: #fff; border-right: 1px solid #edf1f2; padding: 68px var(--s3) var(--s4); display: none; }
.dual__sidebar-logo { display: block; margin: 0 auto var(--s4); object-fit: contain; }
.dual__sidebar-user { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #f4f9fa; margin-bottom: var(--s4); }
.dual__sidebar-av { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-700); color: #fff; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.dual__sidebar-user div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dual__sidebar-user strong { display: block; font-size: 10.5px; color: #12202a; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dual__sidebar-user div span { font-size: 9.5px; color: #5b6b74; }
.dual__sidebar-nav { display: grid; gap: 2px; }
.dual__sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 11.5px; color: #5b6b74; font-weight: 500; }
.dual__sidebar-nav a svg { width: 14px; height: 14px; flex-shrink: 0; }
.dual__sidebar-nav a.is-active { background: #e8f4f7; color: var(--teal-700); font-weight: 700; }
@media (min-width: 720px) { .dual__sidebar { display: block; } }

.dual__main { flex: 1; min-width: 0; padding-top: 52px; overflow: hidden; }
.dual__role { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--d-fg-muted); margin-left: auto; }
.dual__body { padding: var(--s5); display: grid; grid-auto-rows: min-content; gap: var(--s4); background: #fbfdfd; height: 100%; align-content: start; }
.dual__body-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: -4px; }
.dual__body-head > div { min-width: 0; }
.dual__body-ic { width: 30px; height: 30px; border-radius: 8px; background: #e8f4f7; color: var(--teal-700); display: grid; place-items: center; flex-shrink: 0; }
.dual__body-ic svg { width: 16px; height: 16px; }
.dual__body-title { font-size: 1rem; font-weight: 800; color: #12202a; line-height: 1.2; overflow-wrap: break-word; }
.dual__body-sub { font-size: 11.5px; color: #5b6b74; overflow-wrap: break-word; }

/* org view: stat cards + client list */
.dual__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); }
.dual__stat { position: relative; border-radius: 12px; padding: var(--s4); overflow: hidden; }
.dual__stat--t { background: linear-gradient(135deg, #00a3c4, #007396); }
.dual__stat--v { background: linear-gradient(135deg, #7c7ff2, #5b5ee0); }
.dual__stat--a { background: linear-gradient(135deg, #e0922f, #c97a1e); }
.dual__stat-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-bottom: var(--s3); background: rgba(255,255,255,.18); color: #fff; }
.dual__stat-ic svg { width: 15px; height: 15px; }
.dual__stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.dual__stat span { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.85); overflow-wrap: break-word; }

/* dual — dashboard sections (org view) */
.dual__sectlabel { display: flex; align-items: center; gap: var(--s2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5b6b74; margin-top: var(--s2); }
.dual__sectlabel svg { width: 14px; height: 14px; color: var(--teal-700); }
.dual__exp { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid #e1e8eb; }
.dual__exp-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; line-height: 1; font-weight: 800; font-size: 10.5px; color: #fff; background: var(--teal-700); }
.dual__exp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dual__exp-info strong { color: #12202a; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dual__exp-info span { font-size: 9.5px; color: #5b6b74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dual__exp-badge { font-size: 9px; font-weight: 700; padding: .2rem .5rem; border-radius: 99px; flex-shrink: 0; }
.dual__exp-badge--urgent { background: rgba(220,38,38,.1); color: #dc2626; }
.dual__exp-badge--warn { background: rgba(224,146,47,.14); color: #c97a1e; }

/* real "Vencimientos próximos" calendar card: month grid + deadline list side by side */
.dual__cal { display: flex; gap: var(--s3); border-radius: 12px; background: #fff; border: 1px solid #e1e8eb; padding: var(--s3); }
.dual__cal-month { flex: 0 0 260px; min-width: 0; }
.dual__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dual__cal-head b { font-size: 11.5px; color: #12202a; font-weight: 700; }
.dual__cal-nav { display: flex; gap: 3px; }
.dual__cal-nav span { width: 16px; height: 16px; border-radius: 5px; border: 1px solid #e1e8eb; color: #5b6b74; display: grid; place-items: center; }
.dual__cal-nav svg { width: 9px; height: 9px; }
.dual__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dual__cal-grid span { font-size: 8.5px; color: #5b6b74; padding: 2px 0; }
.dual__cal-grid b { font-size: 9px; font-weight: 500; color: #12202a; padding: 3px 0; border-radius: 4px; }
.dual__cal-grid b.is-today { background: #e8f4f7; color: var(--teal-700); font-weight: 700; }
.dual__cal-grid b.has-due { position: relative; }
.dual__cal-grid b.has-due::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: #dc2626; }
.dual__cal-list { flex: 1; min-width: 0; border-left: 1px solid #e1e8eb; padding-left: var(--s3); display: flex; flex-direction: column; gap: 6px; }
.dual__cal-list-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6b74; margin-bottom: 2px; }
@media (max-width: 700px) { .dual__stats { grid-template-columns: 1fr 1fr; } .dual__stat:nth-child(3) { grid-column: span 2; } .dual__view { position: relative; } .dual__viewport { min-height: 0; } .dual__view:not(.is-active){ display:none; } }
@media (max-width: 480px) {
  .dual__cal { flex-direction: column; }
  .dual__cal-month { flex-basis: auto; }
  .dual__cal-list { border-left: none; padding-left: 0; border-top: 1px solid #e1e8eb; padding-top: var(--s3); }
  .dual__main { overflow-y: auto; max-height: 70vh; }
}

/* ============================================================
   STEP TIMELINE — big numbered vertical flow (how-it-works)
   ============================================================ */
.timeline { max-width: 980px; margin-inline: auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, rgba(0,115,150,.4), rgba(0,115,150,.05)); }
.tl-step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s5); padding-bottom: var(--s8); position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: var(--teal-700); position: relative; z-index: 1; box-shadow: 0 10px 30px -8px rgba(0,115,150,.45); }
.tl-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.tl-who { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; background: var(--ink-100); color: var(--ink-600); margin-bottom: var(--s3); }
.tl-who--client { background: rgba(40,175,110,.12); color: #1e8a5f; }
.tl-step h3 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.tl-step p { color: var(--text-muted); }
@media (max-width: 800px) { .tl-body { grid-template-columns: 1fr; } }

/* mini-preview embedded per step: a small faithful fragment of the real UI */
.tl-preview { border-radius: 12px; border: 1px solid var(--border-soft); background: #fff; padding: var(--s4); box-shadow: 0 20px 50px -24px rgba(18,32,42,.18); }
.tl-preview--modal { background: transparent; border: none; padding: 0; box-shadow: none; }


/* ============================================================
   INDUSTRY CAROUSEL — scroll-snap track, arrows, dots, auto-play
   ============================================================ */
.indcar { position: relative; display: flex; align-items: stretch; gap: var(--s3); }
.indcar__viewport { flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; padding: var(--s2) 4px var(--s5); }
.indcar__viewport::-webkit-scrollbar { display: none; }
.indcar__track { display: flex; gap: var(--s5); padding-block: var(--s5); }
.indcard {
  position: relative; scroll-snap-align: start; flex: 0 0 clamp(280px, 32%, 380px); min-width: 0;
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s6); background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  transform: scale(.9); opacity: .55; filter: saturate(.7);
  transition: transform .5s var(--easing), box-shadow .5s var(--easing), border-color .5s var(--easing), opacity .5s var(--easing), filter .5s var(--easing);
  will-change: transform;
}
.indcard::before {
  content: ''; position: absolute; left: 16px; right: 16px; top: 10px; height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--easing);
  pointer-events: none;
}
.indcard__ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); transition: background .5s var(--easing), color .5s var(--easing), transform .5s var(--easing); }
.indcard__ic svg { width: 28px; height: 28px; }
.indcard h3 { font-size: var(--fs-lg); }
.indcard p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; flex: 1; }
.indcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.indcard__tags .tag { font-size: var(--fs-xs); }
/* active card: pops forward, full color, teal glow */
.indcard.is-active {
  transform: scale(1); opacity: 1; filter: none;
  border-color: var(--teal-200);
  box-shadow: 0 24px 50px -18px rgba(0,115,150,.35), 0 8px 20px rgba(11,22,32,.08);
}
.indcard.is-active::before { transform: scaleX(1); }
.indcard.is-active .indcard__ic { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px -8px rgba(0,115,150,.5); }

.indcar__nav { flex-shrink: 0; align-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--ink-700); cursor: pointer; box-shadow: var(--sh-sm); transition: background .2s, color .2s, transform .2s, opacity .2s; z-index: 2; }
.indcar__nav:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; transform: scale(1.06); }
.indcar__nav svg { width: 20px; height: 20px; }
.indcar__nav:disabled { opacity: .35; cursor: default; }
.indcar__nav:disabled:hover { background: #fff; color: var(--ink-700); border-color: var(--border); transform: none; }
.indcar__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s5); }
.indcar__dot { width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0; background: var(--ink-200); cursor: pointer; transition: width .3s var(--easing), background .3s; }
.indcar__dot.is-active { width: 26px; background: var(--teal-600); }
@media (max-width: 760px) {
  .indcar__nav { display: none; }
  .indcard { flex-basis: 84%; }
  .indcar__viewport { scroll-padding-inline: var(--s4); }
}

/* ---------- MARQUEE (industries) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding-block: var(--s4); }
.marquee__track { display: flex; gap: var(--s7); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__item { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-lg); font-weight: 600; color: var(--d-fg-muted); white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; color: var(--teal-400); opacity: .8; }
.dark .marquee__item { color: var(--d-fg-muted); }

/* ---------- BENTO GRID ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(180px, auto); gap: var(--s4); }
.bento__cell {
  position: relative; border-radius: var(--r-lg); padding: var(--s6); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform .4s var(--easing), box-shadow .4s var(--easing), border-color .3s;
  display: flex; flex-direction: column;
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--teal-300); }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--dark { background: linear-gradient(155deg, #0d1820, #0a1318); border-color: var(--d-border); color: var(--d-fg); }
.bento__cell--dark h3 { color: #fff; }
.bento__cell--dark p { color: var(--d-fg-muted); }
.bento__cell--brand { background: linear-gradient(150deg, var(--teal-700), var(--teal-500)); border-color: transparent; color: #fff; box-shadow: 0 20px 50px -18px var(--glow-teal); }
.bento__cell--brand h3, .bento__cell--brand p { color: #fff; }
.bento__cell--brand p { color: rgba(255,255,255,.85); }
.bento__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s4); }
.bento__ic svg { width: 24px; height: 24px; }
.bento__ic--teal { background: var(--teal-100); color: var(--teal-700); }
.bento__ic--violet { background: var(--violet-soft); color: var(--violet); }
.bento__ic--amber { background: var(--amber-soft); color: var(--amber); }
.bento__ic--glass { background: rgba(255,255,255,.12); color: #fff; }
.bento__cell h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.bento__cell p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.bento__big { display: block; font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: auto; }
.bento__spacer { flex: 1; }
.bento__glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(60px); right: -60px; bottom: -80px; background: radial-gradient(circle, rgba(0,163,196,.18), transparent 70%); opacity: 0; transition: opacity .4s; }
.bento__cell:hover .bento__glow { opacity: 1; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide { grid-column: span 1; }
}

/* ---------- PINNED STEPS (scrollytelling) ---------- */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.scrolly__sticky { position: sticky; top: calc(var(--nav-h) + var(--s6)); height: fit-content; }
.scrolly__visual {
  aspect-ratio: 4/3; border-radius: var(--r-lg); border: 1px solid var(--d-border);
  background: linear-gradient(160deg, #0e1a22, #0a1318); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.scrolly__panel { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s var(--easing); padding: var(--s7); }
.scrolly__panel.is-active { opacity: 1; }
.scrolly__panel-ic { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; background: rgba(0,163,196,.14); color: #5fe0f2; margin-bottom: var(--s5); box-shadow: 0 0 60px -10px var(--glow-teal); }
.scrolly__panel-ic svg { width: 44px; height: 44px; }
.scrolly__panel-txt { text-align: center; }
.scrolly__panel-txt .big { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.scrolly__panel-txt p { color: var(--d-fg-muted); }
.scrolly__steps { display: grid; gap: var(--s4); }
.scrolly__step {
  padding: var(--s6); border-radius: var(--r-lg); border: 1px solid var(--d-border);
  background: rgba(255,255,255,.02); transition: border-color .4s, background .4s, transform .4s var(--easing); cursor: default;
}
.scrolly__step.is-active { border-color: rgba(0,163,196,.5); background: rgba(0,163,196,.06); transform: translateX(4px); }
.scrolly__step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; color: #5fe0f2; background: rgba(0,163,196,.12); margin-bottom: var(--s3); }
.scrolly__step.is-active .scrolly__step-n { background: linear-gradient(100deg,#00a3c4,#5fe0f2); color: #04222b; }
.scrolly__step h3 { color: #fff; font-size: var(--fs-lg); margin-bottom: var(--s2); }
.scrolly__step p { color: var(--d-fg-muted); font-size: var(--fs-sm); }
@media (max-width: 820px) {
  .scrolly { grid-template-columns: 1fr; gap: var(--s6); }
  .scrolly__sticky { position: relative; top: 0; }
}

/* ---------- BIG STAT NUMBERS ---------- */
.megastats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); }
.megastat { text-align: center; padding: var(--s5) var(--s3); border-radius: var(--r-lg); border: 1px solid var(--d-border); background: rgba(255,255,255,.02); }
.megastat__num { font-size: clamp(2.4rem,4.5vw,3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.megastat__label { font-size: var(--fs-sm); color: var(--d-fg-muted); margin-top: var(--s2); }
@media (max-width: 700px) { .megastats { grid-template-columns: repeat(2,1fr); } }

/* ---------- SPLIT GLOW LINE BETWEEN SECTIONS ---------- */
.edge-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,163,196,.5), transparent); }

/* ---------- FAQ on dark ---------- */
.dark .faq__item { background: rgba(255,255,255,.02); border-color: var(--d-border); }
.dark .faq__q { color: var(--d-fg); }
.dark .faq__q svg { color: var(--teal-400); }
.dark .faq__a p { color: var(--d-fg-muted); }

/* ---------- CURSOR GLOW (desktop only) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,163,196,.10), transparent 65%);
  pointer-events: none; z-index: 1; transform: translate(-50%,-50%); opacity: 0; transition: opacity .3s;
  mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- NAV on dark pages ---------- */
.nav--on-dark { background: rgba(8,14,18,.5); }
.nav--on-dark .nav__brand { color: #fff; }
.nav--on-dark .nav__link { color: rgba(234,242,245,.75); }
.nav--on-dark .nav__link:hover, .nav--on-dark .nav__link.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav--on-dark.is-scrolled { background: rgba(8,14,18,.85); border-bottom-color: var(--d-border); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.nav--on-dark .lang { background: rgba(255,255,255,.08); }
.nav--on-dark .lang button { color: rgba(234,242,245,.7); }
.nav--on-dark .lang button.is-active { background: rgba(255,255,255,.15); color: #fff; }
.nav--on-dark .nav__burger span { background: #fff; }
.nav--on-dark .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--d-border-strong); box-shadow: none; }
.nav--on-dark .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--teal-400); color: #fff; }

/* When the mobile menu is open on a dark hero, the panel is a solid white
   sheet — restore the light-theme text/controls so it isn't white-on-white. */
@media (max-width: 820px) {
  .nav--on-dark.is-open .nav__menu .nav__link { color: var(--ink-600); }
  .nav--on-dark.is-open .nav__menu .nav__link:hover,
  .nav--on-dark.is-open .nav__menu .nav__link.is-active { color: var(--primary); background: var(--teal-50); }
  .nav--on-dark.is-open .nav__menu .lang { background: var(--ink-100); }
  .nav--on-dark.is-open .nav__menu .lang button { color: var(--ink-500); }
  .nav--on-dark.is-open .nav__menu .lang button.is-active { background: #fff; color: var(--primary); box-shadow: var(--sh-sm); }
  .nav--on-dark.is-open .nav__menu .btn--ghost { background: var(--white); color: var(--text); border-color: var(--border); box-shadow: var(--sh-sm); }
}

/* magnetic button wrapper keeps transitions smooth */
.magnetic { transition: transform .25s var(--easing); }

/* ---------- CINEMATIC PAGE HEADER (inner pages) ---------- */
.cpage-head {
  position: relative; overflow: hidden; text-align: center;
  padding-top: calc(var(--nav-h) + var(--s9)); padding-bottom: var(--s8);
  background:
    radial-gradient(110% 75% at 50% -10%, rgba(0,163,196,.20), transparent 55%),
    linear-gradient(180deg, var(--d-deep), var(--d-base));
  color: var(--d-fg);
}
.cpage-head .chero__perspective { height: 50%; }
.cpage-head .eyebrow { color: var(--teal-300); margin-bottom: var(--s4); }
.cpage-head .eyebrow__dot { background: var(--teal-400); box-shadow: 0 0 0 4px rgba(0,163,196,.18), 0 0 18px var(--glow-teal); }
.cpage-head h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em;
  color: #fff; margin-bottom: var(--s4); line-height: 1.05;
}
.cpage-head .lead { max-width: 640px; margin-inline: auto; color: var(--d-fg-muted); }
.cpage-head__inner { position: relative; z-index: 2; }

/* dark cards adaptation for feature/industry grids on dark sections */
.dark .card { background: rgba(255,255,255,.03); border-color: var(--d-border); }
.dark .card:hover { border-color: rgba(0,163,196,.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.dark .card h3 { color: #fff; }
.dark .card p { color: var(--d-fg-muted); }
.dark .card__ic--teal { background: rgba(0,163,196,.16); color: #5fe0f2; }
.dark .card__ic--violet { background: rgba(99,102,241,.18); color: #9aa6ff; }
.dark .card__ic--amber { background: rgba(224,146,47,.18); color: #ffcf8a; }
.dark .card__ic--green { background: rgba(40,200,120,.16); color: #4ee39e; }
.dark .industry__ic { background: rgba(0,163,196,.16); color: #5fe0f2; }
.dark .tag { background: rgba(255,255,255,.06); color: var(--d-fg-muted); }
.dark .section-head h2 { color: #fff; }
.dark .prose p { color: var(--d-fg); }
.dark .maker { background: rgba(255,255,255,.03); border-color: var(--d-border); }
.dark .maker h3 { color: #fff; }
.dark .maker p { color: var(--d-fg-muted); }
.dark .maker__ic { background: rgba(0,163,196,.16); color: #5fe0f2; }
/* dark premium wash: lifts the flat-black dark sections with a soft brand gradient + glow */
.dark-premium, .contact-section { background: linear-gradient(180deg, #0a1218 0%, #0c1a22 50%, #0a1620 100%); padding-block: var(--s8); overflow: hidden; }
.dark-premium::before, .contact-section::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 20% 0%, rgba(0,163,196,.14), transparent 60%),
    radial-gradient(60% 50% at 90% 100%, rgba(99,102,241,.12), transparent 60%); }
.dark-premium > .container, .contact-section > .container { position: relative; z-index: 1; }
.dark .contact-card { background: linear-gradient(180deg, #142028, #0f1922); border-color: var(--d-border-strong); box-shadow: 0 30px 80px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(0,163,196,.1); }
.dark .contact-card__ic { background: linear-gradient(135deg, rgba(0,163,196,.3), rgba(0,115,150,.25)); color: #5fe0f2; box-shadow: 0 8px 24px -8px rgba(0,163,196,.5); }
.dark .field label { color: var(--d-fg); }
.dark .field input, .dark .field textarea { background: rgba(255,255,255,.04); border-color: var(--d-border); color: #fff; }
.dark .field input::placeholder, .dark .field textarea::placeholder { color: var(--d-fg-muted); }
.dark .field input:focus, .dark .field textarea:focus { border-color: var(--teal-400); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(0,163,196,.12); }
.dark .post { background: rgba(255,255,255,.03); border-color: var(--d-border); }
.dark .post:hover { border-color: rgba(0,163,196,.4); }
.dark .post h3 { color: #fff; }
.dark .post p { color: var(--d-fg-muted); }
.dark .post__cover { background: linear-gradient(135deg, rgba(0,163,196,.18), rgba(0,163,196,.04)); color: #5fe0f2; }
.dark .post__cat { color: #5fe0f2; }
.dark .diff__box--no { background: rgba(255,255,255,.03); border-color: var(--d-border); }
.dark .diff__box--no h3 { color: #fff; }
.dark .diff__box--no li { color: var(--d-fg-muted); }
.dark .diff__box--no li svg { color: var(--d-fg-muted); }
.dark .diff__arrow { color: #5fe0f2; }






