/* =========================================================================
   OWASOL — main stylesheet
   Layer order: tokens → base → background → header → buttons → hero
                → sections → components → footer → motion → responsive
   Tailwind (Play CDN) handles layout utilities; this file owns the
   3D work, gradients, and everything Tailwind can't express cleanly.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --ink-900: #03061a;
  --ink-800: #060b1f;
  --ink-700: #080f2b;
  --ink-600: #0b1436;

  --cyan:   #22d3ee;
  --sky:    #38bdf8;
  --blue:   #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --purple: #a855f7;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);

  --grad-brand: linear-gradient(120deg, var(--cyan), var(--indigo) 55%, var(--purple));
  --grad-text:  linear-gradient(100deg, #67e8f9, #818cf8 45%, #c084fc);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Base ------------------------------------------------------ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink-900);
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

.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;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--indigo), var(--purple));
  border-radius: 99px;
  border: 2px solid var(--ink-900);
}

/* ---------- 3. Preloader ------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--ink-900);
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
}
#preloader.is-done { opacity: 0; visibility: hidden; }

.loader-orb {
  position: relative;
  width: 82px;
  height: 82px;
  transform-style: preserve-3d;
}
.loader-orb span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: loaderSpin 1.6s linear infinite;
}
.loader-orb span:nth-child(2) {
  inset: 12px; border-top-color: var(--purple);
  animation-duration: 2.1s; animation-direction: reverse;
}
.loader-orb span:nth-child(3) {
  inset: 24px; border-top-color: var(--sky); animation-duration: 1.2s;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.loader-text {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseText 1.8s ease-in-out infinite;
}
@keyframes pulseText { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- 4. Scroll progress ------------------------------------------ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

/* ---------- 5. Ambient background --------------------------------------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.bg-aurora, .bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.aurora-1 {
  width: 620px; height: 620px; top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 68%);
  animation: drift 22s ease-in-out infinite;
}
.aurora-2 {
  width: 560px; height: 560px; top: 42%; left: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 68%);
  animation: drift 28s ease-in-out infinite reverse;
}
.aurora-3 {
  width: 700px; height: 700px; bottom: -260px; right: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 70%);
  animation: drift 34s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(60px, -50px, 0) scale(1.12); }
  66%  { transform: translate3d(-45px, 40px, 0) scale(0.94); }
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 30%, transparent 78%);
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- 6. Header ---------------------------------------------------- */
#siteHeader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 31, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}
#siteHeader.is-stuck::before { opacity: 1; }
#siteHeader > div,
#siteHeader .mobile-menu { position: relative; z-index: 1; }
#siteHeader.is-stuck nav { height: 68px; }
#siteHeader nav { transition: height 0.4s var(--ease-soft); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
a:hover > .logo-mark {
  transform: rotate(-12deg) scale(1.06);
  box-shadow: 0 0 26px -4px rgba(34, 211, 238, 0.55);
}
/* The mark is already a self-contained badge, so it needs no tile behind it. */
.logo-mark { background: none; border: 0; width: 38px; height: 38px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
a:hover > .logo-mark { transform: scale(1.07); box-shadow: none; }

.logo-word {
  font-family: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  /* letter-spacing trails the last glyph — pull it back so the lockup stays
     optically centred against the mark. */
  margin-right: -0.17em;
}
.logo-word-sm { font-size: 17px; }

@media (max-width: 480px) {
  .logo-word { font-size: 17px; letter-spacing: 0.14em; margin-right: -0.14em; }
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  padding-bottom: 6px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  height: 2px; width: 0;
  transform: translateX(-50%);
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }

.menu-toggle {
  display: grid;
  gap: 5px;
  width: 44px; height: 44px;
  place-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  background: rgba(6, 11, 31, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.5s var(--ease-out);
}
.mobile-menu.is-open { max-height: 520px; }
.mobile-link {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-link:hover { color: var(--cyan); padding-left: 12px; }

/* ---------- 7. Buttons --------------------------------------------------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(115deg, var(--indigo), var(--purple));
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.9);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--cyan), var(--blue));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -14px rgba(34, 211, 238, 0.85);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { animation: sheen 0.85s var(--ease-soft); }
@keyframes sheen { to { left: 130%; } }

.btn-orb {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover .btn-orb { transform: rotate(45deg) scale(1.08); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 14px 34px -18px rgba(34, 211, 238, 0.9);
}

.btn-lg { padding: 12px 12px 12px 26px; font-size: 15px; }
.btn-ghost.btn-lg { padding: 15px 30px; }

/* ---------- 8. Hero ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 3px; height: 15px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shiftHue 7s linear infinite;
}
@keyframes shiftHue { to { background-position: 200% center; } }

.scroll-badge {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.07);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* --- 3D orb --- */
.orb-stage {
  position: relative;
  width: clamp(290px, 40vw, 470px);
  aspect-ratio: 1;
  perspective: 1100px;
}
.orb-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-soft);
  animation: sceneFloat 9s ease-in-out infinite;
}
@keyframes sceneFloat {
  0%, 100% { translate: 0 -10px; }
  50%      { translate: 0 14px; }
}

.orb-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.55), rgba(34, 211, 238, 0.22) 45%, transparent 68%);
  filter: blur(38px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.14); opacity: 1; }
}

