/* ==========================================================================
   ALEXON — DESIGN SYSTEM
   Palette: Deep Navy #03060F | Electric Blue #1E6FE0 | Cyan #4FC3F7 / #22D3EE
            Purple #8B2FE8 / #C060FA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-navy:        #03060f;
  --brand-navy-2:      #060a18;
  --brand-navy-3:      #0a1228;
  --brand-navy-4:      #0e1a3a;
  --brand-blue:        #1E6FE0;
  --brand-blue-light:  #4FC3F7;
  --brand-blue-glow:   #22D3EE;
  --brand-purple:      #8B2FE8;
  --brand-purple-light:#C060FA;
  --brand-purple-glow: #A93FF0;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, #1E6FE0 0%, #8B2FE8 100%);
  --grad-brand-r:     linear-gradient(135deg, #8B2FE8 0%, #1E6FE0 100%);
  --grad-hero:        linear-gradient(135deg, #1E6FE0 0%, #5A2FE0 50%, #8B2FE8 100%);
  --grad-text:        linear-gradient(100deg, #4FC3F7 0%, #7C9CFF 45%, #C060FA 100%);
  --grad-line:        linear-gradient(90deg, transparent, rgba(79,195,247,0.55), rgba(192,96,250,0.45), transparent);

  /* Surfaces */
  --surface-0:        #03060f;
  --surface-1:        #060a18;
  --surface-2:        #08101f;
  --surface-3:        #0e1a3a;
  --surface-card:     rgba(10,18,40,0.62);
  --surface-card-2:   rgba(14,26,58,0.5);
  --surface-glass:    rgba(255,255,255,0.028);
  --surface-glass-2:  rgba(255,255,255,0.055);

  /* Text */
  --text-primary:     #eef6ff;
  --text-secondary:   rgba(196,222,247,0.72);
  --text-muted:       rgba(160,196,232,0.5);
  --text-faint:       rgba(150,185,225,0.34);
  --text-accent:      #4FC3F7;

  /* Borders */
  --border-subtle:    rgba(140,190,255,0.09);
  --border-glass:     rgba(160,205,255,0.15);
  --border-blue:      rgba(79,195,247,0.38);
  --border-purple:    rgba(160,90,240,0.34);

  /* Status */
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-error:      #ef4444;
  --color-info:       #60A5FA;

  /* Shadows */
  --shadow-sm:        0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:        0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg:        0 20px 50px rgba(0,0,0,0.5);
  --shadow-blue:      0 10px 40px rgba(30,111,224,0.28);
  --shadow-ring:      0 0 0 1px rgba(160,205,255,0.08);

  /* Radii */
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       28px;
  --radius-full:      9999px;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-14: 3.5rem;  --sp-16: 4rem;    --sp-20: 5rem;
  --sp-24: 6rem;    --sp-32: 8rem;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs:   0.75rem;  --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg:   1.125rem; --text-xl: 1.25rem;  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem; --text-4xl: 2.25rem; --text-5xl:  3rem;
  --text-6xl:  3.75rem;  --text-7xl: 4.25rem;
  --weight-400: 400; --weight-500: 500; --weight-600: 600;
  --weight-700: 700; --weight-800: 800;
  --leading-tight: 1.08; --leading-snug: 1.3;
  --leading-normal: 1.6; --leading-relaxed: 1.75;
  --tracking-tight: -0.035em; --tracking-normal: 0;
  --tracking-wide: 0.08em; --tracking-wider: 0.14em;

  /* Layout */
  --nav-h: 74px;
  --maxw: 1200px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 150ms; --dur-base: 260ms; --dur-slow: 480ms;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-400);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
input, textarea, select { font: inherit; }

::selection { background: rgba(79,195,247,0.28); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.text-center { text-align: center; }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(2.75rem, 5vw, 4.5rem);
  text-align: center;
}

.divider-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(760px, 88%);
  height: 1px;
  background: var(--grad-line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.6875rem;
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-blue-light);
  background: rgba(79,195,247,0.07);
  border: 1px solid rgba(79,195,247,0.22);
  padding: 0.3rem var(--sp-3) 0.3rem var(--sp-2);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--brand-blue-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-blue-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.section-title {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: var(--weight-800);
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}

.section-sub {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 620px;
  text-wrap: pretty;
}

.section-sub-center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-600);
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 22px rgba(30,111,224,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* sheen sweep */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(30,111,224,0.5), 0 0 26px rgba(139,47,232,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
  background: rgba(160,205,255,0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(79,195,247,0.1);
  border-color: var(--border-blue);
  color: var(--brand-blue-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue-light);
  border-color: rgba(79,195,247,0.32);
}

.btn-outline:hover {
  background: rgba(79,195,247,0.08);
  border-color: var(--brand-blue-light);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.9rem 2rem; font-size: var(--text-base); min-height: 52px; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: var(--text-xs); min-height: 38px; }

.btn:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base), border-color var(--dur-base), height var(--dur-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(3,6,15,0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  height: 64px;
}

.navbar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--dur-fast);
}

