/* ==========================================================================
   HYBRIX — style.css
   1. Tokens            6. Hero + skyline        11. Dashboard mockup
   2. Base              7. Home sections         12. Chat simulation
   3. Layout + type     8. Language showcase     13. Forms + contact
   4. Buttons           9. Calculator + videos   14. Footer + sticky CTA
   5. Header + intro   10. Offer, FAQ, timeline  15. Motion states / reduced motion
   Mobile-first. Every colour and font is a variable in :root.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand colours — the exact values from the original Hybrix site and logo. */
  --purple-600: #6211a5;
  --purple-500: #8f16ea;   /* the H */
  --purple-400: #a437eb;   /* the glow at the arch */
  --purple-300: #c58af3;   /* small text on dark */
  --bg: #0d041d;
  --bg-deep: #080212;
  --surface: #150628;
  --surface-2: #1c0a35;
  --white: #ffffff;
  --text-2: rgba(255, 255, 255, .74);
  --text-3: rgba(255, 255, 255, .6);
  --line: rgba(164, 55, 235, .24);
  --line-soft: rgba(164, 55, 235, .12);
  --glow: rgba(143, 22, 234, .45);

  /* Fonts */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  --deva: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Nirmala UI', sans-serif;
  --cjk: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Rhythm */
  --ease: cubic-bezier(.22, .8, .2, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --section: clamp(96px, 14vw, 200px);
  --nav-h: 72px;
  --radius: 4px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Subtle film grain over the whole page */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--purple-500); color: var(--white); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--purple-300); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 18px; background: var(--white); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Scripts other than Latin get their own typeface so nothing falls back to boxes */
:lang(ar), :lang(ur) { font-family: var(--arabic); letter-spacing: 0; }
:lang(hi) { font-family: var(--deva); letter-spacing: 0; }
:lang(zh) { font-family: var(--cjk); letter-spacing: 0; }
:lang(ru) { font-family: var(--sans); letter-spacing: 0; }

/* 3. LAYOUT + TYPE --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--section); position: relative; }
.section--deep { background: rgba(8, 2, 18, .6); }   /* --bg-deep, translucent so the skyline shows through */
.section--line { border-top: 1px solid var(--line-soft); }
.center { text-align: center; }

