/* ================================================================
   ADYVANCE — Complete Design System & Styles
   Based on Adymize layout, branded with Adyvance palette
   ================================================================ */

/* === FONT LOADING === */
@font-face {
  font-family: 'Automata';
  src: url('./assets/fonts/AUTOMATA.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --adv-blue: #0872FF;
  --adv-blue-teal: #1286D4;
  --adv-teal: #1B97B0;
  --adv-teal-green: #1F9F9F;
  --adv-green: #29B473;
  --adv-gradient: linear-gradient(135deg, #0872FF 0%, #1B97B0 50%, #29B473 100%);
  --adv-gradient-90: linear-gradient(90deg, #0872FF 0%, #1B97B0 50%, #29B473 100%);
  --adv-gradient-soft: linear-gradient(135deg, rgba(8,114,255,0.12) 0%, rgba(27,151,176,0.08) 50%, rgba(41,180,115,0.12) 100%);

  /* UI Colors */
  --color-black: #0f172a;
  --color-dark: #1e293b;
  --color-gray-700: #334155;
  --color-gray-500: #64748b;
  --color-gray-400: #94a3b8;
  --color-gray-300: #cbd5e1;
  --color-gray-200: #e2e8f0;
  --color-gray-100: #f1f5f9;
  --color-gray-50: #f8fafc;
  --color-white: #ffffff;

  /* Accent Tints */
  --adv-blue-soft: rgba(8,114,255,0.08);
  --adv-blue-light: rgba(8,114,255,0.15);
  --adv-green-soft: rgba(41,180,115,0.08);
  --adv-teal-soft: rgba(27,151,176,0.10);
  --badge-bg: rgba(8,114,255,0.08);
  --badge-text: #0872FF;

  /* Typography */
  --font-display: 'Automata', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-hero: clamp(42px, 6vw, 68px);
  --font-size-section: clamp(36px, 4.5vw, 52px);
  --font-size-service: clamp(24px, 3vw, 32px);
  --font-size-card: clamp(17px, 1.5vw, 20px);
  --font-size-body: clamp(15px, 1.2vw, 17px);
  --font-size-nav: 14px;
  --font-size-btn: 14px;
  --font-size-badge: 12px;
  --font-size-small: 13px;
  --font-size-modal-title: clamp(42px, 6vw, 72px);

  /* Spacing */
  --container-max: 1200px;
  --container-pad: clamp(20px, 4vw, 60px);
  --section-pad-y: clamp(60px, 10vw, 120px);
  --card-pad: clamp(32px, 5vw, 64px);
  --card-radius: 24px;
  --btn-radius: 9999px;
  --grid-gap: clamp(24px, 3vw, 40px);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 32px rgba(8,114,255,0.06);
  --shadow-nav: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(8,114,255,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-dark);
  line-height: 1.7;
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* === PAGE BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(8,114,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(41,180,115,0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8,114,255,0.03) 0%, var(--color-white) 40%);
  z-index: -2;
  pointer-events: none;
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--adv-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* === SECTION CARD === */
.section-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  border: 1px solid rgba(8,114,255,0.06);
  pointer-events: none;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: var(--adv-gradient-90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BADGE PILL === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: var(--btn-radius);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: var(--font-size-badge);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--btn-radius);
  font-size: var(--font-size-btn);
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--adv-gradient);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(8,114,255,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(8,114,255,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-gray-300);
}

.btn-outline:hover {
  border-color: var(--adv-blue);
  color: var(--adv-blue);
}

.btn-ghost {
  background: var(--adv-gradient);
  color: var(--color-white);
  padding: 14px 32px;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--font-size-small);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(8,114,255,0.25);
  transition: all var(--duration) var(--ease);
}

.btn-ghost a {
  color: var(--color-white) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover {
  box-shadow: 0 6px 30px rgba(8,114,255,0.4);
  transform: translateY(-2px);
}

/* === SECTION TITLES === */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-section);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--font-size-body);
  color: var(--color-gray-500);
  max-width: 560px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--container-pad);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.header.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.5) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.75);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: normal;
  padding-bottom: 0.1em;
  letter-spacing: 0.02em;
  background: var(--adv-gradient-90);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.nav-links a {
  font-size: var(--font-size-nav);
  font-weight: 500;
  color: var(--color-gray-700);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--adv-gradient-90);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--adv-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
  padding: 100px 40px 40px;
  transition: right 0.4s var(--ease);
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu a:hover {
  color: var(--adv-blue);
}

.mobile-menu .btn {
  margin-top: 24px;
  width: 100%;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.mobile-overlay.visible {
  opacity: 1;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  padding-top: 140px;
  padding-bottom: var(--section-pad-y);
  text-align: center;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(88vh, 880px);
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

/* ── Hero visual column (3D scene) ── */
.hero-visual {
  position: relative;
  z-index: 2;
  height: clamp(300px, 42vh, 440px);
}

.hero-visual-aura {
  position: absolute;
  inset: 4%;
  background: radial-gradient(ellipse 62% 55% at 50% 58%, rgba(8,114,255,0.10) 0%, rgba(27,151,176,0.07) 45%, rgba(41,180,115,0) 78%);
  filter: blur(12px);
  pointer-events: none;
}

/* CSS-only fallback: gradient bars shown until WebGL takes over */
.hero-visual-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding-bottom: 16%;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out);
}

.hero-visual-fallback span {
  width: clamp(30px, 4vw, 52px);
  border-radius: 14px;
  transform-origin: bottom;
  animation: fallbackBreath 4.4s ease-in-out infinite;
}

.hero-visual-fallback span:nth-child(1) { height: 26%; background: linear-gradient(180deg, rgba(8,114,255,0.42), rgba(8,114,255,0.12)); }
.hero-visual-fallback span:nth-child(2) { height: 38%; background: linear-gradient(180deg, rgba(18,134,212,0.42), rgba(18,134,212,0.12)); animation-delay: 0.4s; }
.hero-visual-fallback span:nth-child(3) { height: 51%; background: linear-gradient(180deg, rgba(27,151,176,0.42), rgba(27,151,176,0.12)); animation-delay: 0.8s; }
.hero-visual-fallback span:nth-child(4) { height: 65%; background: linear-gradient(180deg, rgba(31,159,159,0.42), rgba(31,159,159,0.12)); animation-delay: 1.2s; }
.hero-visual-fallback span:nth-child(5) { height: 80%; background: linear-gradient(180deg, rgba(41,180,115,0.45), rgba(41,180,115,0.12)); animation-delay: 1.6s; }

@keyframes fallbackBreath {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.05); }
}

.hero.three-ready .hero-visual-fallback {
  opacity: 0;
}

.hero-3d {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}

.hero.three-ready .hero-3d {
  opacity: 1;
}

.hero-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-scroll {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Split hero on desktop: copy left, sculpture right */
@media (min-width: 993px) {
  .hero {
    text-align: left;
  }

  .hero-layout {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 48px;
  }

  .hero-layout .hero-content h1 {
    font-size: clamp(38px, 3.7vw, 58px);
  }

  .hero-visual {
    height: clamp(460px, 58vh, 640px);
  }

  .hero-3d {
    pointer-events: auto;
  }

  .hero-layout .hero-stats,
  .hero-layout .hero-cta-group {
    justify-content: flex-start;
  }

  .hero-layout .hero-description {
    margin-left: 0;
  }

  .hero-scroll {
    margin-top: 12px;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-gray-700);
}

.hero-stats .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--adv-blue);
  flex-shrink: 0;
}

.hero-description {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--color-gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(8,114,255,0.10);
  top: 60px;
  left: -100px;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(41,180,115,0.08);
  top: 160px;
  right: -80px;
}

.hero-blob-3 {
  width: 250px;
  height: 250px;
  background: rgba(27,151,176,0.08);
  bottom: 40px;
  left: 30%;
}

/* ================================================================
   SERVICES GRID
   ================================================================ */
/* Eight services at the shared section rhythm ran to ~1330px, so the grid
   needed two screens on a laptop. Everything below is tuned to land the whole
   section inside one viewport: card padding, heading block, per-card padding
   and body leading all come down together. */
