/* ============================================================
   USK — Private AI & Software Support for Public Sector
   Light corporate theme · white + cyan · mobile-first
   Enhanced motion pass
   ============================================================ */

@import url('/legacy.css?v=20260618-6');

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;        /* slate-900 */
  --text-muted: #475569;  /* slate-600 */
  --text-dim: #94a3b8;    /* slate-400 */
  --ink: #231f20;         /* logo charcoal */
  --cyan: #0891b2;        /* cyan-600 */
  --cyan-bright: #06b6d4; /* cyan-500 */
  --cyan-light: #22d3ee;  /* cyan-400 */
  --cyan-soft: #ecfeff;   /* cyan-50  */
  --dark: #0b1220;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --shadow-sm: 0 4px 16px rgba(8, 145, 178, 0.06);
  --shadow-md: 0 14px 40px rgba(8, 47, 73, 0.08);
  --shadow-lg: 0 30px 80px rgba(8, 47, 73, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  transition: width 0.1s linear;
}

/* ---------- cursor glow (subtle on light) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 440px; height: 440px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease; opacity: 0; mix-blend-mode: multiply;
}

/* ---------- logo ---------- */
.logo { height: 46px; width: auto; display: block; object-fit: contain; }
.logo__word {
  font-family: 'Inter', Arial, sans-serif; font-weight: 800;
  font-size: 36px; letter-spacing: -1.5px; fill: currentColor;
}
.logo__accent {
  fill: var(--cyan-bright); transform-origin: 54px 22px;
  animation: accentPulse 3.2s var(--ease) infinite;
}
@keyframes accentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(0.86) translateY(1px); }
}
.brand { display: inline-flex; align-items: center; color: var(--ink); transition: transform 0.3s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand--footer {
  color: #fff;
}
.footer .brand--footer {
  display: inline-flex;
  width: auto;
}
.brand--footer .logo { height: 72px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  color: #fff; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s;
  white-space: nowrap; cursor: pointer; will-change: transform;
}
/* shine sweep */
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8, 145, 178, 0.32); filter: brightness(1.05); }
.btn:hover::after { left: 130%; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: #fff; color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn--ghost::after { background: linear-gradient(120deg, transparent, rgba(34,211,238,0.25), transparent); }
.btn--ghost:hover { background: var(--cyan-soft); border-color: var(--cyan-light); box-shadow: var(--shadow-sm); }
.arrow { transition: transform 0.3s var(--ease); display: inline-block; position: relative; z-index: 1; }
.btn:hover .arrow, .pill:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__links { display: flex; gap: 26px; }
.nav__item { position: relative; }
.nav__top {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 4px 0;
  cursor: pointer; transition: color 0.2s;
}
.nav__top::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav__item:hover .nav__top, .nav__top.active { color: var(--cyan); }
.nav__item:hover .nav__top::after, .nav__top.active::after { width: 100%; }
.nav__caret { font-size: 9px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* dropdown panel */
.nav__sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px; padding: 8px; z-index: 60;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__sub::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}
.nav__sub a {
  display: block; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.nav__sub a:hover, .nav__sub a.active { background: var(--cyan-soft); color: var(--cyan); padding-left: 16px; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 130px 0 60px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(70% 62% at 72% 30%, rgba(34, 211, 238, 0.14), transparent 70%);
  filter: blur(12px);
}
/* faint AI tech grid that fades toward the edges */
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 64% 38%, #000 32%, transparent 80%);
  mask-image: radial-gradient(ellipse 78% 72% at 64% 38%, #000 32%, transparent 80%);
}
/* animated neural-network constellation */
.hero__net { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@keyframes drift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  50%  { transform: translateX(-46%) translateY(16px) scale(1.07); }
  100% { transform: translateX(-54%) translateY(-8px) scale(1.03); }
}

/* floating orbs + parallax */
.hero__orbs {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  transform: translate(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px));
  transition: transform 0.4s var(--ease);
}
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.55; }
.orb--1 { width: 120px; height: 120px; top: 22%; left: 12%; background: radial-gradient(circle at 30% 30%, var(--cyan-light), transparent 70%); animation: float 9s ease-in-out infinite; }
.orb--2 { width: 80px;  height: 80px;  top: 30%; right: 14%; background: radial-gradient(circle at 30% 30%, var(--cyan-bright), transparent 70%); animation: float 11s ease-in-out infinite reverse; }
.orb--3 { width: 56px;  height: 56px;  bottom: 18%; left: 22%; background: radial-gradient(circle at 30% 30%, #7dd3fc, transparent 70%); animation: float 7s ease-in-out infinite; }
.orb--ring { width: 70px; height: 70px; top: 18%; right: 26%; background: none; border: 2px solid rgba(8,145,178,0.35); filter: none; opacity: 0.5; animation: floatRing 12s linear infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-22px) translateX(10px); }
}
@keyframes floatRing {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-16px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 36px; text-align: left; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.cube-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; }
.cube-stage::before {
  content: ''; position: absolute; inset: 5%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(34,211,238,0.52), rgba(8,145,178,0.20) 45%, transparent 72%);
  filter: blur(34px); animation: cardFloat 7s ease-in-out infinite;
}
#cubeCanvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, 0.4);
  font-size: 13px; color: var(--cyan); font-weight: 600;
  transition: border-color 0.3s, transform 0.3s;
}
.pill:hover { transform: translateY(-1px); border-color: var(--cyan-bright); }
.pill__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-bright); }
.pill__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--cyan-bright); animation: ripple 2s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.hero__title { font-size: clamp(30px, 5.5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(110deg, var(--cyan), var(--cyan-bright) 45%, var(--cyan-light) 85%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero__sub { max-width: 540px; margin: 22px 0 0; font-size: clamp(15px, 2vw, 18px); color: var(--text-muted); }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: flex-start; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 34px; }
.hero__chips li {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.hero__chips li:hover { transform: translateY(-3px); color: var(--cyan); border-color: var(--cyan-light); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 64px; }
.page-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero__title { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-top: 4px; }
.page-hero__sub { color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); margin-top: 18px; max-width: 640px; }
.page-hero .eyebrow::after { left: 0; transform: none; }
.page-lead { color: var(--text-muted); font-size: 17px; max-width: 720px; margin: 0 auto; text-align: center; }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 10px 0 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: 15px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 72px 0; position: relative; }
.section--soft { background: var(--bg-soft); }

/* fixed AI-art background for the "Why USK" section, branded + readable */
.section--why { position: relative; overflow: hidden; isolation: isolate; }
.section--why::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('assets/why-bg.png') center center / cover no-repeat fixed;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.section--why::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(244, 248, 251, 0.55), rgba(236, 254, 255, 0.22) 50%, rgba(244, 248, 251, 0.58));
}
.section--why .container { position: relative; z-index: 1; }