.navbar-logo:hover { opacity: 0.82; }

.navbar-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: height var(--dur-base) var(--ease-out);
}

.navbar.scrolled .navbar-logo-img { height: 32px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(160,205,255,0.035);
  border: 1px solid var(--border-subtle);
}

.navbar-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: var(--weight-500);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.navbar-link:hover { color: var(--text-primary); background: rgba(160,205,255,0.07); }

.navbar-link.active {
  color: var(--brand-blue-light);
  background: rgba(79,195,247,0.12);
}

.navbar-cta { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* scroll progress */
.scroll-progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(79,195,247,0.6);
  transition: width 80ms linear;
  z-index: 1;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(160,205,255,0.04);
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(3,6,15,0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: calc(var(--nav-h) + var(--sp-8)) var(--sp-6) var(--sp-10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
  overflow-y: auto;
}

.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu .navbar-link {
  font-size: 1.375rem;
  font-weight: var(--weight-600);
  padding: var(--sp-4) var(--sp-2);
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu.open .navbar-link {
  animation: menu-item-in 420ms var(--ease-out) forwards;
}

.mobile-menu.open .navbar-link:nth-child(1) { animation-delay: 60ms; }
.mobile-menu.open .navbar-link:nth-child(2) { animation-delay: 105ms; }
.mobile-menu.open .navbar-link:nth-child(3) { animation-delay: 150ms; }
.mobile-menu.open .navbar-link:nth-child(4) { animation-delay: 195ms; }
.mobile-menu.open .navbar-link:nth-child(5) { animation-delay: 240ms; }

.mobile-menu-cta { margin-top: var(--sp-8); width: 100%; }

.mobile-menu-contact {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.mobile-menu-contact a { display: flex; align-items: center; gap: var(--sp-2); }
.mobile-menu-contact a:hover { color: var(--brand-blue-light); }

body.menu-open { overflow: hidden; }

@keyframes menu-item-in {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. FLASH MESSAGES
   -------------------------------------------------------------------------- */
.flash-container {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: var(--sp-6);
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: min(400px, calc(100vw - 2rem));
}

.flash-message {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  background: rgba(10,18,40,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: var(--text-sm);
  font-weight: var(--weight-500);
  transition: opacity var(--dur-base), transform var(--dur-base);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  animation: flash-in 400ms var(--ease-out) both;
}

.flash-success { border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
.flash-error   { border-color: rgba(239,68,68,0.4);  color: #fca5a5; }
.flash-info    { border-color: var(--border-blue);   color: var(--brand-blue-light); }

.flash-icon { font-size: var(--text-base); flex-shrink: 0; }
.flash-text { flex: 1; }

.flash-close {
  font-size: var(--text-lg);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 var(--sp-1);
}

.flash-close:hover { opacity: 1; }

@keyframes flash-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-0);
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  will-change: transform;
}

.hero-aurora-1 {
  width: 46vw; height: 46vw;
  min-width: 380px; min-height: 380px;
  background: radial-gradient(circle, rgba(30,111,224,0.3) 0%, transparent 68%);
  top: -14%; left: -10%;
  animation: drift-a 22s ease-in-out infinite;
}

.hero-aurora-2 {
  width: 42vw; height: 42vw;
  min-width: 340px; min-height: 340px;
  background: radial-gradient(circle, rgba(139,47,232,0.26) 0%, transparent 68%);
  bottom: -18%; right: -8%;
  animation: drift-b 27s ease-in-out infinite;
}

.hero-aurora-3 {
  width: 30vw; height: 30vw;
  min-width: 260px; min-height: 260px;
  background: radial-gradient(circle, rgba(34,211,238,0.14) 0%, transparent 70%);
  top: 46%; left: 46%;
  transform: translate(-50%, -50%);
  animation: pulse-aurora 14s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 76% 70% at 50% 42%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 76% 70% at 50% 42%, #000 10%, transparent 78%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--surface-1));
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--sp-6);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(79,195,247,0.06);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: var(--weight-600);
  color: var(--brand-blue-light);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  animation: fade-up 0.7s var(--ease-out) 0.05s both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--brand-blue-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-blue-glow);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: var(--weight-800);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  text-wrap: balance;
  perspective: 800px;
}

/* character-split headline */
.split-line { display: block; }

/* words stay atomic so lines can only break at spaces */
.split-word { display: inline-block; white-space: nowrap; }

.split-char {
  display: inline-block;
  white-space: pre;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* hidden only once JS is confirmed present, so a JS failure still shows text */
.js .split-char { opacity: 0; }

/* A background-clipped gradient cannot paint through transformed child
   spans, so split lines get a per-character colour ramp from JS instead —
   visually identical, and it survives the entrance animation. */
.hero-headline .text-gradient.split-line {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.js .hero-headline .text-gradient.split-line {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--brand-blue-light);
}

.js .hero-headline .text-gradient.split-line .split-char {
  -webkit-text-fill-color: currentColor;
}

/* capability ticker under the headline */
.hero-ticker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: 0.8125rem;
  min-height: 1.6em;
  animation: fade-up 0.7s var(--ease-out) 0.4s both;
}

.hero-ticker-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
  padding-right: var(--sp-3);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.hero-ticker .rotator {
  font-weight: var(--weight-600);
  color: var(--brand-blue-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rotator-caret {
  display: inline-block;
  width: 3px;
  height: 0.86em;
  vertical-align: text-bottom;
  margin-left: 4px;
  background: var(--brand-blue-glow);
  box-shadow: 0 0 10px var(--brand-blue-glow);
  border-radius: 2px;
  animation: caret-blink 1.05s steps(1) infinite;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 540px;
  animation: fade-up 0.7s var(--ease-out) 0.22s both;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
  animation: fade-up 0.7s var(--ease-out) 0.3s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  animation: fade-up 0.7s var(--ease-out) 0.38s both;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-trust-check {
  width: 17px; height: 17px;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  font-size: 9px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. HERO — PROJECTED HOLOGRAPHIC FACE
   A scanned human head (glTF bake, streamed as static/models/head.holo) is
   rendered by static/js/holoface.js in raw WebGL: additive fresnel shell +
   wireframe + surface stipple, with scan bands, band tearing and RGB split.
   Everything around it — cone, emitter, motes, scanline rake, HUD ticks — is
   CSS, and the chromatic veil reads the --holo-glitch value the renderer
   writes each frame. Falls back to the baked poster with no WebGL or no JS.
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  animation: fade-in 1.1s var(--ease-out) 0.25s both;
}

.android-stage {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 5 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ambient light pool the projection sits in */
.holo-ambient {
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(30,111,224,0.3) 0%,
              rgba(139,47,232,0.13) 46%,
              transparent 70%);
  filter: blur(26px);
  animation: breathe-glow 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* orbiting data ring around the projection */
.android-orbit {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  border: 1px dashed rgba(192,96,250,0.12);
  pointer-events: none;
}

.android-orbit-2 { animation: spin 52s linear infinite reverse; }

.android-orbit-track {
  position: absolute;
  inset: 0;
  animation: spin 30s linear infinite;
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--brand-blue-glow);
  box-shadow: 0 0 14px var(--brand-blue-glow), 0 0 4px #fff;
}

.orbit-node-2 { background: var(--brand-purple-light); box-shadow: 0 0 14px var(--brand-purple-glow), 0 0 4px #fff; }
.orbit-node-3 { background: #fff; box-shadow: 0 0 12px var(--brand-blue-light); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

/* parallax wrapper driven by the pointer */
.android-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

/* ---- projection rig: head, cone, emitter, motes, HUD ticks ---- */
.holo-rig {
  position: absolute;
  inset: 0;
}

/* ---- the head (WebGL canvas, poster fallback underneath) ---- */
.holo-projection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 78%;
  animation: holo-hover 7s ease-in-out infinite,
             holo-flicker 7s steps(1) infinite;
  will-change: transform;
}

.holo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

/* the renderer flips this on once geometry is uploaded and the first frame is up */
.holo-ready .holo-canvas { opacity: 1; }
.holo-no-gl .holo-canvas { display: none; }

/* static bake of the same head — carries no-JS, no-WebGL and pre-load states */
.holo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 22px rgba(79,195,247,0.45));
}

.holo-ready .holo-poster { display: none; }

/* ---- scanlines raked across the projection ---- */
.holo-scanlines {
  position: absolute;
  inset: -2% -6%;
  background: repeating-linear-gradient(to bottom,
              rgba(190,240,255,0.12) 0px, rgba(190,240,255,0.12) 1px,
              transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: scan-drift 1.6s linear infinite;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
}

/* chromatic wash driven by --holo-glitch, which the renderer writes each frame */
.holo-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg,
              rgba(34,211,238,0.14) 0%,
              transparent 45%,
              rgba(192,96,250,0.16) 100%);
  mix-blend-mode: screen;
  opacity: calc(var(--holo-glitch, 0) * 0.6);
  pointer-events: none;
}

/* ---- projection cone ---- */
.holo-cone {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 84%;
  height: 76%;
  transform: translateX(-50%);
  clip-path: polygon(41% 100%, 59% 100%, 97% 0%, 3% 0%);
  background: linear-gradient(to top,
              rgba(79,195,247,0.22) 0%,
              rgba(79,195,247,0.07) 40%,
              rgba(139,47,232,0.04) 70%,
              transparent 100%);
  filter: blur(3px);
  animation: cone-breathe 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ---- rising motes ---- */
.holo-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.holo-mote {
  position: absolute;
  bottom: 9%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9BE9FF;
  box-shadow: 0 0 9px var(--brand-blue-light);
  opacity: 0;
  animation: mote-rise 7s linear infinite;
}

/* ---- emitter base ---- */
.holo-emitter {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 60%;
  height: 15%;
  transform: translateX(-50%);
  pointer-events: none;
}

.emitter-glow {
  position: absolute;
  inset: -140% -34%;
  background: radial-gradient(50% 50% at 50% 50%,
              rgba(155,233,255,0.34) 0%,
              rgba(30,111,224,0.12) 45%,
              transparent 72%);
  filter: blur(10px);
}

.emitter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79,195,247,0.5);
}

.emitter-ring-2 { inset: 14% 22%; border-color: rgba(127,217,255,0.42); }
.emitter-ring-3 { inset: 27% 40%; border-color: rgba(189,241,255,0.5); }

.emitter-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79,195,247,0.6);
  animation: base-ring 4s ease-out infinite;
}

.emitter-pulse-2 {
  border-color: rgba(192,96,250,0.5);
  animation-delay: 2s;
}

.emitter-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #BDF1FF;
  opacity: 0.85;
  filter: blur(1.5px);
  box-shadow: 0 0 22px var(--brand-blue-light);
}

/* ---- side HUD ticks ---- */
.holo-hud {
  position: absolute;
  top: 36%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: hud-blink 3.4s ease-in-out infinite;
  pointer-events: none;
}

.holo-hud-l { left: 1%; align-items: flex-end; }
.holo-hud-r { right: 1%; align-items: flex-start; }

.holo-hud span {
  display: block;
  height: 1.6px;
  border-radius: 1px;
  background: var(--brand-blue-light);
}

.holo-hud span:nth-child(1) { width: 30px; }
.holo-hud span:nth-child(2) { width: 42px; }
.holo-hud span:nth-child(3) { width: 20px; }
.holo-hud-r span { background: var(--brand-purple-light); }

/* --------------------------------------------------------------------------
   8b. HUD CHIPS
   -------------------------------------------------------------------------- */
.hud-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(8,16,34,0.8);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
  z-index: 4;
  white-space: nowrap;
}

