/* ═══════════════════════════════════════════════════════════════
   ZASH MEDIA AGENCY — style.css (multi-page)
   Light theme · lavender-purple brand (#a374fe) on deep indigo ink
   Shared across: index, about, services, automation, contact
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfaff;
  --bg-soft: #f5f2fe;
  --bg-card: #ffffff;
  --ink: #17102e;
  --muted: #5f5880;
  --brand: #a374fe;
  --brand-deep: #6c3df4;
  --brand-soft: #efe8ff;
  --dark: #0d0822;
  --dark-2: #150d33;
  --line: rgba(108, 61, 244, 0.14);
  /* Decorative gradient (big text, icons, glows) */
  --grad: linear-gradient(135deg, #a374fe 0%, #6c3df4 100%);
  /* Button gradient — darker start so white small text passes WCAG AA (≥4.5:1) */
  --grad-btn: linear-gradient(135deg, #7a4bf2 0%, #5f2be5 100%);
  --shadow-sm: 0 2px 12px rgba(23, 16, 46, 0.06);
  --shadow-md: 0 10px 40px rgba(108, 61, 244, 0.12);
  --shadow-lg: 0 24px 70px rgba(108, 61, 244, 0.18);
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

.container { width: min(1180px, 92%); margin-inline: auto; }

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════ TYPOGRAPHY ═══════════ */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; position: relative; }
.section-head .section-sub { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.eyebrow-light { color: #c9b2ff; }

.grad-text {
  background: linear-gradient(135deg, #8f5af7 0%, #6c3df4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.grad-text-light {
  background: linear-gradient(135deg, #cdb4ff, #a374fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Split-letter spans are inline-block, which breaks the parent's
   background-clip:text — each letter must carry its own gradient
   or it inherits the transparent fill and renders invisible. */
.grad-text .ltr-word,
.grad-text-light .ltr-word,
.grad-text .ltr,
.grad-text-light .ltr {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Word wrapper keeps line breaks between words, never inside them */
.ltr-word { display: inline-block; white-space: nowrap; }

.section { padding: 96px 0; position: relative; }

/* ═══════════ GHOST WORDS (brand motif: "SERVICES.SERVICES.") ═══════════ */

.ghost-strip {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  height: clamp(90px, 14vw, 170px);
  display: flex;
  align-items: center;
}

.ghost-track {
  display: flex;
  gap: 0.35em;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(108, 61, 244, 0.13);
  text-transform: uppercase;
}

.ghost-track em {
  font-style: normal;
  -webkit-text-stroke: 0;
  color: rgba(108, 61, 244, 0.07);
}

.ghost-strip--dark .ghost-track { -webkit-text-stroke-color: rgba(163, 116, 254, 0.16); }
.ghost-strip--dark .ghost-track em { color: rgba(163, 116, 254, 0.08); }

/* ═══════════ BUTTONS ═══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  will-change: transform;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(95, 43, 229, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(95, 43, 229, 0.45); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); box-shadow: var(--shadow-md); }

.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.btn-light:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Non-magnetic fallback hover lift */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover, .btn-ghost:hover, .btn-light:hover, .btn-outline-light:hover { transform: translateY(-3px); }
}

/* ═══════════ PAGE WIPE TRANSITION ═══════════ */

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  display: flex;
}

.page-wipe span {
  flex: 1;
  background: var(--dark);
  transform: scaleY(1);
  transform-origin: top;
}

.page-wipe span:nth-child(2) { background: var(--brand-deep); }
.page-wipe span:nth-child(3) { background: var(--brand); }

/* Wipe OUT on page load */
body.wipe-out .page-wipe span {
  animation: wipeOut 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
body.wipe-out .page-wipe span:nth-child(2) { animation-delay: 0.08s; }
body.wipe-out .page-wipe span:nth-child(3) { animation-delay: 0.16s; }

@keyframes wipeOut { to { transform: scaleY(0); } }

/* Wipe IN before navigating away */
body.wipe-in .page-wipe span {
  transform: scaleY(0);
  transform-origin: bottom;
  animation: wipeIn 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
body.wipe-in .page-wipe span:nth-child(2) { animation-delay: 0.06s; }
body.wipe-in .page-wipe span:nth-child(3) { animation-delay: 0.12s; }

@keyframes wipeIn { to { transform: scaleY(1); } }

/* ═══════════ SCROLL PROGRESS + CURSOR ═══════════ */

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

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1050;
  opacity: 0;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-deep);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(108, 61, 244, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }

body.cursor-hover .cursor-ring {
  width: 58px;
  height: 58px;
  background: rgba(163, 116, 254, 0.12);
  border-color: rgba(108, 61, 244, 0.85);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════ PRELOADER ═══════════ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .preloader { opacity: 0; visibility: hidden; }

.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.preloader-logo { width: 72px; height: 72px; animation: preloaderSpin 1.6s ease-in-out infinite; }

@keyframes preloaderSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.86); }
  100% { transform: rotate(360deg) scale(1); }
}

.preloader-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--ink);
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═══════════ NAVBAR ═══════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
  background: rgba(251, 250, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 30px rgba(23, 16, 46, 0.08);
  height: 66px;
}

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

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand-text em { font-style: normal; font-weight: 400; color: var(--brand-deep); letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-link {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 6px; padding: 11px 22px; font-size: 0.88rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 950; }
.nav-toggle span {
  width: 24px;
  height: 2.4px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 8, 34, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  /* Must sit BELOW the navbar (z-index 900): the drawer is a navbar
     child, so its own z-index can never escape that stacking context —
     a backdrop above 900 would blur and block the open menu. */
  z-index: 890;
}

body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ═══════════ HERO (home) ═══════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob-1 { width: 520px; height: 520px; background: #d9c6ff; top: -160px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #e8ddff; bottom: -80px; left: -140px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: #cdb3ff; top: 34%; left: 42%; opacity: 0.35; animation-delay: -8s; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 61, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 61, 244, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(163, 116, 254, 0.6);
  animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 116, 254, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(163, 116, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 116, 254, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

/* Split-letter animation (JS wraps letters in .ltr) */
.hero-title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg);
  animation: ltrIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ltrIn { to { opacity: 1; transform: translateY(0) rotate(0); } }

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.rotator-wrap { color: var(--brand-deep); }

.rotator { display: inline-block; min-width: 220px; transition: opacity 0.3s ease, transform 0.3s ease; }
.rotator.swap { opacity: 0; transform: translateY(10px); }
.rotator-break { display: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 44px; justify-content: start; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8f5af7, #6c3df4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ── Hero visual ── */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-orb { position: relative; width: 320px; height: 320px; display: flex; align-items: center; justify-content: center; }

.hero-logo-mark {
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 20px 50px rgba(108, 61, 244, 0.35));
  position: relative;
  z-index: 2;
}

.orb-ring {
  position: absolute;
  border: 1.5px dashed rgba(108, 61, 244, 0.28);
  border-radius: 50%;
  animation: ringSpin 26s linear infinite;
}
.ring-1 { width: 300px; height: 300px; }
.ring-2 { width: 400px; height: 400px; animation-duration: 38s; animation-direction: reverse; border-color: rgba(108, 61, 244, 0.18); }
.ring-3 { width: 500px; height: 500px; animation-duration: 52s; border-color: rgba(108, 61, 244, 0.1); }

@keyframes ringSpin { to { transform: rotate(360deg); } }

.float-anim { animation: floatY 5.5s ease-in-out infinite; }
.float-anim-slow { animation: floatY 7s ease-in-out infinite; animation-delay: -2s; }
.float-anim-slower { animation: floatY 8.5s ease-in-out infinite; animation-delay: -4s; }

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

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 13px 18px;
  z-index: 3;
}

.float-card strong { font-family: var(--font-display); font-size: 0.9rem; display: block; }
.float-card span { font-size: 0.76rem; color: var(--muted); }

.card-roas { top: 8%; left: -4%; }
.card-ai { bottom: 14%; right: -6%; }
.card-leads { bottom: -2%; left: 6%; }

.fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-icon svg { width: 19px; height: 19px; }
.fc-green { background: #e5f9ee; color: #15803d; }
.fc-purple { background: var(--brand-soft); color: var(--brand-deep); }
.fc-blue { background: #e5efff; color: #1d4ed8; }

.wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.wave i { width: 3px; background: var(--brand); border-radius: 3px; animation: waveBar 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 90%; animation-delay: 0.12s; }
.wave i:nth-child(3) { height: 60%; animation-delay: 0.24s; }
.wave i:nth-child(4) { height: 100%; animation-delay: 0.36s; }
.wave i:nth-child(5) { height: 50%; animation-delay: 0.48s; }

@keyframes waveBar { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.15); } }

/* ── Text marquee (hero bottom) ── */

.hero-marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marqueeScroll 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--brand); font-style: normal; font-size: 0.7rem; }

/* Pause auto-motion on hover (WCAG 2.2.2 mechanism) */
.hero-marquee:hover .marquee-track,
.logo-marquee:hover .logo-track,
.ghost-strip:hover .ghost-track { animation-play-state: paused; }

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

/* ═══════════ PAGE HERO (subpages) ═══════════ */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 64px;
  overflow: hidden;
  background: var(--bg);
}

.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 20%, transparent 78%); }