/* advanced AI-art hero background (Google DeepMind / Pexels), branded + animated */
.hero__bg {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: url('assets/hero-bg.png') center center / cover no-repeat;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  transform-origin: center center;
  animation: bgZoomIn 6.5s var(--ease);
}
/* slow zoom-IN on load. No fill-mode → it ends at the resting (transform:none) size,
   so the framing won't shift after the entrance. The -10% overscan means even the
   smaller start scale fully covers the hero (no gaps). */
@keyframes bgZoomIn { from { transform: scale(0.9); } }
.section__head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 6px; position: relative;
}
.eyebrow::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); border-radius: 2px; }
.section__head .eyebrow::after { left: 50%; }
.eyebrow--light { color: var(--cyan-light); }
.section__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.section__title .muted { color: var(--text-dim); }
.section__lead { color: var(--text-muted); font-size: 17px; max-width: 480px; margin-top: 16px; }

/* "Learn more" links */
.learn-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-weight: 600; font-size: 15px; color: var(--cyan);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.learn-more .arrow { transition: transform 0.3s var(--ease); }
.learn-more:hover { color: var(--cyan-bright); gap: 13px; }
.learn-more:hover .arrow { transform: translateX(4px); }
.learn-more--light { color: var(--cyan-light); }
.learn-more--light:hover { color: #fff; }
.section__cta { text-align: center; margin-top: 40px; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s;
  transform-style: preserve-3d; position: relative; overflow: hidden;
}
/* animated top accent line */
.card::after {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  transition: width 0.5s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.10), transparent 42%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { border-color: var(--cyan-light); box-shadow: var(--shadow-md); }
.card:hover::after { width: 100%; }
.card:hover::before { opacity: 1; }
.card--accent { background: linear-gradient(180deg, #fff, var(--cyan-soft)); }
.card__icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  font-size: 22px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(8,145,178,0.12), rgba(34,211,238,0.16));
  border: 1px solid rgba(34, 211, 238, 0.3);
  transition: transform 0.4s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* mini cards (why USK) */
.mini { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.mini:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--cyan-light); }
.mini__num { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--cyan); background: var(--cyan-soft); padding: 3px 9px; border-radius: 7px; transition: transform 0.3s var(--ease); }
.mini:hover .mini__num { transform: translateY(-2px); }
.mini h3 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; }
.mini p { color: var(--text-muted); font-size: 14px; }

