/* ============================================================
   DEVZINK — Complete Stylesheet
   ============================================================ */

:root {
  --bg:           #030305;
  --bg-1:         #05050A;
  --bg-2:         #080810;
  --bg-3:         #0C0C16;

  --border:       #171B26;
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-hi:   rgba(139, 92, 246, 0.55);

  --text:        #FFFFFF;
  --text-muted:  #ADADB8;
  --text-dim:    #85858F;

  --accent:      #8B5CF6;
  --accent-2:    #22D3EE;
  --accent-soft: #C4B5FD;
  --accent-glow: rgba(139, 92, 246, 0.4);

  --grad:        linear-gradient(135deg, #8B5CF6 0%, #22D3EE 100%);

  --glass-bg:    rgba(255, 255, 255, 0.045);
  --glass-bg-2:  rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.09);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container:   1280px;
  --section-y:   80px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;

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

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Prevent any inline SVG from expanding unexpectedly */
svg {
  width: auto;
  height: auto;
  max-width: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@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;
  }
  .bg-aurora, .bg-glow, .cursor-glow { display: none; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}
h1 { font-size: clamp(2.8rem, 5.8vw, 4.8rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   GLOBAL BACKGROUND
   ============================================================ */
.bg-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 900px 700px at 12% 10%, rgba(139,92,246,0.20), transparent 62%),
    radial-gradient(ellipse 1000px 800px at 88% 22%, rgba(34,211,238,0.13), transparent 62%),
    radial-gradient(ellipse 1100px 900px at 50% 100%, rgba(217,70,239,0.10), transparent 62%);
  animation: global-drift 50s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes global-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(30px, -22px, 0) scale(1.04); }
  66%      { transform: translate3d(-24px, 26px, 0) scale(1.04); }
}
.bg-aurora {
  position: fixed;
  top: -30%; left: -30%;
  width: 160%;
  height: 160%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(139,92,246,0.16) 0deg,
      transparent 55deg,
      rgba(34,211,238,0.12) 120deg,
      transparent 175deg,
      rgba(217,70,239,0.12) 240deg,
      transparent 300deg,
      rgba(139,92,246,0.16) 360deg
    );
  mask-image: radial-gradient(circle at center, transparent 18%, #000 42%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 18%, #000 42%, transparent 78%);
  animation: aurora-spin 130s linear infinite;
  will-change: transform;
  opacity: 0.7;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }
.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

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

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle at center,
      rgba(139,92,246,0.22) 0%,
      rgba(139,92,246,0.10) 25%,
      rgba(34,211,238,0.05) 45%,
      transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.is-ready { opacity: 1; }

.cursor-glow::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #E9D5FF 0%, #C4B5FD 40%, rgba(139,92,246,0.7) 70%, transparent 100%);
  box-shadow:
    0 0 14px rgba(196, 181, 253, 1),
    0 0 28px rgba(139, 92, 246, 0.85),
    0 0 48px rgba(139, 92, 246, 0.45);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.95; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Utilities */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; position: relative; }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-2);
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  flex-shrink: 0;
}

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

.section-head { max-width: 820px; margin-bottom: 64px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 18px; }
.section-head p  { margin-top: 18px; font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================================
   PREMIUM CARD
   ============================================================ */
.premium-card {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.012) 40%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 65% 60% at 20% 0%, rgba(139,92,246,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.012),
    0 20px 50px -35px rgba(0,0,0,0.7);
  transition:
    transform .6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .6s cubic-bezier(0.22, 1, 0.36, 1),
    background .6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.premium-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), rgba(34,211,238,0.45), transparent);
  opacity: 0.35;
  transition: opacity .6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.32);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 30px 60px -40px rgba(139,92,246,0.30);
}
.premium-card:hover::before { opacity: 0.9; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 26px -8px var(--accent-glow);
}
.btn--primary::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.5) 50%, transparent 75%);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover {
  box-shadow: 0 14px 40px -6px var(--accent-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--border-hi);
  background: rgba(139,92,246,0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(139,92,246,0.5);
}
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--sm .btn__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.9);
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 18px; z-index: 100;
  padding-block: 0;
}
.nav .container.nav__inner {
  max-width: 1180px;
  padding: 12px 14px 12px 22px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 50%) top / 100% 50% no-repeat,
    linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02) 55%),
    linear-gradient(180deg, rgba(9,9,16,0.55), rgba(5,5,10,0.7));
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 20px 50px -25px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,0,0,0.35);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), transform .35s var(--ease);
  position: relative;
  overflow: visible;
}
.nav.is-scrolled .container.nav__inner {
  border-color: rgba(139,92,246,0.4);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 50%) top / 100% 50% no-repeat,
    linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 55%),
    linear-gradient(180deg, rgba(9,9,16,0.6), rgba(5,5,10,0.75));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 24px 60px -22px rgba(0,0,0,0.95),
    0 0 0 1px rgba(139,92,246,0.15),
    0 0 40px -12px rgba(139,92,246,0.4);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative;
  z-index: 1;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
  color: var(--text);
}
.nav__logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 0 22px -6px var(--accent-glow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nav__logo-mark svg { width: 18px; height: 18px; }
.nav__logo:hover .nav__logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 32px -4px var(--accent-glow);
}
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 10px 15px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, #8B5CF6 0%, #22D3EE 100%);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__links a.is-active { color: var(--text); background: rgba(139,92,246,0.16); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left center; opacity: .7; }

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px;
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
   transition: color .18s ease, background .18s ease;
}
.nav__dropdown-trigger svg {
   width: 11px; height: 11px;
  transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__dropdown:hover .nav__dropdown-trigger,
.nav__dropdown-trigger[aria-expanded="true"] {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav__dropdown:hover .nav__dropdown-trigger svg,
.nav__dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px) scale(0.99);
  width: 400px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 55%),
    linear-gradient(180deg, rgba(9,9,16,0.95), rgba(5,5,10,0.98));
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 30px 70px -25px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,0,0,0.35),
    0 0 60px -20px rgba(139,92,246,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear .18s;
  z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown-trigger[aria-expanded="true"] + .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition:
    opacity .15s ease,
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}
.nav__dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 12px; height: 12px;
  background: rgba(9,9,16,0.95);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-left: 1px solid rgba(255,255,255,0.12);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px 0 0 0;
}
.nav__dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  transition:
    background .18s ease,
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .22s ease;
  transform-origin: center;
}
.nav__dropdown-menu a:hover {
  background: rgba(139,92,246,0.14);
  transform: scale(1.025);
  box-shadow:
    0 8px 22px -10px rgba(139,92,246,0.4),
    inset 0 0 0 1px rgba(139,92,246,0.18);
}
.nav__dropdown-menu a::after { display: none; }