.hud-chip-1 { top: 10%; right: -8%; animation-delay: 0s; }
.hud-chip-2 { bottom: 26%; left: -10%; animation-delay: 1.6s; }
.hud-chip-3 { bottom: 4%; right: -2%; animation-delay: 3.1s; }

.hud-chip-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30,111,224,0.4);
}

.hud-chip-label {
  font-size: 0.8125rem;
  font-weight: var(--weight-700);
  color: var(--text-primary);
  line-height: 1.25;
}

.hud-chip-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.hud-chip-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   9. CAPABILITY MARQUEE
   -------------------------------------------------------------------------- */
.marquee-band {
  position: relative;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-6) 0;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-5);
  font-weight: var(--weight-600);
}

.marquee-viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--sp-3);
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-viewport:hover .marquee-track { animation-play-state: paused; }

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(160,205,255,0.03);
  font-size: 0.8125rem;
  font-weight: var(--weight-500);
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-chip svg { color: var(--brand-blue-light); opacity: 0.8; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   10. SERVICES
   -------------------------------------------------------------------------- */
.services {
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out),
              border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* cursor-following highlight */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(79,195,247,0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(79,195,247,0.12);
  background: rgba(14,26,58,0.72);
}

.service-visual {
  position: relative;
  height: 132px;
  flex-shrink: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 130% at 50% 130%, rgba(30,111,224,0.28), transparent 70%),
    linear-gradient(180deg, rgba(10,18,40,0.2), rgba(6,10,24,0.7));
  border-bottom: 1px solid var(--border-subtle);
}