.orb-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 16%),
    radial-gradient(circle at 68% 72%, rgba(34, 211, 238, 0.9), transparent 46%),
    radial-gradient(circle at 36% 64%, rgba(192, 132, 252, 0.95), transparent 52%),
    radial-gradient(circle at 74% 34%, rgba(99, 102, 241, 0.85), transparent 48%),
    linear-gradient(150deg, #3b1178, #0b1442 72%);
  box-shadow:
    inset 0 0 60px rgba(124, 58, 237, 0.9),
    inset -18px -14px 60px rgba(0, 0, 0, 0.7),
    0 0 90px -12px rgba(139, 92, 246, 0.95);
  transform: translateZ(30px);
  animation: coreSpin 18s linear infinite;
}
@keyframes coreSpin { to { rotate: 360deg; } }

.orb-swirl {
  position: absolute;
  inset: -22%;
  border-radius: 45%;
  opacity: 0.75;
  mix-blend-mode: screen;
  filter: blur(6px);
}
.swirl-1 {
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, 0.9), transparent 42%);
  animation: swirl 7s linear infinite;
}
.swirl-2 {
  background: conic-gradient(from 140deg, transparent, rgba(192, 132, 252, 0.9), transparent 38%);
  animation: swirl 11s linear infinite reverse;
}
.swirl-3 {
  inset: -8%;
  background: conic-gradient(from 260deg, transparent, rgba(255, 255, 255, 0.55), transparent 22%);
  animation: swirl 15s linear infinite;
  opacity: 0.38;
}
@keyframes swirl { to { transform: rotate(360deg); } }

.orb-shine {
  position: absolute;
  top: 11%; left: 18%;
  width: 26%; height: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  filter: blur(8px);
}

.orb-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.5);
  transform-style: preserve-3d;
}
.ring-1 {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 26px -6px rgba(34, 211, 238, 0.8), inset 0 0 22px -8px rgba(34, 211, 238, 0.7);
  animation: ringSpinA 14s linear infinite;
}
.ring-2 {
  inset: -4%;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 30px -8px rgba(168, 85, 247, 0.8);
  animation: ringSpinB 19s linear infinite reverse;
}
.ring-3 {
  inset: 13%;
  border-color: rgba(255, 255, 255, 0.28);
  animation: ringSpinC 11s linear infinite;
}
@keyframes ringSpinA { from { transform: rotateX(74deg) rotateZ(0deg); }   to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes ringSpinB { from { transform: rotateX(58deg) rotateY(28deg) rotateZ(0deg); } to { transform: rotateX(58deg) rotateY(28deg) rotateZ(360deg); } }
@keyframes ringSpinC { from { transform: rotateY(72deg) rotateZ(0deg); }   to { transform: rotateY(72deg) rotateZ(360deg); } }

.orb-halo {
  position: absolute;
  left: 50%;
  bottom: 2%;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 22px -8px rgba(34, 211, 238, 0.8);
  transform: translateX(-50%) rotateX(76deg);
  animation: haloPulse 4.5s ease-in-out infinite;
}
.halo-1 { width: 74%; aspect-ratio: 1; }
.halo-2 { width: 92%; aspect-ratio: 1; border-color: rgba(129, 140, 248, 0.45); animation-delay: 0.6s; }
.halo-3 { width: 112%; aspect-ratio: 1; border-color: rgba(168, 85, 247, 0.32); animation-delay: 1.2s; }
@keyframes haloPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.95; box-shadow: 0 0 30px -6px rgba(34, 211, 238, 0.6); }
}

