/* ==========================================================================
   Keystone Apps — v2 "Spatial Glass"
   Full-bleed WebGL gradient, floating glass, bento grid, kinetic type.
   Scoped to the homepage; legal/ still uses main.css.
   ========================================================================== */

:root {
  --bg:         #05060a;
  --bg-2:       #0a0c14;
  --text:       #f4f5fa;
  --text-dim:   #a2a8bd;
  --text-faint: #6c7288;

  --glass:      rgba(255, 255, 255, 0.055);
  --glass-2:    rgba(255, 255, 255, 0.09);
  --glass-brd:  rgba(255, 255, 255, 0.11);
  --glass-hi:   rgba(255, 255, 255, 0.5);

  --violet: #7c5cff;
  --cyan:   #22d3ee;
  --pink:   #ff4ecd;
  --mint:   #4ade80;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
  --gutter: 28px;
}

* , *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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

/* ==========================================================================
   Shader backdrop + grain
   ========================================================================== */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#gradient-canvas { width: 100%; height: 100%; }

/* Fallback when WebGL is unavailable */
.stage.no-gl {
  background:
    radial-gradient(42% 46% at 22% 28%, rgba(124, 92, 255, 0.55), transparent 70%),
    radial-gradient(38% 44% at 78% 34%, rgba(34, 211, 238, 0.42), transparent 70%),
    radial-gradient(44% 48% at 52% 78%, rgba(255, 78, 205, 0.38), transparent 70%),
    var(--bg);
}

/* Global readability veil over the shader. The hero adds its own stronger
   local scrim on top of this; everything below relies on just this. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.58);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Everything above the canvas */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ==========================================================================
   Floating glass nav
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
  padding: 9px 9px 9px 20px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.08) inset, 0 18px 48px -18px rgba(0,0,0,0.9);
  transition: background-color 0.3s var(--ease), max-width 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner {
  max-width: 980px;
  background: rgba(10, 12, 20, 0.78);
}

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 24px; height: 24px; }
.brand-text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.brand-text em { font-style: normal; color: var(--text-faint); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }

.nav-link {
  display: block;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-link.active { color: var(--text); background: var(--glass-2); }

.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-brd);
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 0 auto; background: var(--text); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(3, 4, 8, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn svg { width: 16px; height: 16px; }

.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #5b7cff 55%, var(--cyan));
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.8), 0 1px 0 0 rgba(255,255,255,0.25) inset;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.95), 0 1px 0 0 rgba(255,255,255,0.3) inset; }

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-2); transform: translateY(-2px); }

.btn-sm { padding: 9px 17px; font-size: 0.83rem; }
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

/* ==========================================================================
   Hero — centered, full-bleed
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 150px 0 72px;
  text-align: center;
}

/* Readability scrim: the shader drifts bright cyan/violet straight behind the
   copy, so damp it locally rather than dimming the whole backdrop. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(68% 60% at 50% 46%,
    rgba(5, 6, 10, 0.80) 0%,
    rgba(5, 6, 10, 0.55) 45%,
    rgba(5, 6, 10, 0.10) 75%,
    transparent 100%);
}

.hero-inner { display: grid; justify-items: center; position: relative; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  padding: 7px 16px 7px 11px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

.hero-title {
  font-size: clamp(2.9rem, 8.4vw, 7rem);
  line-height: 0.94;
  max-width: 15ch;
  margin-bottom: 30px;
}

/* Kinetic reveal, word by word.
   Deliberately NOT an overflow:hidden mask — at this size with 0.94 leading a
   mask clips ascenders/descenders, and compensating with negative margins
   collapses the line box into the paragraph below. Fade + rise is safe. */
.hero-title .w { display: inline-block; }

.hero-title .w > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.34em);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero-title.is-in .w > span { opacity: 1; transform: none; }