.service-card:nth-child(3n+2) .service-visual {
  background:
    radial-gradient(ellipse 100% 130% at 50% 130%, rgba(139,47,232,0.26), transparent 70%),
    linear-gradient(180deg, rgba(10,18,40,0.2), rgba(6,10,24,0.7));
}

.service-card:nth-child(3n) .service-visual {
  background:
    radial-gradient(ellipse 100% 130% at 50% 130%, rgba(34,211,238,0.22), transparent 70%),
    linear-gradient(180deg, rgba(10,18,40,0.2), rgba(6,10,24,0.7));
}

.service-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to top, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 88%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover .service-visual-grid { transform: translateY(-6px) scale(1.06); }

.service-visual-sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(79,195,247,0.12), transparent);
  transform: translateX(-140%);
  transition: transform 900ms var(--ease-out);
}

.service-card:hover .service-visual-sweep { transform: translateX(340%); }

.service-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: var(--radius-lg);
  background: rgba(8,16,34,0.72);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-light);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
  transition: transform var(--dur-base) var(--ease-spring), color var(--dur-base), border-color var(--dur-base);
}

.service-card:hover .service-icon {
  transform: translate(-50%, -50%) translateY(-4px) scale(1.06);
  border-color: var(--border-blue);
  color: #fff;
}

.service-card-body {
  padding: var(--sp-6);
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--weight-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: var(--sp-3);
}

.service-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-700);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--sp-5);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-600);
  color: var(--brand-blue-light);
  transition: gap var(--dur-fast), color var(--dur-fast);
  align-self: flex-start;
  padding: 0;
}