.nav__dropdown-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
   transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1),
              background .2s ease;
}
.nav__dropdown-menu a:hover .nav__dropdown-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(139,92,246,0.10));
}
.nav__dropdown-icon svg { width: 18px; height: 18px; }

.nav__dropdown-body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.nav__dropdown-body strong {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__dropdown-body em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.nav__dropdown-all {
  margin-top: 6px;
  padding: 12px 14px !important;
  border-top: 1px solid var(--border-soft);
  border-radius: 0 0 14px 14px !important;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-2) !important;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.nav__dropdown-all svg {
  width: 14px; height: 14px;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__dropdown-all:hover {
  background: rgba(139,92,246,0.14) !important;
  transform: scale(1.02) !important;
}
.nav__dropdown-all:hover svg { transform: translateX(4px); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  cursor: pointer; position: relative;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav__toggle:hover { border-color: var(--border-hi); background: rgba(139,92,246,0.12); }
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__toggle span::before { transform: translate(-50%, -6px); }
.nav__toggle span::after  { transform: translate(-50%, 6px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ============================================================
   MOBILE MENU — exact clone of desktop dropdown
   ============================================================ */
.nav__mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height .55s var(--ease), margin-top .4s var(--ease);
  margin-top: 0;
}
.nav.is-open .nav__mobile {
  max-height: 900px;
  margin-top: 10px;
}

.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 55%),
    linear-gradient(180deg, rgba(9,9,16,0.92), rgba(5,5,10,0.96));
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 30px 60px -25px rgba(0,0,0,0.9);
}

/* Service items — same as desktop dropdown items */
.nav__mobile-inner a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  border-bottom: 0;
  transition:
    background .35s var(--ease-soft),
    transform .4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile-inner a::before { display: none; }
.nav__mobile-inner a::after  { display: none; }

.nav__mobile-inner a:hover,
.nav__mobile-inner a:active,
.nav__mobile-inner a:focus-visible {
  background: rgba(139,92,246,0.14);
  transform: scale(1.025);
  box-shadow:
    0 8px 22px -10px rgba(139,92,246,0.4),
    inset 0 0 0 1px rgba(139,92,246,0.18);
}

/* Icon inside mobile items */
.nav__mobile-inner .nav__dropdown-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
  transition:
    transform .4s cubic-bezier(0.22, 1, 0.36, 1),
    background .4s var(--ease-soft);
}
.nav__mobile-inner .nav__dropdown-icon svg {
  width: 18px;
  height: 18px;
}
.nav__mobile-inner a:hover .nav__dropdown-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(139,92,246,0.10));
}

/* Body inside mobile items */
.nav__mobile-inner .nav__dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav__mobile-inner .nav__dropdown-body strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__mobile-inner .nav__dropdown-body em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* "View all services" */
.nav__mobile-all {
  justify-content: space-between !important;
  padding: 12px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--accent-2) !important;
  border-radius: 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__mobile-all svg {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease-soft);
}
.nav__mobile-all:hover svg { transform: translateX(4px); }

/* Divider */
.nav__mobile-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 6px;
}