.hero-title .w:nth-child(1) > span { transition-delay: 0.00s; }
.hero-title .w:nth-child(2) > span { transition-delay: 0.06s; }
.hero-title .w:nth-child(3) > span { transition-delay: 0.12s; }
.hero-title .w:nth-child(4) > span { transition-delay: 0.18s; }
.hero-title .w:nth-child(5) > span { transition-delay: 0.24s; }
.hero-title .w:nth-child(6) > span { transition-delay: 0.30s; }
.hero-title .w:nth-child(7) > span { transition-delay: 0.36s; }
.hero-title .w:nth-child(8) > span { transition-delay: 0.42s; }

.text-gradient {
  background: linear-gradient(100deg, var(--violet) 0%, #8ea2ff 38%, var(--cyan) 70%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 76px; }

/* ---------- Bento stat grid ---------- */

.hero-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1040px;
  text-align: left;
}

.bento {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.07) inset;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.bento:hover { transform: translateY(-4px); background: var(--glass-2); }

/* specular sheen along the top edge */
.bento::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-hi), transparent);
  opacity: 0.55;
}

.bento-k {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 7px;
}

.bento-l { font-size: 0.8rem; color: var(--text-faint); }

.bento-wide { grid-column: span 2; display: flex; align-items: center; gap: 16px; }

.bento-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,0.35), rgba(34,211,238,0.3));
  border: 1px solid var(--glass-brd);
  color: #fff;
}
.bento-ico svg { width: 18px; height: 18px; }

.hero-scroll {
  margin-top: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-scroll span {
  width: 22px; height: 34px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  position: relative;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text-dim);
  animation: scrolldot 1.9s var(--ease) infinite;
}

@keyframes scrolldot { 50% { transform: translateY(11px); opacity: 0.2; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .header-inner { padding-right: 9px; }

  .main-nav {
    position: fixed;
    inset: 84px 20px auto;
    z-index: 58;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg);
    background: rgba(10, 12, 20, 0.9);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px 16px; font-size: 0.95rem; }
  .main-nav .nav-cta { display: flex; margin-top: 8px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 130px; }
  .hero-actions { margin-bottom: 56px; }
}