.orb-sparks { position: absolute; inset: 0; }
.orb-sparks i {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: #a5f3fc;
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.9);
  transform: rotate(var(--a)) translateX(46%);
  animation: sparkOrbit 6s linear infinite;
  animation-delay: var(--d);
}
@keyframes sparkOrbit {
  0%   { transform: rotate(var(--a)) translateX(30%) scale(0.4); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: rotate(calc(var(--a) + 180deg)) translateX(58%) scale(1); opacity: 0; }
}

/* --- floating chips --- */
.feature-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: chipFloat 6s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}
.feature-chip p {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  /* No card behind the label any more, so it needs its own separation
     from the glow of the orb it floats over. */
  text-shadow: 0 2px 10px rgba(3, 6, 26, 0.95), 0 0 22px rgba(3, 6, 26, 0.8);
  white-space: nowrap;
}
.chip-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  /* Frosted glass: translucent enough to read the orb and grid through,
     with a lit top edge so it sits as a physical disc. */
  background: linear-gradient(150deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05) 46%,
    rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    0 12px 30px -14px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -12px 22px -16px rgba(34, 211, 238, 0.6);
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.chip-ico img { width: 26px; height: 26px; }

.feature-chip:hover { transform: scale(1.05); }
.feature-chip:hover .chip-ico {
  transform: scale(1.08);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    0 16px 34px -14px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -12px 24px -14px rgba(34, 211, 238, 0.85),
    0 0 28px -8px rgba(34, 211, 238, 0.55);
}

.chip-tl { top: 6%;  right: 62%; animation-delay: 0s; }
.chip-tr { top: 24%; right: -6%; animation-delay: 1.1s; }
.chip-bl { top: 56%; right: 68%; animation-delay: 2.2s; }
.chip-br { top: 74%; right: -2%; animation-delay: 3.1s; }

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

/* ---------- 9. Marquee --------------------------------------------------- */
.marquee { 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;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.45);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--cyan); }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: rgba(34, 211, 238, 0.45); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Section furniture --------------------------------------- */
.section { padding: 96px 0; }

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kicker-dash::before,
.kicker-dash::after {
  content: '';
  display: inline-block;
  width: 26px; height: 1px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--cyan));
  margin-right: 12px;
}
.kicker-dash::after { margin: 0 0 0 12px; background: linear-gradient(90deg, var(--cyan), transparent); }

.section-title {
  margin-top: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}
.section-sub { margin-top: 14px; font-size: 15px; color: #94a3b8; }

.bg-process {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(59, 130, 246, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(10, 16, 44, 0.7), rgba(6, 11, 31, 0));
  border-block: 1px solid var(--line);
}

/* ---------- 11. Service cards ------------------------------------------- */
.service-card {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 45%);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 19px;
  padding: 26px 24px 24px;
  background: linear-gradient(165deg, rgba(13, 20, 52, 0.94), rgba(7, 11, 32, 0.94));
  overflow: hidden;
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.35), transparent 62%);
  transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 34px 60px -34px rgba(34, 211, 238, 0.55); }
.service-card:hover .card-glow { opacity: 1; }

.svc-ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.svc-ico img { transition: transform 0.5s var(--ease-out); }
.tilt:hover .svc-ico { transform: translateZ(30px) scale(1.05); }
.tilt:hover .svc-ico img { transform: rotate(-8deg); }

.ico-cyan   { background: linear-gradient(140deg, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.06)); box-shadow: inset 0 0 22px -8px var(--cyan); }
.ico-blue   { background: linear-gradient(140deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.06)); box-shadow: inset 0 0 22px -8px var(--blue); }
.ico-sky    { background: linear-gradient(140deg, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.06)); box-shadow: inset 0 0 22px -8px var(--sky); }
.ico-indigo { background: linear-gradient(140deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.06)); box-shadow: inset 0 0 22px -8px var(--indigo); }
.ico-violet { background: linear-gradient(140deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.06)); box-shadow: inset 0 0 22px -8px var(--purple); }