/* Simple links (Work, About) — same pill hover, no icon */
.nav__mobile-simple {
  padding: 14px 14px !important;
  font-size: 1rem !important;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__mobile-simple:hover {
  color: var(--text);
}

/* Book a Call button */
.nav__mobile-cta {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 28px 20px 0; }

.hero__panel {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  border-radius: 40px;
  border: 1px solid rgba(139,92,246,0.22);
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139,92,246,0.16), transparent 70%),
    radial-gradient(ellipse 55% 55% at 90% 80%, rgba(34,211,238,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));

  padding: 76px 64px 48px;
  min-height: clamp(680px, 88vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.015),
    0 40px 100px -50px rgba(0,0,0,0.9),
    0 20px 60px -40px rgba(139,92,246,0.35);
  animation: panel-in 1.1s var(--ease-out) both;
}
.hero__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.9), rgba(34,211,238,0.7), transparent);
  pointer-events: none;
  z-index: 3;
}
.hero__panel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent);
  pointer-events: none;
  z-index: 0;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px) scale(0.994); }
  to   { opacity: 1; transform: none; }
}

.hero__agent {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,0.75) 24%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,0.75) 24%, #000 38%, #000 100%);
}
.hero__agent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  user-select: none;
  pointer-events: none;
  filter:
    contrast(1.04)
    saturate(1.06)
    drop-shadow(-30px 0 60px rgba(139,92,246,0.22));
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 620px;
  width: 100%;
  padding-right: 24px;
}
.hero__content .eyebrow { margin-bottom: 28px; }

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.rotator {
  display: block;
  position: relative;
  height: 1.16em;
  width: 100%;
  clip-path: inset(0 -100% 0 -100%);
  -webkit-clip-path: inset(0 -100% 0 -100%);
}
.rotator__word {
  position: absolute;
  top: 0; left: 0;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  transition: opacity .6s var(--ease), transform .7s var(--ease);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
  line-height: 1.16;
  will-change: transform, opacity;
}
.rotator__word.is-active  { opacity: 1; transform: translate3d(0, 0, 0); }
.rotator__word.is-leaving { opacity: 0; transform: translate3d(0, -100%, 0); }

.hero__sub {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 38px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 60px -35px rgba(0,0,0,0.8);
}
.meta {
  background: rgba(4, 4, 8, 0.55);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 16px;
  transition: background .3s var(--ease);
}
.meta:hover { background: rgba(139, 92, 246, 0.10); }
.meta__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.05));
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--accent-soft);
}
.meta__icon svg { width: 19px; height: 19px; }
.meta__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta__body strong {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.meta__body span { font-size: 0.85rem; color: var(--text-dim); }

@media (max-width: 1200px) {
  .hero__panel { padding: 68px 52px 44px; border-radius: 36px; }
  .hero__agent { width: 58%; }
  .hero__content { max-width: 560px; }
}
@media (max-width: 1024px) {
  .hero__panel { padding: 60px 40px 36px; border-radius: 32px; }
  .hero__content { max-width: 520px; padding-right: 16px; }
  .hero__agent { width: 55%; }
}
@media (max-width: 900px) {
  .hero__panel { padding: 52px 28px 32px; border-radius: 28px; min-height: auto; }
  .hero__agent { display: none; }
  .hero__inner { display: block; }
  .hero__content { max-width: 100%; padding-right: 0; align-items: center; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__meta { grid-template-columns: 1fr; margin-top: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 14px 12px 0; }
  .hero__panel { padding: 40px 22px 24px; border-radius: 22px; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  .hero__sub { font-size: 1.05rem; }
  .meta { padding: 18px 20px; }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.problem__card { padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.problem__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 10px;
}
.problem__num::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.problem__card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color .3s var(--ease);
}
.problem__card:hover h3 { color: var(--accent-soft); }
.problem__card p { font-size: 1.08rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-heading { text-align: center; max-width: 880px; margin: 0 auto 64px; }
.services-heading h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-top: 22px; }
h1 .accent, h2 .accent, h3 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.services-heading p {
  margin-top: 20px;
  font-size: 1.18rem;
  max-width: 680px;
  margin-inline: auto;
  color: var(--text-muted);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 96px;
}
.core-card {
  padding: 44px 38px 38px;
  display: flex; flex-direction: column;
  color: inherit;
}
.core-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.35);
  display: grid; place-items: center;
  margin-bottom: 26px;
  color: var(--accent-soft);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), background .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.core-card:hover .core-card__icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(139,92,246,0.10));
}
.core-card__icon svg { width: 24px; height: 24px; }
.core-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.core-card > p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; color: var(--text-muted); }
.core-card__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.core-card__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.core-card__list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px; margin-top: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

