/* =============================================================================
   PhoneixRise Interactive — public site styles
   Palette sampled from the logo: indigo #14044A, violet #5636BB, gold #FBAB0A.
   Contrast notes (WCAG 2.2 AA):
     white on brand-950 ≈ 17:1 · white on brand-600 ≈ 7.9:1
     gold-500 on brand-950 ≈ 9.5:1 · brand-950 on gold-500 ≈ 9.5:1 (gold buttons)
     violet-300 (#B9A6FF) on brand-950 ≈ 8.9:1 · ink-600 on white ≈ 6.2:1
   Gold is never used as small text on white.
   ========================================================================== */

@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --brand-950: #14044A;
  --brand-900: #1B0A5C;
  --brand-800: #24106F;
  --brand-700: #3A1F96;
  --brand-600: #5636BB;
  --brand-500: #6B4CD6;
  --brand-400: #8B6CFF;
  --brand-300: #B9A6FF;
  --brand-200: #DCD3FF;
  --brand-100: #F0EDFA;
  --brand-50:  #F8F6FE;
  --gold-600: #E09400;
  --gold-500: #FBAB0A;
  --gold-400: #FFC233;
  --gold-300: #FFD66B;
  --ink-950: #17152A;
  --ink-600: #5B5869;
  --surface: #FFFFFF;
  --surface-muted: #F7F6FA;
  --border: #E8E5EF;
  --success: #16794A;
  --danger: #B42318;

  --font-head: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 4, 74, .06), 0 2px 8px rgba(20, 4, 74, .05);
  --shadow: 0 10px 30px -10px rgba(20, 4, 74, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 4, 74, .35);
  --glow-violet: 0 0 0 1px rgba(139, 108, 255, .35), 0 20px 50px -15px rgba(86, 54, 187, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* ---------------------------------------------------------------- Reset/base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-950); background: var(--surface); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand-950); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.12; font-weight: 800; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--brand-950); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.section--lavender { background: linear-gradient(180deg, var(--brand-50), var(--brand-100)); }
.section--dark { background: var(--brand-950); color: #E7E2FF; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #CFC6F5; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--xl { width: 56px; height: 56px; }

/* ---------------------------------------------------------------- Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-500), var(--brand-400)); }
.eyebrow--dark { color: var(--gold-400); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-600); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head.is-center .eyebrow { justify-content: center; }

/* Bright violet highlight on light backgrounds: gradient text + gold sweep underline */
.hl { position: relative; white-space: nowrap; background: linear-gradient(100deg, var(--brand-600) 10%, #7A3FE0 60%, var(--brand-600)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hlShift 6s ease-in-out infinite; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .35s; }
.is-visible .hl::after, .hl.is-visible::after { transform: scaleX(1); }
/* Gold highlight on dark backgrounds */
.hl-gold { position: relative; display: inline-block; background: linear-gradient(100deg, var(--gold-500), var(--gold-300) 50%, var(--gold-500)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hlShift 5s ease-in-out infinite; }
.hl-gold::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .1em; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: .8; transform: scaleX(0); transition: transform 1.1s var(--ease) .5s; }
.is-visible .hl-gold::after, h1.is-visible .hl-gold::after { transform: scaleX(1); }
@keyframes hlShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------------------------------------------------------------- Buttons */
.btn { --bg: var(--brand-600); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { --bg: var(--brand-600); box-shadow: 0 8px 24px -10px rgba(86, 54, 187, .8); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--brand-600), #7A3FE0, var(--brand-600)); background-size: 200% 100%; opacity: 0; transition: opacity .3s; }
.btn--primary:hover::before { opacity: 1; animation: hlShift 2s linear infinite; }
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(86, 54, 187, .9); }
.btn--gold { --bg: var(--gold-500); --fg: var(--brand-950); box-shadow: 0 10px 30px -10px rgba(251, 171, 10, .75); }
.btn--gold:hover { --bg: var(--gold-400); box-shadow: 0 16px 36px -10px rgba(251, 171, 10, .9); }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite 1.5s; z-index: -1; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn--ghost-light { --bg: rgba(255, 255, 255, .06); --fg: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--outline { --bg: transparent; --fg: var(--brand-700); border-color: var(--brand-600); }
.btn--outline:hover { --bg: var(--brand-600); --fg: #fff; }
.btn--text { --bg: transparent; --fg: var(--brand-600); padding-inline: 6px; }
.btn--text:hover { --fg: var(--brand-800); transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.is-center { justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.htmx-request .spinner, .htmx-request.spinner { display: inline-block; }
.htmx-request .btn__label + .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Scroll progress + to-top */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--brand-400), var(--gold-500)); box-shadow: 0 0 12px rgba(251, 171, 10, .7); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-950); color: var(--gold-500); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .35s var(--ease); }
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--brand-950); background: var(--gold-500); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px -12px rgba(20, 4, 74, .25); background: rgba(255, 255, 255, .94); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 66px; }
.brand img { width: auto; height: 46px; transition: height .3s var(--ease), transform .3s; }
.site-header.is-scrolled .brand img { height: 40px; }
.brand:hover img { transform: translateY(-1px); }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 2px; align-items: center; }
.main-nav__item { position: relative; }
.main-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--brand-950); font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; position: relative; }
.main-nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-600), var(--gold-500)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav__link:hover, .main-nav__link.is-active { color: var(--brand-600); }
.main-nav__link:hover::after, .main-nav__link.is-active::after, .main-nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.main-nav__link .icon { transition: transform .3s var(--ease); }
.main-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-cta { flex: none; }