.display, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
.display { font-size: clamp(2.75rem, 8.4vw, 6.75rem); line-height: 1; }
.h2 { font-size: clamp(2.2rem, 5.2vw, 4.25rem); line-height: 1.04; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.display em, .h2 em { color: var(--purple-300); }
.eyebrow { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--purple-300); margin-bottom: 28px; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.6; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.center .lead { margin-inline: auto; }
.muted { color: var(--text-3); }
.note { font-size: .8125rem; color: var(--text-3); letter-spacing: .02em; }
.head { margin-bottom: clamp(48px, 7vw, 96px); }
.head .lead { margin-top: 28px; }
/* Line-by-line reveal wrappers (see motion states) */
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: block; }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: var(--radius);
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .5s var(--ease), box-shadow .6s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--purple-500); color: var(--white); box-shadow: 0 0 0 rgba(143, 22, 234, 0); }
.btn--primary:hover { background: var(--purple-400); box-shadow: 0 0 48px var(--glow); }
.btn--ghost { border: 1px solid var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--purple-300); box-shadow: 0 0 36px rgba(143, 22, 234, .22); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .75rem; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn--wrap { white-space: normal; text-align: center; padding-block: 14px; line-height: 1.5; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.center .btns { justify-content: center; }
.link { color: var(--purple-300); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .4s; }
.link:hover { border-color: var(--purple-300); }

/* 5. HEADER + INTRO -------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(8, 2, 18, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line-soft); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.nav__mark { width: 24px; height: 26px; }
.nav__word { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .01em; line-height: 1; }
.nav__links { display: none; }
.nav__link { font-size: .8125rem; letter-spacing: .06em; color: var(--text-2); padding: 12px 0; position: relative; transition: color .4s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--purple-300); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav__link:hover, .nav__link[aria-current] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: -10px; }
.nav__toggle span { display: block; width: 24px; height: 1px; background: var(--white); transition: transform .5s var(--ease); }
.nav__toggle span + span { margin-top: 7px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--nav-h) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a:not(.btn) { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; }
.menu .btn { margin-top: 32px; align-self: flex-start; }

@media (min-width: 1120px) {
  .nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none; }
}

/* Cinematic intro — CSS only, home page, once per session (class set in <head>) */
.intro { display: none; }
html.intro-on .intro {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: var(--bg-deep);
  animation: intro-out .9s var(--ease) 1.7s forwards;
}
.intro__inner { display: grid; justify-items: center; gap: 26px; }
.intro__mark { width: 74px; filter: drop-shadow(0 0 40px var(--glow)); animation: intro-mark 1.4s var(--ease) both; }
.intro__word { font-family: var(--serif); font-size: 1.75rem; letter-spacing: .32em; text-indent: .32em; animation: intro-word 1.2s var(--ease) .45s both; }
.intro__skip { position: absolute; right: var(--gutter); bottom: 32px; min-height: 44px; padding: 0 8px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
html.intro-skip .intro { animation: intro-out .5s var(--ease) forwards; }
@keyframes intro-mark { from { opacity: 0; transform: scale(.86); filter: blur(12px); } }
@keyframes intro-word { from { opacity: 0; letter-spacing: .6em; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }

/* Site-wide skyline: fixed behind all content, faint, fades in below the home hero.
   main.js drifts its depth layers sideways slowly as the page scrolls. */
.city { position: fixed; z-index: 0; left: 0; right: 0; bottom: 0; height: min(58svh, 520px); pointer-events: none; color: var(--purple-400); opacity: 0; transition: opacity 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 40%, transparent); mask-image: linear-gradient(to top, transparent 2%, #000 40%, transparent); }
.city.is-on { opacity: 1; }
.city svg { position: absolute; left: -4%; bottom: 0; width: 108%; height: 100%; opacity: .5; }
.city::after { content: ''; position: absolute; left: 50%; bottom: -40%; width: min(1200px, 140vw); aspect-ratio: 2; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(143, 22, 234, .16), transparent); }
main, .footer { position: relative; z-index: 1; }

/* 6. HERO + SKYLINE -------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 56px) 0 clamp(72px, 11vh, 132px); overflow: hidden; isolation: isolate; }
.hero--page { min-height: 0; padding-top: calc(var(--nav-h) + clamp(88px, 13vw, 168px)); padding-bottom: clamp(64px, 9vw, 120px); align-items: flex-start; }
.hero__glow { position: absolute; z-index: -2; left: 50%; bottom: -30%; width: min(1400px, 150vw); aspect-ratio: 1.5; transform: translateX(-28%); background: radial-gradient(closest-side, rgba(143, 22, 234, .42), rgba(98, 17, 165, .16) 55%, transparent); }
.hero--page .hero__glow { bottom: auto; top: -60%; opacity: .7; }
.skyline { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: min(66vh, 600px); color: var(--purple-400); pointer-events: none; -webkit-mask-image: linear-gradient(to top, transparent, #000 26%); mask-image: linear-gradient(to top, transparent, #000 26%); }
.skyline svg { position: absolute; left: -3%; top: 0; width: 106%; height: 100%; opacity: .78; }
/* The 3D skyline drawing (hero, site background, video frames). Faces are filled so near towers hide far ones. */
.sky polygon { stroke: currentColor; stroke-width: 1; stroke-opacity: .6; vector-effect: non-scaling-stroke; }
.sky .f-line { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .26; vector-effect: non-scaling-stroke; }
.hero .display { max-width: 12.5em; }
.hero .lead { margin-top: 32px; }
/* Hero entrance is CSS (not JS) so the headline paints immediately */
html.motion .hero [data-in] { animation: rise 1.3s var(--ease) both; animation-delay: calc(var(--i, 0) * .14s + .1s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* 7. HOME SECTIONS --------------------------------------------------------- */
/* Problem: three large lines */
.problem p:not(.lead) { font-family: var(--serif); font-size: clamp(2rem, 5.4vw, 4.5rem); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.problem p + p:not(.lead) { margin-top: .5em; }
.problem p:nth-of-type(2) { color: var(--text-3); }
.problem p:last-of-type em { color: var(--purple-300); }

/* Before vs After timelines */
.ba { display: grid; gap: 20px; }
.tl { position: relative; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg, rgba(21, 6, 40, .7), rgba(13, 4, 29, .2)); }
.tl--with { border-color: var(--line); background: linear-gradient(180deg, rgba(98, 17, 165, .28), rgba(21, 6, 40, .5)); box-shadow: 0 0 90px rgba(98, 17, 165, .2); }
.tl__title { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 36px; }
.tl--with .tl__title { color: var(--purple-300); }
.tl__steps { position: relative; display: grid; gap: 26px; }
.tl__steps::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl__step { position: relative; padding-left: 34px; }
.tl__step::before { content: ''; position: absolute; left: 0; top: .58em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-3); }
.tl--with .tl__step::before { border-color: var(--purple-300); background: var(--purple-500); box-shadow: 0 0 14px var(--glow); }
.tl__time { display: block; font-size: .75rem; letter-spacing: .16em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl__text { font-size: 1.0625rem; color: var(--text-2); }
.tl--with .tl__text { color: var(--white); }
.tl__end { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-soft); font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.tl--without .tl__end { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.tl--with .tl__end { color: var(--purple-300); }
@media (min-width: 860px) { .ba { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* The System: six parts on one drawn line */
.flow { position: relative; display: grid; gap: 44px; padding-left: 36px; }
.flow__rail, .flow__draw { position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; }
.flow__rail { background: var(--line-soft); }
.flow__draw { background: linear-gradient(var(--purple-300), var(--purple-500)); transform-origin: top; box-shadow: 0 0 12px var(--glow); }
.flow__node { position: relative; }
.flow__node::before { content: ''; position: absolute; left: -36px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple-500); box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--glow); }
.section--deep .flow__node::before { box-shadow: 0 0 0 5px var(--bg-deep), 0 0 18px var(--glow); }
.flow__num { font-size: .75rem; letter-spacing: .2em; color: var(--purple-300); }
.flow__title { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; margin: 10px 0 10px; }
.flow__text { font-size: .9375rem; color: var(--text-2); line-height: 1.55; }
@media (min-width: 1000px) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 28px; padding: 44px 0 0; }
  .flow__rail, .flow__draw { left: 0; right: 0; top: 4px; bottom: auto; width: auto; height: 1px; }
  .flow__draw { transform-origin: left; background: linear-gradient(90deg, var(--purple-300), var(--purple-500)); }
  .flow__node::before { left: 0; top: -44px; }
}

/* 8. LANGUAGE SHOWCASE ----------------------------------------------------- */
.lang { overflow: hidden; }
.lang__halo { position: absolute; left: 50%; top: 46%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(143, 22, 234, .22), transparent); pointer-events: none; }
.lang__stage { position: relative; display: none; }
.lang.is-live .lang__stage { display: block; }
.lang.is-live .lang__grid { display: none; }
.lang__hello { position: relative; height: clamp(120px, 21vw, 250px); display: grid; place-items: center; }
.lang__word { grid-area: 1 / 1; font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 9.5rem); line-height: 1.2; white-space: nowrap; color: var(--text-2); opacity: 0; filter: blur(18px); transform: translateY(14px) scale(.98); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.lang__word.is-in { opacity: 1; filter: blur(0); transform: none; }
.lang__word.is-out { opacity: 0; filter: blur(18px); transform: translateY(-14px) scale(1.02); }
.lang__word:lang(ar), .lang__word:lang(ur) { font-family: var(--arabic); font-weight: 400; font-size: clamp(3rem, 11vw, 8rem); }
.lang__word:lang(hi) { font-family: var(--deva); font-weight: 400; font-size: clamp(2.8rem, 10vw, 7rem); }
.lang__word:lang(zh) { font-family: var(--cjk); font-weight: 400; font-size: clamp(3rem, 10.5vw, 7.5rem); }
.lang__word:lang(ru) { font-family: var(--sans); font-weight: 300; font-size: clamp(2.8rem, 10vw, 7rem); letter-spacing: -.02em; }
/* Arabic and English are the standard: brighter, larger, with a purple glow */
.lang__word.is-core { color: var(--white); text-shadow: 0 0 60px rgba(164, 55, 235, .75), 0 0 140px rgba(143, 22, 234, .5); scale: 1.08; }

.bubble { position: relative; max-width: 30em; padding: 14px 18px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 1rem; line-height: 1.55; text-align: start; }
.bubble[dir="rtl"] { border-radius: 16px 16px 4px 16px; line-height: 1.85; }
.bubble--out { background: linear-gradient(160deg, var(--purple-500), var(--purple-600)); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.bubble--out[dir="rtl"], [dir="rtl"] > .bubble--out { border-radius: 16px 16px 16px 4px; }
.bubble__meta { display: block; margin-top: 4px; font-family: var(--sans); font-size: .6875rem; letter-spacing: .04em; color: rgba(255, 255, 255, .92); text-align: end; direction: ltr; }
.lang__reply { min-height: 9.5em; display: grid; place-items: start center; margin-top: clamp(20px, 3vw, 40px); }
.lang__reply .bubble { width: min(100%, 30em); min-height: 5.2em; box-shadow: 0 30px 80px rgba(8, 2, 18, .6); }
.lang__names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 12px; }
.lang__names li { font-size: .9375rem; color: var(--text-3); transition: color .8s var(--ease), text-shadow .8s var(--ease); }
.lang__names li.is-active { color: var(--purple-300); text-shadow: 0 0 22px var(--glow); }
.lang__label { margin-top: 26px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
/* Static grid: shown without JS and for reduced motion */
.lang__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.lang__grid li { background: var(--bg-deep); padding: 34px 12px; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--text-2); font-family: var(--serif); }
.lang__grid li.is-core { color: var(--white); text-shadow: 0 0 40px var(--glow); }
@media (min-width: 760px) { .lang__grid { grid-template-columns: repeat(4, 1fr); } }

/* 9. CALCULATOR + VIDEOS --------------------------------------------------- */
.calc { display: grid; gap: 28px; }
.calc__fields { display: grid; gap: 22px; }
.calc__out { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 120% at 100% 0%, rgba(98, 17, 165, .42), rgba(21, 6, 40, .5) 60%); }
.calc__pre { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--purple-300); }
.calc__num { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.25rem); line-height: 1.05; margin: 18px 0 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__num small { font-size: .42em; letter-spacing: .08em; color: var(--text-2); margin-right: .25em; font-family: var(--sans); }
.calc__post { font-size: 1.125rem; color: var(--text-2); }
.calc__out .note { margin-top: 18px; }
@media (min-width: 900px) { .calc { grid-template-columns: 5fr 6fr; gap: 56px; align-items: stretch; } }

.films { display: grid; gap: 20px; }
.film { position: relative; margin: 0; }
.film__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); border: 1px solid var(--line-soft); }
.film__frame video, .film__ph { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
/* Placeholder until real listing videos are added to /assets/video/ */
.film__ph { background: radial-gradient(90% 70% at 70% 100%, rgba(143, 22, 234, .5), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg-deep)); color: var(--purple-300); }
.film__ph svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.film__soon { position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.film__frame::before, .film__frame::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; height: 7%; background: var(--bg-deep); }
.film__frame::before { top: 0; } .film__frame::after { bottom: 0; }
.film figcaption { margin-top: 14px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
@media (min-width: 860px) {
  .films { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 28px; }
  .film--lead { grid-row: span 2; }
  .film--lead .film__frame { aspect-ratio: auto; height: calc(100% - 34px); min-height: 420px; }
}

/* 10. OFFER, FAQ, TIMELINE, CARDS ------------------------------------------ */
.offer { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg, rgba(98, 17, 165, .3), rgba(21, 6, 40, .4)); }
.offer__step { padding: clamp(32px, 5vw, 64px); }
.offer__step + .offer__step { border-top: 1px solid var(--line); }
.offer__big { font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; }
.offer__big span { font-size: .3em; letter-spacing: .04em; color: var(--purple-300); margin-left: .2em; }
.offer__text { margin-top: 22px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text-2); max-width: 22em; }
.offer__cta { padding: 28px clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
@media (min-width: 800px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__step + .offer__step { border-top: 0; border-left: 1px solid var(--line); }
  .offer__cta { grid-column: 1 / -1; }
}

.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; text-align: left; font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--purple-300); transition: transform .7s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 30px; max-width: 40em; color: var(--text-2); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* How It Works: vertical timeline that draws on scroll */
.steps { position: relative; display: grid; gap: clamp(64px, 10vw, 128px); padding-left: 48px; }
.steps__rail, .steps__draw { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; }
.steps__rail { background: var(--line-soft); }
.steps__draw { background: linear-gradient(var(--purple-300), var(--purple-500)); transform-origin: top; box-shadow: 0 0 14px var(--glow); }
.step { position: relative; }
.step::before { content: ''; position: absolute; left: -48px; top: 10px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--purple-300); background: var(--bg); box-shadow: 0 0 0 6px var(--bg), 0 0 22px var(--glow); }
.step__num { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--purple-300); }
.step__title { margin: 14px 0 16px; }
.step p { color: var(--text-2); max-width: 32em; }
@media (min-width: 900px) { .steps { padding-left: 96px; } .steps__rail, .steps__draw { left: 31px; } .step::before { left: -72px; } }

