/* =====================================================================
   AASPHERE SERVICES — Premium 3D Design System
   Author: build for AAsphere Services
   No build step. Pure CSS. Dark (default) + Light theme via [data-theme].
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand: #22d3ee;          /* cyan   */
  --brand-2: #8b5cf6;        /* violet */
  --brand-3: #f471b5;        /* pink   */
  --brand-grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 55%, #f471b5 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(34,211,238,.18), rgba(139,92,246,.18) 55%, rgba(244,113,181,.18));

  /* Dark surface system (default) */
  --bg: #05060d;
  --bg-2: #090b16;
  --bg-grid: rgba(255,255,255,.035);
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-solid: #0c0f1c;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --text: #eef1fa;
  --text-2: #a7aecb;
  --text-3: #6a7196;

  --glow-cyan: 0 0 40px rgba(34,211,238,.35);
  --glow-violet: 0 0 40px rgba(139,92,246,.35);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.7);
  --shadow-card: 0 24px 60px -28px rgba(0,0,0,.75);

  /* Typography */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-full: 999px;

  --container: 1200px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg: #eef1f8;
  --bg-2: #ffffff;
  --bg-grid: rgba(9,12,26,.045);
  --surface: rgba(255,255,255,.72);
  --surface-2: rgba(255,255,255,.9);
  --surface-solid: #ffffff;
  --border: rgba(9,12,26,.10);
  --border-strong: rgba(9,12,26,.18);

  --text: #0a0e1c;
  --text-2: #454c69;
  --text-3: #737a97;

  --brand: #0891b2;
  --brand-2: #7c3aed;
  --brand-3: #db2777;

  --glow-cyan: 0 0 34px rgba(8,145,178,.22);
  --glow-violet: 0 0 34px rgba(124,58,237,.22);
  --shadow-lg: 0 30px 70px -34px rgba(24,31,71,.35);
  --shadow-card: 0 22px 50px -28px rgba(24,31,71,.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* ---------- Ambient background layers ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(55% 50% at 12% 88%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(45% 40% at 50% 50%, rgba(244,113,181,.06), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  transition: background .5s var(--ease);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  opacity: .6;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--space-4); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand); box-shadow: var(--glow-cyan); }
.eyebrow.center-eb { justify-content: center; }

.grad-text {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 30px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  border-radius: var(--r-full); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.99); }