.service-link svg { transition: transform var(--dur-base) var(--ease-out); }
.service-link:hover { color: #fff; }
.service-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11. STATS
   -------------------------------------------------------------------------- */
.stats-ribbon {
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.stats-ribbon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(30,111,224,0.1), transparent 70%);
  pointer-events: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--radius-xl);
  background: rgba(160,205,255,0.028);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
}

.stat-item:hover {
  background: rgba(79,195,247,0.06);
  border-color: var(--border-blue);
  transform: translateY(-4px);
}

.stat-icon {
  width: 40px; height: 40px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(79,195,247,0.08);
  border: 1px solid rgba(79,195,247,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-light);
}

.stat-number {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: var(--weight-800);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-3);
  display: block;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-600);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.stat-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. ABOUT
   -------------------------------------------------------------------------- */
.about {
  background: var(--surface-0);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}

.about-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), border-color var(--dur-base);
}

.value-item:hover {
  background: var(--surface-glass-2);
  border-color: var(--border-blue);
  transform: translateY(-3px);
}

.value-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(79,195,247,0.09);
  border: 1px solid rgba(79,195,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-light);
  flex-shrink: 0;
}

.value-item:nth-child(2) .value-icon,
.value-item:nth-child(3) .value-icon {
  background: rgba(192,96,250,0.09);
  border-color: rgba(192,96,250,0.2);
  color: var(--brand-purple-light);
}

.value-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-700);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.value-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   13. WHY ALEXON
   -------------------------------------------------------------------------- */
.why {
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

.why-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.why-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.45);
  background: rgba(14,26,58,0.6);
}

.why-card:hover::after { transform: scaleX(1); }

.why-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: rgba(79,195,247,0.09);
  border: 1px solid rgba(79,195,247,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--brand-blue-light);
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-spring);
}

.why-card:hover .why-card-icon { transform: translateY(-2px) scale(1.05); }

.why-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-700);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.why-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}

.why-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

.why-card-list li {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.why-card-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  flex-shrink: 0;
}

.why-highlight {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--sp-5);
}

.why-highlight-primary {
  background: var(--grad-hero);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.why-highlight-primary::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.why-highlight-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 20% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 20% 20%, #000, transparent 75%);
  pointer-events: none;
}

.why-highlight-primary > * { position: relative; z-index: 1; }

.why-highlight-secondary {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem);
}

.why-highlight-label {
  font-size: 0.6875rem;
  font-weight: var(--weight-700);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-3);
  display: block;
}

.why-highlight-title {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: var(--weight-800);
  color: #fff;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.why-highlight-desc {
  color: rgba(255,255,255,0.75);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
  font-size: 0.9375rem;
  max-width: 520px;
}

.timeline { display: flex; flex-direction: column; gap: var(--sp-4); }

.timeline-step {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-out);
}

.timeline-step:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }

.timeline-num {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-700);
  color: #fff;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.timeline-step-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-600);
  color: #fff;
  margin-bottom: 2px;
}

.timeline-step-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.compliance-badge {
  padding: 0.4rem 0.9rem;
  background: rgba(79,195,247,0.06);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-600);
  color: var(--brand-blue-light);
  letter-spacing: 0.02em;
  transition: background var(--dur-base), border-color var(--dur-base);
}

.compliance-badge:hover { background: rgba(79,195,247,0.12); border-color: var(--border-blue); }

/* --------------------------------------------------------------------------
   14. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--surface-0);
  position: relative;
  overflow: hidden;
}

.testimonials::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 45%, rgba(30,111,224,0.08), transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 55%, rgba(139,47,232,0.08), transparent 70%);
  pointer-events: none;
}

.testimonial-carousel-wrap { position: relative; z-index: 1; }

.testimonial-track { position: relative; }

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.985);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.testimonial-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--grad-line);
}

.testimonial-quote-mark {
  color: rgba(79,195,247,0.16);
  margin: 0 auto var(--sp-5);
  display: block;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  color: var(--color-warning);
  margin-bottom: var(--sp-5);
}

.testimonial-quote {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
  font-weight: var(--weight-400);
  text-wrap: pretty;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-700);
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(30,111,224,0.35);
}

.testimonial-author-meta { text-align: left; }

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-700);
  color: var(--text-primary);
  display: block;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.testimonial-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base), transform var(--dur-base);
  flex-shrink: 0;
}

.testimonial-btn:hover {
  background: rgba(79,195,247,0.1);
  border-color: var(--border-blue);
  color: var(--brand-blue-light);
  transform: scale(1.06);
}

.testimonial-dots { display: flex; gap: var(--sp-2); }

.testimonial-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(160,205,255,0.22);
  transition: all var(--dur-base) var(--ease-out);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--brand-blue-light);
  width: 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(79,195,247,0.5);
}

/* --------------------------------------------------------------------------
   15. CONTACT
   -------------------------------------------------------------------------- */
.contact {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: var(--weight-800);
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.contact-info-sub {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-10);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  transition: background var(--dur-base);
}

