/* =====================================================================
   PARASORT INC — Design System
   Dark Premium · Futuristic Enterprise
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* base surfaces */
  --ink:            #050608;
  --ink-2:          #0A0D12;
  --surface:        #11151C;
  --surface-2:      #0D1117;
  --line-1:         #181D26;
  --hair:           rgba(255, 255, 255, .07);
  --hair-strong:    rgba(255, 255, 255, .13);

  /* text */
  --paper:          #F5F7FA;
  --muted:          #9AA4B2;
  --muted-dim:      #6A7583;

  /* accent families */
  --blue:           #3867FF;
  --violet:         #7C3AED;
  --green:          #18E89A;
  --cyan:           #00D9FF;
  --orange:         #FF8A3D;
  --magenta:        #F43F9E;

  /* active accent (overridable per section / page) */
  --accent:         #3867FF;
  --accent-2:       #00D9FF;
  --accent-rgb:     56, 103, 255;
  --accent-ink:     #F5F7FA;      /* text colour on solid accent buttons */

  /* type scale — fluid */
  --fs-eyebrow:     clamp(.7rem, .68rem + .1vw, .78rem);
  --fs-body:        clamp(1rem, .97rem + .15vw, 1.075rem);
  --fs-lead:        clamp(1.1rem, 1rem + .5vw, 1.35rem);
  --fs-h3:          clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  --fs-h2:          clamp(1.85rem, 1.35rem + 2.1vw, 3rem);
  --fs-display:     clamp(2.35rem, 1.5rem + 4.4vw, 5.3rem);

  /* spacing / layout */
  --gutter:         clamp(1.25rem, .6rem + 3vw, 3rem);
  --wrap:           1240px;
  --wrap-wide:      1440px;
  --wrap-narrow:    920px;
  --section-y:      clamp(4.5rem, 3rem + 8vw, 10rem);
  --radius:         14px;
  --radius-lg:      22px;
  --radius-sm:      10px;
  --media-fade:     linear-gradient(180deg, transparent 52%, rgba(5, 6, 8, .55) 82%, var(--ink));

  /* fx */
  --shadow-card:    0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.7);
  --glow:           0 0 0 1px rgba(var(--accent-rgb), .35), 0 20px 60px -20px rgba(var(--accent-rgb), .35);
  --ease:           cubic-bezier(.22, 1, .36, .1);
  --ease-out:       cubic-bezier(.16, 1, .3, 1);

  --font-display:   'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --header-h:       74px;
}

/* accent presets */
[data-accent="blue"]      { --accent:#3867FF; --accent-2:#00D9FF; --accent-rgb:56,103,255;  --accent-ink:#F5F7FA; }
[data-accent="violet"]    { --accent:#7C3AED; --accent-2:#3867FF; --accent-rgb:124,58,237;  --accent-ink:#F5F7FA; }
[data-accent="cyan"]      { --accent:#00D9FF; --accent-2:#3867FF; --accent-rgb:0,217,255;   --accent-ink:#04121A; }
[data-accent="green"]     { --accent:#18E89A; --accent-2:#00D9FF; --accent-rgb:24,232,154;  --accent-ink:#04160F; }
[data-accent="orange"]    { --accent:#FF8A3D; --accent-2:#F43F9E; --accent-rgb:255,138,61;  --accent-ink:#1B0E04; }
[data-accent="magenta"]   { --accent:#F43F9E; --accent-2:#7C3AED; --accent-rgb:244,63,158;  --accent-ink:#F5F7FA; }
[data-accent="teal"]      { --accent:#18E89A; --accent-2:#3867FF; --accent-rgb:24,232,154;  --accent-ink:#04160F; }
[data-accent="pink-orange"]{--accent:#F43F9E; --accent-2:#FF8A3D; --accent-rgb:244,63,158; --accent-ink:#F5F7FA; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--muted);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: rgba(var(--accent-rgb), .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 18% -8%, rgba(56,103,255,.12), transparent 60%),
    radial-gradient(40% 38% at 94% 2%, rgba(124,58,237,.10), transparent 62%),
    var(--ink);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section--intro { overflow: hidden; isolation: isolate; }
.section--intro > .wrap { position: relative; z-index: 1; }
.section--intro .bloom { z-index: 0; bottom: auto; top: -45%; opacity: .6; }
.section + .section { padding-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--hair-strong), transparent); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--paper); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: break-word; }
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); letter-spacing: -.015em; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; line-height: 1.6; }
.measure { max-width: 62ch; }
.text-paper { color: var(--paper); }
.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono-list { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted-dim); text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  letter-spacing: .005em;
  border-radius: var(--radius-sm);
  color: var(--paper);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, border-color .3s, color .3s;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -14px rgba(var(--accent-rgb), .7);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 14px 30px -14px rgba(var(--accent-rgb), .8); }

.btn--ghost {
  border: 1px solid var(--hair-strong);
  background: rgba(255,255,255,.03);
}
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); color: #fff; }

.btn--plain { padding-inline: 0; color: var(--accent); }
.btn--plain::after { content: "→"; transition: transform .3s var(--ease-out); }
.btn--plain:hover::after { transform: translateX(4px); }
.btn--sm { padding: .6rem 1rem; font-size: .82rem; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s, background .4s, box-shadow .4s;
}
.card--interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .28);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 24px 60px -40px rgba(var(--accent-rgb), .45);
}
.card--interactive:hover .card__glow { opacity: 1; }
.card__glow {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 65%);
  transition: opacity .5s;
}
.card > * { position: relative; z-index: 1; }
.card__kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.card__title { font-size: var(--fs-h3); color: var(--paper); margin-top: .5rem; letter-spacing: -.02em; }
.card__text { margin-top: .7rem; color: var(--muted); font-size: .98rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 999px;
  border: 1px solid var(--hair-strong); color: var(--muted);
}
.tag--accent { border-color: rgba(var(--accent-rgb), .4); color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.tag--link { transition: border-color .25s, color .25s, background .25s; }
.tag--link:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--accent); background: rgba(var(--accent-rgb), .08); }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.9rem, .4rem + 1.4vw, 1.5rem);
}
.bento > * { grid-column: span 12; }
@media (min-width: 720px) {
  .col-6 { grid-column: span 6; }
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
  .col-3 { grid-column: span 3; }
  .col-9 { grid-column: span 9; }
  .row-2 { grid-row: span 2; }
}
@media (max-width: 719px) {
  .bento { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(.8rem, .4rem + 1vw, 1.4rem);
}
.feature {
  padding: 1.3rem;
  border: 1px solid rgba(var(--accent-rgb), .55);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.018);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .1), 0 0 20px -7px rgba(var(--accent-rgb), .8);
  transition: border-color .4s, background .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.feature:hover {
  border-color: rgba(var(--accent-rgb), .9);
  background: rgba(var(--accent-rgb), .06);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 0 32px -5px rgba(var(--accent-rgb), 1);
}
.feature__icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; margin-bottom: .9rem;
  background: rgba(var(--accent-rgb), .12); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .25);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h4 { font-size: 1.02rem; color: var(--paper); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.feature p { font-size: .9rem; margin-top: .35rem; }
/* title-only card (no description, no icon) — a generously centred label box */
.feature--label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 6.5rem;
  padding: 1.6rem 1.4rem;
}
.feature--label h4 { font-size: 1.08rem; line-height: 1.3; }

