/* ==========================================================================
   CorexPool — Indigo design system (light + dark). No build step.
   ========================================================================== */

/* ----- Tokens: LIGHT ---------------------------------------------------- */
:root {
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --primary-050: #eef0fe;
  --violet: #7c6cf0;
  --violet-bright: #8b5cf6;
  --blue: #5b8def;

  --deep-900: #1e1b4b;
  --deep-800: #211e5a;
  --deep-700: #312e81;

  --bg: #f5f6fc;
  --bg-alt: #eceefb;
  --surface: #ffffff;
  --surface-2: #f9faff;
  --ink: #1b1f3b;
  --ink-2: #3a3f5c;
  --muted: #5b6079;
  --border: #e4e7f4;
  --white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-brd: rgba(255, 255, 255, 0.72);
  --nav-bg: rgba(245, 246, 252, 0.82);

  --grad: linear-gradient(120deg, #4f46e5 0%, #7c6cf0 55%, #5b8def 100%);
  --grad-deep: linear-gradient(160deg, #312e81 0%, #1e1b4b 55%, #211e5a 120%);
  --grad-text: linear-gradient(100deg, #6366f1 0%, #8b5cf6 50%, #60a5fa 100%);

  --shadow-card: 0 18px 45px -22px rgba(30, 27, 75, 0.4);
  --shadow-soft: 0 12px 30px -20px rgba(30, 27, 75, 0.35);
  --shadow-glow: 0 0 40px -6px rgba(99, 102, 241, 0.5);

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --maxw: 1240px; --nav-h: 76px;
}

/* ----- Tokens: DARK ----------------------------------------------------- */
:root[data-theme="dark"] {
  --primary: #6366f1;
  --primary-600: #7c7ff5;
  --primary-700: #8b8dff;
  --primary-050: #20233f;
  --violet: #8b5cf6;

  --bg: #0e0f24;
  --bg-alt: #141633;
  --surface: #1a1c3a;
  --surface-2: #20233f;
  --ink: #e7e8f5;
  --ink-2: #c3c6e0;
  --muted: #9aa0c4;
  --border: #2a2d55;

  --glass-bg: rgba(26, 28, 58, 0.55);
  --glass-brd: rgba(120, 122, 200, 0.22);
  --nav-bg: rgba(14, 15, 36, 0.82);

  --shadow-card: 0 18px 45px -20px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ----- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(46px, 6vw, 84px); }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack-sm > * + * { margin-top: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow--center::after { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow--light { color: #c3c6ff; }

.h-display { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
.h-section { font-size: clamp(1.85rem, 4vw, 2.9rem); }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ----- Buttons ---------------------------------------------------------- */
.btn { --bh: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding-inline: 26px; font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  border-radius: 100px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(99,102,241,.7); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn--dark { background: var(--deep-800); color: #fff; }
.btn--dark:hover { background: var(--deep-700); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-600); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); background: var(--primary-050); transform: translateY(-3px); }
.btn--sm { --bh: 44px; padding-inline: 18px; font-size: .86rem; }
.btn--lg { --bh: 58px; padding-inline: 32px; font-size: 1rem; }

/* ----- Glass card ------------------------------------------------------- */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-card); border-radius: var(--r-lg); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s, transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.nav.is-stuck { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 30px -18px rgba(30,27,75,.5); border-bottom: 1px solid var(--border); }
.nav--solid { position: sticky; background: var(--nav-bg); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--border); }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: #fff; }
.nav.is-stuck .brand, .nav--solid .brand { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand span { color: var(--primary-700); }
.nav.is-stuck .brand span, .nav--solid .brand span { color: var(--primary); }

/* Real Corex logo image — white on dark, colour on light */
.brand__logo { height: 42px; width: auto; display: block; transition: filter .3s; }
.nav .brand__logo { filter: brightness(0) invert(1); }               /* over dark hero/phero → white */
:root:not([data-theme="dark"]) .nav.is-stuck .brand__logo,
:root:not([data-theme="dark"]) .nav--solid .brand__logo { filter: none; } /* stuck/solid in light → colour */
.footer .brand__logo, .drawer .brand__logo { filter: brightness(0) invert(1); height: 40px; } /* always dark bg → white */

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > li > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.9); transition: color .25s, background .25s; }
.nav.is-stuck .nav__links > li > a, .nav--solid .nav__links > li > a { color: var(--ink-2); }
.nav__links > li > a:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav.is-stuck .nav__links > li > a:hover, .nav--solid .nav__links > li > a:hover { color: var(--primary); background: var(--primary-050); }
.nav__links a.is-active { color: #fff; }
.nav.is-stuck .nav__links a.is-active, .nav--solid .nav__links a.is-active { color: var(--primary); }

.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(560px, 78vw); padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transition: opacity .26s, transform .26s; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-size: .88rem; font-weight: 500; transition: background .2s, color .2s; }
.drop a:hover { background: var(--bg-alt); color: var(--primary); }
.drop a i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--grad); color: #fff; }
.drop a i svg { width: 17px; height: 17px; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.nav.is-stuck .theme-toggle, .nav--solid .theme-toggle { border-color: var(--border); background: var(--surface); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); border-radius: 12px; color: #fff; align-items: center; justify-content: center; }
.nav.is-stuck .nav__burger, .nav--solid .nav__burger { border-color: var(--border); background: var(--surface); color: var(--ink); }
.nav__burger svg { width: 24px; height: 24px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,10,30,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--deep-900); color: #fff; padding: 24px; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__close { width: 44px; height: 44px; border: none; background: rgba(255,255,255,.12); border-radius: 12px; color: #fff; display: grid; place-items: center; }
.drawer__links a { display: block; padding: 13px 8px; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.9); }
.drawer__links a:hover { color: #c3c6ff; }
.drawer__sub { padding-left: 12px; }
.drawer__sub a { font-size: .92rem; font-weight: 400; color: rgba(255,255,255,.7); padding: 9px 8px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15,13,45,.6) 0%, rgba(20,16,60,.42) 40%, rgba(12,10,35,.85) 100%),
  radial-gradient(120% 90% at 15% 20%, rgba(124,108,240,.32), transparent 55%); }

.ocean { position: absolute; inset: 0; background:
  radial-gradient(120% 120% at 20% 15%, #3a2f8a 0%, transparent 55%),
  radial-gradient(120% 120% at 85% 25%, #4338ca 0%, transparent 50%),
  linear-gradient(180deg, #211e5a 0%, #1a1740 55%, #12102e 100%); }
.ocean__caustics { position: absolute; inset: -20%; opacity: .5; mix-blend-mode: screen; background:
  radial-gradient(closest-side, rgba(139,124,246,.4), transparent) 10% 20%/38% 38% no-repeat,
  radial-gradient(closest-side, rgba(91,141,239,.32), transparent) 80% 30%/42% 42% no-repeat,
  radial-gradient(closest-side, rgba(99,102,241,.3), transparent) 50% 75%/50% 50% no-repeat;
  filter: blur(30px); animation: causticsDrift 16s ease-in-out infinite alternate; }
@keyframes causticsDrift { 0%{transform:translate3d(0,0,0) scale(1);} 50%{transform:translate3d(3%,-2%,0) scale(1.08);} 100%{transform:translate3d(-3%,2%,0) scale(1.02);} }
.bubbles { position: absolute; inset: 0; overflow: hidden; }
.bubbles i, .phero__bubbles i { position: absolute; bottom: -60px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(139,124,246,.15) 60%, transparent 70%); box-shadow: 0 0 12px rgba(139,124,246,.5); animation: rise linear infinite; opacity: 0; }
@keyframes rise { 0%{transform:translateY(0) translateX(0) scale(.6); opacity:0;} 10%{opacity:.9;} 90%{opacity:.5;} 100%{transform:translateY(-108vh) translateX(30px) scale(1); opacity:0;} }

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 7px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 500; }
.hero__badge b { display: grid; place-items: center; padding: 4px 10px; border-radius: 100px; background: var(--grad); color: #fff; font-family: var(--font-display); font-size: .72rem; letter-spacing: .04em; }
.hero h1 { margin: 20px 0 0; max-width: 17ch; text-shadow: 0 4px 40px rgba(10,10,35,.45); }
.hero__sub { margin-top: 20px; max-width: 54ch; color: rgba(240,240,255,.9); font-size: clamp(1rem,1.5vw,1.18rem); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { margin-top: 50px; display: flex; flex-wrap: wrap; gap: clamp(24px,5vw,56px); }
.hero__stat b { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 800; display: block; line-height: 1; }
.hero__stat span { font-size: .8rem; letter-spacing: .04em; color: rgba(240,240,255,.75); text-transform: uppercase; }

.hero__slides { position: relative; }
.hero__slide { display: none; }
.hero__slide.is-active { display: block; }
.hero__dots { position: absolute; left: clamp(20px,5vw,40px); bottom: 30px; z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 5px; border: none; border-radius: 100px; background: rgba(255,255,255,.3); transition: background .3s, width .3s; padding: 0; }
.hero__dots button.is-active { width: 52px; background: var(--grad); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__scroll span { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 100px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--violet); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{opacity:0; transform:translate(-50%,0);} 50%{opacity:1; transform:translate(-50%,12px);} }

.wave-sep { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave-sep svg { width: 100%; height: clamp(50px,7vw,110px); }
.wave-sep path { fill: var(--bg); }

/* ----- Cinematic full-screen video hero ----- */
.hero--cinematic .hero__inner { display: flex; align-items: center; justify-content: center; min-height: 100svh; }
.hero__center { text-align: center; max-width: 840px; padding: 40px 24px; }
.hero__logo { height: clamp(54px, 8vw, 86px); width: auto; margin: 0 auto 20px; filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(8,6,24,.6)); }
.hero__tag { display: inline-block; font-family: var(--font-display); font-size: clamp(.72rem,1.4vw,.84rem); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 8px; text-shadow: 0 2px 12px rgba(8,6,24,.7); }
.hero--cinematic h1 { font-size: clamp(2.8rem, 9vw, 6.2rem); font-weight: 800; letter-spacing: -.03em; line-height: .98; text-shadow: 0 2px 24px rgba(8,6,24,.85), 0 10px 60px rgba(8,6,24,.55); }
.hero--cinematic .hero__actions { justify-content: center; margin-top: 32px; }
.hero--cinematic .hero__dots { left: 50%; transform: translateX(-50%); }
/* keep the video visible, but darken the centre enough for legible text on any frame */
.hero--cinematic .hero__bg::after { background:
  radial-gradient(120% 95% at 50% 46%, rgba(8,6,24,.32), rgba(8,6,24,.72) 100%),
  linear-gradient(180deg, rgba(8,6,24,.55) 0%, rgba(8,6,24,.12) 24%, rgba(8,6,24,.12) 52%, rgba(8,6,24,.92) 100%); }

/* Nav hidden over the cinematic hero, slides in on scroll */
.nav.nav--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* ----- Staggered panel video showcase ----- */
.vshow__stage { position: relative; width: 100%; aspect-ratio: 16 / 6.6; margin-top: 44px; }
.vshow__video { width: 100%; height: 100%; object-fit: cover; display: block;
  --vp: linear-gradient(#000, #000);
  -webkit-mask-image: var(--vp), var(--vp), var(--vp), var(--vp), var(--vp);
          mask-image: var(--vp), var(--vp), var(--vp), var(--vp), var(--vp);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 18% 62%, 18% 84%, 18% 100%, 18% 80%, 18% 60%;
          mask-size: 18% 62%, 18% 84%, 18% 100%, 18% 80%, 18% 60%;
  -webkit-mask-position: 0% 28%, 25% 0%, 50% 50%, 75% 100%, 100% 22%;
          mask-position: 0% 28%, 25% 0%, 50% 50%, 75% 100%, 100% 22%; }
.vshow__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 66px; height: 66px; border-radius: 50%; border: none; background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  color: var(--deep-800); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(8,6,24,.5); transition: transform .3s, background .3s; }
.vshow__play:hover { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.vshow__play svg { width: 26px; height: 26px; }
.vshow__play .i-pause { display: none; }
.vshow__play.is-playing .i-pause { display: block; }
.vshow__play.is-playing .i-play { display: none; }
.vshow__deco { position: absolute; right: 0; top: 8%; width: 140px; height: 84%; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 10px, var(--border) 10px 11px); border-radius: 40%; }
@media (max-width: 680px) {
  .vshow__stage { aspect-ratio: 16 / 11; }
  .vshow__video { -webkit-mask-image: none; mask-image: none; border-radius: var(--r-lg); }
}

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.phero { position: relative; padding-top: calc(var(--nav-h) + 66px); padding-bottom: 78px; background: var(--grad-deep); color: #fff; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 85% 15%, rgba(124,108,240,.3), transparent 60%); }
.phero__bubbles { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.phero .container { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(2.1rem,4.6vw,3.4rem); margin-top: 12px; }
.phero p { margin-top: 14px; max-width: 62ch; color: rgba(240,240,255,.85); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: rgba(240,240,255,.7); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ==========================================================================
   CREDENTIALS STRIP / marquee
   ========================================================================== */
.creds { background: var(--surface); border-block: 1px solid var(--border); }
.creds__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px,4vw,52px); padding: 22px 0; }
.cred { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.cred svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.cred b { color: var(--ink); }

.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); }
.marquee__track { display: flex; gap: 56px; padding: 20px 0; width: max-content; animation: scrollX 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); white-space: nowrap; }
.marquee__track span svg { width: 20px; height: 20px; color: var(--primary); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ==========================================================================
   CATEGORY TILES (image)
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 48px; }
.cat-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; min-height: 250px; box-shadow: var(--shadow-soft); background: var(--deep-800); isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s; z-index: -1; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,50,.15) 0%, rgba(20,16,50,.88) 100%); z-index: -1; }
.cat-tile:hover img { transform: scale(1.1); opacity: .7; }
.cat-tile__body { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; }
.cat-tile__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); display: grid; place-items: center; margin-bottom: 14px; }
.cat-tile__ico svg { width: 24px; height: 24px; }
.cat-tile h3 { font-size: 1.2rem; }
.cat-tile__more { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: #c3c6ff; transition: gap .3s; }
.cat-tile:hover .cat-tile__more { gap: 12px; }
.cat-tile__more svg { width: 15px; height: 15px; }

/* icon category cards (no image) */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 48px; }
.pcard { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s; overflow: hidden; }
.pcard::before { content: ""; position: absolute; inset: 0; background: var(--grad-deep); opacity: 0; transition: opacity .4s; z-index: 0; }
.pcard > * { position: relative; z-index: 1; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: transparent; }
.pcard:hover::before { opacity: 1; }
.pcard:hover .pcard__title, .pcard:hover .pcard__desc { color: #fff; }
.pcard:hover .pcard__more { color: #c3c6ff; }
.pcard__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--primary-050); color: var(--primary); margin-bottom: 18px; transition: background .4s, color .4s, transform .4s; }
.pcard:hover .pcard__ico { background: var(--grad); color: #fff; transform: scale(1.06) rotate(-4deg); }
.pcard__ico svg { width: 28px; height: 28px; }
.pcard__title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); transition: color .4s; }
.pcard__desc { margin-top: 7px; font-size: .9rem; color: var(--muted); transition: color .4s; }
.pcard__more { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--primary); transition: color .4s, gap .3s; }
.pcard:hover .pcard__more { gap: 12px; }
.pcard__more svg { width: 15px; height: 15px; }