.page-hero-inner { position: relative; text-align: center; max-width: 780px; margin-inline: auto; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 18px;
}

.crumb a { color: var(--muted); transition: color 0.25s ease; }
.crumb a:hover { color: var(--brand-deep); }
.crumb i { font-style: normal; color: var(--brand); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.page-title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg);
  animation: ltrIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-sub { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin-inline: auto; }

/* ═══════════ REVEAL ANIMATIONS ═══════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

.reveal.visible { opacity: 1; transform: none; }
/* JS removes .reveal/.visible after the entrance finishes so card hover/tilt
   transitions and media-query transforms are never overridden. */

/* Failsafe: if main.js never ran (blocked/failed download), an inline
   script tags the body so content is never left invisible. */
body.js-failed .reveal { opacity: 1; transform: none; }
body.js-failed .page-wipe, body.js-failed .cursor-dot, body.js-failed .cursor-ring { display: none; }

/* ═══════════ SHARED CARD GRIDS ═══════════ */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy p strong { color: var(--ink); }
.about-copy p em { color: var(--brand-deep); font-style: normal; font-weight: 600; }

.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 30px; }

.point { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; }

.point-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 18px; }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(163, 116, 254, 0.4); }

.b-tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.b-wide { grid-column: span 2; }

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bento-icon svg { width: 22px; height: 22px; }