/* checklist */
.checklist { display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.checklist li::before {
  content: ""; flex: none; margin-top: .45rem;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
}
.checklist li strong { color: var(--paper); font-weight: 600; }
.cols-2 { columns: 2; column-gap: 2.5rem; }
@media (max-width: 620px) { .cols-2 { columns: 1; } }

/* numbered "how it works" steps */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 1.3rem;
  padding: 1.5rem 0; border-top: 1px solid var(--hair);
}
.step:last-child { border-bottom: 1px solid var(--hair); }
.step__n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1; }
.step h4 { font-size: 1.02rem; color: var(--paper); font-weight: 600; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--muted); max-width: 62ch; line-height: 1.6; }

/* pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, .4rem + 1vw, 1.4rem); align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.8rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--hair-strong); background: rgba(255,255,255,.018);
}
.price-card--recommended { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .06); }
.price-card__tag {
  position: absolute; top: 0; right: 1.2rem; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--ink); padding: .25rem .6rem; border-radius: 4px;
}
.price-card__plan { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.price-card__name { font-size: 1.15rem; margin-top: .5rem; margin-bottom: 1rem; }
.price-card__amount { display: flex; align-items: baseline; gap: .4rem; }
.price-card__num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--paper); }
.price-card__per { font-size: .82rem; color: var(--muted); }
.price-card__note { font-size: .8rem; color: var(--muted-dim); margin-top: .3rem; margin-bottom: 1.3rem; }
.price-card__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.price-card__list li { font-size: .86rem; padding-left: 1.1rem; position: relative; color: var(--muted); line-height: 1.5; }
.price-card__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 11, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hair);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img { height: 30px; width: auto; filter: drop-shadow(0 0 14px rgba(56,103,255,.45)); }
.brand span { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; color: var(--paper); font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem; font-size: .9rem; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: color .25s, background .25s; position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.header-actions { display: flex; align-items: center; gap: .7rem; flex: none; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--hair-strong); border-radius: 10px; }
.menu-toggle span { display: block; width: 17px; height: 1.5px; background: var(--paper); margin: 3.5px auto; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .menu-toggle { display: block; }
}

/* mobile fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 6, 8, .97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.6rem);
  color: var(--paper); padding: .5rem 0; border-bottom: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a span { font-family: var(--font-mono); font-size: .7rem; color: var(--muted-dim); }
.mobile-menu .btn { margin-top: 1.6rem; }
body.no-scroll { overflow: hidden; }

/* ================================================================
   INTRO — full-screen portal (the site's primary view).
   The photo (img-portal) already carries the crisp glowing headline;
   CSS only adds LIGHT: the ring pulses, an energy arc travels it,
   the whole scene breathes, plus a one-off power-on sheen.
   ================================================================ */