.contact-detail:hover { background: rgba(160,205,255,0.035); }

.contact-detail-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: rgba(79,195,247,0.08);
  border: 1px solid rgba(79,195,247,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-light);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-600);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 3px;
}

.contact-detail-value { font-size: var(--text-sm); color: var(--text-primary); font-weight: var(--weight-500); }

.contact-detail-link {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--weight-500);
  transition: color var(--dur-fast);
}

.contact-detail-link:hover { color: var(--brand-blue-light); }

.contact-social {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}

.contact-social-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-600);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--sp-4);
}

.contact-social-row { display: flex; gap: var(--sp-3); }

.contact-social-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(160,205,255,0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--dur-base), background var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}

.contact-social-btn:hover {
  color: var(--brand-blue-light);
  background: rgba(79,195,247,0.1);
  border-color: var(--border-blue);
  transform: translateY(-3px);
}

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-line);
}

.contact-form-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-700);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.contact-form-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-600);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-req { color: #f87171; margin-left: 2px; }

.form-control {
  background: rgba(3,6,15,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

.form-control::placeholder { color: var(--text-faint); }

.form-control:hover { border-color: var(--border-glass); }

.form-control:focus {
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.13);
  background: rgba(3,6,15,0.75);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-control option { background: var(--surface-3); color: var(--text-primary); }

.form-textarea { min-height: 128px; resize: vertical; line-height: var(--leading-relaxed); }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.form-consent input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
  cursor: pointer;
}

.form-consent label { cursor: pointer; }
.form-consent a { color: var(--brand-blue-light); text-decoration: underline; text-underline-offset: 2px; }

.form-control.invalid {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
  animation: shake 420ms var(--ease-out);
}

.form-consent input.invalid { outline: 2px solid rgba(239,68,68,0.7); outline-offset: 2px; }

.form-footnote {
  color: var(--text-faint);
  font-size: var(--text-xs);
  text-align: center;
  margin-top: var(--sp-4);
}

/* submit loading state */
.btn.is-loading { pointer-events: none; opacity: 0.75; }

.btn.is-loading .btn-label { opacity: 0.6; }

.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
  z-index: 2;
}

.btn.is-loading > svg, .btn.is-loading > span { visibility: hidden; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer-main { padding: clamp(3rem, 6vw, 5rem) 0 var(--sp-12); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--sp-5);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 300px;
}

.footer-social { display: flex; gap: var(--sp-3); }

.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(160,205,255,0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--dur-base), background var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}

.footer-social-btn:hover {
  background: rgba(79,195,247,0.1);
  border-color: var(--border-blue);
  color: var(--brand-blue-light);
  transform: translateY(-3px);
}

.footer-col-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-700);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.footer-links-list { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast), transform var(--dur-fast);
  padding: 0;
  text-align: left;
}

.footer-link:hover { color: var(--brand-blue-light); transform: translateX(3px); }

.footer-newsletter-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-4);
}

.footer-nl-form {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(3,6,15,0.5);
  margin-bottom: var(--sp-2);
  transition: border-color var(--dur-fast);
}

.footer-nl-form:focus-within { border-color: var(--border-blue); }

.footer-nl-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.footer-nl-input::placeholder { color: var(--text-faint); }

.footer-nl-btn {
  background: var(--grad-brand);
  padding: var(--sp-3) var(--sp-5);
  color: #fff;
  display: flex;
  align-items: center;
  transition: opacity var(--dur-fast);
  flex-shrink: 0;
}

.footer-nl-btn:hover { opacity: 0.88; }

.footer-nl-note { font-size: var(--text-xs); color: var(--text-faint); }

.footer-contact-list {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.footer-contact-link:hover { color: var(--brand-blue-light); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-6) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copy { font-size: var(--text-xs); color: var(--text-faint); }

.footer-legal { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }

.footer-legal-link {
  font-size: var(--text-xs);
  color: var(--text-faint);
  transition: color var(--dur-fast);
}

.footer-legal-link:hover { color: var(--brand-blue-light); }

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.footer-status-dot {
  width: 6px; height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   17. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(8,16,34,0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out), visibility var(--dur-base), background var(--dur-base);
  box-shadow: var(--shadow-lg);
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(30,111,224,0.28); border-color: var(--border-blue); }

/* --------------------------------------------------------------------------
   18. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(5vw, 3vh) scale(1.08); }
  66%      { transform: translate(-3vw, 5vh) scale(0.95); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-4vw, -4vh) scale(1.06); }
  66%      { transform: translate(4vw, 2vh) scale(0.94); }
}

@keyframes pulse-aurora {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.72); }
}

@keyframes caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- hologram --- */
@keyframes holo-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes breathe-glow {
  0%, 100% { opacity: 0.62; transform: scale(0.97); }
  50%      { opacity: 0.95; transform: scale(1.05); }
}

/* irregular signal instability — brief dropouts, never a steady blink */
@keyframes holo-flicker {
  0%, 8%    { opacity: 1; }
  8.4%      { opacity: 0.72; }
  8.8%      { opacity: 1; }
  27%       { opacity: 1; }
  27.3%     { opacity: 0.55; }
  27.7%     { opacity: 1; }
  28.1%     { opacity: 0.82; }
  28.5%     { opacity: 1; }
  61%       { opacity: 1; }
  61.4%     { opacity: 0.66; }
  61.9%     { opacity: 1; }
  86%       { opacity: 1; }
  86.3%     { opacity: 0.88; }
  86.6%     { opacity: 1; }
  100%      { opacity: 1; }
}

/* one scanline period, so the rake loops seamlessly */
@keyframes scan-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

@keyframes cone-breathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

@keyframes mote-rise {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  8%   { opacity: 0.85; }
  75%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-330px) scale(0.4); }
}