/* ==========================================================================
   PRODUCT CARDS (image + specs) — listing / featured
   ========================================================================== */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 44px; }
.prodcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s; }
.prodcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: var(--primary); }
.prodcard__media { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 38%, #ffffff, #eceef6); display: grid; place-items: center; overflow: hidden; }
.prodcard__media img { width: 78%; height: 78%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.8,.2,1); mix-blend-mode: multiply; }
.prodcard:hover .prodcard__media img { transform: scale(1.08); }
.prodcard__tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 100px; background: var(--primary-050); color: var(--primary); font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.prodcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prodcard__body h3 { font-size: 1.06rem; }
.prodcard__spec { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.prodcard__spec span { font-size: .74rem; padding: 4px 9px; border-radius: 8px; background: var(--bg-alt); color: var(--muted); }
.prodcard__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.prodcard__foot a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--primary); transition: gap .3s; }
.prodcard__foot a:hover { gap: 11px; }
.prodcard__foot svg { width: 15px; height: 15px; }

/* slider (horizontal) */
.slider { margin-top: 44px; position: relative; }
.slider__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; flex: 0 0 clamp(250px, 32vw, 330px); }
.slider__nav { display: flex; gap: 10px; }
.slider__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s, border-color .3s; }
.slider__btn:hover { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.05); }
.slider__btn svg { width: 22px; height: 22px; }