.intro {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
/* Dynamic light layers. Baseline = pure CSS @keyframes (always animate).
   If JS loads it adds `.intro--js` and drives the motion via custom
   properties instead (smoother, adds a random neon flicker + energy arc). */
.intro { --intro-rot: 0deg; --intro-halo: .7; --intro-flick: .7; --intro-bri: 1.05; }
.intro__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center 44%;
  animation: introZoom 30s ease-in-out infinite alternate,
             introBreathe 4.6s ease-in-out infinite;
}
.intro--js .intro__bg {
  animation: introZoom 30s ease-in-out infinite alternate;
  filter: brightness(var(--intro-bri)) saturate(1.08);
}
.intro__glow {
  position: absolute; left: 50%; top: 44%; z-index: 1;
  width: min(98vh, 94vw); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(110, 232, 255, .5) 0%, rgba(0, 200, 255, .24) 32%, transparent 60%);
  mix-blend-mode: screen; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: introHalo 4s ease-in-out infinite;
}
.intro--js .intro__glow {
  animation: none;
  opacity: var(--intro-halo);
  transform: translate(-50%, -50%) scale(calc(.9 + var(--intro-halo) * .16));
}
.intro__pulse {
  position: absolute; left: 50%; top: 46%; z-index: 2;
  width: min(60vh, 64vw); height: min(28vh, 32vw);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(160, 244, 255, .4), transparent 70%);
  mix-blend-mode: screen; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: introPulseCSS 3.4s ease-in-out infinite;
}
.intro--js .intro__pulse { animation: none; opacity: var(--intro-flick); }
/* bright arc that travels around the ring */
.intro__sweep {
  position: absolute; left: 50%; top: 44%; z-index: 3;
  width: min(92vh, 88vw); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0 250deg,
    rgba(150, 240, 255, .55) 315deg,
    rgba(255, 255, 255, 1) 350deg,
    rgba(150, 240, 255, .45) 358deg,
    transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 8px), #000 calc(50% - 7px) calc(50% + 2px), transparent calc(50% + 3px));
  mask: radial-gradient(circle, transparent calc(50% - 8px), #000 calc(50% - 7px) calc(50% + 2px), transparent calc(50% + 3px));
  mix-blend-mode: screen;
  filter: blur(1.5px) drop-shadow(0 0 12px rgba(0, 217, 255, .95));
  transform: translate(-50%, -50%);
  animation: introSpin 6s linear infinite;
}
.intro--js .intro__sweep { animation: none; transform: translate(-50%, -50%) rotate(var(--intro-rot)); }
.intro__scan {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .2;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 217, 255, .07) 3px 4px);
  animation: scanDrift 8s linear infinite;
}
/* faint top + bottom scrims: header legibility, clean blend into the hero below */
.intro::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 4, 6, .6) 0%, transparent 13%),
    linear-gradient(0deg, var(--ink) 0%, transparent 12%);
}
/* one-time light pass on load */
.intro__sheen {
  position: absolute; inset: -20% -60%; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(185, 246, 255, .26) 50%, transparent 57%);
  transform: translateX(-115%);
  animation: introSheen 2.4s cubic-bezier(.5, 0, .2, 1) .45s 1 both;
}
.intro__chev {
  position: absolute; left: 50%; bottom: clamp(2.4rem, 8vh, 5.5rem); z-index: 6;
  width: 18px; height: 18px;
  border-right: 2px solid rgba(150, 238, 255, .95);
  border-bottom: 2px solid rgba(150, 238, 255, .95);
  transform: translateX(-50%) rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, .9));
  animation: introChev 1.9s ease-in-out infinite;
}
.intro__chev:hover { border-color: #fff; }

@keyframes introZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes scanDrift { to { background-position: 0 200px; } }
@keyframes introSheen { to { transform: translateX(115%); } }
@keyframes introChev {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(45deg) translateY(7px); }
}
/* baseline (no-JS) light — brightness/opacity pulses + a slow ring rotation */
@keyframes introBreathe {
  0%, 100% { filter: brightness(.98) saturate(1.05); }
  50%      { filter: brightness(1.13) saturate(1.1); }
}
@keyframes introHalo {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.92); }
  50%      { opacity: .85; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes introPulseCSS {
  0%, 100% { opacity: .32; }
  50%      { opacity: .8; }
}
@keyframes introSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* reduced motion: no parallax / ring rotation / sweep / power-on sheen,
   but keep the gentle opacity + brightness pulses (not vestibular motion). */
@media (prefers-reduced-motion: reduce) {
  .intro__bg    { animation: introBreathe 5s ease-in-out infinite; }
  .intro--js .intro__bg { animation: none; }
  .intro__sweep, .intro__sheen { display: none; }
  .intro__chev  { animation: none; }
  /* keep the glow pulse but drop its scale component (opacity only) */
  .intro__glow  { animation: introGlowRM 4.5s ease-in-out infinite; }
}
@keyframes introGlowRM {
  0%, 100% { opacity: .4; }
  50%      { opacity: .82; }
}

@media (max-width: 700px) {
  .intro__glow  { width: 120vw; top: 52%; }
  .intro__pulse { top: 54%; width: 74vw; height: 26vh; }
  .intro__sweep { width: 112vw; top: 52%; }
  .intro__chev  { bottom: clamp(1.6rem, 6vh, 3rem); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 5rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .34;
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 60% at 50% 40%, transparent, rgba(5,6,8,.55) 92%),
              linear-gradient(180deg, rgba(5,6,8,.35), rgba(5,6,8,.8));
}
.hero > .wrap { position: relative; z-index: 3; width: 100%; }

/* signature bloom — a soft accent aurora rising into the hero */
.bloom {
  position: absolute; left: 50%; bottom: -24%; z-index: 2;
  width: min(1600px, 135%); aspect-ratio: 2 / 1; translate: -50% 0;
  pointer-events: none;
  background:
    radial-gradient(50% 64% at 50% 100%, rgba(var(--accent-rgb), .48), transparent 68%),
    radial-gradient(42% 50% at 38% 84%, rgba(var(--accent-rgb), .24), transparent 74%),
    radial-gradient(34% 44% at 66% 90%, rgba(255, 255, 255, .06), transparent 72%);
  filter: blur(26px);
  animation: floatGlow 16s ease-in-out infinite;
}
.bloom--center { bottom: 50%; translate: -50% 50%; opacity: .8; }
@keyframes floatGlow {
  0%, 100% { transform: translateY(0); filter: blur(24px) brightness(1); }
  50%      { transform: translateY(-64px); filter: blur(24px) brightness(1.18); }
}
@media (prefers-reduced-motion: reduce) { .bloom { animation: none; } }
.hero__kicker { margin-bottom: 1.6rem; }
.hero .display { max-width: 16ch; }
.hero .lead { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero__chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
}
.hero__chips span {
  padding: .35rem .7rem; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--muted-dim); background: rgba(255,255,255,.02);
}
.hero__bg--dim { opacity: .22; }
.hero--split { min-height: min(92svh, 820px); }
.hero--split .display { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem); line-height: 1.05; max-width: 18ch; }
.hero--split .hero__kicker { margin-bottom: 1.2rem; }
.hero--split .lead { margin-top: 1.2rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero--split .btn-row { margin-top: 1.8rem; }
.hero--split .hero__chips { margin-top: 1.8rem; }
.hero__layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.8rem, 1rem + 3.5vw, 4rem); align-items: center; }
.hero__layout > div:first-child { min-width: 0; }
.hero__layout .figure { align-self: center; }
@media (max-width: 900px) {
  .hero--split { min-height: 0; }
  .hero__layout { grid-template-columns: 1fr; }
  .hero__layout .figure { max-width: 560px; }
}