.core-card__tech {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.02);
  align-self: flex-start;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.core-card:hover .core-card__tech {
  color: var(--accent-2);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.core-card__link,
.sec-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.92rem; font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.01em;
  transition: color .35s var(--ease);
}
.sec-card__link { margin-top: auto; padding-top: 0; border-top: 0; }
.core-card__link svg,
.sec-card__link svg {
  width: 14px; height: 14px;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.core-card:hover .core-card__link,
.sec-card:hover .sec-card__link { color: var(--accent-soft); }
.core-card:hover .core-card__link svg,
.sec-card:hover .sec-card__link svg { transform: translateX(5px); }

.sub-heading { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sub-heading h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 16px; }
.sub-heading p  { margin-top: 16px; font-size: 1.1rem; color: var(--text-muted); }

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec-card {
  padding: 36px 30px 30px;
  display: flex; flex-direction: column;
  color: inherit;
  cursor: pointer;
}
.sec-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
  margin-bottom: 22px;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), background .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sec-card:hover .sec-card__icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(139,92,246,0.10));
}
.sec-card__icon svg { width: 22px; height: 22px; }
.sec-card h4 { font-size: 1.18rem; margin-bottom: 12px; line-height: 1.3; }
.sec-card p  { font-size: 0.98rem; line-height: 1.7; margin-bottom: 22px; color: var(--text-muted); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { overflow: visible; }
.process-flow {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px 100px;
  padding: 70px 0 90px;
  overflow: visible;
}
.process-flow__path {
  position: absolute;
  top: 50%; left: 50%;
  width: 94%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.process-flow__path path {
  stroke: rgba(139, 92, 246, 0.2);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
}
.process-flow__path .flow-dot {
  fill: #8B5CF6;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}
.process-flow__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.05), rgba(7,7,13,0.2) 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(139, 92, 246, 0.08);
  box-shadow:
    0 0 20px -10px rgba(139, 92, 246, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  pointer-events: none;
  animation: hub-pulse 6s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 15px -10px rgba(139, 92, 246, 0.04); }
  50%      { box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.1); }
}
.process-flow__center-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.09);
  animation: ring-rotate 40s linear infinite;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }
.process-step {
  position: relative;
  padding: 30px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.process-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.process-step__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-soft);
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.5);
  box-shadow: 0 0 20px -4px var(--accent-glow);
}
.process-step__label {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.process-step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.process-step p  { font-size: 0.98rem; line-height: 1.68; margin-bottom: 18px; color: var(--text-muted); }
.process-step__dur {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2);
  padding: 5px 12px;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: var(--r-full);
  background: rgba(34,211,238,0.06);
  align-self: flex-start;
}

/* ============================================================
   WORK
   ============================================================ */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; }
.case__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background:
    radial-gradient(circle at 50% 45%, rgba(139,92,246,0.3), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  display: grid; place-items: center;
}
.case__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.case:hover .case__media::after { transform: scale(1.06); }
.case__icon {
  position: relative;
  z-index: 1;
  width: 80px; height: 80px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(34,211,238,0.12));
  border: 1px solid rgba(139,92,246,0.35);
  color: var(--accent-soft);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.08) inset,
    0 20px 40px -20px rgba(139,92,246,0.6);
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.case__icon svg { width: 38px; height: 38px; }
.case:hover .case__icon { transform: scale(1.05) rotate(-2deg); }
.case__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: var(--r-full);
  background: rgba(3,3,5,0.85);
  border: 1px solid var(--border);
  color: var(--accent-2);
  backdrop-filter: blur(8px);
}
.case__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.case h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case__body > p { font-size: 0.98rem; line-height: 1.7; margin-bottom: 20px; color: var(--text-muted); }
.case__stats {
  display: flex; gap: 24px;
  padding-top: 18px; margin-top: auto;
  border-top: 1px solid var(--border-soft);
}
.case__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.case__stat span { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { padding-block: var(--section-y); }
.cta-band__inner {
  position: relative;
  padding: 84px 48px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(139,92,246,0.22);
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139,92,246,0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  text-align: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 40px 100px -50px rgba(0,0,0,0.9);
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.9), rgba(34,211,238,0.7), transparent);
}
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 18px; max-width: 700px; margin-inline: auto; }
.cta-band p { max-width: 580px; margin-inline: auto; margin-bottom: 36px; font-size: 1.1rem; color: var(--text-muted); }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-soft); padding-block: 64px 32px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
}
.footer__brand p { margin-top: 18px; font-size: 0.92rem; max-width: 320px; line-height: 1.65; color: var(--text-muted); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-bottom: 3px;
  transition: color .25s var(--ease);
}
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #8B5CF6 0%, #22D3EE 100%);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
.footer__col a:hover { color: var(--text); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left center; }
.footer__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem; color: var(--text-dim);
}

.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,0.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 40px -6px rgba(37,211,102,0.65); }
.wa-float svg { width: 26px; height: 26px; stroke: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .process-flow { gap: 100px 70px; }
  .process-flow__center { width: 120px; height: 120px; }
}