.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: max-content; max-width: min(860px, 92vw); transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s; }
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 8px 22px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; }
.mega__inner::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--brand-600), var(--brand-400), var(--gold-500)); }
.mega__title { font-family: var(--font-head); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-600); margin: 4px 10px 8px; }
.mega__link { display: flex; gap: 14px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink-950); transition: background-color .2s, transform .2s var(--ease); }
.mega__link:hover { background: var(--brand-50); transform: translateX(4px); color: var(--ink-950); }
.mega__link strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--brand-950); }
.mega__link small { display: block; color: var(--ink-600); font-size: .82rem; line-height: 1.45; max-width: 34ch; }
.mega__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-100); color: var(--brand-600); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.mega__icon .icon { width: 20px; height: 20px; }
.mega__link:hover .mega__icon { background: var(--brand-600); color: #fff; transform: rotate(-6deg) scale(1.05); }
.mega__all { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-decoration: none; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--brand-950); place-items: center; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; padding: 12px 20px 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav__toggle, .mobile-nav__link { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 4px; border: 0; background: none; color: var(--brand-950); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: left; }
.mobile-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav__sub { padding: 0 4px 14px 12px; }
.mobile-nav__sub a { display: block; padding: 8px 0; color: var(--ink-950); text-decoration: none; }
.mobile-nav__group { margin: 10px 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-600); }
.mobile-nav__all { font-weight: 700; color: var(--brand-600) !important; }
.mobile-nav .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- Decorative backgrounds */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora span:nth-child(1) { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; left: -12%; top: -30%; background: radial-gradient(circle, #6B4CD6 0%, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -10%; top: 10%; background: radial-gradient(circle, #8B3FE0 0%, transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 40%; bottom: -25%; background: radial-gradient(circle, rgba(251, 171, 10, .75) 0%, transparent 65%); opacity: .35; animation: drift3 16s ease-in-out infinite alternate; }
.aurora--soft span { opacity: .3; }
.aurora--soft span:nth-child(3) { opacity: .18; }
@keyframes drift1 { to { transform: translate(14%, 18%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-18%, 12%) scale(.9); } }
@keyframes drift3 { to { transform: translate(-30%, -20%) scale(1.2); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(185, 166, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 166, 255, .09) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); animation: gridPan 30s linear infinite; }
@keyframes gridPan { to { background-position: 56px 56px, 56px 56px; } }

/* Rising embers — a nod to the phoenix */
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sparks i { position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 10px 2px rgba(251, 171, 10, .7); opacity: 0; animation: ember 9s linear infinite; }
.sparks i:nth-child(odd) { width: 4px; height: 4px; background: var(--gold-300); }
.sparks i:nth-child(3n) { background: var(--brand-300); box-shadow: 0 0 10px 2px rgba(185, 166, 255, .6); }
.sparks i:nth-child(1) { left: 6%; animation-delay: 0s; animation-duration: 10s; }
.sparks i:nth-child(2) { left: 14%; animation-delay: 3s; }
.sparks i:nth-child(3) { left: 22%; animation-delay: 6s; animation-duration: 12s; }
.sparks i:nth-child(4) { left: 31%; animation-delay: 1.5s; }
.sparks i:nth-child(5) { left: 38%; animation-delay: 4.5s; animation-duration: 11s; }
.sparks i:nth-child(6) { left: 46%; animation-delay: 7s; }
.sparks i:nth-child(7) { left: 53%; animation-delay: 2s; animation-duration: 13s; }
.sparks i:nth-child(8) { left: 61%; animation-delay: 5s; }
.sparks i:nth-child(9) { left: 68%; animation-delay: .8s; animation-duration: 10s; }
.sparks i:nth-child(10) { left: 75%; animation-delay: 3.6s; }
.sparks i:nth-child(11) { left: 82%; animation-delay: 6.4s; animation-duration: 12s; }
.sparks i:nth-child(12) { left: 88%; animation-delay: 2.4s; }
.sparks i:nth-child(13) { left: 94%; animation-delay: 5.6s; animation-duration: 11s; }
.sparks i:nth-child(14) { left: 50%; animation-delay: 8s; }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(18px, -45vh) scale(.8); } 100% { transform: translate(-12px, -95vh) scale(.3); opacity: 0; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, #2A1380 0%, var(--brand-950) 55%); color: #E7E2FF; padding: clamp(64px, 9vw, 120px) 0 clamp(90px, 11vw, 140px); }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: #D4CCF7; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(185, 166, 255, .3); color: #E7E2FF; font-size: .88rem; font-weight: 600; backdrop-filter: blur(8px); }
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 0 rgba(251, 171, 10, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(251, 171, 10, .7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(251, 171, 10, 0); } }
.hero__rotator { font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; color: #fff; display: flex; flex-wrap: wrap; gap: .35em; align-items: baseline; margin-bottom: 18px; }
.rotator { position: relative; display: inline-grid; height: 1.35em; overflow: hidden; vertical-align: bottom; color: var(--brand-300); }
.rotator span { grid-area: 1 / 1; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); border-bottom: 2px dashed rgba(251, 171, 10, .7); }
.rotator span.is-active { transform: none; opacity: 1; }
.rotator span.is-leaving { transform: translateY(-110%); opacity: 0; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #CFC6F5; font-size: .93rem; }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks .icon { color: var(--gold-500); }

.hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.rise-card { position: relative; z-index: 2; width: min(440px, 100%); padding: 18px 18px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(185, 166, 255, .3); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); backdrop-filter: blur(14px); transition: transform .4s var(--ease); }
.rise-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dots i:first-child { background: #FF6B6B; } .dots i:nth-child(2) { background: var(--gold-500); } .dots i:nth-child(3) { background: #3DD68C; }
.rise-card__title { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; color: #B9A6FF; }
.rise-chart { width: 100%; height: auto; overflow: visible; }
.rise-chart__grid line { stroke: rgba(185, 166, 255, .15); stroke-dasharray: 4 6; }
.rise-chart__bars rect { fill: url(#barGrad); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: barUp 1.1s var(--ease) forwards; }
.rise-chart__bars rect:nth-child(1) { animation-delay: .5s; } .rise-chart__bars rect:nth-child(2) { animation-delay: .65s; } .rise-chart__bars rect:nth-child(3) { animation-delay: .8s; } .rise-chart__bars rect:nth-child(4) { animation-delay: .95s; }
@keyframes barUp { to { transform: scaleY(1); } }
.rise-chart__area { fill: url(#areaGrad); opacity: 0; animation: fadeIn 1s ease 2s forwards; }
.rise-chart__line { fill: none; stroke: var(--gold-500); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; filter: drop-shadow(0 0 6px rgba(251, 171, 10, .8)); animation: draw 1.4s var(--ease) 1.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise-chart__pts circle { fill: var(--gold-500); stroke: var(--brand-950); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease) forwards, glowPulse 2.4s ease-in-out infinite 3s; }
.rise-chart__pts circle:nth-child(1) { animation-delay: 1.4s, 3s; } .rise-chart__pts circle:nth-child(2) { animation-delay: 1.7s, 3.3s; } .rise-chart__pts circle:nth-child(3) { animation-delay: 2s, 3.6s; } .rise-chart__pts circle:nth-child(4) { animation-delay: 2.3s, 3.9s; }
@keyframes pop { 60% { transform: scale(1.4); } to { transform: scale(1); } }
@keyframes glowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes fadeIn { to { opacity: 1; } }
.rise-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .8rem; color: #CFC6F5; }
.rise-card__foot b { color: var(--gold-400); font-family: var(--font-head); }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--brand-950); font-family: var(--font-head); font-weight: 700; font-size: .85rem; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); animation: bob 6s ease-in-out infinite; }
.float-chip .icon { color: var(--brand-600); }
.float-chip--1 { top: 4%; left: 2%; }
.float-chip--2 { top: 14%; right: -2%; animation-delay: -1.5s; }
.float-chip--3 { bottom: 10%; left: -4%; animation-delay: -3s; }
.float-chip--4 { bottom: 2%; right: 6%; animation-delay: -4.5s; background: var(--gold-500); }
.float-chip--4 .icon { color: var(--brand-950); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(185, 166, 255, .25); z-index: 1; animation: spin 40s linear infinite; }
.orbit--1 { width: 110%; aspect-ratio: 1; }
.orbit--2 { width: 80%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 28s; border-color: rgba(251, 171, 10, .2); }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 14px var(--gold-500); }
.orbit--2::after { background: var(--brand-300); box-shadow: 0 0 14px var(--brand-300); left: auto; right: -5px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-500); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- Marquee */
.marquee-strip { padding: 28px 0 30px; background: #fff; border-bottom: 1px solid var(--border); }
.marquee-strip__label { text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 99px; background: var(--brand-50); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; color: var(--brand-800); white-space: nowrap; }
.marquee__item i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-600), var(--gold-500)); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------------------------------------------------------------- Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split--center { align-items: center; }
.split--form { grid-template-columns: 1fr 1fr; align-items: center; }

.card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--ink-950); text-decoration: none; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; transform-style: preserve-3d; }
.card p { color: var(--ink-600); font-size: .98rem; }
/* animated gradient border on hover */
.card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), var(--brand-600), var(--brand-400), var(--gold-500), var(--brand-600)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
a.card:hover, .card[data-tilt]:hover { border-color: transparent; box-shadow: var(--shadow-lg); color: var(--ink-950); }
a.card:hover::before, .card[data-tilt]:hover::before { opacity: 1; animation: angSpin 4s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes angSpin { to { --ang: 360deg; } }
a.card:not([data-tilt]):hover { transform: translateY(-6px); }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-100), #fff); color: var(--brand-600); border: 1px solid var(--brand-200); margin-bottom: 18px; flex: none; transition: transform .45s var(--ease), background .3s, color .3s; }
.card__icon--lg { width: 58px; height: 58px; border-radius: 16px; }
.card__icon--lg .icon { width: 28px; height: 28px; }
.card:hover .card__icon { background: linear-gradient(135deg, var(--brand-600), #7A3FE0); color: #fff; border-color: transparent; transform: translateZ(30px) rotate(-6deg) scale(1.06); }
.card__icon--light { background: rgba(255, 255, 255, .1); color: var(--gold-400); border-color: rgba(255, 255, 255, .2); }
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__kicker { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 6px; }
.card__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--brand-100); transition: color .4s, transform .45s var(--ease); }
.card:hover .card__num { color: var(--gold-300); transform: translateY(-4px); }
.card__num--static { position: static; display: block; color: var(--brand-200); margin-bottom: 14px; }
.card__best { margin: 6px 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-800); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 700; color: var(--brand-600); }
.card__more .icon { transition: transform .3s var(--ease); }
.card:hover .card__more .icon, .glass-card:hover .card__more .icon, .eco__feature:hover .card__more .icon { transform: translateX(6px); }
.card__more--light { color: var(--gold-400); }
.ticks { display: grid; gap: 8px; margin-bottom: 4px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-950); }
.ticks .icon { margin-top: 5px; color: var(--brand-600); }
.ticks--light li { color: #E7E2FF; }
.ticks--light .icon { color: var(--gold-500); }
.ticks--2col { grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 6px 0 26px; }
.card--problem { border-top: 4px solid var(--brand-600); }
.card--problem:nth-child(2) { border-top-color: #7A3FE0; }
.card--problem:nth-child(3) { border-top-color: var(--gold-500); }
.card--tall { min-height: 100%; }
.mini-list { display: grid; gap: 6px; margin: 4px 0 6px; }
.mini-list li { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--brand-800); font-size: .93rem; }
.mini-list .icon { color: var(--brand-600); }

/* Industry cards */
.card--industry { padding-top: 24px; }
.card--industry__art { position: relative; height: 140px; margin: -4px -8px 22px; border-radius: 18px; background: radial-gradient(circle at 50% 60%, var(--brand-100), var(--brand-50) 70%); display: grid; place-items: center; overflow: hidden; }
.card--industry__icon { position: relative; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-600), #7A3FE0); color: #fff; box-shadow: 0 16px 34px -10px rgba(86, 54, 187, .7); transition: transform .5s var(--ease); }
.card--industry__icon .icon { width: 34px; height: 34px; }
.card--industry:hover .card--industry__icon { transform: translateY(-6px) rotate(-8deg) scale(1.06); }
.ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(86, 54, 187, .25); animation: ringPulse 3.2s ease-out infinite; }
.ring--2 { animation-delay: 1.6s; border-color: rgba(251, 171, 10, .45); }
@keyframes ringPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }

/* Glass cards on dark */
.glass-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid rgba(185, 166, 255, .22); color: #E7E2FF; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.glass-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(251, 171, 10, .16), transparent 45%); opacity: 0; transition: opacity .4s; }
.glass-card:hover { transform: translateY(-8px); border-color: rgba(251, 171, 10, .55); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); color: #E7E2FF; }
.glass-card:hover::before { opacity: 1; }
.glass-card--static:hover { transform: none; }
.glass-card p { color: #CFC6F5; }
.glass-card h3 { color: #fff; font-size: 1.3rem; }
.glass-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: var(--brand-950); box-shadow: 0 12px 30px -10px rgba(251, 171, 10, .7); transition: transform .5s var(--ease); }
.glass-card:hover .glass-card__icon { transform: rotate(-8deg) scale(1.08); }
.glass-card__kicker { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-300); margin-bottom: 6px; }

/* Product ecosystem */
.eco { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.eco__feature { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(150deg, var(--brand-800), var(--brand-950) 70%); color: #E7E2FF; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.eco__feature:hover { transform: translateY(-6px); color: #E7E2FF; }
.eco__feature h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 8px; }
.eco__feature > p { color: #CFC6F5; font-size: 1.08rem; max-width: 46ch; }
.eco__glow { position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 171, 10, .45), transparent 60%); filter: blur(20px); animation: drift2 14s ease-in-out infinite alternate; }
.eco__children { display: grid; gap: 12px; margin: 18px 0 6px; }
.eco__child { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(185, 166, 255, .18); transition: background .3s, transform .4s var(--ease); }
.eco__child .card__icon { margin: 0; }
.eco__feature:hover .eco__child { background: rgba(255, 255, 255, .09); }
.eco__child:nth-child(1) { transition-delay: 0s; } .eco__child:nth-child(2) { transition-delay: .05s; } .eco__child:nth-child(3) { transition-delay: .1s; }
.eco__feature:hover .eco__child { transform: translateX(6px); }
.eco__child strong { display: block; color: #fff; font-family: var(--font-head); }
.eco__child small { color: #CFC6F5; font-size: .88rem; }
.eco__side { display: grid; gap: 24px; }
.tag { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tag--gold { background: var(--gold-500); color: var(--brand-950); }
.ext-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.ext-row__label { font-family: var(--font-head); font-weight: 800; color: var(--brand-950); margin-right: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800); font-weight: 600; text-decoration: none; transition: .3s var(--ease); }
.chip-link small { color: var(--ink-600); font-weight: 500; }
.chip-link:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-2px); }
.chip-link:hover small { color: var(--brand-200); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why__list { display: grid; gap: 16px; }
.why__item { display: flex; gap: 18px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.why__item:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.why__item .card__icon { margin: 0; }
.why__item h3 { margin-bottom: 4px; }
.why__item p { margin: 0; color: var(--ink-600); font-size: .96rem; }
.why__item:hover .card__icon { background: linear-gradient(135deg, var(--brand-600), #7A3FE0); color: #fff; }
.orbit-sys { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 10px auto 0; display: grid; place-items: center; }
.orbit-sys__core { width: 92px; height: auto; padding: 18px; border-radius: 28px; background: #fff; box-shadow: var(--glow-violet); animation: bob 5s ease-in-out infinite; }
.orbit-sys__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--brand-200); animation: spin 22s linear infinite; }
.orbit-sys__ring--2 { inset: 14%; animation-duration: 16s; animation-direction: reverse; border-color: rgba(251, 171, 10, .5); }
.orbit-sys__ring--3 { inset: 28%; animation-duration: 12s; }
.orbit-sys__ring i { position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-600); color: #fff; box-shadow: 0 10px 20px -8px rgba(86, 54, 187, .8); animation: spin 22s linear infinite reverse; }
.orbit-sys__ring--2 i { background: var(--gold-500); color: var(--brand-950); animation-duration: 16s; animation-direction: normal; }
.orbit-sys__ring--3 i { animation-duration: 12s; }

/* Process timeline */
.process { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: step; }
.process__line { position: absolute; top: 30px; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: var(--brand-100); overflow: hidden; }
.process__line span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--brand-600), var(--brand-400), var(--gold-500)); transition: transform .2s linear; }
.section--lavender .process__line { background: #fff; }
.process__step { position: relative; text-align: center; padding: 0 4px; }
.process__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-200); color: var(--brand-600); box-shadow: var(--shadow-sm); transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.process__step.is-lit .process__dot { background: linear-gradient(135deg, var(--brand-600), #7A3FE0); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(139, 108, 255, .15), 0 12px 24px -10px rgba(86, 54, 187, .8); }
.process__step:last-child.is-lit .process__dot { background: var(--gold-500); color: var(--brand-950); box-shadow: 0 0 0 6px rgba(251, 171, 10, .2), 0 12px 24px -10px rgba(251, 171, 10, .8); }
.process__step:hover .process__dot { transform: translateY(-4px) scale(1.06); }
.process__num { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 4px; }
.process__step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.process__step p { font-size: .9rem; color: var(--ink-600); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.faq__item.is-open { border-color: var(--brand-300); box-shadow: var(--shadow); }
.faq__q { margin: 0; font-size: 1.04rem; }
.faq__q button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border: 0; background: none; color: var(--brand-950); font: inherit; font-weight: 700; text-align: left; border-radius: 16px; }
.faq__chev { display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq__item.is-open .faq__chev { transform: rotate(180deg); background: var(--brand-600); color: #fff; }
.faq__a { overflow: hidden; transition: height .35s var(--ease); }
.faq__a p { padding: 0 22px 20px; margin: 0; color: var(--ink-600); }
.faq-group-title { font-size: 1.35rem; margin: 40px 0 16px; }
.faq-group-title:first-child { margin-top: 0; }

/* Use cases / approach */
.usecases { display: grid; gap: 16px; }
.usecase { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 20px; background: var(--brand-50); border: 1px solid var(--border); transition: transform .4s var(--ease), background .3s; }
.usecase:hover { transform: translateX(8px); background: #fff; box-shadow: var(--shadow); }
.usecase__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-950); color: var(--gold-500); }
.usecase h3 { margin-bottom: 4px; }
.usecase p { margin: 0; color: var(--ink-600); }
.approach { display: grid; gap: 16px; counter-reset: a; }
.approach li { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(185, 166, 255, .2); transition: transform .4s var(--ease), border-color .3s; }
.approach li:hover { transform: translateX(8px); border-color: rgba(251, 171, 10, .5); }
.approach span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--brand-950); font-family: var(--font-head); font-weight: 800; }
.approach p { margin: 0; color: #fff; font-weight: 600; }
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; }
.tech-row > span:first-child { font-family: var(--font-head); font-weight: 800; color: var(--gold-400); margin-right: 8px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.tech-pill { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(185, 166, 255, .25); color: #E7E2FF; font-size: .9rem; font-weight: 600; transition: .3s; }
.tech-pill:hover { background: var(--brand-600); border-color: var(--brand-400); }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 100% at 90% 0%, #2A1380 0%, var(--brand-950) 60%); color: #E7E2FF; padding: 36px 0 clamp(64px, 8vw, 104px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #D4CCF7; }
.page-hero__copy { margin-top: clamp(28px, 4vw, 52px); max-width: 860px; }
.page-hero__badge { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; margin-bottom: 22px; background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: var(--brand-950); box-shadow: 0 16px 40px -12px rgba(251, 171, 10, .7); animation: bob 6s ease-in-out infinite; }
.page-hero__badge .icon { width: 32px; height: 32px; }
.page-hero .btn-row { margin-top: 30px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: var(--brand-600); text-decoration: none; }
.breadcrumbs--dark li { color: #CFC6F5; }
.breadcrumbs--dark a { color: var(--brand-300); }
.breadcrumbs--dark a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

/* Services index rows */
.svc-list { display: grid; gap: clamp(56px, 8vw, 100px); }
.svc-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.svc-row--flip .svc-row__art { order: 2; }
.svc-row__art { position: relative; aspect-ratio: 1 / .85; border-radius: 32px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, #2A1380, var(--brand-950) 70%); box-shadow: var(--shadow-lg); }
.svc-row__art .ring { width: 160px; height: 160px; border-color: rgba(185, 166, 255, .35); }
.svc-row__art .ring--2 { border-color: rgba(251, 171, 10, .55); }
.svc-row__icon { position: relative; z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 30px; background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: var(--brand-950); box-shadow: 0 20px 50px -12px rgba(251, 171, 10, .7); animation: bob 6s ease-in-out infinite; }
.svc-row__icon .icon { width: 50px; height: 50px; }
.svc-row__num { position: absolute; top: 18px; left: 24px; font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: rgba(185, 166, 255, .18); }

/* Extension grid */
.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ext-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.ext-col__head { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--brand-950); color: #fff; text-decoration: none; margin-bottom: 6px; transition: background .3s; }
.ext-col__head:hover { background: var(--brand-800); color: #fff; }
.ext-col__head .card__icon { margin: 0; background: var(--gold-500); color: var(--brand-950); border: 0; }
.ext-col__head strong { display: block; font-family: var(--font-head); }
.ext-col__head small { color: #CFC6F5; font-size: .85rem; }
.ext-col li a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; color: var(--ink-950); text-decoration: none; transition: background .25s, transform .3s var(--ease); }
.ext-col li a > .icon:first-child { color: var(--brand-600); }
.ext-col li a strong { display: block; font-family: var(--font-head); font-size: .96rem; color: var(--brand-950); }
.ext-col li a small { color: var(--ink-600); font-size: .85rem; }
.ext-col li a:hover { background: var(--brand-50); transform: translateX(4px); }
.ext-col__arrow { margin-left: auto; color: var(--brand-600); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.ext-col li a:hover .ext-col__arrow { opacity: 1; transform: none; }

/* Product mock */
.product-mock { border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1000px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.product-mock:hover { transform: none; }
.product-mock__bar { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--brand-950); color: var(--brand-300); font-size: .82rem; font-family: var(--font-head); font-weight: 700; }
.product-mock__body { display: grid; grid-template-columns: 70px 1fr; min-height: 260px; }
.product-mock__side { background: var(--brand-50); padding: 16px 12px; display: grid; gap: 12px; align-content: start; }
.product-mock__side i { height: 10px; border-radius: 6px; background: var(--brand-200); }
.product-mock__side i:first-child { background: var(--brand-600); }
.product-mock__main { padding: 20px; display: grid; gap: 16px; }
.product-mock__hero { display: grid; place-items: center; height: 120px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--brand-600), #7A3FE0, var(--brand-600)); background-size: 200% 100%; animation: hlShift 6s ease-in-out infinite; }
.product-mock__rows { display: grid; gap: 10px; }
.product-mock__rows span { display: flex; gap: 10px; }
.product-mock__rows i { height: 12px; border-radius: 6px; background: var(--brand-100); flex: 1; position: relative; overflow: hidden; }
.product-mock__rows i:last-child { flex: .4; background: rgba(251, 171, 10, .35); }
.product-mock__rows i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); transform: translateX(-100%); animation: shimmer 2.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.product-mock__note { margin: 0; padding: 10px 16px; font-size: .8rem; color: var(--ink-600); border-top: 1px solid var(--border); text-align: center; }
.big-quote { font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 600; color: var(--brand-950); padding-left: 22px; border-left: 4px solid var(--gold-500); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; background: linear-gradient(120deg, var(--brand-950), var(--brand-800) 60%, #3A1F96); color: #E7E2FF; text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #D4CCF7; max-width: 56ch; margin: 0 auto 28px; font-size: 1.1rem; }

/* Final CTA + forms */
.final-cta { overflow: hidden; }
.final-cta__copy h2, .final-cta__copy h1 { color: #fff; }
.steps-mini { display: grid; gap: 14px; margin-top: 26px; }
.steps-mini li { display: flex; gap: 14px; align-items: center; color: #E7E2FF; font-weight: 600; }
.steps-mini span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(251, 171, 10, .14); border: 1.5px solid var(--gold-500); color: var(--gold-400); font-family: var(--font-head); font-weight: 800; flex: none; }
.form-card { position: relative; padding: clamp(24px, 3.5vw, 36px); border-radius: 26px; background: #fff; color: var(--ink-950); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.form-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: conic-gradient(from var(--ang, 0deg), var(--brand-400), var(--gold-500), var(--brand-600), var(--brand-400)); animation: angSpin 6s linear infinite; filter: blur(.5px); }
.form-card__title { font-size: 1.5rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--brand-950); }
.field__opt { color: var(--ink-600); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-muted); color: var(--ink-950); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 4px rgba(86, 54, 187, .15); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-600); font-size: .9rem; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); background: #FFF6F5; }
.field__err { margin: 0; color: var(--danger); font-size: .85rem; font-weight: 600; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form-alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FFF1F0; color: var(--danger); font-weight: 600; font-size: .92rem; }
.form-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: .82rem; color: var(--ink-600); }
.form-success { text-align: center; padding: 26px 10px; animation: zoomIn .6s var(--ease); }
.form-success h3, .form-success h1 { font-size: 1.5rem; }
.form-success p { color: var(--ink-600); max-width: 44ch; margin-inline: auto; }
.form-success__badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--success); color: #fff; box-shadow: 0 0 0 10px rgba(22, 121, 74, .12); animation: pop .6s var(--ease) .1s both; }
.form-success__badge .icon { width: 38px; height: 38px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s ease .5s forwards; }
.form-success--dark h1 { color: #fff; }
.form-success--dark p { color: #D4CCF7; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } }
.contact-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 100% at 90% 0%, #2A1380 0%, var(--brand-950) 60%); color: #E7E2FF; padding: 36px 0 clamp(64px, 8vw, 104px); }
.contact-hero .split { margin-top: 36px; }
.contact-hero .lead { color: #D4CCF7; }
.contact-hero--center { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.contact-hero--center h1 { color: #fff; }
.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-400); }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gold-500); }

/* Newsletter */
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input { flex: 1 1 220px; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(185, 166, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.news-form input::placeholder { color: #A79CD6; }
.news-form input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(251, 171, 10, .2); }
.news-form--light { justify-content: center; max-width: 520px; margin: 0 auto; }
.news-form--light input { background: #fff; border-color: var(--border); color: var(--ink-950); }
.news-form--light input::placeholder { color: var(--ink-600); }
.news-result p { margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.news-result .is-ok { color: #7CE3AE; }
.news-result .is-error { color: #FFB4AB; }
.news-result--light .is-ok { color: var(--success); }
.news-result--light .is-error { color: var(--danger); }

/* Empty state, prose, 404 */
.empty-state { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--brand-50); border: 1px solid var(--border); }
.empty-state__art { position: relative; width: 160px; height: 130px; margin: 0 auto 24px; }
.empty-state__page { position: absolute; inset: 10px 30px; border-radius: 12px; background: #fff; border: 1px solid var(--brand-200); box-shadow: var(--shadow-sm); animation: bob 5s ease-in-out infinite; }
.empty-state__page:nth-child(1) { transform: rotate(-10deg); animation-delay: -1s; }
.empty-state__page:nth-child(2) { transform: rotate(8deg); animation-delay: -2.5s; }
.empty-state__pen { position: absolute; right: 6px; bottom: 0; color: var(--brand-600); animation: bob 3s ease-in-out infinite; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p { color: var(--ink-600); }
.notice { padding: 16px 18px; border-radius: 14px; background: #FFF8E6; border: 1px solid #F5D78E; color: #6B4A00 !important; font-weight: 600; }
.value-stack { display: grid; gap: 14px; }
.value-stack__item { display: flex; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.value-stack__item:hover { transform: translateX(8px); }
.value-stack__item .card__icon { margin: 0; }
.value-stack__item p { margin: 0; color: var(--ink-600); font-size: .95rem; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0 0 10px; color: #fff; }
.notfound__code span { display: inline-block; color: var(--gold-500); animation: spin 6s linear infinite; }
.notfound .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- Footer */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-950); color: #CFC6F5; padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-glow { position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(107, 76, 214, .45), transparent 60%); }
.site-footer::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand-600), var(--gold-500), var(--brand-400)); background-size: 200% 100%; animation: hlShift 8s linear infinite; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(185, 166, 255, .15); }
.footer-logo { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; margin-bottom: 16px; }
.footer-logo img { width: 56px; padding: 8px; border-radius: 14px; background: #fff; }
.footer-logo strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; }
.footer-logo small { display: block; color: var(--brand-300); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.footer-brand p { max-width: 46ch; }
.footer-contact { display: grid; gap: 8px; margin-top: 14px; }
.footer-contact li, .footer-contact a { display: inline-flex; gap: 10px; align-items: center; color: #E7E2FF; text-decoration: none; }
.footer-contact .icon { color: var(--gold-500); }
.footer-heading { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; font-weight: 800; }
.footer-news .footer-heading { font-size: 1.25rem; letter-spacing: -.01em; text-transform: none; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 44px 0; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: #CFC6F5; text-decoration: none; font-size: .95rem; background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.footer-cols a:hover { color: #fff; background-size: 100% 1px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(185, 166, 255, .15); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { color: #CFC6F5; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------------------------------------------------------------- Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-tilt].is-visible { transition: opacity .8s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
[data-delay="1"] { transition-delay: .08s !important; } [data-delay="2"] { transition-delay: .16s !important; } [data-delay="3"] { transition-delay: .24s !important; }
[data-delay="4"] { transition-delay: .32s !important; } [data-delay="5"] { transition-delay: .4s !important; } [data-delay="6"] { transition-delay: .48s !important; }
.is-visible[data-delay][data-tilt]:hover, .is-visible[data-delay]:hover { transition-delay: 0s !important; }
.stagger > :nth-child(2) { transition-delay: .1s; } .stagger > :nth-child(3) { transition-delay: .2s; } .stagger > :nth-child(4) { transition-delay: .3s; }
.stagger > .is-visible:hover { transition-delay: 0s; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process__line { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1101px) { .mobile-nav { display: none !important; } }
@media (max-width: 900px) {
  .hero__inner, .split, .split--form, .why, .eco, .svc-row, .footer-top { grid-template-columns: 1fr; }
  .svc-row--flip .svc-row__art { order: 0; }
  .svc-row__art { aspect-ratio: 16 / 9; }
  .hero__visual { min-height: 380px; }
  .grid--3, .ext-grid { grid-template-columns: 1fr 1fr; }
  .product-mock { transform: none; }
}
.hero__inner > *, .split > *, .why > *, .eco > *, .svc-row > *, .grid > * { min-width: 0; }
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .hl { white-space: normal; }
  h1 { overflow-wrap: break-word; }
  body { font-size: 1rem; }
  .brand img { height: 38px; }
  .grid--3, .grid--4, .ext-grid, .form-grid, .ticks--2col { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .float-chip { font-size: .75rem; padding: 8px 10px; }
  .float-chip--2 { right: 0; } .float-chip--3 { left: 0; }
  .hero__visual { min-height: 320px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .btn--lg { width: 100%; }
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sparks, .orbit, .scroll-cue { display: none; }
  .rise-chart__bars rect, .rise-chart__pts circle { transform: none; }
  .rise-chart__line { stroke-dashoffset: 0; }
  .rise-chart__area { opacity: 1; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* =============================================================================
   CMS content, blog, testimonials, assistant, consent (added with the CMS release)
   ========================================================================== */
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-title-sm { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 18px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.split--flip > :first-child { order: 2; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.preview-bar { position: sticky; top: 0; z-index: 60; padding: 10px 16px; background: var(--gold-500); color: var(--brand-950); font-weight: 700; text-align: center; }
.announce { position: relative; z-index: 51; padding: 9px 16px; background: linear-gradient(90deg, var(--brand-950), var(--brand-700), var(--brand-950)); color: #fff; text-align: center; font-size: .9rem; font-weight: 600; }
.announce a { color: var(--gold-400); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: var(--gold-300); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.footer-social a { color: var(--brand-200); font-size: .9rem; }
.footer-social a:hover { color: var(--gold-400); }

/* Rich content (sanitised editor output) */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.prose p, .prose li { color: var(--ink-600); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand-600); }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink-950); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold-500); font-size: 1.15rem; color: var(--brand-950); font-family: var(--font-head); font-weight: 600; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; box-shadow: var(--shadow); }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink-600); text-align: center; }
.prose hr { border: 0; height: 2px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, var(--brand-200), transparent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { background: var(--brand-50); color: var(--brand-950); font-family: var(--font-head); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--brand-50); color: var(--brand-800); font-size: .9em; }
.prose pre { padding: 16px; border-radius: 12px; background: var(--brand-950); color: #E7E2FF; overflow-x: auto; }
.prose .callout { margin: 1.6em 0; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-50), #FFF8E6); border: 1px solid var(--brand-100); border-left: 4px solid var(--gold-500); }
.prose .callout p { color: var(--ink-950); margin: 0; }
.prose .callout--warning { background: #FFF8E6; border-color: #F5D78E; border-left-color: var(--gold-600); }
.prose--article { font-size: 1.08rem; }
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand-50); }
.media-frame img { width: 100%; height: auto; }
.media-frame--hero { margin: -40px auto 0; position: relative; z-index: 2; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.fact-strip { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 0; margin: -34px 0 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact-strip li { flex: 1 1 180px; padding: 16px 22px; border-right: 1px solid var(--border); }
.fact-strip li:last-child { border-right: 0; }
.fact-strip span { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.fact-strip strong { color: var(--brand-950); }
.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-600); }
.tick-list .icon { color: var(--brand-600); margin-top: 4px; flex: none; }

/* Section blocks */
.metrics__title { color: #fff; text-align: center; margin-bottom: 26px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 0; }
.metrics div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(185, 166, 255, .2); text-align: center; }
.metrics dd { margin: 0; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); color: var(--gold-500); }
.metrics dt { color: #CFC6F5; font-weight: 600; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: s; }
.steps-grid li { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.steps-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps-grid__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-600), #7A3FE0); color: #fff; font: 800 1rem var(--font-head); }
.steps-grid li:last-child .steps-grid__n { background: var(--gold-500); color: var(--brand-950); }
.steps-grid p { color: var(--ink-600); margin: 0; }

/* Testimonials */
.testimonial { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font: 800 5rem/1 var(--font-head); color: var(--brand-100); }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-950); flex: 1; position: relative; }
.testimonial__stars { display: flex; gap: 2px; margin: 0; color: var(--gold-600); }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption img, .testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-600), var(--brand-400)); color: #fff; font: 800 1.1rem var(--font-head); }
.testimonial figcaption strong { display: block; color: var(--brand-950); }
.testimonial figcaption small { color: var(--ink-600); }

/* Blog listing */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cat-nav a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); color: var(--ink-950); text-decoration: none; font-weight: 600; font-size: .92rem; transition: .25s var(--ease); }
.cat-nav a small { color: var(--ink-600); margin-left: 4px; }
.cat-nav a:hover { border-color: var(--brand-400); color: var(--brand-700); }
.cat-nav a.is-active { background: var(--brand-950); border-color: var(--brand-950); color: #fff; }
.cat-nav a.is-active small { color: var(--gold-400); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__art { display: grid; place-items: center; height: 100%; color: var(--gold-500); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.post-card__cat { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); text-decoration: none; }
.post-card__cat--dark { color: var(--gold-400); display: inline-block; margin-bottom: 10px; }
.post-card__title { font-size: 1.2rem; margin: 0; }
.post-card__title a { color: var(--brand-950); text-decoration: none; background-image: linear-gradient(var(--gold-500), var(--gold-500)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.post-card__title a:hover { background-size: 100% 2px; }
.post-card__body p { margin: 0; color: var(--ink-600); font-size: .96rem; }
.post-card__meta { margin-top: auto !important; padding-top: 8px; font-size: .85rem !important; }
.post-card--big { display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card--big .post-card__media { aspect-ratio: auto; min-height: 320px; }
.post-card--big .post-card__body { justify-content: center; padding: clamp(24px, 4vw, 44px); }
.post-card--big .post-card__title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; color: var(--ink-600); }

/* Article */
.article-hero { position: relative; padding: calc(var(--header-h) + 50px) 0 90px; background: var(--brand-950); color: #E7E2FF; overflow: hidden; isolation: isolate; }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article-hero .lead { color: #CFC6F5; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; color: #B9A6FF; font-size: .95rem; }
.article-meta__author { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.article-meta__author img, .article-meta__initial { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-meta__initial { display: grid; place-items: center; background: var(--gold-500); color: var(--brand-950); font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.tag-list a { padding: 5px 12px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); font-size: .88rem; font-weight: 600; text-decoration: none; }
.tag-list a:hover { background: var(--brand-600); color: #fff; }
.reactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 34px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--brand-200); background: #fff; color: var(--brand-800); font-weight: 700; transition: .25s var(--ease); }
.like-btn:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.like-btn.is-on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.like-btn.is-on .icon { animation: pop .45s var(--ease); fill: currentColor; }
.like-btn__n { padding: 1px 8px; border-radius: 99px; background: var(--brand-100); color: var(--brand-800); font-size: .82rem; }
.like-btn.is-on .like-btn__n { background: rgba(255, 255, 255, .2); color: #fff; }
@keyframes pop { 40% { transform: scale(1.35); } }
.rating fieldset { display: flex; align-items: center; gap: 12px; border: 0; margin: 0; padding: 0; }
.rating legend { float: left; font-weight: 700; color: var(--brand-950); margin-right: 8px; }
.rating__stars { display: flex; }
.rating__star { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--brand-200); border-radius: 8px; transition: color .2s, transform .2s; }
.rating__star:hover, .rating__star:hover ~ .rating__star { color: var(--brand-200); }
.rating__stars:hover .rating__star { color: var(--gold-600); }
.rating__stars .rating__star:hover ~ .rating__star { color: var(--brand-200); }
.rating__star.is-on { color: var(--gold-600); }
.rating__star.is-on .icon, .rating__stars:hover .rating__star .icon { fill: currentColor; }
.rating__star:hover { transform: scale(1.15); }
.rating__avg, .reactions__msg { margin: 6px 0 0; font-size: .88rem; color: var(--ink-600); }
.author-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-950), var(--brand-800)); color: #CFC6F5; }
.author-card img, .author-card__initial { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--gold-500); }
.author-card__initial { display: grid; place-items: center; background: var(--gold-500); color: var(--brand-950); font: 800 2rem var(--font-head); }
.author-card__label { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.author-card h2 { font-size: 1.3rem; margin: 2px 0; }
.author-card h2 a { color: #fff; text-decoration: none; }
.author-card__role { color: #B9A6FF; margin-bottom: 8px; }
.author-card p:last-child { margin: 0; }
.author-hero { display: flex; gap: 28px; align-items: center; margin-top: 18px; }
.author-hero__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold-500); box-shadow: 0 0 0 8px rgba(251, 171, 10, .15); flex: none; }
.author-hero__photo--initial { display: grid; place-items: center; background: var(--gold-500); color: var(--brand-950); font: 800 3rem var(--font-head); }
.author-hero h1 { color: #fff; }
.author-links { display: flex; gap: 14px; margin-top: 10px; }
.author-links a { color: var(--gold-400); font-weight: 600; }
.comments { display: grid; gap: 16px; margin-bottom: 30px; }
.comment { padding: 18px 20px; border-radius: var(--radius); background: var(--surface-muted); border: 1px solid var(--border); }
.comment__meta { margin: 0 0 6px; font-size: .9rem; color: var(--ink-600); }
.comment__meta strong { color: var(--brand-950); }
.comment__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__report { margin-top: 8px; font-size: .82rem; color: var(--ink-600); }
.comment__reported { font-size: .82rem; color: var(--success); }
.comment-form { display: grid; gap: 14px; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.comment-form h3 { margin: 0; }
.comment-form__note { margin: -8px 0 0; color: var(--ink-600); font-size: .9rem; }
.comment-form--done { display: flex; gap: 10px; align-items: center; color: var(--success); font-weight: 600; }

/* Assistant widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.chat__launcher { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border: 0; border-radius: 99px; background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); color: #fff; font: 700 .98rem var(--font-head); box-shadow: 0 16px 36px -12px rgba(20, 4, 74, .7); transition: transform .3s var(--ease); }
.chat__launcher::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--gold-500); opacity: 0; animation: ring 3s ease-out infinite 2s; }
@keyframes ring { 0% { opacity: .9; transform: scale(.95); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
.chat__launcher:hover { transform: translateY(-3px); }
.chat__launcher-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--brand-950); }
.chat.is-open .chat__launcher { display: none; }
.chat__panel { display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -24px rgba(20, 4, 74, .55); overflow: hidden; animation: chatIn .35s var(--ease); }
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); color: #fff; }
.chat__head h2 { margin: 0; font-size: 1rem; color: #fff; }
.chat__head p { margin: 0; font-size: .78rem; color: var(--brand-200); }
.chat__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold-500); color: var(--brand-950); }
.chat__close { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.chat__close:hover { background: rgba(255, 255, 255, .2); }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; background: var(--surface-muted); }
.chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.5; animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat__msg p { margin: 0 0 .5em; }
.chat__msg p:last-child { margin: 0; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink-950); }
.chat__msg--me { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; }
.chat__msg--error { border-color: #F5D78E; background: #FFF8E6; }
.chat__sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chat__sources a { padding: 3px 10px; border-radius: 99px; background: var(--brand-50); font-size: .8rem; font-weight: 600; text-decoration: none; }
.chat__cta { margin-top: 8px; padding: 6px 12px; border: 1.5px solid var(--brand-300); border-radius: 99px; background: #fff; color: var(--brand-700); font-weight: 700; font-size: .84rem; }
.chat__cta:hover { background: var(--brand-50); }
.chat__prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__prompt { padding: 7px 12px; border: 1.5px solid var(--brand-200); border-radius: 99px; background: #fff; color: var(--brand-800); font-size: .85rem; font-weight: 600; transition: .2s; }
.chat__prompt:hover { border-color: var(--brand-600); background: var(--brand-600); color: #fff; }
.chat__typing { display: none; gap: 4px; padding: 0 20px 8px; background: var(--surface-muted); }
.chat.htmx-request .chat__typing { display: flex; }
.chat__typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); animation: typing 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat__form textarea { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: .95rem; }
.chat__form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(86, 54, 187, .15); }
.chat__send { display: grid; place-items: center; width: 44px; border: 0; border-radius: 12px; background: var(--gold-500); color: var(--brand-950); transition: background .2s; }
.chat__send:hover { background: var(--gold-400); }
.chat__send:disabled { opacity: .5; }
.chat__followup { border-top: 1px solid var(--border); background: #fff; }
.chat__followup > summary { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .88rem; font-weight: 700; color: var(--brand-700); cursor: pointer; }
.chat__followup[open] { max-height: 52%; overflow-y: auto; }
.chat__lead { display: grid; gap: 6px; padding: 0 16px 14px; font-size: .88rem; }
.chat__lead input, .chat__lead textarea { padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; }
.chat__consent { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--ink-600); margin-top: 4px; }
.chat__done { padding: 0 16px 14px; color: var(--success); font-weight: 600; font-size: .9rem; }
.chat__disclaimer { margin: 0; padding: 8px 16px 10px; font-size: .74rem; color: var(--ink-600); background: #fff; border-top: 1px solid var(--border); }
.chat ~ .to-top, .to-top { right: 20px; }
body:has(.chat) .to-top { bottom: 92px; }

/* Consent banner */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 85; width: min(440px, calc(100vw - 40px)); padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: chatIn .4s var(--ease); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; font-size: .92rem; color: var(--ink-600); }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 760px) {
  .post-card--big { grid-template-columns: 1fr; }
  .post-card--big .post-card__media { min-height: 200px; }
  .author-card, .author-hero { flex-direction: column; }
  .chat { right: 12px; bottom: 12px; }
  .chat__launcher-label { display: none; }
  .chat__launcher { padding: 10px; }
  .fact-strip li { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) {
  .chat__launcher::before, .chat__typing span { animation: none; }
}

/* Service pages (SEO release) */
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { color: var(--brand-600); }
.benefit-list { display: grid; gap: 18px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; }
.benefit-list__mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-600); color: #fff; }
.benefit-list h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.benefit-list p { margin: 0; color: var(--ink-600); }
.industry-apps { margin-bottom: clamp(48px, 6vw, 80px); }
.industry-apps .card { padding: 24px; }
.why-block { margin-top: 8px; }
.avatar-img { object-fit: cover; border-radius: 50%; }
.article-meta__author img { width: 36px; height: 36px; }
.author-card img { width: 88px; height: 88px; }
.testimonial figcaption img { width: 48px; height: 48px; }
.prose img { height: auto; }