/* ---------- What We Do — horizontal pinned scroll ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.section--hscroll { background: var(--bg-soft); }
.hscroll { position: relative; height: 320vh; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.hscroll__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 38%, transparent 88%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 38%, transparent 88%);
}

.hscroll__head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 5vh 6vw 0; }
.hscroll__head .eyebrow::after { left: 0; transform: none; }
.hscroll__head .section__title { font-size: clamp(22px, 3vw, 34px); }

.hscroll__track { position: absolute; inset: 0; z-index: 2; display: flex; flex-wrap: nowrap; width: max-content; will-change: transform; }
.hpanel { position: relative; width: 100vw; height: 100vh; display: grid; place-items: center; padding: 19vh 6vw 17vh; overflow: hidden; }
.hpanel__bgnum {
  position: absolute; left: 3vw; top: 50%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 50vh; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(8, 145, 178, 0.10);
}
.hpanel__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw;
  max-width: 1080px; width: 100%; align-items: center;
  opacity: 0; transform: translateY(48px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hpanel.is-active .hpanel__inner { opacity: 1; transform: none; }

.hpanel__visual { position: relative; width: min(38vw, 400px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; }
.hpanel__visual::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), rgba(8, 145, 178, 0.06) 55%, transparent 72%);
  filter: blur(22px);
}
.ai-core { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }

/* ===== distinct 3D panel visuals ===== */
.viz { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; perspective: 1100px; }
.hpanel:not(.is-active) .viz * { animation-play-state: paused; }
@keyframes floatY { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }

/* ---- Digital Intelligence Cube (Software Support) ---- */
.cube-float { position: relative; transform-style: preserve-3d; animation: floatY 6s ease-in-out infinite; }
.gcube { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; animation: cubeSpin 24s linear infinite; }
.gface {
  position: absolute; width: 150px; height: 150px; box-sizing: border-box;
  border: 1.5px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(8, 145, 178, 0.03));
  box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.18);
}
.gface--fr { transform: translateZ(75px); }
.gface--bk { transform: rotateY(180deg) translateZ(75px); }
.gface--rt { transform: rotateY(90deg) translateZ(75px); }
.gface--lf { transform: rotateY(-90deg) translateZ(75px); }
.gface--tp { transform: rotateX(90deg) translateZ(75px); }
.gface--bt { transform: rotateX(-90deg) translateZ(75px); }
.gcube__inner { position: absolute; inset: 37px; transform-style: preserve-3d; animation: cubeSpinRev 15s linear infinite; }
.gcube__inner .gface { width: 76px; height: 76px; border-color: rgba(34, 211, 238, 0.85); background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(8, 145, 178, 0.05)); }
.gcube__inner .gface--fr { transform: translateZ(38px); }
.gcube__inner .gface--bk { transform: rotateY(180deg) translateZ(38px); }
.gcube__inner .gface--rt { transform: rotateY(90deg) translateZ(38px); }
.gcube__inner .gface--lf { transform: rotateY(-90deg) translateZ(38px); }
.gcube__inner .gface--tp { transform: rotateX(90deg) translateZ(38px); }
.gcube__inner .gface--bt { transform: rotateX(-90deg) translateZ(38px); }
.cube-core { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--cyan-bright) 55%, transparent 75%); box-shadow: 0 0 30px var(--cyan-bright); transform: translate(-50%, -50%); animation: coreThrob 3s ease-in-out infinite; }
@keyframes cubeSpin { to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes cubeSpinRev { to { transform: rotateX(-360deg) rotateY(-360deg); } }
@keyframes coreThrob { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.viz--cube .orbit { position: absolute; top: 50%; left: 50%; width: 290px; height: 290px; margin: -145px; border-radius: 50%; animation: spin 10s linear infinite; }
.viz--cube .orbit--2 { width: 220px; height: 220px; margin: -110px; animation-duration: 7s; animation-direction: reverse; }
.viz--cube .orbit-dot { position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--cyan-light); box-shadow: 0 0 12px var(--cyan-light); }

/* ---- Quantum AI Laptop (Private AI Solutions) ---- */
.lp-float { position: relative; transform-style: preserve-3d; animation: floatY 7s ease-in-out infinite; }
.laptop { position: relative; width: 232px; height: 200px; transform-style: preserve-3d; transform: rotateX(12deg); }
.laptop__lid {
  position: absolute; left: 0; right: 0; bottom: 50%; height: 132px;
  transform-origin: bottom center; transform: rotateX(-6deg); transform-style: preserve-3d;
  animation: lidOpen 6s ease-in-out infinite;
}
.laptop__screen {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, #0a1622, #0c1f2b);
  border: 2px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.30), inset 0 0 22px rgba(34, 211, 238, 0.12);
}
.laptop__deck {
  position: absolute; left: 0; right: 0; top: 50%; height: 132px;
  transform-origin: top center; transform: rotateX(76deg);
  border-radius: 12px; background: linear-gradient(180deg, #eef3f7, #c9d4dd);
  box-shadow: 0 28px 50px rgba(8, 47, 73, 0.28), inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}
.laptop__deck::after { content: ''; position: absolute; inset: 16px 22px 48px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(8, 145, 178, 0.25) 0 13px, transparent 13px 19px); opacity: 0.5; }
.laptop__deck::before { content: ''; position: absolute; bottom: 14px; left: 50%; width: 64px; height: 9px; margin-left: -32px; border-radius: 4px; background: rgba(8, 145, 178, 0.18); }
@keyframes lidOpen { 0%, 100% { transform: rotateX(-3deg); } 50% { transform: rotateX(-15deg); } }
.lp-grid { position: absolute; inset: 10px; border-radius: 6px; background-image: linear-gradient(rgba(34, 211, 238, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.18) 1px, transparent 1px); background-size: 18px 18px; }
.lp-bars { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; align-items: flex-end; height: 46px; }
.lp-bars i { width: 8px; border-radius: 2px; background: linear-gradient(var(--cyan-light), var(--cyan)); transform-origin: bottom; animation: barPulse 1.8s ease-in-out infinite; }
.lp-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.lp-bars i:nth-child(2) { height: 72%; animation-delay: 0.2s; }
.lp-bars i:nth-child(3) { height: 52%; animation-delay: 0.4s; }
.lp-bars i:nth-child(4) { height: 92%; animation-delay: 0.6s; }
.lp-bars i:nth-child(5) { height: 60%; animation-delay: 0.8s; }
@keyframes barPulse { 0%, 100% { transform: scaleY(0.65); } 50% { transform: scaleY(1.05); } }
.lp-pulse { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(34, 211, 238, 0.6); }
.lp-pulse::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cyan-bright); animation: ripple 2s ease-out infinite; }
.holo { position: absolute; border-radius: 8px; background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.45); box-shadow: 0 8px 24px rgba(8, 145, 178, 0.20); backdrop-filter: blur(2px); }
.holo--1 { width: 70px; height: 46px; top: 8%; right: 4%; animation: holoBob 5s ease-in-out infinite; }
.holo--2 { width: 56px; height: 38px; top: 40%; left: 2%; animation: holoBob 6.5s ease-in-out infinite reverse; }
.holo--3 { width: 50px; height: 34px; bottom: 16%; right: 10%; animation: holoBob 7.5s ease-in-out infinite; }
@keyframes holoBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.hpanel__kicker { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; }
.hpanel__text h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 14px; }
.hpanel__text p { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hpanel__list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.hpanel__list li { position: relative; padding-left: 28px; color: var(--text-muted); font-size: 15px; }
.hpanel__list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--cyan-light)); }