@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { top: 12px; }
  .nav .container.nav__inner { padding: 10px 10px 10px 16px; border-radius: 22px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile { display: block; }
  .nav__actions .btn { display: none; }

  .problem__grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }

  .process-flow { grid-template-columns: 1fr; gap: 32px; }
  .process-flow__center { display: none; }
  .process-flow__path { display: none; }

  .footer__top { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .nav__toggle { display: none; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}


/* ============================================================
   PAGE ENTER / LEAVE TRANSITIONS
   ============================================================ */
.page-main {
  animation: pageEnter .7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

body.page-leaving {
  opacity: 0;
  transition: opacity .28s ease-out;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-main { animation: none; }
  body.page-leaving { transition: none; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
}
.page-hero__inner {
  max-width: 900px;
  margin-inline: auto;
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.page-hero__sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.page-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .page-hero { padding: 60px 16px 40px; }
  .page-hero__sub { font-size: 1.05rem; }
}

/* ============================================================
   NAV DROPDOWN TRIGGER — active state (services page)
   ============================================================ */
.nav__dropdown-trigger.is-active {
  color: var(--text);
  background: rgba(139,92,246,0.16);
}
.nav__dropdown-trigger.is-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, #8B5CF6 0%, #22D3EE 100%);
  opacity: 0.7;
}
.nav__dropdown-trigger { position: relative; }

/* ============================================================
   SERVICE BLOCK (detailed anchor-linked service sections)
   ============================================================ */
.engineering-section .service-block:last-child {
  margin-bottom: 0;
}

.service-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  padding: 48px 44px;
  margin-bottom: 24px;
  scroll-margin-top: 120px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.service-block__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.35);
  color: var(--accent-soft);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), background .5s var(--ease-soft);
  flex-shrink: 0;
}
.service-block:hover .service-block__icon {
  transform: scale(1.05) rotate(-3deg);
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(139,92,246,0.14));
}
.service-block__icon svg {
  width: 40px;
  height: 40px;
}

.service-block__body { min-width: 0; }

.service-block__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.service-block h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.service-block__body > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 680px;
}

.service-block__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  list-style: none;
  padding: 0;
  max-width: 640px;
}
.service-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.service-block__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}

.service-block__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.service-block__tech span {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.02);
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft), background .35s var(--ease-soft);
}
.service-block:hover .service-block__tech span {
  color: var(--accent-2);
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.05);
}

.service-block__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: color .3s var(--ease-soft);
}
.service-block__cta svg {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease-soft);
}
.service-block:hover .service-block__cta {
  color: var(--accent-soft);
}
.service-block:hover .service-block__cta svg {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .service-block {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 20px;
  }
  .service-block__icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  .service-block__icon svg {
    width: 32px;
    height: 32px;
  }
  .service-block__list {
    grid-template-columns: 1fr;
  }
}

.page-services .section {
  padding-block: 64px;
}
.page-services .services-section--first {
  padding-top: 80px !important;
  padding-bottom: 40px !important;
}
.page-services .section-head {
  margin-bottom: 40px;
}
.page-services .core-grid {
  margin-bottom: 0;
}
.page-services .service-block {
  margin-bottom: 20px;
}
.page-services .service-block:last-child {
  margin-bottom: 0;
}
.page-services .cta-band {
  padding-top: 64px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .page-services .section {
    padding-block: 48px;
  }
  .page-services .services-section--first {
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .page-services .section-head {
    margin-bottom: 32px;
  }
  .page-services .cta-band {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}


/* ------------------------------------------------------ */



/* ============================================================
   AI AUTOMATION PAGE
   ============================================================ */

.page-ai-automation .aa-section,
.page-web-app .aa-section {
  padding-block: 64px;
}
.page-ai-automation .cta-band,
.page-web-app .cta-band {
  padding-top: 64px;
  padding-bottom: 80px;
}
.page-ai-automation .premium-card:hover,
.page-web-app .premium-card:hover {
  transform: none;
}

/* ---------- INTRO + COST ---------- */
.aa-intro {
  padding: 72px 20px 40px;
}
.aa-intro__head {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}
.aa-intro__head h1 {
  margin-top: 24px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.aa-intro__head p {
  margin-top: 22px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin-inline: auto;
}
.cost-card {
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cost-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), background .5s var(--ease-soft);
}
.cost-card:hover .cost-card__icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(139,92,246,0.10));
}
.cost-card__icon svg { width: 22px; height: 22px; }
.cost-card__stat {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.cost-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 2px;
}
.cost-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.cost-card p strong {
  color: var(--accent-2);
  font-weight: 600;
}

.aa-intro__foot {
  margin-top: 48px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}
.aa-intro__foot strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ---------- JOBS — stacked, smooth accordion ---------- */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.job {
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.012) 40%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 20px 50px -35px rgba(0,0,0,0.7);
  transition:
    border-color .5s var(--ease-soft),
    box-shadow .5s var(--ease-soft);
}
/* Hover: glow only, no lift */
.job:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.12),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 20px 50px -35px rgba(139,92,246,0.4);
}
.job.is-open {
  border-color: rgba(139,92,246,0.45);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.16),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(139,92,246,0.15),
    0 30px 70px -35px rgba(139,92,246,0.45);
}

.job__trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.job__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.job__icon svg { width: 20px; height: 20px; }
.job.is-open .job__icon {
  background: linear-gradient(135deg, rgba(139,92,246,0.34), rgba(139,92,246,0.12));
  border-color: rgba(139,92,246,0.42);
}

.job__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.job__body strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.job__body em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.job__chev {
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}
.job__chev svg { width: 18px; height: 18px; display: block; }
.job.is-open .job__chev { transform: rotate(180deg); }