/* Service rows and small cards */
.rows { border-top: 1px solid var(--line-soft); }
.row { display: grid; gap: 18px; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line-soft); }
.row__num { font-size: .75rem; letter-spacing: .24em; color: var(--purple-300); }
.row dl { display: grid; gap: 22px; }
.row dt { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.row dd { color: var(--text-2); }
@media (min-width: 900px) { .row { grid-template-columns: 80px 1fr 1.25fr; gap: 40px; align-items: start; } .row dl { grid-template-columns: 1fr 1fr; gap: 40px; } }

.cards { display: grid; gap: 20px; }
.card { padding: clamp(28px, 3.4vw, 44px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg, rgba(21, 6, 40, .7), rgba(13, 4, 29, .2)); }
.card .h3 { margin: 12px 0 14px; }
.card p { color: var(--text-2); font-size: 1rem; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; } .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: clamp(40px, 6vw, 96px); }
.prose p + p { margin-top: 1.2em; }
.prose p { color: var(--text-2); max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.scripts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--text-3); }
.scripts .is-core { color: var(--white); text-shadow: 0 0 30px var(--glow); }

.cta-final { text-align: center; overflow: hidden; }
.cta-final__glow { position: absolute; left: 50%; bottom: -70%; width: min(1200px, 150vw); aspect-ratio: 1.4; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(143, 22, 234, .4), transparent); pointer-events: none; }
.cta-final .wrap { position: relative; }
.cta-final .btns { justify-content: center; }
.cta-final .lead { margin-inline: auto; }

