/* ═══════════════════════════════════════════════════════════
   GLOBALCAP SRL — "Command Deck" design system
   Deep-navy canvas · aurora light · glass surfaces · console
   Brand: Navy #0A1F44 · Teal #0097A7 · Montserrat
   ═══════════════════════════════════════════════════════════ */

:root {
  /* canvas */
  --ink: #050E22;
  --ink-2: #04091A;
  --navy: #0A1F44;
  --navy-2: #0E2A5C;
  /* brand accents */
  --teal: #0097A7;
  --cyan: #00C6DB;
  /* text on dark */
  --text: #E8EEF8;
  --muted: #8A97B0;
  /* light sections */
  --paper: #F7F9FC;
  --paper-2: #FFFFFF;
  --gray: #5D6B84;
  --soft: #E3E8F0;
  /* structure */
  --line: rgba(148, 172, 210, .14);
  --glass: rgba(13, 30, 62, .52);
  --font: 'Montserrat', -apple-system, sans-serif;
  --font-heading: 'HelveticaNowDisplay-Medium', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'HelveticaNowDisplayW01-Rg', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1200px, 92%); margin-inline: auto; }

::selection { background: var(--teal); color: #fff; }

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

/* ── Type primitives ───────────────────────────── */
.eyebrow {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.eyebrow--teal { color: var(--cyan); }

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.025em;
  color: var(--text); max-width: 22ch;
}
.section__title--light { color: var(--text); }

.section__sub {
  color: var(--muted); font-size: 1.04rem;
  margin-top: 1.15rem; max-width: 58ch; font-weight: 400;
}
.section__sub--light { color: var(--muted); }

.section { padding: clamp(5.5rem, 9vw, 9rem) 0; position: relative; }
.section__head { margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }

/* light sections override */
.about .section__title, .process .section__title { color: var(--navy); }
.about .section__sub, .process .section__sub { color: var(--gray); }
.about .eyebrow, .process .eyebrow { color: var(--teal); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font); font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  padding: .9rem 1.9rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--teal {
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 32px rgba(0, 170, 190, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--teal:hover { box-shadow: 0 16px 44px rgba(0, 190, 215, .5), inset 0 1px 0 rgba(255,255,255,.25); }

.btn--navy { background: var(--navy); color: #fff; border-color: rgba(255,255,255,.12); }
.btn--navy:hover { background: var(--navy-2); }

.btn--ghost {
  border-color: var(--line); color: var(--text);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

.btn--wa { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn--wa:hover { background: rgba(255,255,255,.16); border-color: #fff; }

.btn--lg { padding: 1.1rem 2.4rem; font-size: .98rem; }
.btn--sm { padding: .6rem 1.3rem; font-size: .82rem; }
.btn--full { width: 100%; }

.btn--lg.btn--teal::after, .btn--lg.btn--white::after {
  content: '→'; display: inline-block; transition: transform .35s var(--ease);
}
.btn--lg.btn--teal:hover::after, .btn--lg.btn--white:hover::after { transform: translateX(5px); }

/* ── Preloader ─────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  width: 104px; height: auto;
  opacity: 0; transform: scale(.84);
  animation: plMark 1s var(--ease) forwards;
  filter: drop-shadow(0 0 34px rgba(0, 198, 219, .4));
}
@keyframes plMark { to { opacity: 1; transform: scale(1); } }
.preloader__word {
  font-weight: 700; letter-spacing: .46em; font-size: .82rem; color: var(--text);
  opacity: 0; animation: plFade .6s ease .7s forwards;
}
.preloader__word em { font-style: normal; color: var(--cyan); }
@keyframes plFade { to { opacity: 1; } }

/* ── Scroll progress ───────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  z-index: 999;
}

/* ── Nav — Mainframe-style minimal ─────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .3s, box-shadow .3s;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 16px 20px;
}
@media (min-width: 640px) { .nav__inner { padding: 20px 32px; } }
.nav.is-scrolled {
  background: rgba(5, 14, 34, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 172, 210, .12);
}

.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__mark { width: 34px; height: auto; flex-shrink: 0; }
.nav__mark--light { display: none; }
.nav.is-scrolled .nav__mark--dark { display: none; }
.nav.is-scrolled .nav__mark--light { display: block; }
.nav__word {
  font-family: var(--font-heading);
  font-size: 21px; letter-spacing: -.02em; color: var(--navy); font-weight: 500;
  line-height: 1;
  transition: color .3s;
}
@media (min-width: 640px) { .nav__word { font-size: 26px; } }
.nav__word sup { font-size: .45em; }
.nav.is-scrolled .nav__word { color: #fff; }

.nav__links { display: none; }
@media (min-width: 900px) {
  .nav__links { display: flex; align-items: baseline; }
}
.nav__links a {
  font-family: var(--font-body);
  text-decoration: none; color: var(--navy); font-size: 23px; font-weight: 400;
  transition: opacity .2s, color .3s;
}
.nav__links a:hover, .nav__links a.is-active { opacity: .6; }
.nav__comma { font-size: 23px; color: var(--navy); white-space: pre; transition: color .3s; }
.nav.is-scrolled .nav__links a, .nav.is-scrolled .nav__comma { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.nav__cta {
  display: none;
  font-family: var(--font-body);
  font-size: 23px; color: var(--navy); font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--teal);
  transition: opacity .2s, color .3s;
}
@media (min-width: 900px) { .nav__cta { display: inline; } }
.nav__cta:hover { opacity: .6; }
.nav.is-scrolled .nav__cta { color: #fff; }

.lang-toggle {
  display: inline-flex; border: 1px solid rgba(10, 31, 68, .22); border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .55);
  transition: border-color .3s, background .3s;
}
.lang-toggle__btn {
  background: transparent; border: 0; padding: .4rem .7rem;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(10, 31, 68, .6); cursor: pointer; transition: background .25s, color .25s;
}
.lang-toggle__btn.is-active { background: var(--navy); color: #fff; }
.nav.is-scrolled .lang-toggle { border-color: rgba(148, 172, 210, .3); background: rgba(255, 255, 255, .06); }
.nav.is-scrolled .lang-toggle__btn { color: rgba(232, 238, 248, .6); }
.nav.is-scrolled .lang-toggle__btn.is-active { background: linear-gradient(120deg, var(--teal), var(--cyan)); color: #fff; }

.nav__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .55rem;
}
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav.is-scrolled .nav__burger span { background: #fff; }
.nav__burger.is-open span { background: var(--navy) !important; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 880;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  flex-direction: column; padding: 0 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s, visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 32px; text-align: left; }
.mobile-menu__links a {
  font-family: var(--font-body);
  text-decoration: none; color: #000; font-size: 32px; font-weight: 500;
}
.mobile-menu__cta { text-decoration: underline !important; text-underline-offset: 2px; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ── Shared keyframes ──────────────────────────── */
@keyframes auroraDrift { to { transform: translate(90px, 60px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* film grain for key dark sections */
.grain-surface::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Hero video (mouse-scrub) ──────────────────── */
.vh-video {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
/* brand veil: cools the video toward navy + melts the hero into the dark canvas */
.vh-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.vh-veil::before {
  content: ''; position: absolute; inset: 0;
  background: var(--navy);
  opacity: .22;
  mix-blend-mode: color;
}
.vh-veil::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 14, 34, .16) 0%,
    rgba(5, 14, 34, .04) 30%,
    rgba(5, 14, 34, .10) 62%,
    rgba(5, 14, 34, .82) 90%,
    var(--ink) 100%);
}
main { position: relative; z-index: 1; }
main > .section, main > .marquee, main > .ctaband { background-clip: padding-box; }

.vh {
  position: relative; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 20px 48px;
  overflow: hidden;
}
@media (min-width: 640px) { .vh { padding: 0 32px 48px; } }
@media (min-width: 768px) { .vh { justify-content: center; padding-bottom: 0; padding-left: 40px; padding-right: 40px; } }

.vh__content { max-width: 576px; position: relative; z-index: 10; }

.vh__intro {
  pointer-events: none; user-select: none; -webkit-user-select: none;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: clamp(18px, 4vw, 26px); line-height: 1.3; font-weight: 400;
  color: var(--navy);
  filter: blur(4px);
}
@media (min-width: 640px) { .vh__intro { margin-bottom: 24px; } }

.vh__type {
  color: var(--navy); margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: clamp(18px, 4vw, 26px); line-height: 1.35; font-weight: 400;
  min-height: 54px;
}
@media (min-width: 640px) { .vh__type { margin-bottom: 24px; } }
.vh__caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--teal); vertical-align: middle; margin-left: 2px;
  animation: vhBlink 1s step-end infinite;
}
@keyframes vhBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.vh__pills {
  display: flex; flex-wrap: wrap; row-gap: 4px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.vh__pills.in { opacity: 1; transform: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy);
  border: 1px solid rgba(10, 31, 68, .12); border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 400;
  padding: .3em 16px; margin: 0 .2em .4em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
@media (min-width: 640px) { .pill { font-size: 15px; padding: .3em 20px; } }
.pill:hover { background: var(--navy); color: #fff; }

.pill--outline {
  color: #fff; background: transparent; border-color: #fff;
  gap: 8px;
}
@media (min-width: 640px) { .pill--outline { gap: 12px; } }
.pill--outline u { text-underline-offset: 1px; text-decoration-color: var(--cyan); }
.pill--outline:hover { background: #fff; color: var(--navy); }
.pill--outline svg { width: 12px; height: 12px; flex-shrink: 0; }

/* mobile: content sits over the dark bottom fade — flip to light text */
@media (max-width: 767px) {
  .vh__intro, .vh__type { color: #E8EEF8; }
  .vh__caret { background: var(--cyan); }
  .pill { border-color: transparent; }
}

/* cursor spotlight (injected by JS, dark sections) */
.spotlight {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%),
              rgba(0, 198, 219, .07), transparent 65%);
  mix-blend-mode: screen;
}

/* ── Marquee — giant outlined type ─────────────── */
.marquee { background: var(--ink); overflow: hidden; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.marquee__track {
  display: flex; align-items: center; gap: 3.2rem; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(168, 190, 220, .3);
}
.marquee__track i { color: var(--cyan); font-style: normal; font-size: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Services — glass bento ────────────────────── */
.services { background: var(--ink); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.svc-card {
  position: relative; padding: 2rem 1.8rem;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, background .3s, box-shadow .45s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 198, 219, .45);
  background: rgba(0, 151, 167, .06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.svc-card__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(0, 198, 219, .1);
  border: 1px solid rgba(0, 198, 219, .2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem;
  transition: background .3s, transform .45s var(--ease);
}
.svc-card:hover .svc-card__icon { background: linear-gradient(120deg, var(--teal), var(--cyan)); transform: rotate(-6deg) scale(1.05); }
.svc-card__icon svg { width: 25px; height: 25px; fill: none; stroke: var(--cyan); stroke-width: 1.8; transition: stroke .3s; }
.svc-card:hover .svc-card__icon svg { stroke: #fff; }

.svc-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.svc-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

.svc-card__num {
  position: absolute; right: 1.3rem; top: 1.15rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  color: rgba(148, 172, 210, .4);
  font-variant-numeric: tabular-nums;
}

/* featured AI card — 2×2 in the bento */
.svc-card--featured {
  grid-column: 1 / 3; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.6rem 2.4rem;
  background:
    radial-gradient(560px 340px at 85% -10%, rgba(0, 198, 219, .22), transparent 60%),
    rgba(255, 255, 255, .03);
}
.svc-card--featured::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(0, 198, 219, .5), rgba(0, 198, 219, .06) 45%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.svc-card--featured h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.svc-card--featured p { font-size: .95rem; max-width: 46ch; }
.svc-card--featured .svc-card__icon { width: 58px; height: 58px; margin-bottom: auto; }
.svc-card--featured:hover { transform: translateY(-4px); }
.svc-card__badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 198, 219, .4); border-radius: 999px;
  background: rgba(0, 198, 219, .08);
  padding: .3rem .7rem;
}
.svc-card--featured .svc-card__num { display: none; }

.services__invest {
  margin-top: 1.1rem; padding: 1.9rem 2.4rem;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.services__invest h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.services__invest p { color: var(--muted); font-size: .92rem; max-width: 58ch; }

/* ── AI Showcase ───────────────────────────────── */
.ai { background: var(--ink-2); overflow: hidden; }
.ai__bg { position: absolute; inset: 0; pointer-events: none; }
.ai__glow {
  position: absolute; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 151, 167, .2) 0%, transparent 62%);
  top: -280px; right: -200px; filter: blur(30px);
  animation: auroraDrift 13s ease-in-out infinite alternate;
}
.ai__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 172, 210, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 172, 210, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 75%);
}

.ai__grid {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  position: relative; z-index: 1;
}

.ai__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.ai__chips li {
  color: var(--text); font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem;
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.ai__chips li:hover { border-color: var(--cyan); background: rgba(0, 198, 219, .1); transform: translateY(-2px); }

.ai__note { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; color: var(--muted); font-size: .82rem; }
.ai__note svg { flex-shrink: 0; color: var(--cyan); }

/* AI demo window */
.ai-window {
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 44px 120px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.ai-window__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.1rem;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line);
}
.ai-window__dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-window__dot:first-child { background: #FF5F57; }
.ai-window__dot:nth-child(2) { background: #FEBC2E; }
.ai-window__dot:nth-child(3) { background: #28C840; }
.ai-window__tabs { margin-left: 1rem; display: flex; gap: .4rem; }
.ai-tab {
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  color: var(--muted); font-family: var(--font); font-size: .76rem; font-weight: 700;
  padding: .42rem .95rem; cursor: pointer; transition: all .25s;
}
.ai-tab.is-active { background: rgba(0, 198, 219, .12); color: var(--cyan); border-color: rgba(0, 198, 219, .35); }

.ai-pane { display: none; }
.ai-pane.is-active { display: block; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* chat */
.ai-chat__messages, .chatw__messages {
  height: 300px; overflow-y: auto; padding: 1.3rem;
  display: flex; flex-direction: column; gap: .8rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.msg {
  max-width: 84%; padding: .78rem 1.05rem; border-radius: 16px;
  font-size: .86rem; line-height: 1.55;
  animation: msgIn .4s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.msg--bot { background: rgba(255, 255, 255, .06); color: var(--text); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--user {
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  color: #fff; border-bottom-right-radius: 5px; align-self: flex-end;
}
.msg--typing { display: inline-flex; gap: 5px; padding: .95rem 1.1rem; }
.msg--typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #7FA3BF; font-style: normal;
  animation: typDot 1.2s infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.ai-chat__quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.3rem .9rem; }
.ai-chat__quick button {
  background: transparent; border: 1px solid rgba(0, 198, 219, .35); color: var(--cyan);
  font-family: var(--font); font-size: .73rem; font-weight: 700;
  padding: .45rem .85rem; border-radius: 999px; cursor: pointer;
  transition: background .25s, transform .3s var(--ease);
}
.ai-chat__quick button:hover { background: rgba(0, 198, 219, .12); transform: translateY(-2px); }

.ai-chat__input { display: flex; gap: .6rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.ai-chat__input input {
  flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 999px; padding: .72rem 1.15rem;
  font-family: var(--font); font-size: .86rem; color: var(--text); outline: none;
  transition: border-color .25s;
}
.ai-chat__input input::placeholder { color: var(--muted); }
.ai-chat__input input:focus { border-color: var(--cyan); }
.ai-chat__input button {
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  border: 0; border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: box-shadow .25s, transform .3s var(--ease);
}
.ai-chat__input button:hover { box-shadow: 0 8px 22px rgba(0, 190, 215, .45); transform: translateY(-2px); }

/* generator */
.ai-gen__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.3rem 1.3rem .4rem; }
.ai-gen__controls label { display: flex; flex-direction: column; gap: .45rem; }
.ai-gen__controls label span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ai-gen__controls select {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 12px; padding: .72rem .95rem;
  font-family: var(--font); font-size: .86rem; color: var(--text); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300C6DB' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.ai-gen__controls select:focus { border-color: var(--cyan); }
.ai-gen__controls select option { background: var(--ink-2); }
.ai-gen__controls .btn { grid-column: 1 / -1; }

.ai-gen__output {
  margin: 1rem 1.3rem 1.3rem; padding: 1.25rem; min-height: 170px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 14px;
  font-size: .85rem; color: var(--text); line-height: 1.75; white-space: pre-line;
}
.ai-gen__hint { color: var(--muted); font-size: .82rem; }
.gen-cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink .8s steps(1) infinite; }

/* ── About — the light break ───────────────────── */
.about { background: var(--paper); color: var(--navy); overflow: hidden; }
.about::after {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 64px solid rgba(0, 151, 167, .05); bottom: -300px; left: -220px;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); position: relative; z-index: 1; }

.about__quote {
  margin: 2rem 0; padding: 1.5rem 1.9rem;
  border-left: 3px solid var(--teal);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 10px 40px rgba(10, 31, 68, .07);
}
.about__quote span { font-size: 1.1rem; font-weight: 600; font-style: italic; color: var(--navy); display: block; }
.about__quote cite { font-size: .76rem; color: var(--gray); font-style: normal; letter-spacing: .12em; margin-top: .5rem; display: block; }

.about__attrs { display: flex; flex-direction: column; }
.attr {
  display: grid; grid-template-columns: 56px 150px 1fr; align-items: baseline; gap: 1.2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--soft);
  transition: padding-left .4s var(--ease), background .3s;
}
.attr:first-child { border-top: 1px solid var(--soft); }
.attr:hover { padding-left: .9rem; }
.attr__index { font-size: .76rem; font-weight: 700; color: var(--teal); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.attr h3 { font-size: 1.06rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.attr p { font-size: .88rem; color: var(--gray); }

/* ── Process (light) ───────────────────────────── */
.process { background: var(--paper-2); }
.process__track { position: relative; }
.process__line { position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: var(--soft); }
.process__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width 1.4s var(--ease); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.pstep { text-align: center; padding: 0 .6rem; }
.pstep__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--soft); color: var(--gray);
  font-weight: 800; font-size: .92rem; margin-bottom: 1.3rem;
  position: relative; z-index: 1; font-variant-numeric: tabular-nums;
  transition: all .4s var(--ease);
}
.pstep:hover .pstep__num {
  border-color: var(--teal); color: var(--teal);
  transform: scale(1.12); box-shadow: 0 0 0 8px rgba(0, 151, 167, .09);
}
.pstep h3 { font-size: 1.04rem; font-weight: 800; margin-bottom: .5rem; color: var(--navy); }
.pstep p { font-size: .86rem; color: var(--gray); }

/* ── CTA band ──────────────────────────────────── */
.ctaband {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, #0C3B63 55%, var(--teal) 130%);
  padding: clamp(5rem, 8vw, 7.5rem) 0;
  text-align: center;
}
.ctaband__arc {
  position: absolute; width: 680px; height: 680px; border-radius: 50%;
  border: 70px solid rgba(0, 198, 219, .12);
  right: -300px; top: -300px;
  border-top-color: rgba(0, 198, 219, .3);
  animation: spin 60s linear infinite;
}
.ctaband__inner { position: relative; z-index: 1; }
.ctaband::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.07) 48%, transparent 60%);
  transform: skewX(-12deg);
  animation: shine 7s ease-in-out infinite;
}
@keyframes shine { 0%, 55%, 100% { left: -60%; } 25% { left: 130%; } }
.ctaband h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.ctaband p { color: rgba(232, 238, 248, .75); max-width: 52ch; margin: 0 auto 2.5rem; font-size: 1.02rem; }
.ctaband__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact (dark glass) ──────────────────────── */
.contact { background: var(--ink); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

.contact__cards { display: flex; flex-direction: column; gap: .9rem; margin-top: 2.2rem; }
.ccard {
  display: flex; align-items: center; gap: 1.1rem;
  background: rgba(255, 255, 255, .028); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.4rem; text-decoration: none; color: var(--text);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.ccard:hover { transform: translateX(6px); border-color: rgba(0, 198, 219, .45); background: rgba(0, 198, 219, .06); }
.ccard svg { width: 25px; height: 25px; fill: none; stroke: var(--cyan); stroke-width: 1.8; flex-shrink: 0; }
.ccard strong { display: block; font-size: .9rem; font-weight: 700; color: var(--text); }
.ccard span { font-size: .85rem; color: var(--muted); }

.contact__form {
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: clamp(1.7rem, 3vw, 2.6rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .92rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem 1rem; outline: none;
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(138, 151, 176, .7); }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 198, 219, .12);
}
.contact__privacy { font-size: .74rem; color: var(--muted); text-align: center; }

/* ── Footer ────────────────────────────────────── */
.footer { background: var(--ink-2); color: var(--muted); padding: 4.5rem 0 0; border-top: 1px solid var(--line); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.footer__brand p { font-size: .88rem; margin-top: 1.2rem; max-width: 34ch; line-height: 1.75; }
.footer__col { display: flex; flex-direction: column; gap: .7rem; }
.footer__col h4 { color: var(--text); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .5rem; }
.footer__col a, .footer__col span { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .25s; }
.footer__col a:hover { color: var(--cyan); }
.footer__social { display: flex; gap: .8rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.footer__social a:hover { border-color: var(--cyan); background: rgba(0, 198, 219, .1); transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; color: var(--text); }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding: 1.4rem 0; font-size: .76rem; color: rgba(138, 151, 176, .7);
}

/* ── Floating chat widget ──────────────────────── */
.chatw { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 950; }
.chatw__fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(120deg, var(--teal), var(--cyan)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(0, 190, 215, .45);
  transition: transform .35s var(--ease), box-shadow .3s;
  position: relative;
}
.chatw__fab:hover { transform: scale(1.07); box-shadow: 0 18px 50px rgba(0, 190, 215, .6); }
.chatw__fab svg { width: 26px; height: 26px; position: absolute; transition: opacity .25s, transform .35s var(--ease); }
.chatw__icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chatw.is-open .chatw__icon-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chatw.is-open .chatw__icon-close { opacity: 1; transform: none; }
.chatw__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cyan); animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.65); opacity: 0; } }
.chatw.is-open .chatw__pulse { display: none; }

.chatw__panel {
  position: absolute; right: 0; bottom: 76px;
  width: min(372px, calc(100vw - 3rem));
  background: rgba(8, 18, 40, .92);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .6);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
  transition: all .4s var(--ease);
}
.chatw.is-open .chatw__panel { opacity: 1; visibility: visible; transform: none; }
.chatw__head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.2rem; background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
}
.chatw__mark { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; }
.chatw__head strong { color: var(--text); font-size: .9rem; display: block; }
.chatw__head small { color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: .4rem; }
.chatw__status { width: 8px; height: 8px; border-radius: 50%; background: #2EE6A8; display: inline-block; }
.chatw__messages { height: 280px; }

/* ── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 140%);
  background: rgba(8, 18, 40, .95); color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5); z-index: 990;
  transition: transform .5s var(--ease);
  max-width: 90vw; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ── Reveal on scroll ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(2), .about__attrs .reveal:nth-child(2) { transition-delay: .08s; }
.services__grid .reveal:nth-child(3), .about__attrs .reveal:nth-child(3) { transition-delay: .16s; }
.services__grid .reveal:nth-child(4), .about__attrs .reveal:nth-child(4) { transition-delay: .24s; }
.services__grid .reveal:nth-child(5), .about__attrs .reveal:nth-child(5) { transition-delay: .32s; }
.services__grid .reveal:nth-child(6) { transition-delay: .4s; }
.process__steps .reveal:nth-child(2) { transition-delay: .12s; }
.process__steps .reveal:nth-child(3) { transition-delay: .24s; }
.process__steps .reveal:nth-child(4) { transition-delay: .36s; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .svc-card--featured { grid-column: 1 / -1; grid-row: auto; }
  .ai__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .process__line { display: none; }
}

@media (max-width: 720px) {
  .nav { top: 10px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .fields-row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .attr { grid-template-columns: 40px 1fr; }
  .attr p { grid-column: 2; }
  .hero { padding-top: 7.5rem; }
  .hero__stats .stat { padding: 0 1.1rem; }
  .hero__stats .stat:first-child { padding-left: 0; }
  .ai-gen__controls { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; text-align: center; }
  .services__invest { padding: 1.7rem; }
  .marquee__track { gap: 2rem; }
}

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