.hscroll__progress { position: absolute; bottom: 5vh; left: 6vw; right: 6vw; z-index: 5; }
.hscroll__labels { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }
.hscroll__label { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim); padding: 0; transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.hscroll__label span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); opacity: 0.55; transition: opacity 0.3s; }
.hscroll__label.is-active { color: var(--text); }
.hscroll__label.is-active span { opacity: 1; }
.hscroll__rail { display: block; height: 3px; border-radius: 999px; background: var(--border); overflow: hidden; }
.hscroll__rail i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); transition: width 0.15s linear; }

@media (max-width: 860px) {
  .hscroll { height: auto; }
  .hscroll__sticky { position: static; height: auto; overflow: visible; }
  .hscroll__grid { display: none; }
  .hscroll__head { position: static; padding: 0 0 10px; }
  .hscroll__track { position: static; transform: none !important; flex-direction: column; width: 100%; gap: 16px; }
  .hpanel { width: 100%; height: auto; padding: 0; overflow: visible; }
  .hpanel__bgnum { display: none; }
  .hpanel__inner { grid-template-columns: 1fr; gap: 22px; opacity: 1; transform: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; max-width: none; }
  .hpanel__visual { width: 168px; }
  .hscroll__progress { position: static; margin-top: 18px; }
  .hscroll__labels { gap: 14px; }
}

/* ---------- split (why private AI) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 15px; }
.checklist li::before {
  content: '✓'; flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; font-size: 12px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
}

/* environment card visual */
.env-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform-style: preserve-3d; animation: cardFloat 6s ease-in-out infinite; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.env-card__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--cyan-soft); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--cyan { position: relative; background: var(--cyan-bright); }
.dot--cyan::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--cyan-bright); animation: ripple 2.2s ease-out infinite; }
.env-card__title { font-size: 13px; font-weight: 700; color: var(--cyan); }
.env-card__body { padding: 18px; display: grid; gap: 10px; }
.env-layer { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: transform 0.3s var(--ease), background 0.3s; }
.env-layer:hover { transform: translateX(4px); background: var(--cyan-soft); }
.env-layer i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.env-layer--core { background: linear-gradient(135deg, var(--cyan), var(--cyan-bright)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(8,145,178,0.35); animation: coreGlow 3s ease-in-out infinite; }
@keyframes coreGlow { 0%,100% { box-shadow: 0 8px 24px rgba(8,145,178,0.30); } 50% { box-shadow: 0 8px 34px rgba(8,145,178,0.55); } }
.env-layer--core:hover { transform: translateX(4px); background: linear-gradient(135deg, var(--cyan), var(--cyan-bright)); }
.env-layer--core i { color: rgba(255,255,255,0.85); }
.env-flow { display: flex; gap: 8px; margin-top: 4px; }
.env-flow span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--cyan); background: var(--cyan-soft); padding: 8px 4px; border-radius: 9px; border: 1px solid rgba(34,211,238,0.3); }