.services {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.services-card {
  position: relative;
  padding: clamp(20px, 2vw, 28px);
}

.services-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* The label is a flex column with its own gap; the heading's default bottom
   margin would stack on top of that. */
.services-label .section-heading {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Eight cells of uneven copy length left large gutters at the full
     --grid-gap; the row gap is trimmed since each cell already carries
     24px of internal padding. */
  column-gap: var(--grid-gap);
  row-gap: 4px;
  margin-bottom: 20px;
}

.service-item {
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  color: inherit;
  transition: all var(--duration) var(--ease);
}

.service-item:hover {
  background: var(--adv-blue-soft);
}

.service-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border-radius: 12px;
  font-size: 24px;
}

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

.service-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.service-item p {
  font-size: 13px;
  color: var(--color-gray-500);
  line-height: 1.5;
}

/* Each card links down to the block that describes it in full. The arrow is
   the standing affordance — hover alone would leave touch users with no cue
   that the card is tappable. */
/* An inline replaced element carries its own line-break opportunity, so a
   wrapping title would drop the arrow alone onto the next line. Keeping it
   glued to the final word is the only reliable way to stop that. */
.title-end {
  white-space: nowrap;
}

.service-arrow {
  margin-left: 8px;
  color: var(--adv-blue);
  opacity: 0.45;
  vertical-align: -2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.service-item:hover .service-arrow,
.service-item:focus-visible .service-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.service-item:focus-visible {
  outline: 2px solid var(--adv-blue);
  outline-offset: 3px;
}

.services-cta {
  text-align: center;
}

.services-cta a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services-cta a:hover {
  opacity: 0.8;
}

/* Decorative blob inside services card */
.services-card .blob-deco {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,114,255,0.06), rgba(41,180,115,0.04));
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.services-card > *:not(.blob-deco) {
  position: relative;
  z-index: 1;
}

/* ================================================================
   DEEP-DIVE SERVICE BLOCKS
   ================================================================ */
.service-blocks {
  padding-bottom: var(--section-pad-y);
}

.service-block {
  margin-bottom: 32px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: var(--card-pad);
}

.service-block.reversed .service-block-inner {
  direction: rtl;
}

.service-block.reversed .service-block-inner > * {
  direction: ltr;
}

.service-block-text .badge {
  margin-bottom: 20px;
}

.service-block-text h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-service);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.service-block-text p {
  color: var(--color-gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-tag {
  padding: 8px 20px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--btn-radius);
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all var(--duration) var(--ease);
}

.service-tag:hover {
  border-color: var(--adv-blue);
  color: var(--adv-blue);
  background: var(--adv-blue-soft);
}

.service-block-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-visual-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient backgrounds for visuals */
.visual-gradient-1 { background: linear-gradient(135deg, rgba(8,114,255,0.08), rgba(27,151,176,0.12)); }
.visual-gradient-2 { background: linear-gradient(135deg, rgba(41,180,115,0.08), rgba(27,151,176,0.12)); }
.visual-gradient-3 { background: linear-gradient(135deg, rgba(8,114,255,0.06), rgba(41,180,115,0.08)); }
.visual-gradient-4 { background: linear-gradient(135deg, rgba(27,151,176,0.10), rgba(8,114,255,0.06)); }
.visual-gradient-5 { background: linear-gradient(135deg, rgba(41,180,115,0.06), rgba(8,114,255,0.10)); }
.visual-gradient-6 { background: linear-gradient(135deg, rgba(8,114,255,0.08), rgba(41,180,115,0.10)); }
.visual-gradient-7 { background: linear-gradient(135deg, rgba(27,151,176,0.08), rgba(41,180,115,0.10)); }
.visual-gradient-8 { background: linear-gradient(135deg, rgba(8,114,255,0.10), rgba(27,151,176,0.08)); }

/* SVG illustration placeholder styles */
.service-illustration {
  width: 85%;
  max-width: 360px;
  padding: 32px;
}

.service-illustration svg {
  width: 100%;
  height: auto;
}

/* ================================================================
   ONBOARDING / PROCESS SECTION
   ================================================================ */
.process {
  padding-bottom: var(--section-pad-y);
}

.process-card {
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 56px;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-step {
  display: flex;
  gap: 20px;
}

.step-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--adv-gradient);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
}

.step-content h4 {
  font-size: var(--font-size-card);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--color-gray-500);
  line-height: 1.6;
  font-size: 15px;
}

.process-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: var(--color-white);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 16px;
  position: relative;
}

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-gray-50);
  padding: 24px 16px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-header span {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
}

.phone-header-btn {
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 600;
}

.phone-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.phone-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--color-gray-200);
}

.phone-bar:nth-child(1) { width: 100%; }
.phone-bar:nth-child(2) { width: 85%; }
.phone-bar:nth-child(3) { width: 70%; }

.phone-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-top: 16px;
}

.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--adv-gradient);
  min-height: 20px;
  position: relative;
  transition: height 0.6s var(--ease);
}

.chart-bar:nth-child(1) { height: 45%; }
.chart-bar:nth-child(2) { height: 65%; }
.chart-bar:nth-child(3) { height: 50%; }
.chart-bar:nth-child(4) { height: 80%; }
.chart-bar:nth-child(5) { height: 60%; }
.chart-bar:nth-child(6) { height: 95%; }
.chart-bar:nth-child(7) { height: 70%; }

.chart-tooltip {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================================================================
   COMPARISON / UNIQUE SECTION
   ================================================================ */
.comparison {
  padding-bottom: var(--section-pad-y);
}

.comparison-card {
  text-align: center;
}

.comparison-header {
  margin-bottom: 48px;
}

.comparison-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin-top: 8px;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: left;
}

.comparison-col-header {
  display: inline-flex;
  padding: 8px 20px;
  border-radius: var(--btn-radius);
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.others-header {
  background: var(--color-gray-100);
  color: var(--color-gray-500);
}

.adyvance-header {
  background: var(--adv-gradient);
  color: var(--color-white);
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.comparison-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 14px;
}

.icon-minus {
  background: var(--color-gray-100);
  color: var(--color-gray-400);
}

.icon-check {
  background: rgba(41,180,115,0.12);
  color: var(--adv-green);
}

.others-text {
  color: var(--color-gray-400);
  font-size: 15px;
}

.adyvance-text {
  color: var(--color-black);
  font-weight: 600;
  font-size: 15px;
}

.comparison-cta {
  text-align: center;
}

/* ================================================================
   TESTIMONIALS SECTION
   ================================================================ */
.testimonials {
  padding-bottom: var(--section-pad-y);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

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

.testimonial-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(8,114,255,0.05);
  transition: all var(--duration) var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 18px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-black);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--color-gray-400);
}

/* ================================================================
   CONTACT MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9001;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.4s var(--ease);
}

.modal.active {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--card-radius);
  max-width: 1000px;
  width: 100%;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-100);
  font-size: 20px;
  color: var(--color-gray-500);
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-black);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--font-size-modal-title);
  font-weight: 900;
  line-height: 1.05;
  color: var(--color-black);
  margin-bottom: 16px;
}

.modal-subtitle {
  font-size: var(--font-size-body);
  color: var(--color-gray-500);
  margin-bottom: 48px;
  line-height: 1.6;
}

.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: auto;
}

.modal-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.modal-info p {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.modal-info a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
}

.modal-info a:hover {
  color: var(--adv-blue);
}

.modal-info-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-info-wa svg {
  flex-shrink: 0;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.form-group {
  position: relative;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 0;
  border: none;
  border-bottom: 1.5px solid var(--color-gray-200);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-black);
  background: transparent;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--adv-blue);
}

.form-group textarea {
  resize: none;
  min-height: 60px;
}

.form-submit {
  margin-top: 28px;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  background: var(--adv-gradient);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.form-submit:hover {
  box-shadow: 0 8px 32px rgba(8,114,255,0.35);
  transform: translateY(-2px);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  height: 200px;
  background: linear-gradient(90deg,
    rgba(8,114,255,0.06) 0%,
    rgba(27,151,176,0.05) 30%,
    rgba(41,180,115,0.06) 60%,
    rgba(255,200,50,0.05) 100%);
  filter: blur(40px);
  pointer-events: none;
}

/* fit-content so the clipped gradient maps to the glyphs; on a full-width
   block it would span the container and the centred text would only ever
   sample the middle of the ramp. */