/* filter chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip-btn { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-family: var(--font-display); font-weight: 500; font-size: .88rem; transition: all .25s; }
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

/* ==========================================================================
   SPLIT / feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.split--rev .split__media { order: 2; }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); min-height: 400px; background: var(--grad-deep); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; right: -16px; bottom: -20px; padding: 20px 24px; border-radius: var(--r-md); background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-card); }
.media-badge b { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; color: #c3c6ff; }
.media-badge span { font-size: .8rem; color: rgba(240,240,255,.8); }
.media-float { position: absolute; left: -18px; top: 26px; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: 100px; background: var(--surface); box-shadow: var(--shadow-card); font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); }
.media-float i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; }
.media-float i svg { width: 19px; height: 19px; }

.feat-list { margin-top: 28px; display: grid; gap: 16px; }
.feat-item { display: flex; gap: 15px; }
.feat-item i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-050); color: var(--primary); }
.feat-item i svg { width: 23px; height: 23px; }
.feat-item h4 { font-size: 1.05rem; margin-bottom: 3px; }
.feat-item p { font-size: .9rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-soft); }
.chip b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .9rem; }

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.band { position: relative; background: var(--grad-deep); color: #fff; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 90% at 85% 10%, rgba(124,108,240,.28), transparent 60%),
  radial-gradient(50% 80% at 10% 90%, rgba(91,141,239,.22), transparent 55%); }
.band .container { position: relative; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); display: block; line-height: 1; }
.stat span { margin-top: 8px; display: block; font-size: .88rem; letter-spacing: .03em; color: rgba(240,240,255,.78); }

/* ==========================================================================
   PROCESS / steps + timeline
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { position: relative; padding: 28px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
.step h4 { margin: 12px 0 7px; font-size: 1.1rem; }
.step p { font-size: .89rem; color: var(--muted); }
.step__ico { position: absolute; top: 24px; right: 22px; color: var(--primary); }
.step__ico svg { width: 25px; height: 25px; }

.timeline { margin-top: 48px; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--violet)); }
.tl-item { position: relative; padding-left: 58px; }
.tl-item__dot { position: absolute; left: 8px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); border: 4px solid var(--bg); }
.tl-item b { font-family: var(--font-display); color: var(--primary); font-size: 1.1rem; }
.tl-item h4 { margin: 2px 0 4px; }
.tl-item p { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   GALLERY / lightbox
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; margin-top: 48px; }
.gitem { position: relative; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-soft); background: var(--deep-800); cursor: pointer; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,13,45,.65)); opacity: 0; transition: opacity .4s; }
.gitem__cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.gitem:hover img { transform: scale(1.1); }
.gitem:hover::after, .gitem:hover .gitem__cap { opacity: 1; transform: translateY(0); }
.gitem--tall { grid-row: span 2; }
.gitem--wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 30px; background: rgba(10,8,30,.9); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox__close svg { width: 24px; height: 24px; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.pd-gallery__main { position: relative; aspect-ratio: 1/1; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 38%, #ffffff, #eceef6); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.pd-gallery__main img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.pd-thumb { width: 78px; height: 78px; border-radius: 12px; border: 2px solid var(--border); background: #f4f5fb; display: grid; place-items: center; overflow: hidden; padding: 6px; transition: border-color .25s; }
.pd-thumb.is-active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-cat { color: var(--primary); font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.pd-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 8px 0 14px; }
.pd-desc { color: var(--muted); }
.pd-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.pd-features { margin-top: 26px; display: grid; gap: 12px; }
.pd-features li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.pd-features li svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 1px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 26px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; font-size: .92rem; }
.spec-table th { background: var(--bg-alt); color: var(--ink); font-family: var(--font-display); font-weight: 600; width: 42%; }
.spec-table tr + tr { border-top: 1px solid var(--border); }
.spec-table td { color: var(--muted); }

/* ==========================================================================
   PROJECTS / blog / industries cards
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 44px; }
.icard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s; }
.icard:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: var(--primary); }
.icard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--deep-800); }
.icard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.icard:hover .icard__media img { transform: scale(1.07); }
.icard__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.icard__meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.icard__meta .tag { padding: 4px 10px; border-radius: 100px; background: var(--primary-050); color: var(--primary); font-weight: 600; }
.icard__body h3 { font-size: 1.14rem; }
.icard__body p { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.icard__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--primary); transition: gap .3s; }
.icard:hover .icard__more { gap: 12px; }
.icard__more svg { width: 15px; height: 15px; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 44px; }
.ind-card { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 26px; color: #fff; box-shadow: var(--shadow-soft); background: var(--deep-800); isolation: isolate; }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -1; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ind-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,50,.2), rgba(20,16,50,.9)); z-index: -1; }
.ind-card:hover img { transform: scale(1.08); }
.ind-card h3 { font-size: 1.3rem; }
.ind-card p { margin-top: 8px; font-size: .9rem; color: rgba(240,240,255,.85); }
.ind-card__more { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; color: #c3c6ff; font-family: var(--font-display); font-weight: 600; font-size: .84rem; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.tcard { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.tcard__stars { display: flex; gap: 3px; color: #f6b73c; margin-bottom: 14px; }
.tcard__stars svg { width: 17px; height: 17px; }
.tcard p { font-size: .98rem; color: var(--ink-2); }
.tcard__who { margin-top: 20px; display: flex; align-items: center; gap: 13px; }
.tcard__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tcard__who b { font-family: var(--font-display); font-size: .95rem; display: block; }
.tcard__who span { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { margin-top: 40px; display: grid; gap: 14px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.faq-q svg { width: 22px; height: 22px; color: var(--primary); flex: none; transition: transform .3s; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(38px, 5.5vw, 72px); background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-card); }
.cta::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(50% 80% at 90% 20%, rgba(124,108,240,.32), transparent 60%),
  radial-gradient(40% 70% at 5% 90%, rgba(91,141,239,.26), transparent 55%); }
.cta__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 20ch; }
.cta p { margin-top: 12px; color: rgba(240,240,255,.85); max-width: 48ch; }

/* ==========================================================================
   FORMS / contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 16px; margin-top: 30px; }
.cinfo { display: flex; gap: 15px; align-items: flex-start; }
.cinfo i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff; }
.cinfo i svg { width: 23px; height: 23px; }
.cinfo b { font-family: var(--font-display); display: block; color: var(--ink); }
.cinfo span { color: var(--muted); font-size: .93rem; }

.form { padding: clamp(22px, 3.5vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .86rem; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: .95rem; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.16); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form__ok { display: none; margin-top: 15px; padding: 13px 17px; border-radius: 12px; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.4); color: var(--primary); font-weight: 500; }
.form__ok.is-show { display: block; }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin-top: 44px; }
.office { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.office__flag { font-size: 1.6rem; }
.office h4 { margin: 10px 0 8px; font-size: 1.08rem; }
.office p { font-size: .9rem; color: var(--muted); }
.office a { color: var(--primary); }
.map-wrap { margin-top: 30px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(.9); }

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-top: 44px; }
.dl-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); transition: transform .3s, box-shadow .3s, border-color .3s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--primary); }
.dl-card i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-050); color: var(--primary); }
.dl-card i svg { width: 26px; height: 26px; }
.dl-card b { font-family: var(--font-display); display: block; }
.dl-card span { font-size: .84rem; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--deep-900); color: rgba(240,240,255,.72); padding-top: clamp(56px, 7vw, 90px); }
:root[data-theme="dark"] .footer { background: #08091c; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 38px; }
.footer h5 { color: #fff; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: rgba(240,240,255,.72); font-size: .92rem; transition: color .25s; }
.footer a:hover { color: #c3c6ff; }
.footer__col ul { display: grid; gap: 11px; }
.footer__brand p { margin: 16px 0; font-size: .93rem; max-width: 34ch; }
.footer__social { display: flex; gap: 11px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); color: rgba(240,240,255,.8); transition: background .3s, color .3s, transform .3s; }
.footer__social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bar { margin-top: clamp(44px, 6vw, 68px); padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .84rem; }
.footer__newsletter { display: flex; gap: 10px; margin-top: 14px; }
.footer__newsletter input { flex: 1; padding: 12px 15px; border-radius: 100px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; }
.footer__newsletter input::placeholder { color: rgba(240,240,255,.5); }
.footer__newsletter button { flex: none; width: 48px; border-radius: 50%; border: none; background: var(--grad); color: #fff; display: grid; place-items: center; }
.footer__newsletter button svg { width: 19px; height: 19px; }

/* ==========================================================================
   REVEAL / back to top
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.totop { position: fixed; right: 20px; bottom: 84px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 22px; height: 22px; }

/* Floating WhatsApp button (legacy anchor — now the chat launcher below is used) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 91; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 16px 40px -8px rgba(37,211,102,.75); }
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: 1; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float__pulse { animation: none; display: none; } }

/* ==========================================================================
   CHAT WIDGET — "Corex Assistant" (in-page, opens on click, no new tab)
   ========================================================================== */