.card-inner h3 {
  margin: 22px 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.card-inner > p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #94a3b8; }

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}
.card-link img { transition: transform 0.35s var(--ease-out); }
.card-link:hover img, a:hover .card-link img, .tilt:hover .card-link img { transform: translateX(5px); }

/* ---------- 12. Process -------------------------------------------------- */
.process-line {
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.35) 15%, rgba(129, 140, 248, 0.35) 85%, transparent);
  display: none;
}
.process-line span {
  position: absolute;
  top: -1px; left: 0;
  height: 3px; width: 90px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: trace 5s linear infinite;
}
@keyframes trace { to { left: 100%; } }

.step { text-align: center; }
.hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.4);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, background 0.5s;
}
.hex::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(34, 211, 238, 0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s;
}
.step:hover .hex {
  transform: translateY(-8px) rotate(8deg) scale(1.06);
  box-shadow: 0 24px 44px -22px rgba(34, 211, 238, 0.9);
}
.step:hover .hex::after { opacity: 1; }
.hex img { position: relative; z-index: 2; }

.step-no {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.step h3 {
  margin: 7px 0 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.step-copy { margin: 0 auto; max-width: 210px; font-size: 13px; line-height: 1.65; color: #94a3b8; }

/* ---------- 13. Carousels ------------------------------------------------ */
.carousel {
  overflow: hidden;
  padding: 16px 20px 26px;
  margin: -16px -20px -26px;
}
.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}
.carousel-track > * { flex: 0 0 calc((100% - 44px) / 3); }

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 44, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, opacity 0.3s;
}
.carousel-nav:hover {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}
.carousel-nav:disabled { opacity: 0.3; pointer-events: none; }
.nav-prev { left: -6px; }
.nav-next { right: -6px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s var(--ease-out), background 0.4s;
}
.carousel-dots button.is-active { width: 26px; background: var(--grad-brand); }

/* ---------- 14. Work cards ---------------------------------------------- */
.work-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13, 20, 52, 0.9), rgba(7, 11, 32, 0.9));
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 34px 60px -30px rgba(34, 211, 238, 0.5);
}
.work-media { position: relative; overflow: hidden; }
.work-media img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.work-card:hover .work-media img { transform: scale(1.07); }
.work-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-soft);
}
.work-card:hover .work-shine { transform: translateX(100%); }

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
}
.work-meta h3 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.work-meta p { margin: 4px 0 0; font-size: 12.5px; color: #7f8ba6; }
.work-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.work-card:hover .work-btn {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  border-color: transparent;
  transform: rotate(45deg);
}

/* ---------- 15. Stats ---------------------------------------------------- */
.stats-bar {
  display: grid;
  gap: 26px;
  margin-top: 56px;
  padding: 30px 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.07), rgba(168, 85, 247, 0.09));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  grid-template-columns: repeat(2, 1fr);
}
.stat { display: flex; align-items: center; gap: 15px; }
.stat-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.22), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease-out);
}
.stat:hover .stat-ico { transform: rotate(-10deg) scale(1.08); }
.stat-num {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin: 6px 0 0; font-size: 12.5px; color: #94a3b8; }

/* ---------- 16. Solutions ----------------------------------------------- */
.solution-card {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13, 20, 52, 0.85), rgba(7, 11, 32, 0.9));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.45s;
}
.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 34px 64px -34px rgba(139, 92, 246, 0.7);
}
.solution-card:hover::after { opacity: 1; }
.sol-num {
  position: absolute;
  top: 20px; right: 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}