/* 11. DASHBOARD MOCKUP ----------------------------------------------------- */
.dash { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--surface), var(--bg-deep)); box-shadow: 0 50px 140px rgba(8, 2, 18, .8), 0 0 120px rgba(98, 17, 165, .22); overflow: hidden; }
.dash__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--line-soft); font-size: .8125rem; color: var(--text-2); }
.dash__tag { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--purple-300); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.dash__grid { display: grid; gap: 1px; background: var(--line-soft); }
.dash__cell { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.dash__k { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.dash__v { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.dash__v small { font-family: var(--sans); font-size: .875rem; color: var(--text-3); margin-left: 6px; }
.bars { display: grid; gap: 14px; margin-top: 20px; }
.bars li { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-2); }
.bars i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--purple-600), var(--purple-400)); width: var(--w); }
.bars b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .dash__grid { grid-template-columns: repeat(3, 1fr); } .dash__cell--wide { grid-column: span 3; } .dash__cell--half { grid-column: span 3; } }
@media (min-width: 1000px) { .dash__grid { grid-template-columns: repeat(6, 1fr); } .dash__cell { grid-column: span 2; } .dash__cell--half { grid-column: span 3; } }

/* 12. CHAT SIMULATION ------------------------------------------------------ */
.sim { display: grid; gap: 40px; align-items: start; }
.sim__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; position: relative; }
.seg { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-soft); border-radius: 99px; font-size: .875rem; color: var(--text-2); transition: border-color .4s, color .4s, background-color .4s; }
.seg:hover { border-color: var(--line); color: var(--white); }
.seg[aria-pressed="true"] { background: var(--purple-500); border-color: var(--purple-500); color: var(--white); }
.sim__more { position: relative; }
.sim__menu { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 24px 60px rgba(8, 2, 18, .7); display: none; }
.sim__menu.is-open { display: grid; }
.sim__menu button { min-height: 44px; padding: 0 12px; text-align: start; border-radius: 6px; color: var(--text-2); }
.sim__menu button:hover, .sim__menu button:focus-visible { background: var(--surface-2); color: var(--white); }
.chat { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-deep); overflow: hidden; box-shadow: 0 50px 140px rgba(8, 2, 18, .8), 0 0 120px rgba(98, 17, 165, .25); max-width: 460px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; border: 1px solid var(--line); }
.chat__mark { width: 15px; }
.chat__name { font-size: .9375rem; font-weight: 500; line-height: 1.2; }
.chat__status { font-size: .75rem; color: var(--purple-300); }
.chat__body { height: 520px; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--purple-600) transparent; }
.chat__body .bubble { max-width: 84%; font-size: .9375rem; animation: pop .7s var(--ease) both; }
.chat__body .bubble--in { align-self: flex-start; }
.chat__body .bubble--out { align-self: flex-end; }
.chat__chip { align-self: center; max-width: 94%; text-align: center; font-size: .75rem; letter-spacing: .04em; color: var(--purple-300); border: 1px solid var(--line); background: rgba(98, 17, 165, .2); border-radius: 99px; padding: 6px 14px; animation: pop .7s var(--ease) both; }
.chat__src { align-self: center; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.typing { align-self: flex-end; display: inline-flex; gap: 5px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-300); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat__foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--text-3); }
.chat__foot button { min-height: 44px; color: var(--purple-300); letter-spacing: .1em; text-transform: uppercase; font-size: .6875rem; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.sim__list { display: grid; gap: 28px; margin-top: 40px; }
.sim__list li { padding-left: 24px; border-left: 1px solid var(--line); }
.sim__list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin-bottom: 6px; }
.hero .sim__list { margin-top: 48px; }
.sim__list span { color: var(--text-2); font-size: 1rem; }
@media (min-width: 940px) { .sim { grid-template-columns: 1fr 460px; gap: 80px; } }