.bento-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.bento-card p { font-size: 0.88rem; color: var(--muted); }

/* ═══════════ SERVICE CARDS (home preview + grids) ═══════════ */

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

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card:hover .service-icon { background: var(--grad-btn); color: #fff; transform: scale(1.06) rotate(-4deg); }

.service-card h3 { font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; margin-bottom: 14px; }

.service-card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.service-card ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.58rem;
  color: var(--brand);
  line-height: 2.4;
}

.service-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(108, 61, 244, 0.08);
  line-height: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-deep);
}

.service-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.service-link:hover svg { transform: translateX(4px); }

/* ═══════════ SERVICE FEATURE ROWS (services page) ═══════════ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: 64px 0;
}

.feature-row + .feature-row { border-top: 1px solid var(--line); }

.feature-row:nth-child(even) .feature-visual { order: -1; }

.feature-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(108, 61, 244, 0.35);
  margin-bottom: 14px;
}

.feature-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.feature-copy > p { color: var(--muted); margin-bottom: 20px; }

.feature-list { display: grid; gap: 11px; margin-bottom: 26px; }

.feature-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--muted); }
.feature-list li .point-check { margin-top: 3px; }
.feature-list li strong { color: var(--ink); font-weight: 600; }

.feature-visual {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-visual .blob { opacity: 0.4; }

.feature-visual-icon {
  width: 130px;
  height: 130px;
  border-radius: 34px;
  background: var(--grad-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(95, 43, 229, 0.4);
  position: relative;
  z-index: 1;
}
.feature-visual-icon svg { width: 60px; height: 60px; }

.feature-visual .orb-ring { border-color: rgba(108, 61, 244, 0.2); }

/* ═══════════ DARK PANEL (automation showcase) ═══════════ */

.dark-panel {
  position: relative;
  background: var(--dark);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  color: #fff;
}

.dark-panel-bg { position: absolute; inset: 0; pointer-events: none; }