/* Smooth open/close via grid-template-rows — both directions */
.job__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .45s var(--ease-soft);
}
.job.is-open .job__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.job__panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 26px;
  transition: padding .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.job.is-open .job__panel-inner {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--border-soft);
}

.job__scenario {
  margin-bottom: 22px;
}
.job__scenario p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 780px;
}

.job__build {
  margin-bottom: 22px;
}

.job__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.job__deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.job__deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.job__deliverables li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}

.job__outcome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(34,211,238,0.2);
}
.job__outcome-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.job__outcome strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 4px;
}
.job__outcome em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- BEFORE / AFTER ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ba-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.ba-card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ba-card--before .ba-card__label { color: var(--text-dim); }
.ba-card--after .ba-card__label { color: var(--accent-2); }
.ba-card h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  line-height: 1.3;
}
.ba-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ba-card__list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.ba-card--before li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: #EF4444;
  opacity: 0.6;
  line-height: 1.55;
}
.ba-card--after li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.ba-card--after {
  border-color: rgba(139,92,246,0.28);
}
.ba-footnote {
  margin-top: 32px;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.ba-footnote strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- FAQ — smooth open + close ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.010) 40%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
/* Hover: subtle border glow only, no lift */
.faq-item:hover {
  border-color: rgba(139,92,246,0.28);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.10),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.faq-item.is-open {
  border-color: rgba(139,92,246,0.4);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.14),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(139,92,246,0.10);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .3s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.faq-item__trigger:hover {
  color: var(--accent-soft);
}
.faq-item__trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.is-open .faq-item__trigger svg {
  transform: rotate(180deg);
}

/* Smooth both ways via grid-template-rows */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .4s var(--ease-soft);
}
.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  transition: padding .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.is-open .faq-item__panel-inner {
  padding: 0 24px 22px;
}
.faq-item__panel-inner p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .job__deliverables { grid-template-columns: 1fr; }
  .job__outcome { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 640px) {
  .aa-intro { padding: 48px 16px 24px; }
  .aa-intro__head { margin-bottom: 40px; }
  .aa-intro__foot { margin-top: 32px; }
  .page-ai-automation .aa-section { padding-block: 48px; }
  .job__trigger { padding: 18px 22px; }
  .job.is-open .job__panel-inner { padding: 18px 22px 22px; }
  .faq-item__trigger { padding: 18px 20px; font-size: 1rem; }
  .faq-item.is-open .faq-item__panel-inner { padding: 0 20px 20px; }
  .cost-card { padding: 28px 24px; }
  .ba-card { padding: 26px 24px; }
}


/* --------------------------------------------------------------------- */


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.page-contact .aa-section {
  padding-block: 64px;
}
.page-contact .premium-card:hover {
  transform: none;
}

/* Intro tighter than other pages — form is the hero */
.page-contact .aa-intro {
  padding: 72px 20px 40px;
}
.page-contact .aa-intro__head {
  margin-bottom: 48px;
}

/* ---------- CONTACT GRID ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}

/* Left — form card */
.contact-form-card {
  padding: 40px 36px;
}
.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.contact-form-card__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  transition: border-color .3s var(--ease-soft), background .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(139,92,246,0.25);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.04);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.10);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.form-field select option {
  background: #0F0F17;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
  line-height: 1.6;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-form__privacy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: -4px;
}

/* Right — sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.contact-side-card {
  padding: 28px 26px;
}
.contact-side-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(139,92,246,0.06));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.contact-side-card__icon svg { width: 22px; height: 22px; }

.contact-side-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.contact-side-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.contact-side-card__btn {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 0.95rem;
}
.contact-side-card__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.contact-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-side-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.contact-side-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-side-list span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-side-list a {
  color: var(--accent-2);
  font-weight: 600;
  transition: color .2s;
}
.contact-side-list a:hover {
  color: var(--accent-soft);
}
.contact-side-list em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Trust strip */
.contact-trust {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-trust__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-trust__row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-2);
}

/* ---------- WHAT HAPPENS NEXT ---------- */
.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin-inline: auto;
}
.contact-step {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.contact-step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-soft);
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.5);
  box-shadow: 0 0 20px -4px var(--accent-glow);
  margin-bottom: 18px;
}
.contact-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.contact-step p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
}

@media (max-width: 900px) {
  .contact-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-contact .aa-intro { padding: 48px 16px 24px; }
  .page-contact .aa-intro__head { margin-bottom: 32px; }
  .page-contact .aa-section { padding-block: 48px; }
  .contact-form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-side-card { padding: 24px 22px; }
  .contact-step { padding: 26px 22px; }
}




/* ------------------------------------------------------------ */


/* ============================================================
   WORK PAGE
   ============================================================ */

.page-work .aa-section {
  padding-block: 64px;
}
.page-work .premium-card:hover {
  transform: none;
}
.page-work .aa-intro {
  padding: 72px 20px 40px;
}
.page-work .aa-intro__head {
  margin-bottom: 0;
}

/* ---------- CASE STUDIES STACK ---------- */
.cases-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
}