/* 13. FORMS + CONTACT ------------------------------------------------------ */
.form { display: grid; gap: 22px; }
.field label { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.field input { width: 100%; min-height: 56px; padding: 0 18px; font: inherit; font-size: 1.0625rem; color: var(--white); background: rgba(21, 6, 40, .7); border: 1px solid rgba(197, 138, 243, .65); border-radius: var(--radius); transition: border-color .4s, box-shadow .5s; }   /* 3:1 against the page for visibility */
.field input::placeholder { color: rgba(255, 255, 255, .52); }
.field input:hover { border-color: var(--purple-300); }
.field input:focus-visible { outline: none; border-color: var(--purple-300); box-shadow: 0 0 0 3px rgba(164, 55, 235, .3); }
.field input[aria-invalid="true"] { border-color: var(--white); }
.field__err { display: block; min-height: 1.2em; margin-top: 6px; font-size: .8125rem; color: var(--white); }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: 1rem; line-height: 1.5; color: var(--white); padding: 0; }
.form__status:not(:empty) { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(98, 17, 165, .22); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.panel { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg, rgba(21, 6, 40, .8), rgba(13, 4, 29, .3)); }
.contact-list { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line-soft); }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.contact-list a { padding: 8px 0; transition: color .4s; }
.contact-list a:hover { color: var(--purple-300); }