/* wide variant — full page width + larger type + a bigger figure column,
   opt-in per product via `heroWide: true` in data.mjs (E-Invoicing first) */
.hero--split--wide .display { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.7rem); max-width: 19ch; }
.hero--split--wide .lead { font-size: clamp(1.08rem, .98rem + .55vw, 1.35rem); max-width: 46ch; }
.hero--split--wide .measure { font-size: 1.05rem; max-width: 52ch; }
.hero__layout--wide { grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4.5vw, 5.5rem); }
.hero__layout--wide .figure { max-width: none; }
@media (max-width: 900px) { .hero__layout--wide { grid-template-columns: 1fr; } }

/* full-bleed video hero band (Danna, etc.): video fills the top of the page
   — under the fixed header, like `.intro` — with the description stacked in
   a plain section right below it instead of split side-by-side. */
.hero-video {
  position: relative; width: 100%; overflow: hidden; background: #000;
  height: clamp(380px, 72svh, 780px);
}
/* full-viewport variant — the home splash (replaces the old ring-portal .intro image),
   not a secondary product/page hero, so it takes the full screen like .intro did */
.hero-video--full { height: 100svh; min-height: 520px; }
/* static brand overlay — mirrors a logo+tagline the source video's own PowerPoint slide
   placed as a static layer on top of the clip (top-right), NOT baked into the video pixels,
   so it stays legible and correctly positioned across every viewport (home splash only) */
.hero-video__brand {
  position: absolute; z-index: 5; pointer-events: none;
  top: calc(var(--header-h) + clamp(.8rem, 2.4vh, 2rem)); right: clamp(2rem, 6vw, 5rem);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.hero-video__brand-logo {
  width: clamp(160px, 20vw, 320px); height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 160, 255, .45)) drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}
.hero-video__brand-tag {
  margin: 0; text-align: center; font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(.9rem, .6rem + .9vw, 1.3rem); letter-spacing: .03em; line-height: 1.45;
  color: #eaf6ff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7), 0 0 16px rgba(0, 170, 255, .35);
}
@media (max-width: 560px) {
  .hero-video__brand-tag { display: none; }
  .hero-video__brand-logo { width: clamp(100px, 30vw, 160px); }
}
.hero-video__el {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%; display: block; background: #000;
}
.hero-video__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 4, 6, .55) 0%, transparent 16%),
    linear-gradient(0deg, var(--ink) 0%, transparent 22%);
}
/* brand mark — a real DOM element (not baked into the video) so it stays put
   and legible regardless of how object-fit:cover crops the footage per viewport */
.hero-video__mark {
  position: absolute; left: clamp(1.2rem, 2vw, 2rem); bottom: clamp(1rem, 2vh, 1.6rem); z-index: 5;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, .85rem + 1.1vw, 1.55rem);
  letter-spacing: -.01em; color: #00D9FF;
  text-shadow: 0 0 14px rgba(0, 217, 255, .85), 0 0 40px rgba(0, 217, 255, .5);
  pointer-events: none;
}
.hero--stack {
  min-height: 0; display: block;
  padding-top: clamp(2.4rem, 3vw, 3.6rem);
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
}
.hero--stack .display { max-width: 20ch; }
.hero--stack .measure { max-width: 70ch; }
@media (max-width: 700px) {
  .hero-video { height: clamp(300px, 56svh, 520px); }
}

/* hero stage — a framed "product window" sitting in the bloom */
.stage {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0C1016, #090C11);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 50px 110px -55px rgba(0, 0, 0, .9),
    0 0 90px -45px rgba(var(--accent-rgb), .4);
}
.stage__bar {
  display: flex; gap: .5rem; align-items: center;
  padding: .75rem 1rem; border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.stage__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-1); }
.stage__bar i:nth-child(2) { background: #23303f; }
.stage__bar i:nth-child(3) { background: #2c3a4a; }
.stage__body { padding: clamp(1.6rem, 1rem + 2.5vw, 3rem) clamp(1.4rem, 1rem + 2vw, 2.6rem); }
@media (max-width: 900px) { .hero__layout .stage { max-width: 520px; margin-inline: auto; } }

/* ---------- Hero presentation (inline deck in the stage) ---------- */
/* Occupies the exact footprint the ecosystem diagram had: full stage width,
   square. Sizing is container-relative (cq units) so text fits the small box.
   Adapted from Downloads/v4.4/presenta.html. */
.stage__body--embed { padding: 0; }
.hp {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  container-type: size;
  font-family: var(--font-mono);
  isolation: isolate;
}
.hp__particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.hp__phase {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.hp__phase.is-active { opacity: 1; visibility: visible; z-index: 4; }

.hp__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 50% at 50% 50%, rgba(var(--hp-rgb), .28) 0%, transparent 70%);
  animation: hpGlow 5s ease-in-out infinite;
}
@keyframes hpGlow { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

.hp__orb {
  position: absolute; width: 70cqmin; height: 70cqmin; border-radius: 50%;
  filter: blur(45px); opacity: .2; background: var(--hp-accent);
  animation: hpOrb 12s ease-in-out infinite alternate;
}
.hp__orb--l { left: -26cqmin; top: -18cqmin; }
.hp__orb--r { right: -26cqmin; bottom: -18cqmin; animation-delay: -6s; }
@keyframes hpOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10cqmin, 7cqmin) scale(1.15); } }