.case-full {
  padding: 40px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.case-full:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow:
    inset 1px 1px 0 rgba(139,92,246,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(139,92,246,0.12),
    0 30px 70px -40px rgba(139,92,246,0.4);
}

/* Header */
.case-full__header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.case-full__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.35);
  color: var(--accent-soft);
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.case-full:hover .case-full__icon {
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(139,92,246,0.14));
  border-color: rgba(139,92,246,0.5);
}
.case-full__icon svg { width: 28px; height: 28px; }

.case-full__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.case-full__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.case-full__meta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Body — problem + build, side by side */
.case-full__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 4px;
}
.case-full__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-full__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.case-full__col p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Metrics row */
.case-full__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}
.case-full__metric {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border-soft);
}
.case-full__metric:first-child { padding-left: 0; }
.case-full__metric:last-child {
  padding-right: 0;
  border-right: 0;
}
.case-full__metric strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.case-full__metric span {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Footer — tech + link */
.case-full__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.case-full__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-full__stack span {
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.02);
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.case-full:hover .case-full__stack span {
  color: var(--accent-2);
  border-color: rgba(34,211,238,0.28);
}

.case-full__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: color .3s var(--ease-soft);
}
.case-full__link svg {
  transition: transform .35s var(--ease-soft);
}
.case-full__link:hover { color: var(--accent-soft); }
.case-full__link:hover svg { transform: translateX(4px); }

/* ---------- TRUST STRIP ---------- */
.work-trust {
  padding: 40px 44px;
  max-width: 1080px;
  margin-inline: auto;
}
.work-trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-trust__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
  border-right: 1px solid var(--border-soft);
}
.work-trust__item:last-child {
  border-right: 0;
  padding-right: 0;
}
.work-trust__item strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.work-trust__item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .case-full { padding: 32px 26px 26px; }
  .case-full__body { grid-template-columns: 1fr; gap: 22px; }
  .case-full__metrics { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .case-full__metric {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .case-full__metric:first-child { padding-top: 22px; }
  .case-full__metric:last-child { border-bottom: 0; padding-bottom: 22px; }
  .work-trust { padding: 32px 26px; }
  .work-trust__row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .work-trust__item {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
  }
  .work-trust__item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .page-work .aa-intro { padding: 48px 16px 24px; }
  .page-work .aa-section { padding-block: 48px; }
  .case-full { padding: 26px 22px 22px; gap: 22px; }
  .case-full__header { gap: 16px; }
  .case-full__icon { width: 54px; height: 54px; border-radius: 14px; }
  .case-full__icon svg { width: 24px; height: 24px; }
  .work-trust__row { grid-template-columns: 1fr; }
  .work-trust__item {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 16px;
  }
  .work-trust__item:last-child { border-bottom: 0; padding-bottom: 0; }
}


/* ----------------------------------------------------------------------------------- */



/* ============================================================
   ABOUT PAGE
   ============================================================ */

.page-about .aa-section {
  padding-block: 64px;
}
.page-about .premium-card:hover {
  transform: none;
}
.page-about .aa-intro {
  padding: 72px 20px 40px;
}

/* ---------- WHAT WE ARE / AREN'T ---------- */
.about-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-col {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.about-col__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.about-col--yes .about-col__label { color: var(--accent-2); }
.about-col--no .about-col__label { color: var(--text-dim); }

.about-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-col li {
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.about-col--yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 8px;
  border-left: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.about-col--no li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: #EF4444;
  opacity: 0.6;
  line-height: 1.6;
}
.about-col--yes {
  border-color: rgba(34,211,238,0.28);
}

/* ---------- PRINCIPLES ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin-inline: auto;
}
.principle {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.principle__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.24), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.32);
  color: var(--accent-soft);
  margin-bottom: 20px;
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.principle:hover .principle__icon {
  background: linear-gradient(135deg, rgba(139,92,246,0.36), rgba(139,92,246,0.12));
  border-color: rgba(139,92,246,0.46);
}
.principle__icon svg { width: 22px; height: 22px; }

.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.principle p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- WHO WE WORK WITH ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.who-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.who-card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.who-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.who-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- REACH STRIP ---------- */
.about-reach {
  padding: 40px 44px;
  max-width: 1080px;
  margin-inline: auto;
}
.about-reach__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-reach__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
  border-right: 1px solid var(--border-soft);
}
.about-reach__item:last-child {
  border-right: 0;
  padding-right: 0;
}
.about-reach__item strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.about-reach__item span {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-compare { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .about-reach { padding: 32px 26px; }
  .about-reach__row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .about-reach__item {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
  }
  .about-reach__item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .page-about .aa-intro { padding: 48px 16px 24px; }
  .page-about .aa-section { padding-block: 48px; }
  .about-col { padding: 28px 24px; }
  .principle { padding: 28px 24px; }
  .who-card { padding: 28px 24px; }
  .about-reach__row { grid-template-columns: 1fr; }
  .about-reach__item {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 16px;
  }
  .about-reach__item:last-child { border-bottom: 0; padding-bottom: 0; }
}


/* ------------------------------------------------------------------------------------- */



/* ============================================================
   HERO — Rising Light Rays
   ============================================================ */
.hero__rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 18%,              /* ← 25% → 18% */
    rgba(0,0,0,0.5) 32%,   /* ← 42% → 32% */
    transparent 48%        /* ← 60% → 48% */
  );
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 18%,
    rgba(0,0,0,0.5) 32%,
    transparent 48%
  );
}