@media (max-width: 560px) {
  .hero-bento { grid-template-columns: minmax(0, 1fr); }
  .bento-wide { grid-column: span 1; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .w > span { opacity: 1; transform: none; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section { position: relative; padding: clamp(84px, 10vw, 148px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(46px, 6vw, 74px); text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-title { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-bottom: 18px; }

.section-sub { color: var(--text-dim); font-size: 1.03rem; max-width: 58ch; margin-inline: auto; }

/* Shared glass surface */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.07) inset;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-hi), transparent);
  opacity: 0.5;
}

.card:hover { transform: translateY(-4px); background: var(--glass-2); border-color: rgba(255,255,255,0.18); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section {
  padding: 30px 0;
  border-block: 1px solid var(--glass-brd);
  background: rgba(10, 12, 20, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.marquee-label {
  max-width: var(--maxw);
  margin: 0 auto 16px;
  padding: 0 var(--gutter);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

.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; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }

.marquee-track span { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); white-space: nowrap; }

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

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.about-copy p { color: var(--text-dim); }

.check-list { display: grid; gap: 12px; margin: 32px 0 0; }

.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 13px; align-items: start; font-size: 0.97rem; color: var(--text-dim); }

.check-list svg { width: 17px; height: 17px; margin-top: 4px; color: var(--mint); }

.about-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.about-bento .card { padding: 24px; }

.about-bento .card:first-child { grid-column: span 2; }

.stat-k {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 7px;
  background: linear-gradient(120deg, #fff, #c9b8ff 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stat-l { font-size: 0.82rem; color: var(--text-faint); }

/* ==========================================================================
   Services — bento
   ========================================================================== */

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.service-card { padding: 30px; }

.service-card.is-feature { grid-column: span 2; }

.service-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(135deg, rgba(124,92,255,0.4), rgba(34,211,238,0.28));
  color: #fff;
}

.service-icon svg { width: 20px; height: 20px; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.02em; }

.service-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ==========================================================================
   Process
   ========================================================================== */

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.process-step { padding: 28px 26px 32px; }

.process-num {
  display: inline-block;
  margin-bottom: 28px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.process-step h3 { font-size: 1.08rem; margin-bottom: 9px; }
.process-step p { color: var(--text-dim); font-size: 0.93rem; }

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats-band { padding: clamp(60px, 7vw, 92px) 0; }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(34,211,238,0.09) 55%, rgba(255,78,205,0.11));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.1) inset;
}

.stats-inner .stat-k { font-size: clamp(2rem, 3.6vw, 3rem); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testi-slider { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s var(--ease); }

.testi-card { flex: 0 0 100%; padding: clamp(30px, 4vw, 46px); }

.testi-stars { color: #ffc857; letter-spacing: 0.2em; margin-bottom: 22px; font-size: 0.95rem; }

.testi-card blockquote {
  margin: 0 0 28px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.testi-card figcaption { display: flex; align-items: center; gap: 13px; }

.avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.testi-card figcaption strong { display: block; font-size: 0.95rem; }
.testi-card figcaption small { font-size: 0.82rem; color: var(--text-faint); }

.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

.testi-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.25s var(--ease);
}

.testi-btn:hover { background: var(--glass-2); }
.testi-btn svg { width: 16px; height: 16px; }

.testi-dots { display: flex; gap: 7px; }

.testi-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: background-color 0.25s var(--ease), width 0.25s var(--ease); }
.testi-dots button.is-active { width: 22px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--violet), var(--cyan)); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-band { padding: clamp(40px, 6vw, 70px) 0 clamp(84px, 10vw, 140px); }

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(34,211,238,0.12) 50%, rgba(255,78,205,0.18));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.12) inset, 0 40px 90px -40px rgba(124,92,255,0.6);
}

.cta-inner h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin-bottom: 30px; max-width: 20ch; margin-inline: auto; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.contact-info .section-head { text-align: left; margin: 0 0 28px; }
.contact-info .section-sub { margin-inline: 0; }

.contact-details { display: grid; gap: 12px; margin-top: 26px; }

.contact-details li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }

.ci-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--text-dim);
}
.ci-icon svg { width: 18px; height: 18px; }

.contact-details strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.contact-details a:hover { color: var(--cyan); }

.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); }

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

.form-group label { font-size: 0.8rem; color: var(--text-dim); }

.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-brd);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: rgba(124,92,255,0.7); background: rgba(255,255,255,0.07); }
.form-group textarea { resize: vertical; min-height: 128px; }

.form-submit { justify-self: start; }

.btn-spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.form-submit.is-loading .btn-label { opacity: 0.6; }
.form-submit.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; font-size: 0.86rem; color: var(--text-dim); min-height: 1.2em; }
.form-status.is-error { color: #ff8c8c; }
.form-status.is-success { color: var(--mint); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--glass-brd); padding-top: clamp(50px, 6vw, 72px); background: rgba(5,6,10,0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }

.footer-brand p { margin-top: 16px; color: var(--text-dim); max-width: 34ch; font-size: 0.93rem; }

.footer-col h4 { margin: 0 0 16px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

.footer-col a { display: block; padding: 5px 0; font-size: 0.93rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }

.footer-text { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--text-faint); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px var(--gutter); border-top: 1px solid var(--glass-brd); }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--text-faint); }

.back-to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-brd); background: var(--glass); transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
.back-to-top:hover { background: var(--glass-2); transform: translateY(-2px); }
.back-to-top svg { width: 16px; height: 16px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive — sections
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.is-feature { grid-column: span 2; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .services-grid, .process-grid, .stats-inner, .about-bento { grid-template-columns: minmax(0, 1fr); }
  .service-card.is-feature, .about-bento .card:first-child { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