@keyframes base-ring {
  0%   { opacity: 0.55; transform: scale(0.42); }
  100% { opacity: 0;    transform: scale(1.25); }
}

@keyframes hud-blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* Hidden state applies only when JS is running — otherwise content stays
   visible rather than disappearing behind an animation that never fires. */
.js .fade-in-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: transform, opacity;
}

.js .fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :nth-child(4) { grid-column: 1 / -1; }
  .hud-chip-1 { right: -2%; }
  .hud-chip-2 { left: -2%; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    text-align: center;
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-16);
  }
  .hero-content { max-width: 640px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; min-height: 340px; }
  .android-stage { width: min(360px, 84vw); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .why-highlight { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .navbar-links, .navbar-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 680px) {
  :root { --nav-h: 66px; }
  .container { padding: 0 var(--sp-5); }
  .navbar-inner { padding: 0 var(--sp-5); }
  .navbar-logo-img { height: 32px; }
  .navbar.scrolled .navbar-logo-img { height: 28px; }

  .hero-inner { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: var(--sp-2) var(--sp-4); justify-content: center; }
  .hero-trust-item { font-size: 0.75rem; }
  .hero-visual { min-height: 300px; }
  .android-stage { width: min(300px, 78vw); }
  .hud-chip { padding: 0.45rem 0.65rem; gap: var(--sp-2); border-radius: var(--radius-md); }
  .hud-chip-icon { width: 24px; height: 24px; border-radius: 7px; }
  .hud-chip-icon svg { width: 13px; height: 13px; }
  .hud-chip-label { font-size: 0.6875rem; }
  .hud-chip-note { display: none; }
  .hud-chip-3 { display: none; }
  .hud-chip-1 { top: 6%; right: -4%; }
  .hud-chip-2 { bottom: 10%; left: -4%; }

  .services-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; gap: var(--sp-4); }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .stat-item { padding: var(--sp-5) var(--sp-3); }
  .about-values { gap: var(--sp-3); }
  .value-item { padding: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-grid > :nth-child(4) { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .footer-legal { gap: var(--sp-4); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .flash-container { right: var(--sp-4); left: var(--sp-4); max-width: none; }
  .to-top { right: var(--sp-4); bottom: var(--sp-4); }
  .testimonial-controls { gap: var(--sp-3); }
  .contact-detail { padding: var(--sp-2); }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .hud-chip-2 { display: none; }
}

/* --------------------------------------------------------------------------
   21. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .fade-in-up { opacity: 1; transform: none; }
  .js .split-char { opacity: 1; }
  .mobile-menu .navbar-link { opacity: 1; transform: none; }
  .hero-aurora, .android-orbit-2, .android-orbit-track { animation: none !important; }
  /* holoface.js renders a single still frame; kill the surrounding motion too */
  .holo-projection, .holo-scanlines, .holo-cone, .emitter-pulse, .holo-hud {
    animation: none !important;
  }
  .holo-motes { display: none; }
}

/* --------------------------------------------------------------------------
   22. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .navbar, .mobile-menu, .to-top, .hero-bg, .marquee-band { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   23. ALEXIO — SITE ASSISTANT WIDGET
   Floating launcher + chat panel. Streams replies from /api/chat.
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* keep the back-to-top button clear of the launcher */
.to-top { bottom: calc(var(--sp-6) + 70px); }

/* ---- launcher ---- */
.alexio-launcher {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(160,205,255,0.22);
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(30,111,224,0.42), 0 2px 8px rgba(0,0,0,0.35);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}

.alexio-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 38px rgba(30,111,224,0.55); }
.alexio-launcher:active { transform: scale(0.97); }

.alexio-launcher-icon {
  position: absolute;
  display: flex;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.alexio-launcher-close { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.alexio-open .alexio-launcher-open { opacity: 0; transform: rotate(45deg) scale(0.7); }
.alexio-open .alexio-launcher-close { opacity: 1; transform: rotate(0) scale(1); }

/* attention ring until first opened */
.alexio-launcher-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue-glow);
  opacity: 0;
  animation: alexio-pulse 3.4s ease-out infinite 2s;
  pointer-events: none;
}

.alexio-open .alexio-launcher-pulse,
.alexio-seen .alexio-launcher-pulse { animation: none; opacity: 0; }

@keyframes alexio-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  70%  { opacity: 0;    transform: scale(1.45); }
  100% { opacity: 0;    transform: scale(1.45); }
}