.hp__halo {
  position: absolute; left: 50%; top: 50%;
  width: 66cqmin; height: 66cqmin; translate: -50% -50%;
  border-radius: 50%; border: 1px solid var(--hp-accent); opacity: .22;
  box-shadow: 0 0 40px rgba(var(--hp-rgb), .25), inset 0 0 40px rgba(var(--hp-rgb), .25);
  animation: hpHalo 24s linear infinite;
}
.hp__halo::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--hp-accent); opacity: .5; }
@keyframes hpHalo { to { transform: rotate(360deg); } }

.hp__content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 9cqmin 8cqmin;
}
.hp__step {
  font-size: clamp(9px, 3.1cqmin, 13px); font-weight: 700; letter-spacing: .34em;
  color: rgba(255, 255, 255, .55); margin-bottom: 4cqmin;
  opacity: 0; transform: translateY(12px);
}
.hp__phase.is-active .hp__step { animation: hpRise .9s ease .2s forwards; }

.hp__title {
  font-family: var(--font-mono); font-weight: 900;
  font-size: clamp(15px, 7cqmin, 30px); letter-spacing: .01em; line-height: 1.16;
  text-transform: uppercase; text-wrap: balance;
  color: var(--hp-accent);
  text-shadow: 0 0 14px rgba(var(--hp-rgb), .8), 0 0 44px rgba(var(--hp-rgb), .35);
  opacity: 0; transform: translateY(16px) scale(.96);
}
.hp__phase.is-active .hp__title {
  animation: hpTitleIn 1s cubic-bezier(.2, .8, .2, 1) .4s forwards,
             hpTitleGlow 3s ease-in-out 1.5s infinite;
}
@keyframes hpTitleIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hpTitleGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(var(--hp-rgb), .8), 0 0 44px rgba(var(--hp-rgb), .35); }
  50%      { text-shadow: 0 0 26px rgba(var(--hp-rgb), .9), 0 0 80px rgba(var(--hp-rgb), .5); }
}

.hp__divider {
  width: 0; height: 2px; margin: 5cqmin 0;
  background: linear-gradient(90deg, transparent, var(--hp-accent), transparent);
  box-shadow: 0 0 12px var(--hp-accent); opacity: 0;
}
.hp__phase.is-active .hp__divider { animation: hpDiv 1s ease 1s forwards; }
@keyframes hpDiv { to { width: min(58cqmin, 260px); opacity: 1; } }

.hp__sub {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3.9cqmin, 16px); line-height: 1.5;
  color: rgba(255, 255, 255, .92); max-width: 34ch;
  text-shadow: 0 0 10px rgba(255, 255, 255, .2);
  opacity: 0; transform: translateY(14px);
}
.hp__phase.is-active .hp__sub { animation: hpRise 1s ease 1.25s forwards; }
@keyframes hpRise { to { opacity: 1; transform: translateY(0); } }