/* ---------- dark accent band (public sector) ---------- */
.section--dark { background: var(--dark); color: #e2e8f0; overflow: hidden; }
.dark__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px circle at 70% 20%, rgba(34, 211, 238, 0.18), transparent 55%), radial-gradient(600px circle at 20% 90%, rgba(8, 145, 178, 0.16), transparent 55%);
  animation: darkDrift 18s ease-in-out infinite alternate;
}
@keyframes darkDrift { 0% { transform: scale(1) translateY(0); } 100% { transform: scale(1.12) translateY(-14px); } }
.dark__inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.dark__inner .eyebrow::after { background: linear-gradient(90deg, var(--cyan-light), #7dd3fc); }
.dark__title { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; }
.dark__lead { color: #94a3b8; font-size: 17px; margin-top: 18px; }

/* ---------- about ---------- */
.about { max-width: 860px; margin: 0 auto; text-align: center; }
.about__title { margin-bottom: 28px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.about__cols p { color: var(--text-muted); font-size: 16px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact__intro { position: sticky; top: 100px; }
.contact__details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact__details p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.contact__details strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact__details a { color: var(--cyan); font-weight: 600; }
.contact__details a:hover { color: var(--cyan-bright); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-soft); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan-bright); background: #fff; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.field textarea { resize: vertical; }
.form-note { color: var(--cyan); font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: #cbd5e1; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer__brand .logo { color: #fff; }
.footer__legal-name { color: #fff; font-weight: 700; font-size: 15px; margin-top: 14px; }
.footer__brand p { color: #94a3b8; font-size: 14px; margin-top: 6px; max-width: 240px; }
.footer__cols { display: grid; grid-template-columns: 0.9fr 1.25fr 1.55fr; gap: 28px; }
.footer__cols h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 14px; }
.footer__cols a { display: block; color: #cbd5e1; font-size: 14px; padding: 5px 0; transition: color 0.2s, transform 0.2s; }
.footer__cols a:hover { color: var(--cyan-light); transform: translateX(3px); }
.footer__company p { font-size: 13.5px; color: #94a3b8; padding: 3px 0; }
.footer__company a { display: inline; color: #cbd5e1; padding: 0; }
.footer__company a:hover { color: var(--cyan-light); transform: none; }
.footer__company em { color: #cbd5e1; font-style: normal; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); color: #64748b; font-size: 13px; flex-wrap: wrap; }
.footer__tag { color: var(--cyan-light); font-weight: 500; }

/* ---------- scroll reveal (strong 3D swipe-up entrance) ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1100px) translateY(95px) rotateX(24deg) scale(0.9);
  transform-origin: 50% 100%;
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}
.reveal--left  { transform: perspective(1100px) translate3d(-78px, 44px, 0) rotateY(-24deg) scale(0.93); transform-origin: left center; }
.reveal--right { transform: perspective(1100px) translate3d(78px, 44px, 0) rotateY(24deg) scale(0.93); transform-origin: right center; }
.reveal--scale { transform: perspective(1100px) translateZ(-200px) scale(0.84); }
.reveal.in {
  opacity: 1;
  transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
}

/* the 3D cube ("puzzle") gets a much slower, grander entrance than everything else */
.hero__visual.reveal { transition: opacity 2.6s var(--ease), transform 3.8s var(--ease); }

/* prominent headings rise in more slowly than the rest → varied, non-uniform timing */
.hero__title.reveal,
.section__head.reveal,
.dark__inner.reveal { transition: opacity 1.5s var(--ease), transform 2s var(--ease); }

/* one-time header drop-in entrance */
.nav { animation: navDrop 0.8s var(--ease) both; }
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-110%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — mobile-first tuning
   ============================================================ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact__intro { position: static; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { align-items: center; order: 1; }
  .hero__visual { order: 0; margin-bottom: 8px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__chips { justify-content: center; }
  .cube-stage { max-width: 320px; }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .about__cols { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 60px; left: 14px; right: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow-md);
  }
  .nav__links.open a { padding: 8px 4px; }
  .section { padding: 56px 0; }
  .hero { padding: 110px 0 40px; }
  .grid--4 { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 20px; }
  .footer__cols { grid-template-columns: 1fr; }
  .cursor-glow, .hero__orbs { display: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* mobile dropdowns — submenus expand inline inside the menu panel */
@media (max-width: 680px) {
  .nav__links.open .nav__item { width: 100%; }
  .nav__links.open .nav__top { width: 100%; color: var(--text); font-weight: 600; padding: 10px 4px; }
  .nav__links.open .nav__top::after { display: none; }
  .nav__caret { display: none; }
  .nav__links.open .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 0 0 8px 14px; gap: 0;
    background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__links.open .nav__sub::before { display: none; }
  .nav__links.open .nav__sub a { padding: 7px 6px; }
  .page-hero { padding: 120px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Floating AI assistant
   ============================================================ */
.aiast { position: fixed; right: 24px; bottom: 24px; z-index: 120; }
.aiast__orb {
  position: relative; width: 66px; height: 66px; border-radius: 50%; cursor: pointer; padding: 0; border: 0;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(34, 211, 238, 0.5) 46%, rgba(8, 145, 178, 0.9));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 30px rgba(34, 211, 238, 0.55);
  display: grid; place-items: center; animation: aiastFloat 5s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}
.aiast__orb:hover { transform: scale(1.07); }
.aiast__orb::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan-light), transparent 38%, transparent 62%, var(--cyan-bright));
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%);
  mask: radial-gradient(closest-side, transparent 78%, #000 80%);
  animation: spin 6s linear infinite;
}
.aiast__orb::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34, 211, 238, 0.6);
  animation: aiastPulse 2.4s ease-out infinite;
}
.aiast__glyph { position: relative; z-index: 1; color: #fff; font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
@keyframes aiastFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes aiastPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

.aiast__panel {
  position: absolute; right: 0; bottom: 84px; width: 340px; max-width: calc(100vw - 28px);
  border-radius: 20px; overflow: hidden; transform-origin: bottom right;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.94));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 30px 70px rgba(8, 47, 73, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.aiast.open .aiast__panel { opacity: 1; visibility: visible; transform: none; }
.aiast__header { position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: linear-gradient(135deg, #0b1220, #0c1f2b); color: #fff; overflow: hidden; }
.aiast__header::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.12) 0 2px, transparent 2px 22px); animation: aiastStream 9s linear infinite; opacity: 0.5; }
.aiast__mini { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, var(--cyan-bright) 60%, var(--cyan)); box-shadow: 0 0 16px rgba(34, 211, 238, 0.7); }
.aiast__id { position: relative; z-index: 1; }
.aiast__title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.aiast__status { font-size: 12px; color: var(--cyan-light); display: flex; align-items: center; gap: 6px; }
.aiast__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.aiast__close { position: relative; z-index: 1; margin-left: auto; background: none; border: 0; color: rgba(255, 255, 255, 0.7); font-size: 22px; line-height: 1; cursor: pointer; }
.aiast__close:hover { color: #fff; }
@keyframes aiastStream { to { background-position: 220px 0; } }

.aiast__body { padding: 16px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.aiast__msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-line; animation: aiastIn 0.35s var(--ease); }
.aiast__msg--bot { align-self: flex-start; background: var(--cyan-soft); color: var(--text); border: 1px solid rgba(34, 211, 238, 0.3); border-bottom-left-radius: 4px; }
.aiast__msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--cyan), var(--cyan-bright)); color: #fff; border-bottom-right-radius: 4px; }
@keyframes aiastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aiast__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--cyan-soft); border-radius: 14px; }
.aiast__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: aiastDot 1.2s infinite; }
.aiast__typing span:nth-child(2) { animation-delay: 0.2s; }
.aiast__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiastDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }

.aiast__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.aiast__input { flex: 1; border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 14px; font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg-soft); }
.aiast__input:focus { outline: none; border-color: var(--cyan-bright); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.aiast__send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--cyan), var(--cyan-bright)); }
.aiast__note { padding: 0 14px 12px; font-size: 11px; color: var(--text-dim); text-align: center; background: #fff; }

@media (max-width: 680px) { .aiast { right: 14px; bottom: 14px; } }

/* ============================================================
   Mobile: keep every animation alive and sized to look good
   ============================================================ */
@media (max-width: 860px) {
  /* panel visuals (laptop / glass cube) animate on mobile too */
  .hpanel:not(.is-active) .viz * { animation-play-state: running; }
  .hpanel__visual { width: 240px; }
  .viz--laptop .laptop { transform: rotateX(12deg) scale(0.85); }
}
@media (max-width: 680px) {
  /* hero cube shows first on mobile, sized down, and lets the page scroll over it */
  .hero__visual { order: 0; margin-bottom: 4px; }
  .cube-stage { max-width: 240px; }
  #cubeCanvas { pointer-events: none; }
  /* assistant panel a touch tighter on small screens */
  .aiast__panel { width: 320px; }
}