.btn--primary { color: #05060d; background: var(--brand-grad); background-size: 180% 180%; box-shadow: 0 12px 34px -10px rgba(34,211,238,.55); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--brand-grad); background-size: 180% 180%; filter: blur(16px); opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--primary:hover::after { opacity: .9; }
[data-theme="light"] .btn--primary { color: #fff; }

.btn--ghost {
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--brand); box-shadow: var(--glow-cyan); }

.btn--sm { --pad-y: 11px; --pad-x: 20px; font-size: .9rem; }
.btn--wide { width: 100%; }

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; color: var(--text-2); backdrop-filter: blur(10px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: var(--glow-cyan); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(34,211,238,.5)); }
.brand span { color: var(--text-3); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 9px 15px; border-radius: var(--r-full);
  color: var(--text-2); font-weight: 500; font-size: .95rem;
  transition: color .3s, background .3s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--surface); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: var(--brand-grad); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); transition: transform .4s var(--ease-out), border-color .3s, box-shadow .3s;
}
.theme-toggle:hover { border-color: var(--brand); box-shadow: var(--glow-cyan); transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Nav sitting over the always-dark hero: force light text until scrolled */
.nav.over-hero:not(.scrolled) { color: #eef1fa; }
.nav.over-hero:not(.scrolled) .nav__links a { color: rgba(255,255,255,.72); }
.nav.over-hero:not(.scrolled) .nav__links a:hover,
.nav.over-hero:not(.scrolled) .nav__links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav.over-hero:not(.scrolled) .brand span { color: rgba(255,255,255,.6); }
.nav.over-hero:not(.scrolled) .theme-toggle,
.nav.over-hero:not(.scrolled) .burger { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.nav.over-hero:not(.scrolled) .burger span { background: #fff; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  justify-content: center; gap: 8px; padding: 90px 30px 40px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .4s, visibility .4s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero (always a dark "space" zone so the glowing orb reads in both themes) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  /* hero-local tokens force light-on-dark regardless of global theme */
  --text: #eef1fa; --text-2: #aab1ce; --text-3: #7c83a6;
  --surface: rgba(255,255,255,.05); --surface-2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.10); --border-strong: rgba(255,255,255,.2);
  color: var(--text);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 55% at 50% 38%, #131a38 0%, #0a0e22 42%, #05060d 78%),
    #05060d;
}
.hero__fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 34%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero__inner { position: relative; z-index: 3; width: 100%; }

/* ---------- Pure-CSS animated orb (GPU-only: transform + opacity, no WebGL) ---------- */
.hero__orb {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: min(80vw, 540px); height: min(80vw, 540px);
  transform: translate(-50%, -50%);
  perspective: 1000px;
  pointer-events: none; will-change: transform;
  animation: orbFloat 9s var(--ease) infinite;
}
.orb__glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.5), rgba(139,92,246,.36) 45%, rgba(244,113,181,.22) 66%, transparent 72%);
  filter: blur(40px); opacity: .75; will-change: opacity, transform;
  animation: orbPulse 6s var(--ease) infinite;
}
.orb__core {
  position: absolute; top: 50%; left: 50%; width: 46%; height: 46%; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
  background: radial-gradient(circle at 32% 28%, #9af4ff 0%, #22d3ee 16%, #6d5cf0 50%, #8b5cf6 66%, #3f2aa0 100%);
  box-shadow:
    inset -16px -20px 55px rgba(18,8,54,.7),
    inset 12px 14px 42px rgba(255,255,255,.28),
    0 0 80px 6px rgba(139,92,246,.5);
  animation: orbBreath 7s var(--ease) infinite;
}
.orb__core::after {
  content: ""; position: absolute; top: 14%; left: 18%; width: 34%; height: 26%;
  border-radius: 50%; filter: blur(3px);
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.65), transparent 70%);
}
.orb__ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 20px rgba(34,211,238,.10); will-change: transform;
}
.orb__ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px 3px rgba(34,211,238,.9);
}
.orb__ring--a { width: 76%; height: 76%; animation: orbitA 16s linear infinite; }
.orb__ring--b { width: 94%; height: 94%; border-color: rgba(139,92,246,.18); animation: orbitB 22s linear infinite; }
.orb__ring--b::before { background: #8b5cf6; box-shadow: 0 0 12px 3px rgba(139,92,246,.9); }
.orb__ring--c { width: 60%; height: 60%; border-color: rgba(244,113,181,.16); animation: orbitC 12s linear infinite; }
.orb__ring--c::before { background: #f471b5; box-shadow: 0 0 12px 3px rgba(244,113,181,.9); }

@keyframes orbFloat { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-16px); } }
@keyframes orbPulse { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: .92; transform: scale(1.06); } }
@keyframes orbBreath { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.05); } }
@keyframes orbitA { from { transform: translate(-50%,-50%) rotateX(66deg) rotateZ(0); } to { transform: translate(-50%,-50%) rotateX(66deg) rotateZ(360deg); } }
@keyframes orbitB { from { transform: translate(-50%,-50%) rotateX(74deg) rotateY(14deg) rotateZ(0); } to { transform: translate(-50%,-50%) rotateX(74deg) rotateY(14deg) rotateZ(-360deg); } }
@keyframes orbitC { from { transform: translate(-50%,-50%) rotateX(60deg) rotateY(-18deg) rotateZ(0); } to { transform: translate(-50%,-50%) rotateX(60deg) rotateY(-18deg) rotateZ(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .orb__glow, .orb__core, .orb__ring { animation: none; }
}
.hero h1 { margin: 18px 0 22px; max-width: 15ch; }
.hero .lead { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 58px; }
.hero__stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.hero__stat .lbl { color: var(--text-3); font-size: .85rem; letter-spacing: .03em; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; }
.hero__scroll .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; margin-left: -2px; background: var(--brand); border-radius: 3px; animation: wheel 1.7s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Section header ---------- */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin: 16px 0 14px; }

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

/* ---------- Service cards (3D tilt) ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.svc-card {
  position: relative; padding: 34px 30px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); height: 100%;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out), background .4s;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(120% 120% at var(--mx,50%) var(--my,0%), rgba(34,211,238,.14), transparent 55%);
}
.svc-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.svc-card:hover::before { opacity: 1; }
.svc-card__glow { position: absolute; top: -40%; right: -30%; width: 260px; height: 260px; border-radius: 50%; filter: blur(70px); opacity: .5; background: var(--brand-grad); transform: translateZ(0); pointer-events: none; }
.svc-ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--brand-grad-soft); border: 1px solid var(--border); color: var(--brand);
  transform: translateZ(40px);
}
.svc-ico svg { width: 28px; height: 28px; }
.svc-card h3 { margin-bottom: 10px; transform: translateZ(28px); }
.svc-card p { color: var(--text-2); font-size: .98rem; transform: translateZ(18px); }
.svc-card .svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--brand); transform: translateZ(24px); }
.svc-card .svc-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }
.svc-card .num-badge { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--text-3); opacity: .55; }

/* Feature list */
.feat-list { display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feat-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand); margin-top: 2px; }
.feat-list .tick svg { width: 13px; height: 13px; }