/* intro / outro */
.hp__logo {
  font-family: var(--font-sans); font-weight: 900; letter-spacing: -.04em;
  font-size: clamp(34px, 17cqmin, 78px); color: #00d4ff;
  text-shadow: 0 0 26px rgba(0, 212, 255, .9), 0 0 70px rgba(0, 212, 255, .5);
  opacity: 0; transform: scale(.6);
}
.hp__logo--sm { font-size: clamp(28px, 13cqmin, 60px); }
.hp__phase.is-active .hp__logo {
  animation: hpLogoZoom 2.4s cubic-bezier(.16, 1, .3, 1) forwards,
             hpLogoPulse 2.4s ease-in-out 2.4s infinite alternate;
}
@keyframes hpLogoZoom {
  0% { opacity: 0; transform: scale(.2); filter: blur(18px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hpLogoPulse {
  from { text-shadow: 0 0 26px rgba(0, 212, 255, .7); }
  to   { text-shadow: 0 0 60px rgba(0, 212, 255, 1), 0 0 110px rgba(0, 212, 255, .6); }
}
.hp__line1 {
  margin-top: 4cqmin;
  font-size: clamp(13px, 5cqmin, 24px); font-weight: 700; letter-spacing: .22em;
  background: linear-gradient(90deg, #00d4ff, #b829dd, #ffd700);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.hp__line2 {
  margin-top: 2cqmin;
  font-size: clamp(10px, 3.6cqmin, 17px); font-weight: 300; letter-spacing: .3em; color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, .5); opacity: 0;
}
.hp__phase.is-active .hp__line1 { animation: hpRise 1.1s ease 2s forwards; }
.hp__phase.is-active .hp__line2 { animation: hpRise 1.1s ease 2.5s forwards; }

.hp__outro {
  font-family: var(--font-sans);
  font-size: clamp(11px, 3.9cqmin, 17px); line-height: 1.6;
  color: rgba(255, 255, 255, .85); max-width: 32ch; margin-top: 3cqmin; opacity: 0;
}
.hp__outro b { color: #00d4ff; font-weight: 700; }
.hp__cta {
  margin-top: 6cqmin;
  font-size: clamp(10px, 3cqmin, 14px); font-weight: 700; letter-spacing: .18em;
  color: #000; background: linear-gradient(90deg, #00d4ff, #b829dd);
  padding: .8em 2em; border-radius: 60px;
  box-shadow: 0 0 26px rgba(0, 212, 255, .55); opacity: 0;
}
.hp__phase.is-active .hp__outro { animation: hpRise 1.2s ease 1s forwards; }
.hp__phase.is-active .hp__cta   { animation: hpRise 1.2s ease 1.6s forwards; }

/* control + progreso */
.hp__pp {
  position: absolute; right: 3.5cqmin; bottom: 3.5cqmin; z-index: 20;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 212, 255, .45);
  color: #7fe9ff; font-size: 11px; line-height: 1; backdrop-filter: blur(6px);
  opacity: .55; transition: opacity .25s, color .2s, border-color .2s;
}
.hp:hover .hp__pp, .hp:focus-within .hp__pp { opacity: 1; }
.hp__pp:hover { color: #fff; border-color: #00d4ff; }
.hp__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 20; background: rgba(255, 255, 255, .08); }
.hp__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00d4ff, #b829dd, #ffd700); box-shadow: 0 0 10px rgba(0, 212, 255, .8); }

/* red de seguridad: si las animaciones de entrada no llegan a ejecutarse,
   el contenido del slide activo se ve igualmente */
.hp__phase--seen .hp__step,
.hp__phase--seen .hp__title,
.hp__phase--seen .hp__divider,
.hp__phase--seen .hp__sub,
.hp__phase--seen .hp__logo,
.hp__phase--seen .hp__line1,
.hp__phase--seen .hp__line2,
.hp__phase--seen .hp__outro,
.hp__phase--seen .hp__cta {
  animation: none !important; opacity: 1 !important; transform: none !important;
}
.hp__phase--seen .hp__divider { width: min(58cqmin, 260px) !important; }

@media (prefers-reduced-motion: reduce) {
  .hp__glow, .hp__orb, .hp__halo { animation: none; }
  .hp__phase { transition: opacity .001s linear; }
  .hp__phase.is-active :is(.hp__step, .hp__title, .hp__divider, .hp__sub, .hp__logo, .hp__line1, .hp__line2, .hp__outro, .hp__cta) {
    animation: none; opacity: 1; transform: none;
  }
  .hp__phase.is-active .hp__divider { width: min(58cqmin, 260px); }
  .hp__pp { opacity: 1; }
}

/* ---------- Ecosystem diagram ---------- */
.ecosystem {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
.ecosystem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ecosystem__line { stroke: rgba(var(--accent-rgb), .35); stroke-width: 1; fill: none; stroke-dasharray: 4 6; }
.ecosystem__pulse { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 6 200; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -206; } }
.ecosystem__core {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .08) 70%);
  border: 1px solid rgba(var(--accent-rgb), .5);
  box-shadow: 0 0 60px -10px rgba(var(--accent-rgb), .6), inset 0 0 40px rgba(var(--accent-rgb), .25);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: #fff;
  animation: corepulse 4s ease-in-out infinite;
}
@keyframes corepulse { 50% { box-shadow: 0 0 90px 0 rgba(var(--accent-rgb), .7), inset 0 0 50px rgba(var(--accent-rgb), .35); } }
.ecosystem { max-width: min(560px, 84vw); }
.ecosystem__node {
  position: absolute; translate: -50% -50%;
  padding: .4rem .6rem; border-radius: 8px;
  font-family: var(--font-mono); font-size: clamp(.52rem, 2.2vw, .66rem); letter-spacing: .08em; white-space: nowrap;
  background: rgba(13, 17, 23, .9); border: 1px solid var(--hair-strong); color: var(--muted);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.ecosystem__node:hover { border-color: var(--accent); color: #fff; box-shadow: 0 0 24px -4px rgba(var(--accent-rgb), .6); }
@media (prefers-reduced-motion: reduce) {
  .ecosystem__pulse, .ecosystem__core { animation: none; }
}

/* ---------- Dashboard preview (browser-chrome frame) ---------- */
.dash {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0E1218, #090C11);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 40px 80px -50px rgba(0, 0, 0, .9),
    0 0 60px -30px rgba(var(--accent-rgb), .3);
}
.dash__bar {
  display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.dash__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-1); }
.dash__dot:nth-child(2) { background: #23303f; }
.dash__dot:nth-child(3) { background: #2c3a4a; }
.dash__title { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted-dim); text-transform: uppercase; }
.dash__live { display: inline-flex; align-items: center; gap: .4rem; }
.dash__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.dash__body { padding: clamp(1rem, .6rem + 1.4vw, 1.6rem); display: grid; gap: 1.1rem; }
.dash__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; }
.metric { padding: .9rem; border: 1px solid var(--hair); border-radius: 10px; background: rgba(255,255,255,.02); }
.metric__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dim); }
.metric__value { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); color: var(--paper); margin-top: .35rem; letter-spacing: -.02em; min-height: 1em; }
.metric__value--accent { color: var(--accent); }
.metric__value--empty { display: flex; align-items: center; }
.metric__value--empty i {
  display: block; width: 52px; height: 10px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
}
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.chart span {
  flex: 1; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .15));
  transform-origin: bottom; animation: grow 1.2s var(--ease-out) both;
}
@keyframes grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .chart span { animation: none; } }