.ray {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 1.5px;
  height: var(--h, 15%);
  border-radius: 999px;
  transform: translate3d(-50%, 100%, 0);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  filter:
    blur(0.2px)
    drop-shadow(0 0 5px rgba(196,181,253,0.65))
    drop-shadow(0 0 12px rgba(139,92,246,0.45));
  background: linear-gradient(
    to top,
    rgba(139,92,246,0) 0%,
    rgba(139,92,246,0.7) 15%,
    rgba(196,181,253,1) 50%,
    rgba(34,211,238,0.7) 85%,
    rgba(34,211,238,0) 100%
  );
  animation: ray-rise var(--dur, 7s) linear infinite;
  animation-delay: var(--d, 0s);
}

.ray:nth-child(odd) {
  background: linear-gradient(
    to top,
    rgba(34,211,238,0) 0%,
    rgba(34,211,238,0.7) 15%,
    rgba(103,232,249,1) 50%,
    rgba(139,92,246,0.7) 85%,
    rgba(139,92,246,0) 100%
  );
}

@keyframes ray-rise {
  0% {
    transform: translate3d(-50%, 100%, 0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-50%, -180%, 0);  /* ← -250% → -180% */
    opacity: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ray { animation: none; opacity: 0; }
}

/* Hide on very small screens to keep mobile perf crisp */
@media (max-width: 640px) {
  .hero__rays { display: none; }
}


/* -------------------------------------------------------------- */



/* ============================================================
   GLOBAL BACKGROUND — Circuit Traces (AI Data Flow)
   Subtle, dim, slow. Present on all pages.
   ============================================================ */
.bg-circuit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;                                /* ← overall dim */
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 30%, transparent 95%);
}

/* --- Horizontal traces (left → right) --- */
.bg-circuit .trace-h {
  position: absolute;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139,92,246,0.30) 20%,       /* ← 0.55 → 0.30 */
    rgba(196,181,253,0.65) 50%,      /* ← 1 → 0.65 */
    rgba(34,211,238,0.30) 80%,       /* ← 0.55 → 0.30 */
    transparent 100%
  );
  filter: blur(0.5px) drop-shadow(0 0 4px rgba(139,92,246,0.4));   /* ← glow softer */
  animation: trace-h linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

@keyframes trace-h {
  from { transform: translate3d(-160px, 0, 0); }
  to   { transform: translate3d(calc(100vw + 160px), 0, 0); }
}

/* --- Vertical traces (top → bottom) --- */
.bg-circuit .trace-v {
  position: absolute;
  top: 0;
  width: 1px;
  height: 140px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34,211,238,0.30) 20%,
    rgba(196,181,253,0.65) 50%,
    rgba(139,92,246,0.30) 80%,
    transparent 100%
  );
  filter: blur(0.5px) drop-shadow(0 0 4px rgba(34,211,238,0.4));
  animation: trace-v linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

@keyframes trace-v {
  from { transform: translate3d(0, -160px, 0); }
  to   { transform: translate3d(0, calc(100vh + 160px), 0); }
}

/* --- Reverse direction --- */
.bg-circuit .trace-h.rev { animation-name: trace-h-rev; }
@keyframes trace-h-rev {
  from { transform: translate3d(calc(100vw + 160px), 0, 0); }
  to   { transform: translate3d(-160px, 0, 0); }
}

.bg-circuit .trace-v.rev { animation-name: trace-v-rev; }
@keyframes trace-v-rev {
  from { transform: translate3d(0, calc(100vh + 160px), 0); }
  to   { transform: translate3d(0, -160px, 0); }
}

/* --- Node flashes --- */
.bg-circuit .node {
  position: absolute;
  width: 5px;                                 /* ← 6 → 5, smaller */
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196,181,253,0.85),
    rgba(139,92,246,0.35) 60%,
    transparent 100%
  );
  box-shadow:
    0 0 6px rgba(196,181,253,0.5),            /* ← dimmer glow */
    0 0 12px rgba(139,92,246,0.3);
  opacity: 0;
  animation: node-flash ease-in-out infinite;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

@keyframes node-flash {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  20%      { opacity: 0.8; transform: scale(1.2); }   /* ← 1 → 0.8 */
  45%      { opacity: 0.45; transform: scale(1); }
  70%      { opacity: 0; transform: scale(0.9); }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .bg-circuit .trace-h,
  .bg-circuit .trace-v,
  .bg-circuit .node { animation: none; }
  .bg-circuit .node { opacity: 0.15; }
  .bg-circuit .trace-h,
  .bg-circuit .trace-v { opacity: 0.2; }
}

/* --- Mobile — lighter for battery --- */
@media (max-width: 640px) {
  .bg-circuit { opacity: 0.35; }
  .bg-circuit .node { display: none; }
}