/* ---- panel ---- */
.alexio-panel {
  position: fixed;
  right: var(--sp-6);
  bottom: calc(var(--sp-6) + 72px);
  width: min(396px, calc(100vw - 2 * var(--sp-6)));
  height: min(600px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: rgba(6,12,26,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(79,195,247,0.06);
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.alexio-panel[hidden] { display: none; }
.alexio-panel.show { opacity: 1; transform: translateY(0) scale(1); }

/* ---- header ---- */
.alexio-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(30,111,224,0.16), transparent);
  flex-shrink: 0;
}

.alexio-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alexio-heading { flex: 1; min-width: 0; }

.alexio-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 0;
}

.alexio-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alexio-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  flex-shrink: 0;
}

.alexio-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.alexio-close:hover { color: var(--text-primary); background: var(--surface-glass-2); }

/* ---- message log ---- */
.alexio-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(120,170,230,0.28) transparent;
}

.alexio-log::-webkit-scrollbar { width: 6px; }
.alexio-log::-webkit-scrollbar-thumb { background: rgba(120,170,230,0.28); border-radius: 3px; }

.alexio-msg { display: flex; max-width: 100%; animation: alexio-in 260ms var(--ease-out) both; }
.alexio-msg-user { justify-content: flex-end; }

@keyframes alexio-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alexio-bubble {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--surface-glass-2);
  border: 1px solid var(--border-subtle);
  overflow-wrap: anywhere;
}

/* the visitor's own text is echoed verbatim, so keep their line breaks */
.alexio-msg-user .alexio-bubble { white-space: pre-wrap; }

.alexio-msg-bot .alexio-bubble { border-bottom-left-radius: 5px; }

.alexio-msg-user .alexio-bubble {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, rgba(30,111,224,0.34), rgba(139,47,232,0.28));
  border-color: var(--border-blue);
  color: var(--text-primary);
}

.alexio-bubble p { margin: 0 0 0.55rem; }
.alexio-bubble > :last-child { margin-bottom: 0; }

/* app.css resets ul globally to list-style: none — restore it in the bubble */
.alexio-bubble ul {
  list-style: disc;
  margin: 0.45rem 0;
  padding-left: 1.15rem;
}

.alexio-bubble li { margin-bottom: 0.25rem; }
.alexio-bubble li:last-child { margin-bottom: 0; }
.alexio-bubble li::marker { color: var(--brand-blue-light); }
.alexio-bubble a { color: var(--text-accent); text-decoration: underline; }
.alexio-bubble.alexio-error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* typing indicator */
.alexio-typing { display: flex; gap: 4px; align-items: center; padding: 0.25rem 0; }
.alexio-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  opacity: 0.4;
  animation: alexio-dot 1.3s ease-in-out infinite;
}
.alexio-typing span:nth-child(2) { animation-delay: 0.18s; }
.alexio-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes alexio-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

/* ---- suggestion chips ---- */
.alexio-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-3);
  flex-shrink: 0;
}

.alexio-suggestions[hidden] { display: none; }

.alexio-chip {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--text-accent);
  background: rgba(79,195,247,0.09);
  border: 1px solid rgba(79,195,247,0.26);
  border-radius: var(--radius-full);
  padding: 0.34rem 0.7rem;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.alexio-chip:hover { background: rgba(79,195,247,0.18); border-color: var(--border-blue); transform: translateY(-1px); }

/* ---- composer ---- */
.alexio-composer {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  background: rgba(8,16,34,0.6);
  flex-shrink: 0;
}

.alexio-input {
  flex: 1;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.alexio-input::placeholder { color: var(--text-faint); }
.alexio-input:focus { border-color: var(--border-blue); box-shadow: 0 0 0 3px rgba(79,195,247,0.12); }

.alexio-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

.alexio-send:hover:not(:disabled) { transform: scale(1.06); }
.alexio-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- footnote ---- */
.alexio-foot {
  font-size: 0.68rem;
  color: var(--text-faint);
  text-align: center;
  padding: 0 var(--sp-4) var(--sp-3);
  margin: 0;
  flex-shrink: 0;
}

.alexio-link {
  font: inherit;
  color: var(--text-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- mobile: full-height sheet ---- */
@media (max-width: 560px) {
  .alexio-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: 88vh;
    height: 88dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform-origin: bottom center;
  }
  .alexio-launcher { right: var(--sp-4); bottom: var(--sp-4); width: 54px; height: 54px; }
  .to-top { bottom: calc(var(--sp-4) + 66px); right: var(--sp-4); }
  .alexio-open .to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .alexio-launcher-pulse { animation: none !important; opacity: 0; }
  .alexio-msg { animation: none !important; }
}

@media print {
  .alexio { display: none !important; }
}
