/* ============================================================
   CODING HARBOR — style.css
   Design system, layout & components
   ------------------------------------------------------------
   1. Design tokens        5. Buttons          9.  Portfolio
   2. Reset & base         6. Navigation       10. Stats / Why
   3. Utilities            7. Hero & orbit     11. Process
   4. Section scaffolding  8. Tech / Services  12. Testimonials,
                                                   Blog, CTA, Footer
============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --primary:   #6D4CFF;
  --secondary: #8B5CF6;
  --blue:      #4F8BFF;
  --logo-purple: #361FA3;   /* sampled from the brand mark */

  /* Neutrals */
  --ink:     #111827;
  --muted:   #6B7280;
  --muted-2: #9CA3AF;
  --bg:      #FFFFFF;
  --bg-soft: #F8F9FF;
  --gray:    #F3F4F6;
  --border:  #E5E7EB;

  /* Dark surfaces (strip, AI showcase, footer) */
  --dark:    #0C0A1D;
  --dark-2:  #151030;
  --dark-3:  #1D1740;

  /* Gradients */
  --grad:       linear-gradient(120deg, var(--primary) 0%, var(--secondary) 55%, var(--blue) 120%);
  --grad-soft:  linear-gradient(135deg, rgba(109,76,255,.10), rgba(79,139,255,.08));

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --nav-h: 72px;
  --bar-h: 42px;      /* announcement bar */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(5rem, 9vw, 8.25rem);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 4px 16px -8px rgba(17,24,39,.06);
  --shadow-md: 0 2px 8px rgba(17,24,39,.04), 0 10px 32px -10px rgba(109,76,255,.14);
  --shadow-lg: 0 8px 24px -12px rgba(17,24,39,.10), 0 28px 64px -20px rgba(109,76,255,.25);
  --shadow-tile: 0 2px 4px rgba(17,24,39,.05), 0 14px 28px -10px rgba(109,76,255,.28), inset 0 1px 0 rgba(255,255,255,.6);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .25s var(--ease);
  --t-med:  .45s var(--ease);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
em { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

[id] { scroll-margin-top: calc(var(--bar-h) + var(--nav-h) + 18px); }

::selection { background: var(--primary); color: #fff; }

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

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grad-text {
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate;
}

.grad-text-light {
  background: linear-gradient(110deg, #C4B5FD, #818CF8 55%, #60A5FA);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  transform: translateY(-64px);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. Section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(109,76,255,.07);
  border: 1px solid rgba(109,76,255,.18);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  letter-spacing: -0.028em;
  margin-top: 1.1rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin-inline: auto;
}

.eyebrow-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #C4B5FD;
}
.section-head-dark h2 { color: #fff; }
.section-head-dark p { color: rgba(255,255,255,.60); }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background-position .5s var(--ease), border-color var(--t-fast),
              color var(--t-fast), background-color var(--t-fast),
              translate .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  translate: var(--magX, 0px) var(--magY, 0px);
  background-image: linear-gradient(120deg, #6D4CFF, #8B5CF6 45%, #4F8BFF 90%, #6D4CFF);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(109,76,255,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 95% 50%;
  box-shadow: 0 16px 40px -10px rgba(109,76,255,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(109,76,255,.45);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 9px 20px;  font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: .975rem; }
.btn-xl { padding: 18px 38px; font-size: 1.05rem; }

/* Ripple (spawned by JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}
.btn-ghost .ripple { background: rgba(109,76,255,.18); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.nav.scrolled {
  background: rgba(255,255,255,.8);
  border-bottom-color: rgba(229,231,235,.7);
  box-shadow: 0 8px 30px -18px rgba(17,24,39,.18);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 38px; height: auto; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--logo-purple);
}
.brand-name span { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}
.nav-link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 16px; height: 3px;
  border-radius: 999px;
  background: var(--grad);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after,
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero & orbital ecosystem ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--bar-h) + var(--nav-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 46% at 50% 34%, rgba(109,76,255,.10), transparent 70%),
    radial-gradient(38% 30% at 82% 12%, rgba(79,139,255,.10), transparent 70%),
    radial-gradient(34% 30% at 12% 70%, rgba(139,92,246,.09), transparent 70%),
    linear-gradient(180deg, #F5F3FF 0%, #FBFAFF 46%, #FFFFFF 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109,76,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,76,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(62% 58% at 50% 40%, #000 30%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: blob-drift 22s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; top: -12%; left: -8%;  background: rgba(139,92,246,.28); }
.blob-2 { width: 420px; height: 420px; top: 6%;  right: -10%; background: rgba(79,139,255,.26); animation-delay: -7s; }
.blob-3 { width: 380px; height: 380px; bottom: -16%; left: 34%; background: rgba(109,76,255,.20); animation-delay: -14s; }

.particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: .35;
  animation: particle-float linear infinite;
}

.hero-inner { position: relative; perspective: 1400px; }

/* Orbit stage */
.orbit-stage {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 1000 / 720;
  margin-inline: auto;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.orbit-guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Center brand block */
.orbit-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(56%, 360px);
  pointer-events: none;
  z-index: 5;
}
.orbit-center-glow {
  position: absolute;
  inset: -22% -18%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 30%, rgba(255,255,255,.55) 62%, transparent 78%);
  z-index: -1;
}
.logo-mark-lg { width: clamp(88px, 11vw, 118px); height: auto; filter: drop-shadow(0 14px 30px rgba(109,76,255,.28)); animation: float-y 7s ease-in-out infinite; }

.wordmark { margin-top: clamp(.9rem, 2vw, 1.4rem); }
.wordmark-top {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--logo-purple);
}
.wordmark-bottom {
  display: block;
  margin-top: .25em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.8rem, 1.8vw, 1.12rem);
  letter-spacing: .58em;
  text-indent: .58em; /* balance tracking */
  text-transform: uppercase;
  color: var(--ink);
}

.orbit-tagline {
  margin-top: clamp(.8rem, 1.8vw, 1.15rem);
  font-size: clamp(.82rem, 1.7vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}
.orbit-tagline em { color: var(--primary); font-weight: 700; }

/* Orbiting tiles */
.orbit-item {
  position: absolute;
  left: 50%; top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 132px;
  text-align: center;
  will-change: transform;
  cursor: default;
  opacity: 0; /* revealed once JS has placed it (prevents center-stack flash) */
}
.orbit-stage.is-ready .orbit-item {
  opacity: 1;
  transition: opacity .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.orbit-item::before {
  content: "";
  position: absolute;
  inset: -14px -8px;
  background: radial-gradient(closest-side, rgba(248,247,255,.9), transparent 75%);
  z-index: -1;
  border-radius: 50%;
}

.orbit-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(109,76,255,.14);
  box-shadow: var(--shadow-tile);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.orbit-icon svg { width: 27px; height: 27px; }
.orbit-icon.is-grad {
  background: linear-gradient(140deg, #7C5CFF 0%, #6D4CFF 45%, #4F8BFF 115%);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 3px 6px rgba(17,24,39,.06), 0 16px 30px -10px rgba(109,76,255,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.orbit-item:hover .orbit-icon { transform: scale(1.1) translateY(-2px); }

.orbit-label {
  margin-top: 9px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-shadow: 0 1px 10px rgba(255,255,255,.95), 0 0 4px rgba(255,255,255,.9);
}

/* Hero copy below the graphic */
.hero-copy {
  text-align: center;
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
}
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(.82rem, 1.6vw, .98rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-desc {
  margin-top: 1.1rem;
  max-width: 640px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Dark feature strip */
.hero-strip {
  margin-top: clamp(3.2rem, 6vw, 4.8rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(140deg, #1A1438 0%, #120D2C 55%, #0F0B24 100%);
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 26px;
  padding: clamp(1.4rem, 2.6vw, 1.9rem) clamp(1.2rem, 2.4vw, 1.8rem);
  box-shadow: 0 30px 70px -28px rgba(23,16,58,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-inline: clamp(.7rem, 1.6vw, 1.3rem);
}
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.08); }

.strip-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #C9B8FF;
  background: rgba(139,92,246,.14);
  border: 1px solid rgba(139,92,246,.3);
}
.strip-icon svg { width: 21px; height: 21px; }

.strip-text h3 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.strip-text p {
  margin-top: 4px;
  font-size: .775rem;
  line-height: 1.5;
  color: rgba(255,255,255,.52);
}

/* ---------- 8. Trusted technologies (marquee) ---------- */
.tech { padding-block: clamp(3.2rem, 6vw, 4.6rem); background: var(--bg); }
.tech-title,
.clients-title {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2.2rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.6rem, 5vw, 4.4rem);
  width: max-content;
  padding-inline: clamp(1.3rem, 2.5vw, 2.2rem);
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.tech-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted-2);
  transition: color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.tech-logo:hover { color: var(--ink); transform: translateY(-2px); }
.tech-logo svg {
  width: 22px; height: 22px;
  flex: none;
  opacity: .88;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.tech-logo:hover svg { opacity: 1; transform: scale(1.1); }

/* ---------- 9. Services ---------- */
.services { background: var(--bg-soft); }
.services::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(46% 34% at 50% 0%, rgba(109,76,255,.06), transparent 70%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% -20%, rgba(109,76,255,.09), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(109,76,255,.38);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(109,76,255,.09);
  border: 1px solid rgba(109,76,255,.16);
  transition: background var(--t-med), color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.service-icon svg { width: 23px; height: 23px; }
.service-card:hover .service-icon {
  background: var(--grad);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 10px 22px -8px rgba(109,76,255,.55);
}

.service-card h3 {
  position: relative;
  margin-top: 17px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.service-card p {
  position: relative;
  margin-top: 8px;
  font-size: .855rem;
  line-height: 1.6;
  color: var(--muted);
}

.service-link {
  position: relative;
  margin-top: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.service-link svg { width: 16px; height: 16px; }
.service-card:hover .service-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateX(4px);
}

/* ---------- 10. AI Showcase ---------- */
.ai-showcase {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  border-radius: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(139,92,246,.22);
  box-shadow: 0 50px 110px -50px rgba(18,10,55,.55);
  background:
    radial-gradient(52% 44% at 50% 0%, rgba(109,76,255,.20), transparent 70%),
    linear-gradient(180deg, #0D0A22 0%, #0B0820 60%, #0D0A22 100%);
  overflow: hidden;
}
.ai-bg { position: absolute; inset: 0; pointer-events: none; }
.ai-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: blob-drift 26s ease-in-out infinite alternate;
}
.ai-glow-1 { width: 520px; height: 520px; top: -18%; left: -8%; background: rgba(109,76,255,.30); }
.ai-glow-2 { width: 460px; height: 460px; bottom: -22%; right: -6%; background: rgba(79,139,255,.24); animation-delay: -12s; }
.ai-showcase .particle { background: #A78BFA; }

.ai-stage {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  height: clamp(430px, 54vw, 560px);
}

/* Canvas layer: wires + flowing energy currents (drawn per frame in JS) */
.ai-lines { position: absolute; inset: 0; }

.ai-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 17vw, 158px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 4;
}
.ai-core-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background:
    radial-gradient(90% 90% at 30% 22%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(150deg, #4E36C9 0%, #6D4CFF 48%, #4F8BFF 120%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 10px rgba(109,76,255,.08), 0 0 70px 6px rgba(109,76,255,.45), inset 0 2px 10px rgba(255,255,255,.18);
  animation: core-breathe 5.5s ease-in-out infinite;
}
.ai-core-inner svg { width: 30px; height: 30px; color: #EDE9FE; }
.ai-core-inner span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
}
.ai-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,.5);
  animation: ring-pulse 3.6s ease-out infinite;
}
.ai-core-ring.r2 { animation-delay: 1.2s; }
.ai-core-ring.r3 { animation-delay: 2.4s; }

.ai-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #E5E7EB;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  will-change: transform;
  z-index: 3;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), scale .35s var(--ease);
}
.ai-node .n-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(139,92,246,.9);
}
.ai-node:hover {
  border-color: rgba(167,139,250,.65);
  background: rgba(139,92,246,.14);
  box-shadow: 0 0 26px -4px rgba(139,92,246,.55);
}

/* Surge arrival: the node flares as current reaches it */
.ai-node.is-hit {
  scale: 1.08;
  border-color: rgba(206,190,255,.9);
  background: rgba(139,92,246,.24);
  box-shadow: 0 0 26px -2px rgba(167,139,250,.85), 0 0 62px -8px rgba(139,92,246,.55);
}
.ai-node .n-dot {
  transition: scale .3s var(--ease), box-shadow .3s var(--ease);
}
.ai-node.is-hit .n-dot {
  scale: 1.55;
  background: #F4F0FF;
  box-shadow: 0 0 15px 3px rgba(232,224,255,.95);
}

/* ---------- 11. Portfolio ---------- */
.portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  perspective: 1500px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.3);
}

.shot {
  position: relative;
  aspect-ratio: 16 / 9.6;
  display: grid;
  place-items: center;
  padding: 7% 9%;
  overflow: hidden;
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(255,255,255,.4), transparent 60%);
  pointer-events: none;
}
.shot-neura   { background: linear-gradient(135deg, #EDE9FE 0%, #E0EAFF 100%); }
.shot-pulse   { background: linear-gradient(135deg, #FCE7F3 0%, #EDE9FE 100%); }
.shot-lumen   { background: linear-gradient(135deg, #E0F7FA 0%, #EDE9FE 100%); }
.shot-nebula  { background: linear-gradient(150deg, #241C55 0%, #0E0A26 80%); }
.shot-fleet   { background: linear-gradient(135deg, #E8EEFF 0%, #DFF1FE 100%); }
.shot-docmind { background: linear-gradient(135deg, #F1EDFF 0%, #FDE8F4 100%); }

.project-tag {
  position: absolute;
  top: 15px; left: 15px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.shot-nebula .project-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #DDD6FE; }

/* Mockup: browser */
.m-browser {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 24px 50px -18px rgba(30,20,80,.35), 0 2px 6px rgba(17,24,39,.06);
  overflow: hidden;
  transition: transform var(--t-med);
}
.project-card:hover .m-browser { transform: translateY(-6px) scale(1.02); }

.m-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray);
}
.m-bar i { width: 7px; height: 7px; border-radius: 50%; }
.m-bar i:nth-child(1) { background: #FCA5A5; }
.m-bar i:nth-child(2) { background: #FCD34D; }
.m-bar i:nth-child(3) { background: #86EFAC; }

.m-body { display: flex; min-height: 158px; }
.m-side {
  width: 23%;
  border-right: 1px solid var(--gray);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-side span { height: 6px; border-radius: 3px; background: #EDE9FE; }
.m-side span:first-child { background: var(--grad); }
.m-side span:nth-child(3) { width: 78%; }
.m-side span:nth-child(4) { width: 62%; }

.m-main {
  flex: 1;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.m-chat-row { display: flex; align-items: flex-end; gap: 7px; }
.m-chat-row.right { justify-content: flex-end; }
.m-avatar { width: 15px; height: 15px; border-radius: 50%; background: var(--grad); flex: none; }
.m-bubble { height: 15px; border-radius: 8px 8px 8px 3px; background: var(--gray); }
.m-chat-row.right .m-bubble { border-radius: 8px 8px 3px 8px; }
.m-bubble.grad { background: var(--grad); }
.w40 { width: 40%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w62 { width: 62%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; }
.m-input { margin-top: auto; height: 18px; border-radius: 9px; border: 1px solid var(--border); background: #FAFAFF; }

.m-hero-block {
  height: 56px;
  border-radius: 9px;
  background: linear-gradient(120deg, #C7B8FF 0%, #A5C4FF 100%);
}
.m-row { display: flex; gap: 8px; }
.m-row.cards .m-card { flex: 1; height: 44px; border-radius: 8px; background: #F5F3FF; border: 1px solid #EDE9FE; }
.m-pill { height: 8px; border-radius: 4px; background: var(--border); }

.m-row.kpis .m-kpi { flex: 1; height: 27px; border-radius: 7px; background: #EEF2FF; border: 1px solid #E0E7FF; }
.m-chart { display: flex; align-items: flex-end; gap: 7px; height: 62px; margin-top: 2px; }
.m-chart i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #8B5CF6, #6D4CFF);
  opacity: .85;
}
.m-chart i:nth-child(even) { background: linear-gradient(180deg, #74A6FF, #4F8BFF); }

.m-doc {
  background: #FAFAFF;
  border: 1px solid var(--gray);
  border-radius: 9px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-doc span { height: 5px; border-radius: 3px; background: var(--border); }
.m-doc span:nth-child(1) { width: 55%; background: #C4B5FD; }
.m-doc span:nth-child(3) { width: 82%; }

/* Mockup: phone */
.m-phone {
  width: clamp(96px, 32%, 122px);
  aspect-ratio: 9 / 18.6;
  background: #17123A;
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 26px 52px -18px rgba(30,20,80,.45), 0 2px 6px rgba(17,24,39,.08);
  position: relative;
  transition: transform var(--t-med);
}
.project-card:hover .m-phone { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }
.m-notch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 7px;
  border-radius: 999px;
  background: #17123A;
  z-index: 2;
}
.m-screen {
  width: 100%; height: 100%;
  border-radius: 17px;
  background: #fff;
  padding: 17px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.m-ring {
  width: 46px; height: 46px;
  margin: 3px auto;
  border-radius: 50%;
  border: 5px solid #EDE9FE;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  transform: rotate(-40deg);
}
.m-chip { flex: 1; height: 20px; border-radius: 6px; background: #F5F3FF; border: 1px solid #EDE9FE; }

/* Mockup: game */
.m-game {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 16 / 8.4;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(46% 60% at 78% 78%, rgba(139,92,246,.35), transparent 65%),
    radial-gradient(40% 55% at 18% 20%, rgba(79,139,255,.3), transparent 65%),
    linear-gradient(160deg, #221A52 0%, #120D30 100%);
  box-shadow: 0 24px 50px -18px rgba(10,6,35,.7);
  transition: transform var(--t-med);
}
.project-card:hover .m-game { transform: translateY(-6px) scale(1.02); }
.m-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .8; animation: twinkle 2.6s ease-in-out infinite; }
.m-star.s1 { top: 22%; left: 30%; }
.m-star.s2 { top: 14%; left: 66%; animation-delay: .9s; }
.m-star.s3 { top: 58%; left: 48%; animation-delay: 1.7s; }
.m-planet {
  position: absolute;
  right: -8%; bottom: -22%;
  width: 42%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 34% 30%, #A78BFA, #6D4CFF 62%, #3B2B8F);
  box-shadow: 0 0 50px rgba(139,92,246,.55);
}
.m-ship {
  position: absolute;
  left: 26%; bottom: 24%;
  width: 22px; height: 22px;
  background: linear-gradient(140deg, #fff, #C4B5FD);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  filter: drop-shadow(0 0 12px rgba(196,181,253,.9));
  animation: float-y 3.4s ease-in-out infinite;
}
.m-score {
  position: absolute;
  top: 11px; right: 12px;
  width: 56px; height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
}

.project-info { padding: 22px 24px 26px; }
.project-info h3 {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-info p {
  margin-top: 7px;
  font-size: .9rem;
  line-height: 1.62;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.stack span {
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #F5F3FF;
  border: 1px solid rgba(109,76,255,.16);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 12. Why Coding Harbor — stats ---------- */
.why { background: var(--bg-soft); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 44px 20px 38px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46%; height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--grad);
  opacity: .85;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.3);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}
.stat-suffix {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- 13. Development process ---------- */
.process { background: var(--bg); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  counter-reset: step;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(100% / 16);
  right: calc(100% / 16);
  height: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--border); }
.timeline::after {
  background: var(--grad);
  right: auto;
  width: 0;
  transition: width 1.8s var(--ease) .35s;
}
.timeline.in-view::after { width: calc(100% - 100% / 8); }

.step {
  position: relative;
  text-align: center;
  padding-inline: 4px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.timeline.in-view .step { opacity: 1; transform: none; }
.timeline.in-view .step:nth-child(1) { transition-delay: .10s; }
.timeline.in-view .step:nth-child(2) { transition-delay: .28s; }
.timeline.in-view .step:nth-child(3) { transition-delay: .46s; }
.timeline.in-view .step:nth-child(4) { transition-delay: .64s; }
.timeline.in-view .step:nth-child(5) { transition-delay: .82s; }
.timeline.in-view .step:nth-child(6) { transition-delay: 1.0s; }
.timeline.in-view .step:nth-child(7) { transition-delay: 1.18s; }
.timeline.in-view .step:nth-child(8) { transition-delay: 1.36s; }

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-inline: auto;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted-2);
  transition: border-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.timeline.in-view .step-dot {
  border-color: var(--primary);
  color: var(--primary);
  background: #F7F5FF;
  box-shadow: 0 0 0 6px rgba(109,76,255,.08);
}

.step h3 {
  margin-top: 15px;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 6px;
  font-size: .775rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 14. Testimonials ---------- */
.testimonials { background: var(--bg-soft); overflow: hidden; }

.slider { position: relative; }
.slider-viewport { overflow: hidden; }

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform .65s var(--ease);
  will-change: transform;
}

.t-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.t-card:hover {
  border-color: rgba(109,76,255,.32);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.t-stars {
  color: #F59E0B;
  font-size: .95rem;
  letter-spacing: 4px;
}
.t-card blockquote {
  margin-top: 14px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}
.t-avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  background: linear-gradient(135deg, var(--a, #6D4CFF), var(--b, #4F8BFF));
  box-shadow: 0 8px 18px -8px rgba(109,76,255,.6);
}
.t-who { display: flex; flex-direction: column; }
.t-who strong { font-size: .925rem; letter-spacing: -0.01em; }
.t-who em { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(109,76,255,.6);
}

.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #D3D6E0;
  transition: width var(--t-fast), background-color var(--t-fast);
}
.slider-dots button.active { width: 26px; background: var(--primary); }

/* ---------- 15. Blog / insights ---------- */
.blog { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.3);
}

.blog-thumb { position: relative; height: 148px; overflow: hidden; }
.blog-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(90% 90% at 80% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 90% at 80% 10%, #000 20%, transparent 75%);
}
.blog-thumb::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -46px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
}
.bt-1 { background: linear-gradient(125deg, #6D4CFF 0%, #8B5CF6 100%); }
.bt-2 { background: linear-gradient(125deg, #4F8BFF 0%, #6D4CFF 100%); }
.bt-3 { background: linear-gradient(125deg, #8B5CF6 0%, #C36DDE 100%); }

.blog-body { padding: 22px 24px 26px; }
.blog-meta {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary);
}
.blog-body h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.blog-body p {
  margin-top: 8px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}
.blog-body .text-link { margin-top: 14px; }

/* ---------- 16. CTA ---------- */
.cta { background: var(--bg); padding-bottom: clamp(5.5rem, 9vw, 8.5rem); }

.cta-card {
  position: relative;
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(3.8rem, 8vw, 6.4rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, #FBFAFF 0%, #F3F0FF 100%);
  border: 1px solid rgba(109,76,255,.16);
  box-shadow: 0 40px 90px -40px rgba(109,76,255,.35);
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109,76,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,76,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 30%, #000 25%, transparent 75%);
}
.blob-cta-1 {
  width: 380px; height: 380px;
  top: -40%; left: -6%;
  background: rgba(139,92,246,.30);
}
.blob-cta-2 {
  width: 340px; height: 340px;
  bottom: -46%; right: -5%;
  background: rgba(79,139,255,.28);
  animation-delay: -9s;
}

.cta-card h2 {
  position: relative;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
}
.cta-card p {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta-card .btn { position: relative; margin-top: 2.2rem; }
.cta-note {
  position: relative;
  display: block;
  margin-top: 1.1rem;
  font-size: .84rem;
  color: var(--muted-2);
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding-top: clamp(4rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr 1.6fr;
  gap: clamp(2rem, 4vw, 3.2rem);
}

.footer-brand .brand-name { color: #A08EFF; }
.footer-brand .brand-name span { color: #fff; }
.footer-brand > p {
  margin-top: 17px;
  max-width: 270px;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
}

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.72);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: .89rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }

.footer-news > p {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
}
.news-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.news-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .875rem;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.news-form input::placeholder { color: rgba(255,255,255,.35); }
.news-form input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255,255,255,.09);
}
.news-note {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  color: #A5B4FC;
  min-height: 1.2em;
}

.footer-bottom {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-block: 26px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.42);
}
.footer-tag {
  font-family: var(--font-display);
  letter-spacing: .03em;
}

/* ---------- 18. Polish layer ---------- */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  pointer-events: none;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast),
              background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.to-top svg { width: 19px; height: 19px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(109,76,255,.6);
}

/* Cursor spotlight on cards (Linear-style) */
.service-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%),
              rgba(109,76,255,.12), transparent 65%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.service-card:hover::after,
.stat-card:hover::after { opacity: 1; }

/* Hero blob mouse parallax (composes with the drift keyframes via `translate`) */
.hero-bg .blob {
  translate: calc(var(--px, 0px) * var(--depth, 0)) calc(var(--py, 0px) * var(--depth, 0));
  transition: translate .7s var(--ease);
}
.hero-bg .blob-1 { --depth: 1; }
.hero-bg .blob-2 { --depth: -1.5; }
.hero-bg .blob-3 { --depth: .7; }

/* Slider: allow vertical page scroll while enabling horizontal swipe */
.slider-track { touch-action: pan-y; }

/* Refined scrollbar (desktop) */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: #CFCBEE;
    border-radius: 999px;
    border: 3.5px solid #fff;
  }
  ::-webkit-scrollbar-thumb:hover { background: #B4ADE6; }
}

@media (max-width: 640px) {
  .to-top { right: 15px; bottom: 15px; width: 42px; height: 42px; }
  .ai-node { padding: 8px 13px; font-size: .74rem; }
}

/* ---------- 19. Refinement pass ---------- */

/* Film grain — luxury texture on hero & AI panel */
.hero-bg::after,
.ai-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
}
.ai-bg::after { opacity: .07; }

/* Testimonial quote ornament */
.t-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4.8rem;
  line-height: 1.2;
  color: rgba(109,76,255,.10);
  pointer-events: none;
}

/* CTA social proof */
.cta-proof {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 1.7rem;
}
.cta-avatars { display: flex; }
.cta-avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .66rem;
  color: #fff;
  background: linear-gradient(135deg, var(--a, #6D4CFF), var(--b, #4F8BFF));
  border: 2px solid #fff;
  box-shadow: 0 4px 12px -4px rgba(109,76,255,.5);
}
.cta-avatars span + span { margin-left: -9px; }
.cta-proof > p {
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  max-width: none;
}
.cta-card .cta-proof + .btn { margin-top: 1.6rem; }

/* Footer contact */
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.62);
  transition: color var(--t-fast);
}
.footer-mail svg { width: 16px; height: 16px; }
.footer-mail:hover { color: #fff; }

@media (max-width: 560px) {
  .cta-proof { flex-direction: column; gap: 9px; }
}


/* ---------- 21. Multi-page components ---------- */

/* Compact page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--bar-h) + var(--nav-h) + clamp(3.2rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(52% 60% at 50% 0%, rgba(109,76,255,.10), transparent 70%),
    linear-gradient(180deg, #F6F4FF 0%, #FFFFFF 100%);
}
.page-hero-bg .hero-grid { opacity: .8; }
.page-hero .eyebrow { position: relative; }
.page-hero h1 {
  position: relative;
  margin-top: 1.1rem;
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-hero .page-sub {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Centered "view all" link under grids */
.section-more { text-align: center; margin-top: clamp(2.2rem, 4vw, 3rem); }

/* Slim conversion band */
.cta-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 24px;
  background: linear-gradient(120deg, #F7F5FF 0%, #F0EDFF 100%);
  border: 1px solid rgba(109,76,255,.18);
  box-shadow: 0 30px 70px -35px rgba(109,76,255,.35);
}
.cta-mini h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.cta-mini p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.cta-mini .btn { flex: none; }

/* Service detail rows */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.detail-row + .detail-row { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.detail-copy .eyebrow { margin-bottom: .9rem; }
.detail-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.detail-copy > p { margin-top: .9rem; color: var(--muted); line-height: 1.7; }
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 1.3rem;
}
.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.feature-chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.detail-visual {
  position: relative;
  aspect-ratio: 16 / 11.5;
  border-radius: 24px;
  background: var(--dv, linear-gradient(135deg, #EDE9FE 0%, #E0EAFF 100%));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.detail-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(109,76,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,76,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 20%, transparent 78%);
}
.dv-icon {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #7C5CFF 0%, #6D4CFF 45%, #4F8BFF 115%);
  color: #fff;
  box-shadow: 0 24px 48px -16px rgba(109,76,255,.55), inset 0 1px 0 rgba(255,255,255,.4);
  animation: float-y 6s ease-in-out infinite;
}
.dv-icon svg { width: 42px; height: 42px; }
.dv-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(109,76,255,.18);
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  animation: float-y 5s ease-in-out infinite;
}
.dv-chip.c1 { top: 16%; left: 12%; animation-delay: -1.2s; }
.dv-chip.c2 { top: 22%; right: 10%; animation-delay: -2.6s; }
.dv-chip.c3 { bottom: 16%; left: 20%; animation-delay: -3.8s; }

/* Portfolio filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.filter-btn:hover { color: var(--ink); border-color: rgba(109,76,255,.4); transform: translateY(-1px); }
.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(109,76,255,.55);
}
.is-filtered { display: none; }
.pop { animation: fade-in .45s var(--ease); }

/* Values (about) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(109,76,255,.3); }
.value-card .service-icon { margin-bottom: 15px; }
.value-card h3 { font-size: 1.05rem; font-weight: 600; }
.value-card p { margin-top: 8px; font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* Milestones (about) */
.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.milestone {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.milestone strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.milestone p { margin-top: 7px; font-size: .85rem; color: var(--muted); line-height: 1.55; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.contact-form {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font: inherit;
  font-size: .925rem;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.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 15px center;
  padding-right: 40px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109,76,255,.10);
}
.form-note {
  display: block;
  margin-top: 12px;
  min-height: 1.3em;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
}

.info-card {
  padding: clamp(1.6rem, 3vw, 2rem);
  border-radius: 24px;
  background: linear-gradient(160deg, #1A1438 0%, #100C26 100%);
  border: 1px solid rgba(139,92,246,.25);
  color: #fff;
  box-shadow: 0 34px 70px -30px rgba(23,16,58,.6);
}
.info-card h3 { font-size: 1.15rem; }
.info-card > p { margin-top: 8px; font-size: .89rem; color: rgba(255,255,255,.6); line-height: 1.65; }
.info-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.info-rows a, .info-rows span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  transition: color var(--t-fast);
}
.info-rows a:hover { color: #fff; }
.info-rows svg { width: 17px; height: 17px; color: #A78BFA; flex: none; }
.info-card .socials { margin-top: 22px; }

.faq { margin-top: 26px; }
.faq details {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 0 16px;
}
.faq details + details { margin-top: 10px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-size: .89rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.1rem;
  color: #A78BFA;
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 14px;
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* Inline newsletter card (blog page) */
.news-inline {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(120deg, #F7F5FF 0%, #F0EDFF 100%);
  border: 1px solid rgba(109,76,255,.18);
}
.news-inline h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.news-inline p { margin-top: 7px; color: var(--muted); font-size: .95rem; }
.news-inline .news-form { max-width: 440px; margin: 1.3rem auto 0; }
.news-inline .news-form input {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}
.news-inline .news-form input::placeholder { color: var(--muted-2); }
.news-inline .news-note { color: var(--primary); }

/* ---------- 22. Inner-page enhancements ---------- */

/* Soft page-load fade */
body { animation: fade-in .5s var(--ease) both; }

/* Engagement models (services) */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.35);
}
.model-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-md);
}
.model-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -6px rgba(109,76,255,.6);
}
.model-card h3 { font-size: 1.18rem; font-weight: 600; }
.model-tag { margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--primary); }
.model-card > p { margin-top: 12px; font-size: .89rem; color: var(--muted); line-height: 1.6; }
.model-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  color: var(--ink);
}
.model-list li::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat,
    var(--grad);
}
.model-card .btn { margin-top: 24px; align-self: flex-start; }
.model-card.featured .btn { align-self: stretch; }

/* Outcomes strip (portfolio) */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
}
.mini-stat {
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.mini-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mini-stat span {
  display: block;
  margin-top: 7px;
  font-size: .85rem;
  color: var(--muted);
}

/* Pull quote (portfolio) */
.pull-quote {
  position: relative;
  max-width: 780px;
  margin: clamp(3.2rem, 6vw, 4.6rem) auto 0;
  padding: 0 20px;
  text-align: center;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: .6;
  margin-bottom: .6rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pull-quote figcaption { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.pull-quote figcaption strong { color: var(--ink); }

/* Milestone connector (about, wide screens) */
@media (min-width: 1001px) {
  .milestones { position: relative; padding-top: 27px; }
  .milestones::before {
    content: "";
    position: absolute;
    top: 5px; left: 2%; right: 2%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(109,76,255,.4) 18%, rgba(79,139,255,.4) 82%, transparent);
  }
  .milestone::before {
    content: "";
    position: absolute;
    top: -27px; left: 22px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 5px rgba(109,76,255,.12);
  }
}

/* "What happens next" steps (contact) */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sstep {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sstep b {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(109,76,255,.09);
  border: 1px solid rgba(109,76,255,.18);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.sstep h3 { font-size: .95rem; font-weight: 600; }
.sstep p { margin-top: 4px; font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* Featured article (blog) */
.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.3);
}
.featured-post .blog-thumb { height: auto; min-height: 280px; }
.fp-body {
  padding: clamp(1.7rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fp-body h2 {
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.fp-body > p { margin-top: 12px; font-size: .95rem; color: var(--muted); line-height: 1.65; }
.fp-body .text-link { margin-top: 20px; }

/* 4th floating chip on service visuals */
.dv-chip.c4 { bottom: 17%; right: 12%; animation-delay: -5s; }

/* ---------- 23. Trust & navigation layer ---------- */

/* Light FAQ (services) */
.faq-light { max-width: 780px; margin-inline: auto; }
.faq-light details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 22px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-light details[open] { border-color: rgba(109,76,255,.35); box-shadow: var(--shadow-sm); }
.faq-light details + details { margin-top: 12px; }
.faq-light summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.faq-light summary::-webkit-details-marker { display: none; }
.faq-light summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--t-fast);
}
.faq-light details[open] summary::after { transform: rotate(45deg); }
.faq-light details p {
  padding: 0 0 17px;
  font-size: .89rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Team note (about) */
.team-note {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.6rem, 4vw, 3rem);
  border-radius: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.team-note .logo-mark { width: 46px; margin: 0 auto 1.3rem; }
.team-note p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.note-sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-sign::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* Filter result counts */
.filter-btn .f-count {
  font-style: normal;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(109,76,255,.10);
  color: var(--primary);
  transition: background var(--t-fast), color var(--t-fast);
}
.filter-btn.active .f-count { background: rgba(255,255,255,.24); color: #fff; }

/* Page-hero meta line */
.hero-meta {
  position: relative;
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Form microcopy */
.form-privacy {
  display: block;
  margin-top: 12px;
  font-size: .78rem;
  color: var(--muted-2);
}

/* Blog title hover */
.blog-body h3 { transition: color var(--t-fast); }
.blog-card:hover .blog-body h3,
.featured-post:hover .fp-body h2 { color: var(--primary); }
.fp-body h2 { transition: color var(--t-fast); }

/* ---------- 24. Deploy-grade layer ---------- */

/* Sticky "on this page" subnav (services) */
.subnav {
  position: sticky;
  top: calc(var(--bar-h) + var(--nav-h));
  z-index: 60;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.subnav-inner {
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  flex: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.subnav-link:hover { color: var(--ink); background: var(--gray); }
.subnav-link.active {
  color: var(--primary);
  background: rgba(109,76,255,.09);
  border-color: rgba(109,76,255,.28);
}
.has-subnav [id] { scroll-margin-top: calc(var(--bar-h) + var(--nav-h) + 72px); }

/* Breadcrumbs */
.crumbs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 1.05rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted-2);
}
.crumbs a { transition: color var(--t-fast); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--muted); font-weight: 600; }

/* Brand glyphs inside stack chips */
.stack span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stack svg { width: 13px; height: 13px; flex: none; }

/* 404 */
.e404 {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--bar-h) + var(--nav-h) + 3rem) var(--gutter) 4rem;
  overflow: hidden;
}
.e404-inner { position: relative; max-width: 560px; }
.e404 .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6.5rem, 22vw, 11rem);
  line-height: .95;
  letter-spacing: -0.05em;
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 7s ease-in-out infinite alternate;
}
.e404 h1 { margin-top: .8rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.025em; }
.e404 p { margin-top: .9rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.e404 .hero-actions { margin-top: 1.9rem; }

/* ---------- 25. Enterprise layer ---------- */

/* Announcement bar */
.announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 52px 0 18px;
  background: linear-gradient(100deg, #5B3DF5 0%, #7C4FF3 48%, #4F8BFF 105%);
  color: #fff;
  font-size: .83rem;
  font-weight: 500;
  overflow: hidden;
}
.announce p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: opacity var(--t-fast);
}
.announce a:hover { opacity: .85; }
.announce a svg { width: 14px; height: 14px; }
.a-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  transition: background var(--t-fast);
}
.a-close:hover { background: rgba(255,255,255,.32); }
.a-close svg { width: 12px; height: 12px; }
body.bar-dismissed { --bar-h: 0px; }
body.bar-dismissed .announce { display: none; }

/* Client trust bar */
.clients { padding: clamp(2.8rem, 5vw, 3.8rem) 0 .6rem; background: var(--bg); }
.client-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 2.2rem) clamp(2rem, 5vw, 3.4rem);
}
.client-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: #B7BBC7;
  transition: color var(--t-fast), transform var(--t-fast);
}
.client-logo svg { width: 19px; height: 19px; }
.client-logo:hover { color: var(--ink); transform: translateY(-2px); }

/* Assurance / compliance strip */
.assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.assurance span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink);
}
.assurance svg { width: 16px; height: 16px; color: var(--primary); flex: none; }

/* Industries grid (services) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.industry-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,76,255,.32);
}
.industry-card .service-icon { flex: none; }
.industry-card h3 { font-size: .98rem; font-weight: 600; }
.industry-card p { margin-top: 4px; font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* Footer compliance line */
.footer-cert { color: rgba(255,255,255,.45); letter-spacing: .015em; }