/* vertical pipeline */
.pipeline { position: relative; display: grid; gap: .2rem; }
.pipeline__step { position: relative; display: flex; gap: 1rem; padding: .55rem 0; }
.pipeline__step::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: -6px; width: 1px;
  background: linear-gradient(var(--accent), transparent);
}
.pipeline__step[data-last]::before { display: none; }
.pipeline__dot {
  flex: none; width: 31px; height: 31px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .64rem; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08);
}
.pipeline__body { display: flex; flex-direction: column; gap: .1rem; padding-top: .15rem; }
.pipeline__body b { color: var(--paper); font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.pipeline__body span { font-size: .86rem; color: var(--muted); }

/* flow steps */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; }
.flow span, .flow__step { padding: .5rem .8rem; border: 1px solid var(--hair-strong); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.02); }
.flow__step { transition: border-color .3s, background .3s, color .3s; }
.flow__step:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); color: var(--paper); }
.flow i { color: var(--accent); font-style: normal; }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); color: var(--paper); letter-spacing: -.03em; line-height: 1; }
.stat__value b { color: var(--accent); font-weight: inherit; }
.stat__label { margin-top: .6rem; font-size: .85rem; color: var(--muted-dim); }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, .5rem + 1.5vw, 1.6rem); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare__col { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--hair); }
.compare__col--old { background: rgba(255,255,255,.015); }
.compare__col--new { background: rgba(var(--accent-rgb), .06); border-color: rgba(var(--accent-rgb), .3); }
.compare__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dim); font-weight: 500; }
.compare__col--new h4 { color: var(--accent); }
.compare__flow { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.compare__flow span::after { content: " →"; color: var(--muted-dim); }
.compare__flow span:last-child::after { display: none; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: center; }
.split--media-right { direction: ltr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hair-strong);
  position: relative; box-shadow: var(--shadow-card);
}
.media-frame img { width: 100%; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(140deg, transparent 60%, rgba(var(--accent-rgb), .14));
}

/* ---------- Framed figure (editorial imagery) ---------- */
.figure { display: flex; flex-direction: column; gap: 1rem; }
.figure__frame {
  position: relative; border-radius: 4px; overflow: hidden;
  background: var(--surface-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 2px 6px rgba(0, 0, 0, .4),
    0 50px 90px -50px rgba(0, 0, 0, .8);
}
.figure__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .10), transparent 22%),
    linear-gradient(180deg, transparent 62%, rgba(5, 6, 8, .35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05),
              inset 0 0 90px rgba(0, 0, 0, .28);
}
.figure figcaption {
  display: flex; align-items: baseline; gap: .8rem;
  font-size: .82rem; color: var(--muted); line-height: 1.5;
  padding-left: .1rem;
}
/* the caption text stretches across the frame's own width instead of
   shrink-wrapping into a narrow column next to the tag */
.figure figcaption > span:last-child { flex: 1 1 auto; min-width: 0; max-width: 68ch; }
.figure__tag {
  flex: none;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  white-space: nowrap; padding-top: .1rem;
}
.figure__tag::before { content: ""; }

/* frameless variant — for imagery already sitting on black, so it melts into the page */
.figure--bare .figure__frame {
  border-radius: 0; background: transparent; box-shadow: none;
}
.figure--bare .figure__frame::after {
  background: linear-gradient(180deg, transparent 68%, rgba(5, 6, 8, .5));
  box-shadow: none;
}

/* ---------- Framed video (muted, looped, view-gated autoplay) ---------- */
.video-frame .figure__frame { background: #000; }
.video-frame__el {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: #000;
}
.video-frame__ctl { position: absolute; right: .7rem; bottom: .7rem; z-index: 6; display: flex; gap: .5rem; }
.video-frame__pp, .video-frame__mute {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(5, 6, 8, .6); border: 1px solid rgba(var(--accent-rgb), .55);
  color: #fff; font-size: .72rem; line-height: 1;
  backdrop-filter: blur(6px);
  opacity: .8; transition: opacity .2s, border-color .2s, background .2s;
}
.video-frame__pp:hover, .video-frame__mute:hover { opacity: 1; border-color: var(--accent); background: rgba(5, 6, 8, .85); }
.video-frame__pp:focus-visible, .video-frame__mute:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video-frame__mute svg { width: 16px; height: 16px; }
.video-frame__icon { display: inline-flex; }
.video-frame__icon--on { display: none; }
.video-frame__mute[aria-pressed="true"] .video-frame__icon--off { display: none; }
.video-frame__mute[aria-pressed="true"] .video-frame__icon--on { display: inline-flex; }

/* ---------- Editorial image band ---------- */
.imgband {
  position: relative; border-radius: 4px; overflow: hidden;
  min-height: clamp(300px, 42vw, 480px);
  display: flex; align-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 50px 90px -55px rgba(0,0,0,.8);
  isolation: isolate;
}
.imgband--tall { min-height: clamp(400px, 56vw, 600px); }
.imgband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.imgband::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,.5) 40%, rgba(5,6,8,.05) 78%),
    linear-gradient(0deg, rgba(5,6,8,.55), transparent 55%);
}
.imgband--right { justify-content: flex-end; }
.imgband--right::after {
  background:
    linear-gradient(270deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,.48) 40%, rgba(5,6,8,.04) 78%),
    linear-gradient(0deg, rgba(5,6,8,.55), transparent 55%);
}
.imgband__body { position: relative; z-index: 1; padding: clamp(1.8rem, 1rem + 3.5vw, 3.6rem); max-width: 600px; }
.imgband--right .imgband__body { text-align: right; margin-left: auto; }
.imgband--right .imgband__body .eyebrow { flex-direction: row-reverse; }
.imgband--right .imgband__body .btn-row { justify-content: flex-end; }
.imgband__body .h2 { margin-top: .8rem; }
.imgband__body .lead { margin-top: .9rem; }
@media (max-width: 680px) {
  .imgband, .imgband--right { align-items: flex-end; justify-content: flex-start; }
  .imgband--right .imgband__body { text-align: left; margin-left: 0; }
  .imgband--right .imgband__body .eyebrow, .imgband--right .imgband__body .btn-row { flex-direction: row; justify-content: flex-start; }
  .imgband::after, .imgband--right::after {
    background: linear-gradient(0deg, rgba(5,6,8,.95) 8%, rgba(5,6,8,.45) 58%, rgba(5,6,8,.12));
  }
}