.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  width: fit-content;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

/* Contact row sits above the divider so the footer answers "how do I reach
   you?" before the legal line. */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

a.footer-contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(8,114,255,0.35);
  box-shadow: 0 10px 24px rgba(8,114,255,0.10);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--adv-blue);
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.footer-contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--color-gray-200);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-gray-500);
}

.footer-copy a {
  color: var(--adv-blue);
  font-weight: 500;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  font-size: 18px;
  transition: all var(--duration) var(--ease);
}

/* Each platform lights up in its own brand colour on hover rather than the
   Adyvance gradient — the mark is recognisable before the label is read. */
.footer-social-link:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social-link.social-fb:hover {
  background: #1877F2;
}

/* Instagram's mark is a gradient, not a flat colour. */
.footer-social-link.social-ig:hover {
  background: radial-gradient(circle at 30% 107%,
    #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}

.footer-social-link.social-tt:hover {
  background: #010101;
}

.footer-social-link.social-yt:hover {
  background: #FF0000;
}

/* ================================================================
   DOT NAVIGATION
   ================================================================ */
.dot-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 500;
  padding: 16px 8px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.dot-nav a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-300);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.dot-nav a.active {
  background: var(--adv-blue);
  box-shadow: 0 0 0 4px rgba(8,114,255,0.2);
  width: 12px;
  height: 12px;
}

.dot-nav a::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-white);
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-nav);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.dot-nav a:hover::before {
  opacity: 1;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 1024px) {
  .dot-nav {
    display: none;
  }

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

  .service-block-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-block.reversed .service-block-inner {
    direction: ltr;
  }

  .service-block-visual {
    order: -1;
  }

  .service-block-text h3 {
    font-size: clamp(22px, 3.5vw, 28px);
  }

  .service-illustration {
    max-width: 320px;
  }

  .process-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-visual {
    order: -1;
  }

  .comparison-table {
    gap: 32px;
  }

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

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal-title {
    font-size: clamp(36px, 5vw, 56px);
  }

  .modal-info {
    max-width: 400px;
  }

  .client-logo {
    width: 120px;
    height: 120px;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    width: 100%;
    right: -100%;
  }

  .mobile-menu.open {
    right: 0;
  }

  .dot-nav {
    display: flex;
    flex-direction: row;
    top: auto;
    bottom: 90px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    padding: 10px 16px;
    border-radius: 9999px;
    z-index: 500;
  }

  .dot-nav a {
    width: 8px;
    height: 8px;
  }

  .dot-nav a.active {
    width: 10px;
    height: 10px;
  }

  .dot-nav a::before {
    display: none;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: calc(var(--section-pad-y) * 0.7);
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero-stats {
    flex-direction: row;
    gap: 8px;
    font-size: 11px;
  }

  .hero-stats .divider {
    display: inline-flex;
  }

  .hero-description {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-blob-1 {
    width: 200px;
    height: 200px;
    top: 40px;
    left: -60px;
  }

  .hero-blob-2 {
    width: 180px;
    height: 180px;
    top: 120px;
    right: -50px;
  }

  .hero-blob-3 {
    width: 140px;
    height: 140px;
    bottom: 20px;
  }

  .services-label {
    margin-bottom: 32px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-item {
    padding: 16px;
    gap: 12px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
  }

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

  .service-item h4 {
    font-size: 15px;
  }

  .service-item p {
    font-size: 13px;
  }

  .service-block-inner {
    padding: clamp(20px, 4vw, 32px);
    gap: 24px;
  }

  .service-block-text h3 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .service-block-text p {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .service-tag {
    padding: 6px 14px;
    font-size: 12px;
  }

  .service-illustration {
    width: 100%;
    max-width: 280px;
    padding: 16px;
  }

  .service-visual-wrapper {
    aspect-ratio: 16/12;
  }

  .process-header {
    margin-bottom: 36px;
  }

  .process-content {
    gap: 32px;
  }

  .process-steps {
    gap: 28px;
  }

  .process-step {
    gap: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-content h4 {
    font-size: 15px;
  }

  .step-content p {
    font-size: 14px;
  }

  .phone-mockup {
    width: 220px;
    padding: 12px;
    border-radius: 24px;
  }

  .phone-screen {
    padding: 16px 12px;
  }

  .phone-chart {
    height: 90px;
  }

  .comparison-header {
    margin-bottom: 32px;
  }

  .comparison-table {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .comparison-col-header {
    font-size: 11px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  .comparison-item {
    padding: 10px 0;
    gap: 10px;
  }

  .comparison-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .others-text,
  .adyvance-text {
    font-size: 14px;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }

  .testimonials-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 300px;
    padding: 24px;
  }

  .testimonial-text {
    font-size: 14px;
  }

  .testimonial-stars {
    font-size: 16px;
    margin-bottom: 12px;
  }


  .section-heading {
    font-size: clamp(26px, 6vw, 34px);
  }

  .badge {
    font-size: 10px;
    padding: 5px 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  .btn-ghost {
    padding: 12px 24px;
    font-size: 12px;
  }

  .section-card {
    padding: clamp(20px, 4vw, 28px);
    border-radius: 18px;
  }

  .services-card .blob-deco {
    width: 180px;
    height: 180px;
  }

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

  .modal-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer {
    padding: 40px 0 0;
  }

  .footer-heading {
    margin-bottom: 22px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .footer-contact-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .footer-contact-icon {
    width: 36px;
    height: 36px;
  }

  .footer-contact-value {
    font-size: 13px;
  }

  /* column-reverse, not reordered markup: the socials read above the
     copyright line on a phone while the source order (copy, then socials)
     stays correct for screen readers and keyboard traversal. */
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .footer-copy {
    font-size: 12px;
  }

  .footer-social-link {
    width: 36px;
    height: 36px;
  }

  .client-logo {
    width: 100px;
    height: 100px;
    animation: none;
  }

  .clients-grid {
    display: flex !important;
    gap: 20px;
    overflow: hidden;
    max-width: none !important;
  }

  .services-cta {
    margin-top: 32px;
  }

  .comparison-cta {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
    --section-pad-y: 48px;
    --card-pad: 18px;
    --grid-gap: 16px;
  }

  .header-inner {
    height: 60px;
  }

  .header-logo img {
    height: 28px;
  }

  .header-logo-text {
    font-size: 1.15rem;
  }

  .section-card {
    padding: clamp(16px, 4vw, 24px);
    border-radius: 16px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 34px);
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-cta-group .btn {
    padding: 11px 20px;
    font-size: 12px;
  }

  .hero-blob-1 {
    width: 140px;
    height: 140px;
    top: 30px;
    left: -40px;
  }

  .hero-blob-2 {
    width: 120px;
    height: 120px;
    top: 90px;
    right: -30px;
  }

  .hero-blob-3 {
    width: 100px;
    height: 100px;
    bottom: 10px;
    left: 40%;
  }

  .mobile-menu {
    padding: 80px 24px 24px;
  }

  .mobile-menu a {
    font-size: 16px;
    padding: 14px 0;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .service-item {
    padding: 14px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

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

  .service-block-inner {
    gap: 20px;
  }

  .service-block-text .badge {
    margin-bottom: 12px;
  }

  .service-tags {
    gap: 6px;
  }

  .service-tag {
    padding: 5px 12px;
    font-size: 11px;
  }

  .service-illustration {
    max-width: 240px;
    padding: 12px;
  }

  .process-steps {
    gap: 24px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .phone-mockup {
    width: 180px;
    padding: 8px;
    border-radius: 20px;
  }

  .phone-screen {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .phone-header span {
    font-size: 12px;
  }

  .phone-header-btn {
    padding: 4px 10px;
    font-size: 9px;
  }

  .phone-chart {
    height: 70px;
    gap: 6px;
  }

  .chart-tooltip {
    font-size: 8px;
    padding: 3px 8px;
    top: -28px;
  }

  .comparison-item {
    padding: 8px 0;
  }

  .others-text,
  .adyvance-text {
    font-size: 13px;
  }

  .testimonial-card {
    flex: 0 0 260px;
    padding: 20px;
    border-radius: 16px;
  }

  .testimonial-text {
    font-size: 13px;
  }

  .testimonial-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .testimonial-name {
    font-size: 14px;
  }

  .testimonial-role {
    font-size: 12px;
  }


  .modal-content {
    padding: clamp(20px, 4vw, 28px);
    border-radius: 16px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .modal-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .modal-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 0;
    font-size: 13px;
  }

  .form-submit {
    padding: 15px;
    font-size: 13px;
    margin-top: 20px;
  }

  .btn-ghost {
    padding: 10px 20px;
    font-size: 11px;
  }

  .client-logo {
    width: 80px;
    height: 80px;
    animation: none;
  }

  .clients-grid {
    overflow: hidden;
  }

  .floating-contact {
    bottom: 16px;
    right: 12px;
    gap: 8px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .float-btn svg {
    width: 22px;
    height: 22px;
  }

  .dot-nav {
    bottom: 80px;
  }
}

/* ================================================================
   FLOATING CONTACT BUTTONS
   ================================================================ */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--color-white);
}

/* The WhatsApp and Call buttons that used to live in this stack were removed —
   the assistant is the single floating call to action now. Both routes are
   still on the page: "Chat Now" in the header, "Talk to a person" in the chat
   panel, and the full contact block in the footer. */

/* Glassmorphism once the page is scrolled */
.floating-contact.scrolled .float-btn {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 8px 24px rgba(15,23,42,0.14), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: none;
}

.floating-contact.scrolled .float-btn:hover {
  background: rgba(255,255,255,0.75);
}

/* Client Logo Styling & Animation */
.client-logo {
  background: white;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: clientFloat 4s ease-in-out infinite;
  text-decoration: none;
}

.client-logo img {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.client-logo:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(8,114,255,0.15);
  animation-play-state: paused;
}

.client-logo:hover img {
  transform: scale(1.15);
}

/* Stagger floating animation */
.client-logo:nth-child(2) { animation-delay: -1s; }
.client-logo:nth-child(3) { animation-delay: -2s; }
.client-logo:nth-child(4) { animation-delay: -3s; }

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

/* ================================================================
   MOBILE POLISH & MOTION UPGRADE
   ================================================================ */
:root {
  --motion-fast: 180ms;
  --motion-medium: 420ms;
  --motion-slow: 900ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.2, 1.15);
  --mobile-safe-bottom: max(16px, env(safe-area-inset-bottom));
}

html {
  scroll-padding-top: 92px;
}

body.menu-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--adv-gradient-90);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 10001;
  box-shadow: 0 0 18px rgba(8,114,255,0.35);
  pointer-events: none;
}

.header {
  animation: headerReveal 0.7s var(--ease-out) both;
}

.header.scrolled {
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.header-logo img {
  transition: transform var(--motion-medium) var(--ease-out), filter var(--motion-medium) var(--ease-out);
}

.header-logo:hover img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(8,114,255,0.18));
}

.hero {
  overflow: hidden;
}

.hero h1,
.badge,
.comparison-col-header,
.form-submit {
  letter-spacing: 0;
}

.hero-blob {
  animation: heroDrift 12s ease-in-out infinite;
  will-change: transform;
}

/* heroDrift scales a blur(80px) layer, which forces the blur to re-rasterise
   every frame. Stop paying for it once the hero is scrolled out of view. */
.hero.blobs-idle .hero-blob {
  animation-play-state: paused;
}

.hero-blob-2 {
  animation-delay: -4s;
}

.hero-blob-3 {
  animation-delay: -8s;
}

.gradient-text {
  background-size: 180% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

.btn,
.form-submit {
  min-height: 46px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-primary::before,
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.34) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

.btn-primary:hover::before,
.form-submit:hover::before {
  transform: translateX(130%);
}

.btn-outline:hover {
  background: rgba(8,114,255,0.04);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8,114,255,0.08);
}

.service-item,
.comparison-col,
.testimonial-card,
.client-logo {
  transform: translateZ(0);
}

.service-item {
  position: relative;
  border: 1px solid transparent;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--adv-gradient);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity var(--motion-medium) var(--ease-out), transform var(--motion-medium) var(--ease-out);
}

.service-item:hover {
  border-color: rgba(8,114,255,0.08);
  box-shadow: 0 16px 36px rgba(8,114,255,0.08);
  transform: translateY(-4px);
}

.service-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.service-icon {
  box-shadow: inset 0 0 0 1px rgba(8,114,255,0.08);
  transition: transform var(--motion-medium) var(--ease-spring), box-shadow var(--motion-medium) var(--ease-out);
}

.service-item:hover .service-icon {
  transform: translateY(-2px) rotate(-3deg) scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(8,114,255,0.14), 0 12px 26px rgba(8,114,255,0.12);
}

.service-visual-wrapper {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 18px 42px rgba(8,114,255,0.08);
}

.service-visual-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.45) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: visualSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.service-illustration {
  animation: softFloat 6.5s ease-in-out infinite;
  transform-origin: center;
}

.service-block:nth-child(even) .service-illustration {
  animation-delay: -2.6s;
}

.process-step {
  position: relative;
}

.step-number {
  box-shadow: 0 10px 24px rgba(8,114,255,0.22);
  animation: stepGlow 3.6s ease-in-out infinite;
}

.process-step:nth-child(2) .step-number {
  animation-delay: -1.2s;
}

.process-step:nth-child(3) .step-number {
  animation-delay: -2.4s;
}

.phone-mockup {
  animation: phoneFloat 5.5s ease-in-out infinite;
}

.chart-bar {
  transform-origin: bottom;
  animation: chartRise 1s var(--ease-out) both, chartPulse 4.6s ease-in-out 1.6s infinite;
}

.chart-bar:nth-child(2) { animation-delay: 0.08s, 2.5s; }
.chart-bar:nth-child(3) { animation-delay: 0.16s, 3.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.24s, 1.9s; }
.chart-bar:nth-child(5) { animation-delay: 0.32s, 4.1s; }
.chart-bar:nth-child(6) { animation-delay: 0.40s, 2.9s; }
.chart-bar:nth-child(7) { animation-delay: 0.48s, 3.7s; }

.phone-bar {
  position: relative;
  overflow: hidden;
}

.phone-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  transform: translateX(-100%);
  animation: barShimmer 3.2s ease-in-out infinite;
}

.phone-bar:nth-child(2)::after { animation-delay: 0.25s; }
.phone-bar:nth-child(3)::after { animation-delay: 0.5s; }

.phone-header-btn {
  animation: publishPulse 4s ease-in-out 2s infinite;
}

.comparison-col {
  border-radius: 18px;
  padding: 10px 18px 16px;
  transition: background var(--motion-medium) var(--ease-out), transform var(--motion-medium) var(--ease-out);
}

.comparison-col:hover {
  background: rgba(8,114,255,0.035);
  transform: translateY(-3px);
}

.modal {
  transform: translateY(18px) scale(0.98);
}

.modal.active {
  transform: translateY(0) scale(1);
}

.modal-content {
  overflow: hidden;
}

.floating-contact {
  transition: transform var(--motion-medium) var(--ease-out);
}

body.menu-open .floating-contact {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.float-btn {
  animation: contactPulse 4s ease-in-out infinite;
}


.marquee-track {
  will-change: transform;
}

/* The track is two copies of the set, so -50% lands copy two exactly where
   copy one started. Running this as a CSS animation keeps it on the compositor
   thread — it costs no main-thread time while the user is scrolling. */
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee-animate {
  animation: marqueeScroll 40s linear infinite;
}

.marquee-paused {
  animation-play-state: paused;
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  0%, 100% {
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(1);
  }
  50% {
    transform: translate3d(calc(var(--mx, 0px) + 18px), calc(var(--my, 0px) - 18px), 0) scale(1.06);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes visualSheen {
  0%, 42%, 100% {
    transform: translateX(-120%);
  }
  62% {
    transform: translateX(120%);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

@keyframes stepGlow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(8,114,255,0.22);
  }
  50% {
    box-shadow: 0 14px 34px rgba(41,180,115,0.28);
  }
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.6deg);
  }
}

@keyframes chartRise {
  from {
    transform: scaleY(0.2);
    opacity: 0.35;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes chartPulse {
  0%, 100% { transform: scaleY(1); }
  35% { transform: scaleY(0.94); }
  70% { transform: scaleY(1.05); }
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes tooltipPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes tooltipBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes publishPulse {
  0%, 18%, 100% { transform: scale(1); }
  8% { transform: scale(1.07); }
}

@keyframes contactPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 0 0 rgba(8,114,255,0);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 0 0 8px rgba(8,114,255,0.08);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --section-pad-y: 58px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .header {
    padding: 0 16px;
  }

  .header-inner {
    height: 68px;
  }

  .header-logo img {
    height: 32px;
  }

  .header-logo-text {
    font-size: 1.3rem;
  }

  .hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.76);
    box-shadow: 0 8px 22px rgba(8,114,255,0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger:focus {
    outline: none;
  }

  .hamburger:focus-visible {
    outline: 3px solid rgba(8,114,255,0.24);
    outline-offset: 3px;
  }

  .hamburger span {
    width: 22px;
  }

  .mobile-overlay {
    background: rgba(15,23,42,0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu {
    width: min(100%, 390px);
    right: 0;
    padding: 92px 26px 28px;
    transform: translateX(105%);
    border-radius: 28px 0 0 28px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: -18px 0 54px rgba(15,23,42,0.14);
    transition: transform 0.48s var(--ease-out);
  }

  .mobile-menu.open {
    right: 0;
    transform: translateX(0);
  }

  .mobile-menu a {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color var(--duration) var(--ease);
    transition-delay: 0s;
  }

  .mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Stagger only on open — closing stays instant */
  .mobile-menu.open a:nth-child(1) { transition-delay: 0.16s; }
  .mobile-menu.open a:nth-child(2) { transition-delay: 0.25s; }
  .mobile-menu.open a:nth-child(3) { transition-delay: 0.34s; }
  .mobile-menu.open a:nth-child(4) { transition-delay: 0.43s; }
  .mobile-menu.open a:nth-child(5) { transition-delay: 0.52s; }
  .mobile-menu.open a:nth-child(6) { transition-delay: 0.61s; }

  .hero {
    padding-top: 92px;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero-stats {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-stats .divider {
    display: none;
  }

  .hero-stats span:not(.divider) {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(8,114,255,0.08);
    box-shadow: 0 8px 18px rgba(8,114,255,0.06);
  }

  .hero-description {
    max-width: 34rem;
  }

  .hero-cta-group {
    width: 100%;
  }

  .hero-cta-group .btn,
  .mobile-menu .btn {
    width: 100%;
  }

  .hero-cta-group .btn {
    max-width: 360px;
  }

  .mobile-menu .btn {
    max-width: none;
  }

  .dot-nav {
    display: none;
  }

  .section-heading {
    font-size: 2rem;
    line-height: 1.15;
  }

  .section-card {
    box-shadow: 0 16px 42px rgba(8,114,255,0.08);
  }

  .services-grid {
    gap: 14px;
  }

  .service-item {
    align-items: flex-start;
    padding: 16px;
    border-color: rgba(8,114,255,0.07);
    background: rgba(255,255,255,0.72);
    box-shadow: 0 10px 26px rgba(8,114,255,0.04);
  }

  .service-item:hover {
    transform: translateY(-2px);
  }

  .service-block {
    margin-bottom: 22px;
  }

  .service-block-inner {
    border-radius: 20px;
  }

  .service-block-visual {
    order: 0;
  }

  .service-visual-wrapper {
    aspect-ratio: 1.45 / 1;
    border-radius: 18px;
  }

  .service-tags {
    row-gap: 8px;
  }

  .process-steps {
    position: relative;
  }

  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 44px;
    bottom: -24px;
    width: 1px;
    background: linear-gradient(180deg, rgba(8,114,255,0.28), rgba(41,180,115,0.08));
  }

  .phone-mockup {
    width: min(240px, 72vw);
  }

  .comparison-table {
    gap: 18px;
  }

  .comparison-col {
    padding: 18px;
    border: 1px solid rgba(8,114,255,0.07);
    background: rgba(255,255,255,0.72);
  }

  .comparison-col-header {
    margin-bottom: 18px;
  }

  .testimonials-grid {
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
  }

  .testimonial-card {
    flex-basis: min(82vw, 320px);
    min-height: 260px;
  }

  .clients-grid {
    margin-inline: calc(var(--container-pad) * -1) !important;
    padding-inline: var(--container-pad);
  }

  .client-logo {
    --client-logo-size: 96px;
    flex: 0 0 var(--client-logo-size);
    width: var(--client-logo-size);
    height: var(--client-logo-size);
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .modal {
    align-items: flex-start;
    padding: 76px 14px 24px;
  }

  .modal-content {
    max-height: calc(100svh - 96px);
    overflow-y: auto;
  }

  .modal-grid {
    gap: 22px;
  }

  .modal-title {
    font-size: 2.3rem;
    margin-bottom: 10px;
  }

  .modal-title br {
    display: none;
  }

  .modal-subtitle {
    margin-bottom: 0;
  }

  .modal-info {
    display: none;
  }

  .floating-contact {
    right: 14px;
    bottom: var(--mobile-safe-bottom);
    flex-direction: row;
    gap: 10px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
    --section-pad-y: 50px;
  }

  .client-logo {
    --client-logo-size: 80px;
  }

  html {
    scroll-padding-top: 70px;
  }

  .header-inner {
    height: 62px;
  }

  .header-logo img {
    height: 28px;
  }

  .header-logo-text {
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 82px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-stats span:not(.divider) {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .mobile-menu {
    width: 100%;
    border-radius: 0;
    padding: 82px 22px 24px;
  }

  .section-heading {
    font-size: 1.72rem;
  }

  .service-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .service-item h4 {
    line-height: 1.32;
  }

  .service-block-text h3 {
    font-size: 1.42rem;
  }

  .service-visual-wrapper {
    aspect-ratio: 1.25 / 1;
  }

  .btn-ghost {
    width: 100%;
    display: block;
    line-height: 1.55;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-info a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   MOTION LAYER V2 — Marquee badges, hero intro, counters,
   scroll choreography & micro-interactions
   ================================================================ */

/* --- Marquee badges (scrolling word strips) --- */
.badge[data-marquee] {
  max-width: min(230px, 78vw);
  overflow: hidden;
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.badge-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: badgeScroll 16s linear infinite;
}

.badge-seg {
  white-space: pre;
}

.badge[data-marquee]:hover .badge-track {
  animation-play-state: paused;
}

@keyframes badgeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Hero masked line reveal --- */
.hero h1 .line-mask {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.08em 0.14em;
  margin: -0.06em 0 -0.14em;
}

.hero h1 .line-inner {
  display: inline-block;
  will-change: transform;
}

.js .hero h1 .line-inner {
  opacity: 0;
  transform: translateY(115%);
  filter: blur(6px);
  transition:
    transform 0.9s var(--ease-out),
    opacity 0.7s ease,
    filter 0.9s var(--ease-out);
}

.js .hero h1 .line-mask:nth-child(2) .line-inner {
  transition-delay: 0.14s;
}

.js .is-loaded .hero h1 .line-inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Hero load-sequenced intro --- */
.js .hero-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .is-loaded .hero-reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .hero-reveal-1 { transition-delay: 0.42s; }
.js .hero-reveal-2 { transition-delay: 0.56s; }
.js .hero-reveal-3 { transition-delay: 0.7s; }
.js .hero-reveal-4 { transition-delay: 0.88s; }

/* --- Hero scroll indicator --- */
.hero-scroll {
  width: 26px;
  height: 42px;
  margin: 44px auto 0;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--btn-radius);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.hero-scroll:hover {
  border-color: var(--adv-blue);
  transform: translateY(2px);
}

.hero-scroll-dot {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: var(--adv-gradient);
  animation: scrollDot 1.9s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --- Stats band --- */
.stats-band {
  padding-bottom: var(--section-pad-y);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(8, 114, 255, 0.07);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

@media (max-width: 768px) {
  .hero {
    min-height: min(78vh, 720px);
  }

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

  .stat-label {
    font-size: 10px;
  }

  .hero-scroll {
    display: none;
  }

  /* Keyword strips sit centered above their headings in every section */
  .badge[data-marquee] {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Directional child reveals for service blocks --- */
.js .service-block .service-block-text,
.js .service-block .service-block-visual {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .service-block .service-block-text {
  transform: translateX(-28px);
  transition-delay: 0.1s;
}

.js .service-block .service-block-visual {
  transform: translateX(28px);
  transition-delay: 0.22s;
}

.js .service-block.reversed .service-block-text {
  transform: translateX(28px);
}

.js .service-block.reversed .service-block-visual {
  transform: translateX(-28px);
}

.js .service-block.visible .service-block-text,
.js .service-block.visible .service-block-visual {
  opacity: 1;
  transform: translateX(0);
}

/* --- In-view gated chart animation (process phone) --- */
.js .process-visual .chart-bar {
  animation-name: none;
  transform: scaleY(0.2);
  opacity: 0.35;
}

.js .process-visual.in-view .chart-bar {
  animation-name: chartRise, chartPulse;
}

.js .process-visual .chart-tooltip {
  opacity: 0;
}

.js .process-visual.in-view .chart-tooltip {
  animation: tooltipPop 0.5s var(--ease-out) 1.35s both, tooltipBob 3.4s ease-in-out 1.85s infinite;
}

/* --- Tilt targets --- */
.service-visual-wrapper {
  will-change: transform;
  transform-style: preserve-3d;
}

/* --- One-time SVG choreography for service illustrations --- */
.js .service-block .analytics-bar {
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
}

.js .service-block .analytics-line,
.js .service-block .strategy-arrow path,
.js .service-block .strategy-arrow line,
.js .service-block .workflow-connector,
.js .service-block .ai-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .service-block .analytics-dot,
.js .service-block .social-header,
.js .service-block .social-media,
.js .service-block .social-actions,
.js .service-block .strategy-value,
.js .service-block .strategy-legend,
.js .service-block .ecom-product,
.js .service-block .ecom-cart,
.js .service-block .brand-type,
.js .service-block .workflow-node,
.js .service-block .workflow-icon,
.js .service-block .code-file,
.js .service-block .code-line,
.js .service-block .ai-node {
  opacity: 0;
  transform: translateY(8px);
}

.js .service-block .social-play,
.js .service-block .brand-swatch,
.js .service-block .brand-pen,
.js .service-block .brand-star,
.js .service-block .code-ship,
.js .service-block .ai-core {
  opacity: 0;
  transform: scale(0.65);
  transform-box: fill-box;
  transform-origin: center;
}

.js .service-block.visible .analytics-bar {
  animation: svgBarRise 0.58s var(--ease-out) both;
}

.js .service-block.visible .analytics-bar:nth-child(1) { animation-delay: 0.28s; }
.js .service-block.visible .analytics-bar:nth-child(2) { animation-delay: 0.34s; }
.js .service-block.visible .analytics-bar:nth-child(3) { animation-delay: 0.4s; }
.js .service-block.visible .analytics-bar:nth-child(4) { animation-delay: 0.46s; }
.js .service-block.visible .analytics-bar:nth-child(5) { animation-delay: 0.52s; }
.js .service-block.visible .analytics-bar:nth-child(6) { animation-delay: 0.58s; }
.js .service-block.visible .analytics-bar:nth-child(7) { animation-delay: 0.64s; }

.js .service-block.visible .analytics-line {
  animation: svgLineDraw 0.7s var(--ease-out) 0.72s both;
}

.js .service-block.visible .analytics-dot {
  animation: svgPopIn 0.38s var(--ease-spring) both;
  transform-box: fill-box;
  transform-origin: center;
}

.js .service-block.visible .analytics-dot:nth-of-type(1) { animation-delay: 1.02s; }
.js .service-block.visible .analytics-dot:nth-of-type(2) { animation-delay: 1.1s; }
.js .service-block.visible .analytics-dot:nth-of-type(3) { animation-delay: 1.18s; }

.js .service-block.visible .social-header { animation: svgSlideIn 0.5s var(--ease-out) 0.3s both; }
.js .service-block.visible .social-media { animation: svgSlideIn 0.55s var(--ease-out) 0.42s both; }
.js .service-block.visible .social-play { animation: svgPopIn 0.48s var(--ease-spring) 0.68s both; }
.js .service-block.visible .social-actions { animation: svgSlideIn 0.5s var(--ease-out) 0.82s both; }

.js .service-block .strategy-segment {
  opacity: 0;
  transform: rotate(-50deg);
  transform-box: fill-box;
  transform-origin: center;
}

.js .service-block.visible .strategy-segment {
  animation: strategySweep 0.7s var(--ease-out) both;
}

.js .service-block.visible .strategy-segment:nth-of-type(2) { animation-delay: 0.3s; }
.js .service-block.visible .strategy-segment:nth-of-type(3) { animation-delay: 0.44s; }
.js .service-block.visible .strategy-segment:nth-of-type(4) { animation-delay: 0.58s; }

/* Fires once the third arc closes the ring, so the donut reads as reaching
   100% rather than just three arcs appearing. */
.js .service-block.visible .strategy-ring {
  animation: strategyComplete 0.9s var(--ease-out) 0.74s both;
  transform-box: fill-box;
  transform-origin: center;
}

.js .service-block.visible .strategy-value { animation: svgPopIn 0.5s var(--ease-spring) 0.78s both; transform-box: fill-box; transform-origin: center; }
.js .service-block.visible .strategy-legend { animation: svgSlideIn 0.48s var(--ease-out) 0.78s both; }
.js .service-block.visible .strategy-arrow path,
.js .service-block.visible .strategy-arrow line { animation: svgLineDraw 0.5s var(--ease-out) 0.92s both; }

.js .service-block.visible .ecom-product { animation: svgSlideIn 0.58s var(--ease-out) both; }
.js .service-block.visible .ecom-product:nth-of-type(1) { animation-delay: 0.34s; }
.js .service-block.visible .ecom-product:nth-of-type(2) { animation-delay: 0.48s; }
.js .service-block.visible .ecom-cart { animation: svgPopIn 0.5s var(--ease-spring) 0.72s both; transform-box: fill-box; transform-origin: center; }

.js .service-block.visible .brand-swatch { animation: svgPopIn 0.46s var(--ease-spring) both; }
.js .service-block.visible .brand-swatch:nth-of-type(1) { animation-delay: 0.3s; }
.js .service-block.visible .brand-swatch:nth-of-type(2) { animation-delay: 0.4s; }
.js .service-block.visible .brand-swatch:nth-of-type(3) { animation-delay: 0.5s; }
.js .service-block.visible .brand-type { animation: svgSlideIn 0.52s var(--ease-out) 0.62s both; }
.js .service-block.visible .brand-pen { animation: svgPopIn 0.48s var(--ease-spring) 0.78s both; }
.js .service-block.visible .brand-star { animation: svgPopIn 0.48s var(--ease-spring) 0.9s both; }

.js .service-block.visible .workflow-node { animation: svgSlideIn 0.46s var(--ease-out) both; }
.js .service-block.visible .workflow-node:nth-of-type(1) { animation-delay: 0.28s; }
.js .service-block.visible .workflow-node:nth-of-type(2) { animation-delay: 0.52s; }
.js .service-block.visible .workflow-node:nth-of-type(3) { animation-delay: 0.76s; }
.js .service-block.visible .workflow-connector { animation: svgLineDraw 0.34s linear both; }
.js .service-block.visible .workflow-connector:nth-of-type(1) { animation-delay: 0.46s; }
.js .service-block.visible .workflow-connector:nth-of-type(2) { animation-delay: 0.7s; }
.js .service-block.visible .workflow-icon { animation: svgPopIn 0.4s var(--ease-spring) both; transform-box: fill-box; transform-origin: center; }
.js .service-block.visible .workflow-icon:nth-of-type(4) { animation-delay: 0.9s; }
.js .service-block.visible .workflow-icon:nth-of-type(5) { animation-delay: 0.98s; }
.js .service-block.visible .workflow-icon:nth-of-type(6) { animation-delay: 1.06s; }

/* The two newest illustrations carry their stagger in a --d custom property
   set on the element. nth-of-type indices are brittle here: both SVGs mix
   animated and static <g> siblings, so the counter drifts the moment a
   decorative group is added. */
.js .service-block.visible .code-file,
.js .service-block.visible .code-line,
.js .service-block.visible .ai-node {
  animation: svgSlideIn 0.5s var(--ease-out) var(--d, 0s) both;
}

.js .service-block.visible .ai-link {
  animation: svgLineDraw 0.52s var(--ease-out) var(--d, 0s) both;
}

.js .service-block.visible .code-ship {
  animation: svgPopIn 0.5s var(--ease-spring) 0.94s both;
  transform-box: fill-box;
  transform-origin: center;
}

.js .service-block.visible .ai-core {
  animation: svgPopIn 0.55s var(--ease-spring) 0.22s both;
  transform-box: fill-box;
  transform-origin: center;
}

/* Caret blink and orbit spin ride on child elements so they don't fight the
   opacity/scale animation running on the parent group. */
.code-caret {
  animation: caretBlink 1.1s steps(1, end) infinite;
}

.ai-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: aiRingSpin 14s linear infinite;
}

.js .service-block.visible :is(
  .analytics-bar,
  .analytics-line,
  .analytics-dot,
  .social-header,
  .social-media,
  .social-play,
  .social-actions,
  .strategy-segment,
  .strategy-ring,
  .strategy-value,
  .strategy-legend,
  .strategy-arrow path,
  .strategy-arrow line,
  .ecom-product,
  .ecom-cart,
  .brand-swatch,
  .brand-type,
  .brand-pen,
  .brand-star,
  .workflow-node,
  .workflow-connector,
  .workflow-icon,
  .code-file,
  .code-line,
  .code-ship,
  .ai-node,
  .ai-link,
  .ai-core
) {
  animation-duration: 3.8s;
  animation-iteration-count: infinite;
}

@keyframes svgBarRise {
  0% { opacity: 0; transform: scaleY(0); }
  18%, 88% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); }
}

@keyframes svgLineDraw {
  0% { stroke-dashoffset: 1; }
  18%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@keyframes svgSlideIn {
  0% { opacity: 0; transform: translateY(8px); }
  18%, 88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes svgPopIn {
  0% { opacity: 0; transform: scale(0.65); }
  18%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.65); }
}

@keyframes strategySweep {
  0% { opacity: 0; transform: rotate(-50deg); }
  18%, 88% { opacity: 1; transform: rotate(0); }
  100% { opacity: 0; transform: rotate(-50deg); }
}

@keyframes strategyComplete {
  0% { opacity: 0; transform: scale(0.82); }
  22% { opacity: 0.85; transform: scale(1); }
  46%, 100% { opacity: 0; transform: scale(1.12); }
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

/* --- Reduced motion: instantly settle everything new --- */
@media (prefers-reduced-motion: reduce) {
  .hero-3d {
    transition: none;
  }

  .js .hero h1 .line-inner,
  .js .hero-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .js .service-block .service-block-text,
  .js .service-block .service-block-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .process-visual .chart-bar {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .js .process-visual .chart-tooltip {
    animation: none;
    opacity: 1;
  }

  .badge-track,
  .hero-scroll-dot,
  .hero-visual-fallback span,
  .chart-bar,
  .phone-bar::after,
  .phone-header-btn {
    animation: none;
  }

  .js .service-block .analytics-bar,
  .js .service-block .analytics-dot,
  .js .service-block .social-header,
  .js .service-block .social-media,
  .js .service-block .social-play,
  .js .service-block .social-actions,
  .js .service-block .strategy-segment,
  .js .service-block .strategy-value,
  .js .service-block .strategy-legend,
  .js .service-block .ecom-product,
  .js .service-block .ecom-cart,
  .js .service-block .brand-swatch,
  .js .service-block .brand-type,
  .js .service-block .brand-pen,
  .js .service-block .brand-star,
  .js .service-block .workflow-node,
  .js .service-block .workflow-icon,
  .js .service-block .code-file,
  .js .service-block .code-line,
  .js .service-block .code-ship,
  .js .service-block .ai-node,
  .js .service-block .ai-core {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .service-block .analytics-line,
  .js .service-block .strategy-arrow path,
  .js .service-block .strategy-arrow line,
  .js .service-block .workflow-connector,
  .js .service-block .ai-link {
    animation: none;
    stroke-dashoffset: 0;
  }

  .code-caret,
  .ai-ring {
    animation: none;
  }

  /* Purely a completion flourish — stays hidden rather than settling into a
     stray outline around the donut. */
  .js .service-block .strategy-ring {
    animation: none;
    opacity: 0;
  }
}

/* ================================================================
   MOBILE SCROLL PERFORMANCE
   Profiling a scroll on a 6x-throttled 390px viewport showed ~19 paint
   operations and ~10ms of layerization per frame. The causes were a very
   tall page kept fully laid out at all times, GPU layers held for effects
   that never run on touch, and backdrop blurs recomputed on every frame of
   a scroll. These rules address those three things.
   ================================================================ */
@media (max-width: 768px) {
  /* The page is ~8.8k px tall on a phone and service-details alone is 3.5k
     of it. Skipping layout and paint for sections that are off screen is the
     single largest saving available here. `auto` in contain-intrinsic-size
     means the browser remembers each section's real height after it has been
     rendered once, so the scrollbar stays stable. */
  #services { content-visibility: auto; contain-intrinsic-size: auto 1647px; }
  #service-details { content-visibility: auto; contain-intrinsic-size: auto 4742px; }
  #process { content-visibility: auto; contain-intrinsic-size: auto 765px; }
  #why { content-visibility: auto; contain-intrinsic-size: auto 863px; }

  /* The 3D tilt needs a fine pointer, so on touch these six wrappers were
     holding permanent compositor layers for an effect that can never fire. */
  .service-visual-wrapper {
    will-change: auto;
    transform: none;
  }

  /* backdrop-filter re-samples everything behind the element on each frame,
     which is exactly the wrong cost for a bar pinned over a scrolling page.
     An opaque background reads near-identically at this size. */
  .header.scrolled {
    background: rgba(255,255,255,0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(15,23,42,0.07);
  }

  .stats-grid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ================================================================
   CHATBOT WIDGET — Adyvance Assistant
   Built from the tokens at the top of this file so the panel reads as part of
   the site rather than an embedded third-party widget.
   ================================================================ */

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

/* === LAUNCHER === */
/* Gradient rather than a flat brand colour: it separates the assistant from
   the WhatsApp green and the call blue without leaving the palette. */
.chat-btn {
  /* Anchors the two absolutely-positioned glyphs below. */
  position: relative;
  background: var(--adv-gradient);
  color: var(--color-white);
  padding: 0;
}

/* Overrides the frosted-glass treatment .floating-contact.scrolled applies to
   float buttons. That treatment existed so a row of three buttons receded into
   a scrolling page; this is now the only one, and it should read as the primary
   call to action the whole way down. */
.floating-contact.scrolled .chat-btn {
  background: var(--adv-gradient);
  color: var(--color-white);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 26px rgba(8, 114, 255, 0.36);
}

/* === ATTENTION MOTION === */
/* Two rings on the button's own pseudo-elements, half a cycle apart, so one is
   almost always in flight. Only transform and opacity are animated, so this
   runs on the compositor and costs no main-thread time while the visitor
   scrolls — which matters on a page that already runs a WebGL hero.

   Base opacity is 0 rather than 1: the reduced-motion reset below collapses
   animations to a single 0.01ms run, and a ring that inherited a visible base
   state would be left frozen around the button. */
.chat-btn::before,
.chat-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--adv-green);
  opacity: 0;
  pointer-events: none;
  animation: chatPing 3s cubic-bezier(0.15, 0.6, 0.35, 1) infinite;
}

.chat-btn::after {
  border-color: var(--adv-blue);
  animation-delay: 1.5s;
}

@keyframes chatPing {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.85); opacity: 0; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* The blink is what makes it read as a character rather than a symbol. Long
   gap, very short close — a metronome blink looks broken, not alive. */
.chat-btn-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: chatBlink 4.6s ease-in-out infinite;
}

@keyframes chatBlink {
  0%, 93%, 98%, 100% { transform: scaleY(1); }
  95.5%              { transform: scaleY(0.12); }
}

/* Once the panel is open the button is a close affordance and the visitor is
   already engaged — every one of these is now a distraction. */
.chat-btn.is-open::before,
.chat-btn.is-open::after,
.chat-btn.is-open .chat-btn-eye {
  animation: none;
}

/* Two glyphs stacked in one box, so the button can swap to a close affordance
   while the panel is open without the stack reflowing. */
.chat-btn svg {
  position: absolute;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.chat-btn .chat-btn-close,
.chat-btn.is-open .chat-btn-open {
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
}

.chat-btn .chat-btn-open,
.chat-btn.is-open .chat-btn-close {
  opacity: 1;
  transform: none;
}

/* The pulse is an attract loop. Once the panel has been opened it has done its
   job and is only a distraction next to live text. */
.chat-btn.is-open {
  animation: none;
}

/* === ATTRACT BUBBLE === */
/* Absolutely positioned inside the (fixed) stack, so it rides along with the
   stack's own hide-on-menu-open and hide-on-chat-open rules for free and adds
   nothing to the flow. Fixed positioning also means it cannot shift layout —
   it appears a second after load, which would otherwise be a CLS hit. */
.chat-teaser {
  position: absolute;
  right: 68px;
  bottom: 2px;
  display: flex;
  align-items: flex-start;
  width: max-content;
  max-width: 244px;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility 0s linear var(--duration);
}

.chat-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility 0s;
}

.chat-teaser-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 18px 0 0;
  font-family: inherit;
  text-align: left;
}

.chat-teaser-hi {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-black);
}

.chat-teaser-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-gray-500);
}

.chat-teaser-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--color-gray-400);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.chat-teaser-close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.chat-teaser-body:focus-visible,
.chat-teaser-close:focus-visible {
  outline: 2px solid var(--adv-blue);
  outline-offset: 2px;
}

/* === PANEL === */
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: 384px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 132px);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--card-radius);
  box-shadow: 0 24px 64px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.06);
  overflow: hidden;
  /* visibility, not display: it keeps the panel out of the tab order and the
     accessibility tree while still allowing it to animate. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility 0s linear var(--duration);
}

.chatbot.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility 0s;
}

/* === HEADER === */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--adv-gradient-90);
  color: var(--color-white);
  flex-shrink: 0;
}

.chatbot-avatar {
  display: flex;
  flex-shrink: 0;
}

.chatbot-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chatbot-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.chatbot-status {
  font-size: 11.5px;
  opacity: 0.85;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255,255,255,0.16);
  transition: background var(--duration) var(--ease);
}

.chatbot-close:hover {
  background: rgba(255,255,255,0.3);
}

/* === TRANSCRIPT === */
.chatbot-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-gray-50);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

.chatbot-log::-webkit-scrollbar {
  width: 6px;
}

.chatbot-log::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}

.chatbot-msg {
  display: flex;
  max-width: 100%;
}

.chatbot-msg-model {
  justify-content: flex-start;
}

.chatbot-msg-user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 16px;
  /* Model output and pasted URLs both overflow a column this narrow. */
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chatbot-msg-model .chatbot-bubble {
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-200);
  border-bottom-left-radius: 5px;
}

.chatbot-msg-user .chatbot-bubble {
  background: var(--adv-gradient-90);
  color: var(--color-white);
  border-bottom-right-radius: 5px;
}

/* === QUICK REPLIES === */
.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.chatbot-chip {
  padding: 7px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--adv-blue);
  background: var(--color-white);
  border: 1.5px solid var(--adv-blue-light);
  border-radius: var(--btn-radius);
  transition: all var(--duration) var(--ease);
}

.chatbot-chip:hover {
  background: var(--adv-blue-soft);
  border-color: var(--adv-blue);
  transform: translateY(-1px);
}

/* === TYPING INDICATOR === */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-400);
  animation: chatTyping 1.3s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.18s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* === INLINE NOTICES === */
/* Lead confirmed, connection failed. Deliberately not bubbles: these come from
   the site, not from the assistant. */
.chatbot-notice {
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-gray-500);
  padding: 2px 8px;
}

.chatbot-notice a {
  color: var(--adv-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === COMPOSER === */
.chatbot-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 8px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  flex-shrink: 0;
}

.chatbot-compose textarea {
  flex: 1;
  min-height: 42px;
  max-height: 108px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--color-dark);
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-gray-200);
  border-radius: 21px;
  resize: none;
  outline: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.chatbot-compose textarea::placeholder {
  color: var(--color-gray-400);
}

/* A soft ring rather than the outline used on the buttons below: the field
   already signals focus by recolouring its border, and stacking a hard 2px
   outline on top of that reads as an error state. */
.chatbot-compose textarea:focus {
  background: var(--color-white);
  border-color: var(--adv-blue);
  box-shadow: 0 0 0 3px var(--adv-blue-soft);
}

.chatbot-compose textarea:disabled {
  opacity: 0.6;
}

.chatbot-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--adv-gradient-90);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.chatbot-send:hover:not(:disabled) {
  transform: scale(1.06);
}

.chatbot-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chatbot-disclaimer {
  padding: 0 16px 11px;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: var(--color-gray-400);
  background: var(--color-white);
  flex-shrink: 0;
}

.chatbot-disclaimer a {
  color: var(--color-gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatbot-disclaimer a:hover {
  color: var(--adv-blue);
}

/* === FOCUS VISIBILITY === */
/* Buttons and links only — the textarea has its own ring above. */
.chatbot button:focus-visible,
.chatbot a:focus-visible,
.chat-btn:focus-visible {
  outline: 2px solid var(--adv-blue);
  outline-offset: 2px;
}

.chatbot-header :focus-visible {
  outline-color: var(--color-white);
}

/* === MOBILE === */
/* A floating card here too, not a full-screen sheet. Taking over the whole
   viewport made the assistant read as a separate app the visitor had navigated
   into, rather than a conversation sitting over the page they were reading.
   It also hid the launcher, so the only way out was the header's small ✕.
   Inset from all four edges instead, with the launcher left visible beneath
   as a second, larger way to dismiss it.

   `bottom` tracks --chat-kb, which chatbot.js sets from visualViewport.
   Android shrinks the layout viewport when the keyboard opens, so `bottom`
   would stay correct by itself; iOS does not — position:fixed stays anchored
   to the unchanged layout viewport and the composer ends up behind the
   keyboard. --chat-kb is that gap, and is 0 whenever the keyboard is down. */
@media (max-width: 768px) {
  .chatbot {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: calc(var(--chat-kb, 0px) + var(--mobile-safe-bottom) + 60px);
    height: min(74dvh, 560px);
    /* Never grow past the space actually left above the keyboard. */
    max-height: calc(100dvh - var(--chat-kb, 0px) - var(--mobile-safe-bottom) - 124px);
    border-radius: 20px;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom right;
  }

  .chatbot.open {
    transform: none;
  }

  /* Tighter chrome — the card is ~40px narrower than the screen it replaced. */
  .chatbot-header {
    padding: 12px 12px 12px 14px;
    gap: 10px;
  }

  .chatbot-avatar svg {
    width: 34px;
    height: 34px;
  }

  .chatbot-title {
    font-size: 15px;
  }

  /* Anything below 16px triggers iOS Safari's zoom-on-focus, which leaves the
     page scaled up after the keyboard closes. */
  .chatbot-compose textarea {
    font-size: 16px;
  }

  .chatbot-log {
    padding: 14px 12px 8px;
  }

  /* Above the button rather than beside it: at 360px wide there is not enough
     room to the left of the launcher for a readable bubble. */
  .chat-teaser {
    right: 0;
    bottom: 60px;
    max-width: min(268px, calc(100vw - 40px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot {
    transform: none;
  }

  /* Removed outright rather than left to the global 0.01ms collapse, so there
     is no chance of a ring being painted at all. */
  .chat-btn::before,
  .chat-btn::after {
    display: none;
  }
}