/* ---------- Process / steps ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 30px 92px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .4s, transform .5s var(--ease-out); }
.step:hover { border-color: var(--border-strong); transform: translateX(6px); }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position: absolute; left: 26px; top: 28px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: .96rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-box { text-align: center; padding: 34px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.stat-box .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box .lbl { color: var(--text-2); font-size: .9rem; margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 22px 0; border-block: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--text-3); display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; color: var(--brand); font-size: .9em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.quote { padding: 34px 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; gap: 18px; transition: border-color .4s, transform .5s var(--ease-out); }
.quote:hover { border-color: var(--border-strong); transform: translateY(-6px); }
.quote .stars { color: #fbbf24; letter-spacing: 3px; }
.quote p { color: var(--text); font-size: 1.02rem; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #05060d; flex: none; }
.quote .who b { display: block; font-family: var(--font-display); font-size: .98rem; }
.quote .who small { color: var(--text-3); }

/* ---------- CTA ---------- */
.cta-wrap { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(44px, 6vw, 84px); text-align: center; border: 1px solid var(--border-strong); background: var(--surface-2); }
.cta-wrap::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--brand-grad); filter: blur(60px); opacity: .28; }
.cta-wrap h2 { margin-bottom: 16px; }
.cta-wrap .lead { margin-inline: auto; margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: border-color .35s, transform .4s var(--ease-out); }
.contact-card:hover { border-color: var(--brand); transform: translateX(5px); }
.contact-card .c-ico { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand); }
.contact-card .c-ico svg { width: 24px; height: 24px; }
.contact-card small { color: var(--text-3); display: block; letter-spacing: .04em; }
.contact-card b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; word-break: break-word; }

.form { display: grid; gap: 18px; padding: 34px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-2); font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: .98rem; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.field.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--text-3); }
.form-status { font-size: .92rem; padding: 12px 16px; border-radius: var(--r-sm); display: none; }
.form-status.ok { display: block; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #4ade80; }
.form-status.err { display: block; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #f87171; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + 70px); padding-bottom: 40px; text-align: center; overflow: hidden; }
.page-hero__orb { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 620px; height: 620px; max-width: 120vw; border-radius: 50%; background: var(--brand-grad); filter: blur(120px); opacity: .18; z-index: -1; animation: aasphere-orb-float 9s ease-in-out infinite; }
@keyframes aasphere-orb-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(26px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__orb { animation: none; }
}
.page-hero h1 { margin: 18px auto; max-width: 18ch; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; color: var(--text-3); font-size: .85rem; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--border); padding-top: 70px; margin-top: 40px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { color: var(--text-2); max-width: 34ch; margin: 18px 0 22px; font-size: .96rem; }
.footer h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { color: var(--text-2); font-size: .96rem; transition: color .3s, padding-left .3s; }
.footer ul a:hover { color: var(--brand); padding-left: 5px; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: color .3s, border-color .3s, transform .3s; }
.footer__socials a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.footer__socials svg { width: 19px; height: 19px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 26px 0; border-top: 1px solid var(--border); color: var(--text-3); font-size: .9rem; }

/* ---------- Scroll progress + cursor ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--brand-grad); box-shadow: var(--glow-cyan); }
.cursor-glow { position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.9), rgba(139,92,246,.5) 60%, transparent 70%); pointer-events: none; z-index: 300; transform: translate(-50%,-50%); mix-blend-mode: screen; transition: width .25s, height .25s, opacity .25s; opacity: 0; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__ring { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--brand); border-right-color: var(--brand-2); animation: spin 1s linear infinite; }
.preloader__txt { position: absolute; margin-top: 130px; font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; font-size: .8rem; color: var(--text-3); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal animations (JS toggles .in, CSS does the motion) ---------- */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

[data-hero].hero-anim { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-hero].hero-anim.in { opacity: 1; transform: none; }

/* float util */
.float { animation: float 6s var(--ease) infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* alternating rows + service visual card */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (min-width: 861px) { .row.rev > *:first-child { order: 2; } }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 34px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.viz {
  position: relative; padding: 30px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.viz__glow { position: absolute; inset: -30% -20% auto auto; width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); opacity: .4; background: var(--brand-grad); pointer-events: none; }
.viz__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; }
.viz__head .svc-ico { margin: 0; width: 52px; height: 52px; }
.viz__metric { display: flex; gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); position: relative; }
.viz__metric .num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.viz__metric small { color: var(--text-3); font-size: .82rem; }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 24px; height: 24px; position: relative; transition: transform .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; }
.faq summary .pm::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq summary .pm::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: transform .3s; }
.faq details[open] summary .pm::after { transform: rotate(90deg); opacity: 0; }
.faq p { padding: 0 24px 24px; color: var(--text-2); margin: 0; }