/* 14. FOOTER + STICKY CTA -------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(8, 2, 18, .78); padding: clamp(64px, 8vw, 112px) 0 40px; }
.footer__grid { display: grid; gap: 48px; }
.footer__tag { margin-top: 18px; color: var(--text-2); max-width: 22em; }
.footer h2 { font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer li a { display: inline-block; padding: 9px 0; color: var(--text-2); transition: color .4s; }
.footer li a:hover { color: var(--white); }
.footer__base { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: var(--text-3); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.sticky-cta { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .8s var(--ease); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 16px 50px rgba(8, 2, 18, .8), 0 0 40px rgba(143, 22, 234, .4); }
[data-page="demo"] .sticky-cta { right: 92px; }   /* leaves room for the live chat launcher */
@media (max-width: 767px) { .footer { padding-bottom: 110px; } }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* 15. MOTION STATES -------------------------------------------------------- */
/* "motion" is added in <head> only when the visitor has not asked for reduced motion.
   Elements start hidden and main.js reveals them. If scripts fail, "motion" is removed. */
html.motion [data-reveal] { opacity: 0; transform: translateY(30px); }
html.motion [data-reveal="lines"] { opacity: 1; transform: none; }
html.motion [data-reveal="lines"] .ln > span { transform: translateY(105%); }
html.motion [data-reveal="film"] { opacity: 1; transform: none; }
html.motion [data-reveal="film"] .film__frame { clip-path: inset(46% 0 46% 0); }
html.motion [data-draw] { transform: scale(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