.cx-launcher { position: fixed; right: 14px; bottom: 14px; z-index: 95; width: 76px; height: 76px; border-radius: 50%;
  background: transparent; color: #fff; border: none; display: grid; place-items: center; cursor: pointer; overflow: visible;
  box-shadow: none; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .3s; }
.cx-launcher:hover { transform: scale(1.06) translateY(-2px); }
.cx-launcher:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.cx-launcher .i-chat { width: 76px; height: 76px; position: relative; z-index: 2; filter: drop-shadow(0 10px 18px rgba(20,80,200,.42)); }
.cx-launcher .i-close { width: 26px; height: 26px; position: relative; z-index: 2; display: none; }
.cx-launcher__pulse { position: absolute; inset: 10px; border-radius: 50%; background: #2F7CFF; z-index: 1; animation: waPulse 2.6s ease-out infinite; }
.cx-launcher.is-open { background: var(--grad); box-shadow: 0 14px 34px -8px rgba(79,70,229,.55); }
.cx-launcher.is-open .cx-launcher__pulse { display: none; }
.cx-launcher.is-open .i-chat { display: none; }
.cx-launcher.is-open .i-close { display: block; }
.cx-launcher .cx-eye { transform-box: fill-box; transform-origin: center; animation: cx-eye-blink 5.4s ease-in-out infinite; }
.cx-launcher.is-open .cx-eye { animation: none; }
@keyframes cx-eye-blink {
  0%, 86%, 100% { transform: scaleY(1); }
  88%, 89.4% { transform: scaleY(.08); }
  90.8% { transform: scaleY(1); }
  92.4%, 93.8% { transform: scaleY(.08); }
  95.4% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cx-launcher__pulse { display: none; }
  .cx-launcher .cx-eye { animation: none; }
}

.cx-panel { position: fixed; right: 20px; bottom: 102px; z-index: 96; width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100svh - 120px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(10,10,40,.5); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
  transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; }
.cx-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.cx-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--grad-deep); color: #fff; }
.cx-head__ava { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.cx-head__ava svg { width: 24px; height: 24px; }
.cx-head b { font-family: var(--font-display); font-size: 1.02rem; display: block; line-height: 1.2; }
.cx-head span { font-size: .78rem; color: rgba(240,240,255,.8); display: inline-flex; align-items: center; gap: 6px; }
.cx-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.cx-head__x { margin-left: auto; width: 34px; height: 34px; border: none; background: rgba(255,255,255,.12); color: #fff; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.cx-head__x svg { width: 20px; height: 20px; }

.cx-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.cx-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.cx-msg a { color: var(--primary); font-weight: 600; }
.cx-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--ink); }
.cx-msg--user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.cx-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.cx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cxBlink 1.2s infinite; }
.cx-typing i:nth-child(2) { animation-delay: .2s; } .cx-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes cxBlink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.cx-sugs { background: var(--bg); }
.cx-sugs.is-empty { display: none; }
.cx-sugs__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0 8px; padding: 0 8px; border: none; background: transparent; color: var(--muted); font: 600 .75rem var(--font-display); cursor: pointer; }
.cx-sugs__toggle:hover, .cx-sugs__toggle:focus-visible { color: var(--primary); }
.cx-sugs__chev { width: 16px; height: 16px; transition: transform .2s ease; }
.cx-sugs.is-collapsed .cx-sugs__chev { transform: rotate(-90deg); }
.cx-sugs.is-collapsed .cx-chips { display: none; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; background: var(--bg); }
.cx-chip { padding: 8px 13px; min-height: 36px; border-radius: 100px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font: 500 .82rem var(--font-display); cursor: pointer; transition: background .2s, color .2s; }
.cx-chip:hover { background: var(--primary); color: #fff; }
.cx-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 12px 8px; padding: 10px 14px; border: none; border-radius: 12px; background: #25d366; color: #fff; font: 600 .88rem var(--font-display); cursor: pointer; box-shadow: 0 8px 18px -8px rgba(37,211,102,.7); }
.cx-wa:hover { background: #1ebe5d; }
.cx-wa:focus-visible { outline: 3px solid #128c7e; outline-offset: 2px; }
.cx-wa svg { width: 20px; height: 20px; flex: none; }

.cx-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); align-items: center; }
.cx-foot input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; }
.cx-foot input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.cx-foot button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cx-foot button svg { width: 20px; height: 20px; }
.cx-foot .cx-voice { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }
.cx-foot .cx-voice:hover { border-color: var(--primary); color: var(--primary); }
.cx-foot .cx-voice.is-on { background: #ef4444; color: #fff; border-color: #ef4444; }
.cx-foot .cx-voice.is-playing { background: var(--primary); color: #fff; border-color: var(--primary); }
.cx-foot .cx-voice.is-hidden { display: none; }
.cx-powered { text-align: center; font-size: .68rem; color: var(--muted); padding: 0 0 8px; background: var(--surface); }

.specify { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding: 18px 0; }
.specify span { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specify b { color: var(--ink); font-weight: 700; }

.vband { position: relative; min-height: min(72vh, 620px); display: grid; place-items: center; overflow: hidden; color: #fff; }
.vband video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vband__veil { position: absolute; inset: 0; background:
  radial-gradient(90% 80% at 50% 40%, rgba(30,27,75,.28), rgba(15,14,40,.78) 100%),
  linear-gradient(180deg, rgba(15,14,40,.45) 0%, rgba(15,14,40,.2) 40%, rgba(15,14,40,.82) 100%); }
.vband__inner { position: relative; z-index: 1; text-align: center; padding: 88px 24px; max-width: 820px; }
.vband .eyebrow { color: rgba(255,255,255,.82); }
.vband h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-shadow: 0 8px 40px rgba(8,6,24,.55); margin-top: 8px; }
.vband p { margin: 16px auto 0; max-width: 46ch; color: rgba(240,240,255,.88); font-size: 1.05rem; }
.vband .hero__actions { justify-content: center; margin-top: 28px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.quote p { font-size: 1.02rem; line-height: 1.65; color: var(--ink); flex: 1; }
.quote footer { margin-top: 20px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.quote small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; font-size: .82rem; }
.quote-note { text-align: center; margin-top: 18px; font-size: .82rem; color: var(--muted); }

@media (max-width: 480px) {
  .cx-panel { right: 8px; left: 8px; width: auto; bottom: 96px; height: calc(100svh - 120px); }
  .cx-launcher { width: 68px; height: 68px; right: 10px; }
  .cx-launcher .i-chat { width: 68px; height: 68px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 900px) { .hero__slides { max-width: 760px; } }
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: grid; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .media-badge { right: 12px; bottom: -16px; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .field--row { grid-template-columns: 1fr; }
  .drop { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero__stats { gap: 22px; } .footer__grid { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: repeat(2, 1fr); } }

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