.solution-card h3 {
  position: relative;
  margin: 22px 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.solution-card > p { position: relative; margin: 0; font-size: 14px; line-height: 1.7; color: #94a3b8; }
.sol-list {
  position: relative;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sol-list li {
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12px;
  color: #cbd5e1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- 17. About ---------------------------------------------------- */
.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease-out);
}
.about-visual img { width: 100%; }
.about-badge {
  position: absolute;
  right: 18px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(6, 11, 31, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(48px);
  animation: chipFloat 5.5s ease-in-out infinite;
}
.about-badge p { margin: 0; }

.about-point { display: flex; gap: 13px; }
.about-point span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.about-point h4 {
  margin: 0 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.about-point p { margin: 0; font-size: 13px; line-height: 1.55; color: #8c99b3; }

/* ---------- 18. Testimonials -------------------------------------------- */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13, 20, 52, 0.85), rgba(7, 11, 32, 0.9));
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.45s;
}
.quote-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 30px 60px -34px rgba(34, 211, 238, 0.55);
}
.quote-mark { opacity: 0.16; }
.quote-text { margin: 16px 0 18px; font-size: 14px; line-height: 1.75; color: #cbd5e1; }
.stars { display: flex; gap: 4px; align-self: flex-start; }
.quote-text { flex: none; }
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quote-author img { border-radius: 50%; border: 1px solid var(--line-strong); }
.quote-author h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.quote-author p { margin: 3px 0 0; font-size: 12px; color: #7f8ba6; }

/* ---------- 19. Careers -------------------------------------------------- */
.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease-out), border-color 0.35s, background 0.35s;
}
.job-row > div:first-child { flex: 1 1 240px; }
.job-row:hover {
  transform: translateX(8px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.05);
}
.job-row h3 {
  margin: 0 0 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.job-row p { margin: 0; font-size: 12.5px; color: #7f8ba6; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.job-tags span {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: rgba(99, 102, 241, 0.1);
}
.job-arrow {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.35s, transform 0.35s var(--ease-out), border-color 0.35s;
}
.job-row:hover .job-arrow {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  border-color: transparent;
  transform: translateX(4px);
}

/* ---------- 20. Blog ----------------------------------------------------- */
.blog-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13, 20, 52, 0.85), rgba(7, 11, 32, 0.9));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.45s;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 34px 60px -34px rgba(139, 92, 246, 0.6);
}
.blog-media { position: relative; overflow: hidden; }
.blog-media img {
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.blog-card:hover .blog-media img { transform: scale(1.07); }
.blog-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 11, 31, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-body { padding: 22px 22px 24px; }
.blog-date { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.04em; color: #7f8ba6; }
.blog-body h3 {
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  transition: color 0.3s;
}
.blog-card:hover .blog-body h3 { color: #67e8f9; }
.blog-body > p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #94a3b8; }

/* ---------- 21. CTA ------------------------------------------------------ */
.cta-panel {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background:
    radial-gradient(120% 140% at 85% 50%, rgba(124, 58, 237, 0.45), transparent 58%),
    linear-gradient(115deg, rgba(12, 18, 48, 0.96), rgba(23, 14, 58, 0.96));
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(124, 58, 237, 0.9);
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, 0.16), transparent 32%);
  animation: swirl 16s linear infinite;
}
.cta-copy { position: relative; z-index: 2; }
.cta-copy h2 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.cta-copy > p { margin: 16px 0 0; max-width: 420px; font-size: 14.5px; line-height: 1.7; color: #c3cbe0; }

.cta-form { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-form .btn-primary { white-space: nowrap; }
.cta-fields { display: grid; gap: 12px; width: 100%; max-width: 430px; grid-template-columns: 1fr 1fr; }
.cta-form input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 99px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.cta-form input::placeholder { color: #7f8ba6; }
.cta-form input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.07);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.cta-form input.is-invalid { border-color: rgba(248, 113, 113, 0.8); background: rgba(248, 113, 113, 0.07); }
.form-note { flex: 1 0 100%; margin: 0; min-height: 18px; font-size: 12.5px; color: #67e8f9; }
.form-note.is-error { color: #fca5a5; }

.cta-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.astronaut {
  width: clamp(220px, 34vw, 330px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
  animation: astroFloat 8s ease-in-out infinite;
}
@keyframes astroFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-22px) rotate(3deg); }
}

/* ---------- 22. Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 13, 38, 0.6), rgba(3, 6, 26, 0.95));
}
.foot-title {
  margin: 0 0 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.foot-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-list a, .foot-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #8c99b3;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.foot-list a:hover { color: var(--cyan); transform: translateX(4px); }

.social {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease-out), background 0.35s, border-color 0.35s;
}
.social:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  border-color: transparent;
}

/* ---------- 23. Back to top --------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 14px 30px -12px rgba(139, 92, 246, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- 24. Scroll reveal ------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.line { display: inline-block; }

/* ---------- 25. Tilt ----------------------------------------------------- */
.tilt {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
}

/* ---------- 26. Responsive ---------------------------------------------- */
@media (min-width: 640px) {
  .cta-fields { flex: 1 1 300px; }
}

@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .carousel-track > * { flex: 0 0 calc((100% - 22px) / 2); }
}

@media (min-width: 1024px) {
  .section { padding: 120px 0; }
  .process-line { display: block; }
  .carousel-track > * { flex: 0 0 calc((100% - 44px) / 3); }
  .nav-prev { left: -30px; }
  .nav-next { right: -30px; }
  .cta-panel { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 56px 60px; }
}

@media (max-width: 1023px) {
  .carousel-track > * { flex: 0 0 100%; }
  .cta-panel { text-align: left; }
  .cta-visual { order: -1; }
}

@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .orb-stage { width: min(88vw, 380px); }
  .feature-chip { gap: 10px; }
  .feature-chip p { font-size: 11px; }
  .chip-ico { width: 40px; height: 40px; }
  .chip-ico img { width: 21px; height: 21px; }
  .chip-tl { right: 66%; }
  .chip-bl { right: 72%; }
  .cta-panel { padding: 32px 24px; }
  .carousel-nav { width: 38px; height: 38px; }
  .nav-prev { left: -12px; }
  .nav-next { right: -12px; }
  .carousel { padding: 14px 12px 22px; margin: -14px -12px -22px; }
  .stats-bar { padding: 24px 20px; }
}

/* ---------- 27. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #starfield { display: none; }
}

/* ---------- 28. Newsletter (shared footer) ------------------------------ */
.newsletter {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 72px;
  padding: 34px 38px;
  border-radius: 22px;
  border: 1px solid rgba(129, 140, 248, 0.26);
  background:
    radial-gradient(110% 160% at 88% 20%, rgba(124, 58, 237, 0.3), transparent 62%),
    linear-gradient(115deg, rgba(12, 18, 48, 0.9), rgba(20, 13, 52, 0.9));
}
.newsletter h3 {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.newsletter > div > p { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.65; color: #a3b0c9; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.newsletter-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 20px;
  border-radius: 99px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.newsletter-form input::placeholder { color: #7f8ba6; }
.newsletter-form input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.07);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.newsletter-form input.is-invalid { border-color: rgba(248, 113, 113, 0.8); background: rgba(248, 113, 113, 0.07); }
.newsletter-form .btn-primary { flex: none; white-space: nowrap; }
.newsletter-form .form-note { flex: 1 0 100%; margin: 0; }
.newsletter-form .form-note:empty { display: none; }

/* ---------- 29. Cookie notice ------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100vw - 32px));
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 38, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 22px);
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s, transform 0.5s var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cookie-banner p { flex: 1 1 300px; margin: 0; font-size: 13px; line-height: 1.6; color: #a3b0c9; }
.cookie-banner a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
/* This button carries no trailing .btn-orb, so it needs symmetric padding
   instead of the space .btn-primary reserves for that icon — and matching
   vertical padding so it lines up with .cookie-decline beside it. */
.cookie-actions .btn-primary {
  padding: 10px 22px;
  font-size: 13px;
  /* .cookie-decline carries a 1px border; match it (transparent) so both
     buttons compute to the same height and sit on one line. */
  border: 1px solid transparent;
}
.cookie-decline {
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.cookie-decline:hover { color: #fff; border-color: var(--line-strong); }

/* Keep the back-to-top button clear of the notice while it is showing. */
.cookie-banner.is-visible ~ .back-to-top { bottom: 104px; }

@media (min-width: 900px) {
  .newsletter { grid-template-columns: 1fr minmax(390px, 460px); }
  .newsletter-form input { flex: 1 1 200px; }
}

@media (max-width: 767px) {
  .newsletter { margin-top: 48px; padding: 26px 22px; }
  .cookie-banner { bottom: 14px; padding: 16px 18px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