/* team / value cards */
.value-card { padding: 30px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); height: 100%; transition: border-color .4s, transform .5s var(--ease-out); }
.value-card:hover { border-color: var(--border-strong); transform: translateY(-6px); }
.value-card .svc-ico { margin-bottom: 18px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { color: var(--text-2); font-size: .96rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__cta .btn { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .form .row2, .field.two { grid-template-columns: 1fr; }
  .step { padding-left: 78px; }
  .display { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .cursor-glow { display: none; }
}

/* ---------- Mobile performance: backdrop-filter is the #1 scroll-jank cost on phones ---------- */
@media (max-width: 860px) {
  .btn--ghost, .glass, .chip { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-menu { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* lighten the orb so low-end GPUs stay smooth */
  .orb__glow { filter: blur(22px); }
  .orb__ring--c { display: none; }
}

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

/* =====================================================================
   ADDED FOR WORDPRESS CONVERSION — Portfolio, Blog, Legal, 404, Widgets
   Same tokens, same visual language as the sections above.
   ===================================================================== */

/* ---------- Filter pills (portfolio categories) ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 var(--space-6); }
.filter-pill {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: .88rem; font-weight: 600; transition: border-color .3s, color .3s, background .3s;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active { color: var(--bg); background: var(--brand-grad); border-color: transparent; }

/* ---------- Portfolio / blog cards ---------- */
.media-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .4s;
  height: 100%;
}
.media-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--brand-grad); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.media-card:hover::before { opacity: .6; }
.media-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.media-card__thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2);
  display: block;
}
.media-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.media-card:hover .media-card__thumb img { transform: scale(1.06); }
.media-card__thumb .no-thumb {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--brand-grad-soft); color: var(--text-3); font-family: var(--font-display); font-weight: 700;
}
.media-card__tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px);
  color: var(--text); font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.media-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card__meta { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: .82rem; }
.media-card__meta span + span::before { content: "•"; margin-right: 10px; }
.media-card h3 { font-size: 1.18rem; margin: 0; }
.media-card p { color: var(--text-2); font-size: .95rem; margin: 0; }
.media-card__link {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--brand);
}
.media-card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.media-card:hover .media-card__link svg { transform: translateX(5px); }

/* ---------- Blog / archive layout ---------- */
.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 48px; align-items: start; }
.content-layout--single { grid-template-columns: 2.2fr 1fr; }
.widget-title { font-family: var(--font-display); font-size: 1rem; margin: 0 0 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.widget a { color: var(--text-2); font-size: .92rem; }
.widget a:hover { color: var(--brand); }

/* ---------- Single post ---------- */
.post-hero-meta { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-3); font-size: .9rem; margin-top: 10px; }
.post-thumb { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 var(--space-6); border: 1px solid var(--border); }
.post-thumb img { width: 100%; display: block; }
.entry-content { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 { color: var(--text); font-family: var(--font-display); font-size: 1.6rem; margin: 2.2em 0 .6em; }
.entry-content h3 { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; margin: 1.8em 0 .5em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 1.8em 0; padding: 18px 24px; border-left: 3px solid var(--brand); background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text);
}
.entry-content img { max-width: 100%; border-radius: var(--r-md); height: auto; }
.entry-content pre { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; overflow-x: auto; }
.entry-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.post-tags a { padding: 6px 14px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .82rem; }
.post-tags a:hover { color: var(--brand); border-color: var(--border-strong); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--space-6); }
.post-nav a { display: block; padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.post-nav a:hover { border-color: var(--border-strong); }
.post-nav small { color: var(--text-3); display: block; margin-bottom: 6px; }
.post-nav .next { text-align: right; }

/* ---------- Pagination ---------- */
.aasphere-pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-6); flex-wrap: wrap; }
.aasphere-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: .9rem; font-weight: 600;
}
.aasphere-pagination .page-numbers.current { background: var(--brand-grad); color: var(--bg); border-color: transparent; }
.aasphere-pagination .page-numbers:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-content { max-width: 780px; margin-inline: auto; color: var(--text-2); font-size: 1.02rem; line-height: 1.8; }
.legal-content h2 { color: var(--text); font-family: var(--font-display); font-size: 1.35rem; margin: 2em 0 .6em; }
.legal-content p { margin: 0 0 1.1em; }
.legal-content ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.legal-content li { margin-bottom: .5em; }
.legal-content .updated { color: var(--text-3); font-size: .9rem; margin-bottom: var(--space-5); }
.legal-content a { color: var(--brand); }

/* ---------- Empty states (no portfolio / no posts yet) ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-2); }
.empty-state h3 { margin-bottom: 10px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: calc(var(--nav-h) + 90px) 20px 120px; }
.error-404__code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 16vw, 9rem); line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}

@media (max-width: 860px) {
  .content-layout, .content-layout--single { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* ---------- Search form + a11y helper ---------- */
.search-form { display: grid; gap: 14px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