.blob-a { width: 480px; height: 480px; background: rgba(163, 116, 254, 0.32); top: -180px; right: -120px; }
.blob-b { width: 420px; height: 420px; background: rgba(108, 61, 244, 0.3); bottom: -180px; left: -100px; animation-delay: -6s; }

.automation-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.automation-copy .section-title { color: #fff; }
.automation-copy > p { color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; max-width: 480px; }

.automation-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.automation-list li { display: flex; gap: 16px; align-items: flex-start; }

.li-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(163, 116, 254, 0.16);
  border: 1px solid rgba(163, 116, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.automation-list strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px; }
.automation-list li div span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); }

/* ── Call card mock ── */

.automation-visual { display: flex; flex-direction: column; gap: 22px; }

.call-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
}

.call-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }

.call-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.call-head strong { font-family: var(--font-display); font-size: 0.98rem; display: block; }

.call-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #8ef0b1; }

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: dotPulse 1.6s ease-out infinite; }

.call-wave { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 42px; margin-bottom: 18px; }

.call-wave i {
  width: 4.5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9b2ff, var(--brand));
  animation: waveBar 1.1s ease-in-out infinite;
}
.call-wave i:nth-child(1)  { height: 30%; animation-delay: 0s; }
.call-wave i:nth-child(2)  { height: 60%; animation-delay: 0.08s; }
.call-wave i:nth-child(3)  { height: 95%; animation-delay: 0.16s; }
.call-wave i:nth-child(4)  { height: 55%; animation-delay: 0.24s; }
.call-wave i:nth-child(5)  { height: 80%; animation-delay: 0.32s; }
.call-wave i:nth-child(6)  { height: 40%; animation-delay: 0.4s; }
.call-wave i:nth-child(7)  { height: 100%; animation-delay: 0.48s; }
.call-wave i:nth-child(8)  { height: 65%; animation-delay: 0.56s; }
.call-wave i:nth-child(9)  { height: 85%; animation-delay: 0.64s; }
.call-wave i:nth-child(10) { height: 45%; animation-delay: 0.72s; }
.call-wave i:nth-child(11) { height: 70%; animation-delay: 0.8s; }
.call-wave i:nth-child(12) { height: 35%; animation-delay: 0.88s; }

.chat-bubbles { display: flex; flex-direction: column; gap: 10px; min-height: 150px; }