/* image inside a card */
.card__media {
  margin: calc(-1 * clamp(1.4rem, 1rem + 1.6vw, 2.2rem)) calc(-1 * clamp(1.4rem, 1rem + 1.6vw, 2.2rem)) 1.4rem;
  overflow: hidden; position: relative; aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--hair);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,17,23,.9));
}

/* ---------- Section header block ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sec-head .h2 { margin-top: 1rem; }
.sec-head p { margin-top: 1rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- Organizations / use cases ---------- */
.orgcard { display: flex; flex-direction: column; gap: 1rem; min-height: 100%; }
.orgcard__stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.usecard__combo { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--accent); margin-top: .8rem; }

/* portals */
.portal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .portal-split { grid-template-columns: 1fr; } }
.portal { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--hair-strong); background: rgba(255,255,255,.02); }
.portal h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.portal p { margin: .7rem 0 1.1rem; font-size: .92rem; }

/* ---------- Access modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3,4,6,.8); backdrop-filter: blur(8px); }
.modal__panel {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); overflow-y: auto;
  background: linear-gradient(180deg, #0F141B, #0A0D12);
  border: 1px solid var(--hair-strong); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1rem + 3vw, 2.6rem);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
  animation: modalIn .4s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; translate: -50% -46%; } }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.modal__close { width: 40px; height: 40px; border: 1px solid var(--hair-strong); border-radius: 10px; font-size: 1.1rem; color: var(--muted); flex: none; }
.modal__close:hover { color: #fff; border-color: var(--hair-strong); }
.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.access-item {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--hair); background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.access-item:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); transform: translateY(-2px); }
.access-item__name { font-weight: 600; color: var(--paper); font-size: .92rem; }
.access-item__meta { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim); }
.access-item[data-soon] { opacity: .72; cursor: not-allowed; }
.access-item[data-soon]:hover { transform: none; border-color: var(--hair); background: rgba(255,255,255,.02); }
.access-item .chev { color: var(--accent); }

/* ---------- Insights ---------- */
.insight { display: flex; flex-direction: column; min-height: 100%; }
.insight__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dim); }
.insight__title { font-size: 1.15rem; color: var(--paper); margin: .7rem 0; font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.2; }
.insight__excerpt { font-size: .9rem; }
.insight__more { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .06em; }

/* ---------- Contact ---------- */
.chooser { display: flex; flex-wrap: wrap; gap: .6rem; }
.chooser button {
  padding: .7rem 1.1rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  border: 1px solid var(--hair-strong); color: var(--muted); transition: all .25s;
}
.chooser button[aria-pressed="true"], .chooser button:hover { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), .1); }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .95rem; color: var(--paper);
  padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid var(--hair-strong); background: rgba(255,255,255,.02);
  transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(var(--accent-rgb), .04); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2.5rem; margin-top: var(--section-y); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; padding: .3rem 0; font-size: .88rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-brand img { height: 30px; margin-bottom: 1rem; filter: drop-shadow(0 0 14px rgba(56,103,255,.4)); }
.footer-brand p { font-size: .86rem; max-width: 32ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); font-size: .8rem; color: var(--muted-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), .3);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(var(--accent-rgb), .18), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(var(--accent-rgb), .12), transparent 60%),
    var(--surface-2);
  padding: clamp(2.2rem, 1.4rem + 4vw, 4.5rem);
  text-align: center;
}
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* placeholder marker */
.placeholder-note {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); border: 1px dashed rgba(255,138,61,.4); border-radius: 6px;
  padding: .2rem .5rem; display: inline-block;
}

/* future units */
.future-card {
  border: 1px dashed var(--hair-strong);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 12px, transparent 12px 24px);
  display: flex; flex-direction: column; justify-content: center; min-height: 220px; text-align: center;
}
.future-card .h3 { color: var(--muted); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .feature { transition: none !important; }
}

/* ---------- utilities ---------- */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0 !important; }
.u-muted { color: var(--muted); }
.u-dim { color: var(--muted-dim); }
.u-grid-lines {
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- mobile refinements ---------- */
@media (max-width: 520px) {
  :root { --section-y: clamp(3rem, 2.2rem + 5vw, 4.5rem); }
  .site-header__inner { gap: .6rem; }
  .brand img { height: 26px; }
  .header-actions { gap: .5rem; }
  .btn { padding: .85rem 1.2rem; }
  .hero { min-height: auto; }
  .hero__chips { margin-top: 2rem; }
  .cols-2 { columns: 1; }
  .compare { grid-template-columns: 1fr; }
  .dash__metrics { grid-template-columns: 1fr; }
  .metric__value { font-size: 1.5rem; }
  .ecosystem { max-width: 86vw; margin-block: 1rem; }
  .ecosystem__core { font-size: .68rem; }
  .cta-band .btn-row .btn { width: 100%; }
}