.bubble {
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.bubble-ai {
  background: rgba(163, 116, 254, 0.2);
  border: 1px solid rgba(163, 116, 254, 0.32);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble-user {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* JS typing loop toggles .on */
.chat-bubbles.js-typing .bubble { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.chat-bubbles.js-typing .bubble.on { opacity: 1; transform: none; }

.typing-caret { display: inline-block; width: 2px; height: 1em; background: #c9b2ff; vertical-align: -0.15em; animation: caretBlink 0.8s step-end infinite; }

@keyframes caretBlink { 50% { opacity: 0; } }

/* ── Flow card ── */

.flow-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.flow-title { font-family: var(--font-display); font-size: 0.92rem; display: block; margin-bottom: 16px; }

.flow-nodes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.flow-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow-node-hot { background: var(--grad-btn); border-color: transparent; box-shadow: 0 6px 18px rgba(95, 43, 229, 0.4); }

.flow-arrow { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }

.flow-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.flow-bar span { display: block; height: 100%; width: 40%; border-radius: 6px; background: var(--grad); animation: flowProgress 3.2s ease-in-out infinite; }

@keyframes flowProgress { 0% { width: 8%; } 60% { width: 92%; } 100% { width: 8%; } }

.btn-light svg { color: var(--brand-deep); }

/* ═══════════ DASHBOARD MOCK (automation page) ═══════════ */

.dash-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-head strong { font-family: var(--font-display); font-size: 0.95rem; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: #8ef0b1; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }

.dash-stat { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 13px 15px; }
.dash-stat b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.dash-stat span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }

.dash-bars i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand), rgba(108, 61, 244, 0.45));
  transform-origin: bottom;
  animation: barGrow 2.6s ease-in-out infinite alternate;
}
.dash-bars i:nth-child(1) { height: 42%; animation-delay: 0s; }
.dash-bars i:nth-child(2) { height: 66%; animation-delay: 0.15s; }
.dash-bars i:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.dash-bars i:nth-child(4) { height: 84%; animation-delay: 0.45s; }
.dash-bars i:nth-child(5) { height: 58%; animation-delay: 0.6s; }
.dash-bars i:nth-child(6) { height: 92%; animation-delay: 0.75s; }
.dash-bars i:nth-child(7) { height: 74%; animation-delay: 0.9s; }

@keyframes barGrow { from { transform: scaleY(0.82); } to { transform: scaleY(1.06); } }

/* ═══════════ INTEGRATIONS ═══════════ */

.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track { display: flex; gap: 18px; width: max-content; animation: marqueeScroll 36s linear infinite; }
.track-reverse { animation-direction: reverse; }

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 11px 22px 11px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(163, 116, 254, 0.45); }

.chip-glyph {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
}

.g-meta     { background: #0064e0; }
.g-google   { background: linear-gradient(135deg, #4285f4, #34a853); }
.g-tiktok   { background: #010101; }
.g-insta    { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.g-shopify  { background: #5e8e3e; }
.g-hubspot  { background: #ff5c35; }
.g-zapier   { background: #ff4f00; }
.g-make     { background: #6d00cc; }
.g-whatsapp { background: #1faa53; }
.g-stripe   { background: #635bff; }
.g-openai   { background: #0f8a6d; }
.g-twilio   { background: #f22f46; }
.g-slack    { background: #4a154b; }
.g-klaviyo  { background: #111111; }
.g-mailchimp{ background: #ffe01b; color: #1a1a1a; }
.g-notion   { background: #191919; }

/* ── Orbit (automation page) ── */

.orbit-wrap { position: relative; width: min(520px, 90vw); aspect-ratio: 1; margin-inline: auto; }

.orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center svg,
.orbit-center img { width: 110px; height: 110px; filter: drop-shadow(0 14px 40px rgba(108, 61, 244, 0.4)); }

.orbit-ring-el {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(108, 61, 244, 0.22);
  border-radius: 50%;
  animation: ringSpin 40s linear infinite;
}

.orbit-ring-el.inner { inset: 17%; animation-duration: 28s; animation-direction: reverse; }

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 10px 26px rgba(23, 16, 46, 0.18);
  border: 2.5px solid #fff;
}

/* JS positions nodes on the orbit circles and rotates them */

/* ═══════════ PROCESS ═══════════ */

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

.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.process-step::after {
  content: "→";
  position: absolute;
  top: 34px;
  right: -22px;
  font-size: 1.2rem;
  color: var(--brand);
  z-index: 2;
}

.process-step:last-child::after { display: none; }

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad-btn);
  color: #fff;
  border-radius: 10px;
  padding: 6px 13px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(95, 43, 229, 0.3);
}

.process-step h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.89rem; color: var(--muted); }

/* ═══════════ CLIENT CARDS ═══════════ */

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

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.client-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(163, 116, 254, 0.4); }

.client-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.client-icon svg { width: 24px; height: 24px; }

.client-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.client-card p { font-size: 0.89rem; color: var(--muted); }

/* ═══════════ VALUES / MISSION (about page) ═══════════ */

.mission-panel {
  position: relative;
  background: var(--grad-btn);
  border-radius: 32px;
  padding: clamp(44px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-panel .blob { opacity: 0.5; }

.mission-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 880px;
}

.mission-quote em { font-style: normal; color: #d9c8ff; }

.mission-meta { position: relative; margin-top: 26px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: 0.92rem; font-weight: 600; }

.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.hq-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hq-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.hq-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.hq-card p { color: var(--muted); font-size: 0.94rem; }

.hq-flag { font-size: 2rem; margin-bottom: 14px; display: block; }

/* ═══════════ CTA BANNER ═══════════ */

.cta-section { padding-top: 0; }

.cta-banner {
  position: relative;
  background: var(--grad-btn);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg .blob-a { background: rgba(255, 255, 255, 0.22); width: 380px; height: 380px; }
.cta-bg .blob-b { background: rgba(13, 8, 34, 0.35); width: 420px; height: 420px; }

.cta-banner h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-banner p { position: relative; font-size: 1.06rem; color: rgba(255, 255, 255, 0.88); max-width: 520px; margin: 0 auto 34px; }

.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ═══════════ CONTACT ═══════════ */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(163, 116, 254, 0.45); }

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 22px; height: 22px; }

.info-card strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }
.info-card span { font-size: 0.86rem; color: var(--muted); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

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

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

/* AA contrast on #fbfaff (≥4.5:1) */
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6f6890; opacity: 1; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(163, 116, 254, 0.16);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #dc2626; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
}

.field-error.on { display: block; }

.form-note { margin-top: 16px; text-align: center; font-size: 0.86rem; color: var(--muted); }
.form-note a { color: var(--brand-deep); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

/* ═══════════ FAQ (contact page) ═══════════ */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open { border-color: rgba(163, 116, 254, 0.5); box-shadow: var(--shadow-md); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 20px 24px;
}

.faq-q .faq-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--grad-btn); color: #fff; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  /* visibility removes collapsed answers from the accessibility tree
     and tab order while still allowing the height transition */
  visibility: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; }

.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 24px 22px; color: var(--muted); font-size: 0.94rem; }

/* ═══════════ FOOTER ═══════════ */

.footer { background: var(--dark); color: rgba(255, 255, 255, 0.72); padding: 72px 0 0; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 52px; }

.brand-light .brand-text { color: #fff; }
.brand-light .brand-text em { color: var(--brand); }

.footer-tagline { font-family: var(--font-display); font-weight: 600; color: var(--brand); margin: 16px 0 10px; }

.footer-desc { font-size: 0.9rem; max-width: 320px; margin-bottom: 22px; }

.socials { display: flex; gap: 10px; }

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.socials a:hover { background: var(--grad-btn); border-color: transparent; color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer-col h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 18px; }

.footer-col a, .footer-loc { display: block; font-size: 0.9rem; margin-bottom: 11px; transition: color 0.25s ease, transform 0.25s ease; }
.footer-col a:hover { color: var(--brand); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.heart { color: var(--brand); }

/* ═══════════ FLOATING ELEMENTS ═══════════ */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1faa53;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(31, 170, 83, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fabPop 0.5s ease 1.2s backwards;
}

.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 14px 34px rgba(31, 170, 83, 0.5); }
.whatsapp-fab svg { width: 28px; height: 28px; }

@keyframes fabPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-soft); }
.back-to-top svg { width: 20px; height: 20px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  z-index: 990;
  background: var(--dark);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(13, 8, 34, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s ease;
  max-width: 90vw;
  text-align: center;
}

.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ═══════════ RESPONSIVE ═══════════ */

/* Clear the fixed WhatsApp FAB on every width where the container
   margin is too small to keep it off the footer-bottom text. */
@media (max-width: 1200px) {
  .footer-bottom { padding-bottom: 96px; }
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 420px; order: 2; }
  .hero-copy { text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .card-roas { left: 4%; }
  .card-ai { right: 2%; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .automation-grid { grid-template-columns: 1fr; gap: 44px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 52px 0; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .hq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    width: min(340px, 84vw);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 90px 40px 40px;
    box-shadow: -20px 0 60px rgba(23, 16, 46, 0.18);
    transform: translateX(105%);
    visibility: hidden; /* keep closed drawer out of tab order */
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
    z-index: 940;
  }

  .nav-links.open { transform: translateX(0); visibility: visible; }

  .nav-link { font-size: 1.15rem; padding: 10px 0; }
  .nav-cta { margin: 18px 0 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .hero-visual { min-height: 350px; }
  .hero-orb { transform: scale(0.82); }
  .rotator-break { display: block; }
  .rotator { min-width: 0; }

  .services-grid, .clients-grid, .process-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-tall { grid-row: auto; }
  .b-wide { grid-column: auto; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .dash-stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }

  .dark-panel, .cta-banner, .mission-panel { border-radius: 24px; }

  .whatsapp-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .back-to-top { bottom: 82px; right: 18px; }

  .orbit-node { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 0.92rem; }
}

/* ═══════════ REDUCED MOTION ═══════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-title .ltr, .page-title .ltr { opacity: 1; transform: none; }
  .chat-bubbles.js-typing .bubble { opacity: 1; transform: none; }
  .page-wipe { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
