/* ==========================================================================
   Automation Consulting Homepage — Faithful Figma Implementation v2
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --ac-bg: #010D12;
  --ac-bg-alt: #020F15;
  --ac-primary: #07A9D1;
  --ac-accent: #06CFC3;
  --ac-secondary: #0A576B;
  --ac-dark-card: #06212C;
  --ac-dark-card-border: rgba(7, 169, 209, 0.12);
  --ac-light-bg: #FAFFFF;
  --ac-light-card: #F1FEFF;
  --ac-text-light: #FFFFFF;
  --ac-text-muted: #c8c8c8;
  --ac-text-dark: #1a1a2e;
  --ac-glow: rgba(7, 169, 209, 0.15);
  --ac-radius: 12px;
  --ac-radius-lg: 20px;
  --ac-max-width: 1340px;
  --ac-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ac-bg-gradient-start: #020d18;
  --ac-bg-gradient-mid: #042028;
  --ac-bg-gradient-end: #093e4c;
  --ac-grey-border: #c8c8c8;
  --ac-grey-text: #5A6B75;
  --ac-grey-muted: #8899A4;
  --ac-grey-dark: #4a5568;
  --ac-grey-light: #E4E8EB;
  --ac-error: #E05252;

  /* ── Audit: unified design tokens ── */
  --ac-gradient-text: linear-gradient(135deg, #07A9D1, #06CFC3);
  --ac-pill-border: rgba(7,169,209,0.5);
  --ac-pill-color: #07A9D1;
  --ac-pill-radius: 100px;
  --ac-pill-padding: 8px 20px;
  --ac-pill-weight: 700;
  --ac-pill-letter-spacing: 0.15em;
  --ac-btn-font-size: 0.95rem;
  --ac-btn-padding: 0.85rem 2.2rem;
}

/* --- Global Resets --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ac-bg);
  color: var(--ac-text-light);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

/* --- Consistent zoom across all pages --- */
body {
  zoom: 0.80;
}

/* --- Font family assignments per Figma spec --- */
/* Nav links, CTAs, tool names, labels */
.ac-nav__list a,
.ac-btn,
.ac-label,
.ac-industry-pill,
.ac-cap-pill,
.ac-case-study__industry--light,
.ac-industries__banner-text {
  font-family: var(--font-primary);
}

/* Hero heading */
.ac-hero__title,
.ac-hero__subtitle {
  font-family: 'Inter', sans-serif;
}

/* Major section headings */
.ac-industries__title,
.ac-case-studies__title,
.ac-cta__title,
.ac-capabilities__title {
  font-family: 'Inter', sans-serif;
}

/* Brand name in navbar */
.ac-logo-text {
  font-family: 'Inter', sans-serif;
}

/* Process step titles */
/* Process step numbers */
.wp-site-blocks {
  padding: 0 !important;
}

.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* Kill WP default margins on headings/paragraphs inside our sections */
[class*="ac-"] .wp-block-heading,
[class*="ac-"] .wp-block-paragraph {
  margin-top: 0;
}

/* Override WP constrained layout max-width for decoration containers */
.ac-hero__decorations,
.ac-industries__decorations,
.ac-cta__decorations {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WP default link underline for our elements */
.ac-nav__list a,
.ac-btn,
.ac-footer__links a,
.ac-logo,
.ac-footer__brand a {
  text-decoration: none !important;
}

/* --- Buttons --- */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: var(--body-4-size);
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: all var(--ac-transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.ac-btn--primary {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: var(--ac-text-light);
  border: none;
}

.ac-btn--primary:hover {
  background: linear-gradient(135deg, #06CFC3, #07A9D1);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(7, 169, 209, 0.35);
  color: var(--ac-text-light);
}

.ac-btn--outline {
  background: transparent;
  color: var(--ac-text-light);
  border-color: rgba(255, 255, 255, 0.25);
}

.ac-btn--outline:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO BUTTONS — Figma node 631-1483
   Primary: Teal multi-radial-gradient fill, white text, pill shape
   Secondary: Glassmorphic — backdrop blur, conic glow, teal shadow
   ========================================================================== */
.ac-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--body-4-size);
  line-height: 1.36;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 36px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary — teal gradient fill (Figma "Fill Button") */
.ac-hero-btn-primary-wrap {
  display: inline-flex;
  border-radius: 36px;
  padding: 0;
  background: none;
  box-shadow: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-hero-btn-primary {
  background:
    radial-gradient(110.23% 82.81% at 50% 17.19%, rgba(255, 255, 255, 0.098) 0%, rgba(255, 255, 255, 0.038) 100%),
    radial-gradient(82.79% 104.69% at 20.17% -22.66%, #07AECF 0%, rgba(7, 174, 207, 0.18) 100%),
    radial-gradient(58.24% 134.23% at 33.81% 109.38%, rgba(6, 207, 195, 0.81) 0%, rgba(6, 207, 195, 0) 95.37%),
    linear-gradient(135deg, #07AECF, #06CFC3);
  color: #FFFFFF !important;
  padding: 15px 32px;
  border-radius: 36px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 24px rgba(7, 174, 207, 0.25);
}

.ac-hero-btn-primary-wrap:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.ac-hero-btn-primary-wrap:hover .ac-hero-btn-primary,
.ac-hero-btn-primary:hover {
  box-shadow: 0 8px 36px rgba(7, 174, 207, 0.4);
}

.ac-hero-btn-primary .ac-hero-btn__arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.ac-hero-btn-primary:hover .ac-hero-btn__arrow,
.ac-hero-btn-primary-wrap:hover .ac-hero-btn__arrow {
  transform: translateX(3px);
}

/* Secondary — glassmorphic with gradient border */
.ac-hero-btn-secondary {
  position: relative;
  background: linear-gradient(85.13deg, rgba(7, 174, 207, 0.06) 2.96%, rgba(217, 217, 217, 0.04) 96.14%);
  -webkit-backdrop-filter: blur(34.5px);
  backdrop-filter: blur(34.5px);
  padding: 15px 32px;
  border-radius: 36px;
  border: none;
  text-decoration: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 64px rgba(7, 174, 207, 0.12);
  text-shadow: 0px 11px 23px rgba(255, 255, 255, 0.13);
}

/* Gradient border via mask technique */
.ac-hero-btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(6, 207, 195, 0.8) 0%, rgba(7, 169, 209, 0.5) 40%, rgba(7, 174, 207, 0.2) 70%, rgba(6, 207, 195, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ac-hero-btn-secondary span {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #FFFFFF;
  background-clip: unset;
  color: #FFFFFF;
}

.ac-hero-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 64px rgba(7, 174, 207, 0.28);
}

.ac-hero-btn-secondary:hover::before {
  background: linear-gradient(135deg, rgba(6, 207, 195, 1) 0%, rgba(7, 169, 209, 0.7) 40%, rgba(7, 174, 207, 0.4) 70%, rgba(6, 207, 195, 0.7) 100%);
}

/* Responsive hero buttons */
@media (max-width: 768px) {
  .ac-hero-btn {
    font-size: var(--body-4-size);
  }
  .ac-hero-btn-primary {
    padding: 13px 26px;
  }
  .ac-hero-btn-secondary {
    padding: 13px 26px;
  }
}

.ac-cta-note {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2rem 0 0;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Mobile: add breathing room between the CTA note and the trust carousel below it */
@media (max-width: 768px) {
  .ac-cta-note { margin-bottom: 1.5rem; }
}

.ac-hero__cta-note {
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2rem 0 0;
  letter-spacing: 0.01em;
}

.ac-btn--dark {
  color: var(--ac-text-dark);
  border-color: rgba(26, 26, 26, 0.15);
}

.ac-btn--dark:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
}

/* --- Badge --- */
.ac-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  background: transparent;
  letter-spacing: normal;
  line-height: 1;
  margin-bottom: 1.25rem;
}

/* --- Section label --- */
.ac-label {
  margin-bottom: 0.75rem !important;
}

/* --- Accent text --- */
.ac-text-accent {
  color: var(--ac-primary);
}

strong.ac-text-accent {

.ac-gradient-text {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
  font-weight: 800;

.ac-gradient-text {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
}

.ac-gradient-text {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ==========================================================================
   DECORATIVE ELEMENTS — shared across sections
   ========================================================================== */

/* Glow orbs */
.ac-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Dot grid pattern */
.ac-dots-grid {
  position: absolute;
  background-image: radial-gradient(circle, var(--ac-secondary) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
}

/* Watermark styles removed — section decorations handled inline */

/* ==========================================================================
   HEADER
   ========================================================================== */
/* ── Floating pill nav ── */
.ac-header-wrap,
.ac-header-wrap.wp-block-template-part {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  justify-content: center !important;
  padding: 20px 60px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  pointer-events: none;
  box-sizing: border-box !important;
}

.ac-header-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 40px;
  background: rgba(5, 10, 20, 0.95);
  border-radius: 80px;
  border: none;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  pointer-events: auto;
  box-sizing: border-box;
}

.ac-header-pill::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 80px;
  padding: 2px;
  background: linear-gradient(160deg, rgba(6,207,195,0.7) 0%, rgba(7,169,209,0.35) 30%, rgba(6,207,195,0.12) 60%, rgba(6,207,195,0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.ac-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ac-logo img,
.ac-logo svg {
  display: block;
  width: 36px;
  height: 32px;
}

/* Nav links */
.ac-nav__list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-nav__list a {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 1;
}

.ac-nav__list a:hover {
  color: var(--ac-primary);
  opacity: 1;
}

.ac-nav__list a.active {
  background: #043845;
  color: #FFFFFF;
}

/* Nav CTA button */
.ac-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: #FFFFFF !important;
  font-family: var(--font-primary);
  font-size: var(--body-4-size);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-radius: 40px;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 8px;
  line-height: 1.4;
}

.ac-nav-cta:hover {
  background: linear-gradient(135deg, #06CFC3, #07A9D1);
  box-shadow: 0 0 20px rgba(7, 169, 209, 0.4);
  transform: translateY(-1px);
}

.ac-nav-cta__arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.ac-nav-cta:hover .ac-nav-cta__arrow {
  transform: translateX(2px);
}

/* Mobile CTA variant */
.ac-nav-cta--mobile {
  margin-left: 0;
  margin-top: 1.5rem;
  padding: 14px 36px;
  font-size: var(--body-4-size);
}

/* Search trigger */
.ac-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

/* Hamburger */
.ac-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.ac-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--ac-transition);
  border-radius: 2px;
}

.ac-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ac-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.ac-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.ac-mobile-menu {
  z-index: 1100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 13, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  pointer-events: auto;
}

.ac-mobile-menu[hidden] {
  display: none !important;
}

.ac-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ac-mobile-menu li {
  border-bottom: none;
}

.ac-mobile-menu a {
  display: block;
  padding: 12px 28px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 24px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  touch-action: manipulation;
}

.ac-mobile-menu a:hover {
  color: var(--ac-primary);
}

.ac-mobile-menu a.active {
  background: #043845;
}

.ac-mobile-menu .ac-btn {
  margin-top: 1.5rem;
  width: auto;
  justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ac-hero {
  position: relative;
  height: calc(100vh / 0.80) !important;
  min-height: calc(100vh / 0.80) !important;
  max-height: min(calc(100vh / 0.80), 1125px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center !important;
  text-align: center;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--ac-bg);
  background-image:
    linear-gradient(rgba(0,200,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.admin-bar .ac-hero {
  height: calc((100vh - 32px) / 0.80) !important;
  min-height: calc((100vh - 32px) / 0.80) !important;
  max-height: calc((100vh - 32px) / 0.80) !important;
}

/* Hero center content — naturally sized, centered in hero via flex */
.ac-hero__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

/* --- Hero decorations container --- */
.ac-hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Hero car background image — centered behind hero copy */
.ac-hero__car-bg {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  max-width: 1000px;
  height: auto;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: ac-hero-car-drift 8s ease-in-out infinite;
}

@keyframes ac-hero-car-drift {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translate(-50%, -50%) translateY(-8px) scale(1.015); opacity: 0.35; }
}

/* Ensure hero content sits above decorations */
.ac-hero > .wp-block-group,
.ac-hero > .wp-block-heading,
.ac-hero > .wp-block-paragraph,
.ac-hero__badge-wrap,
.ac-hero__title,
.ac-hero__subtitle,
.ac-hero__ctas,
.ac-hero__bottom {
  position: relative;
  z-index: 1;
}

/* --- Figma decoration images (shared base) --- */
.ac-deco-figma {
  position: absolute;
  pointer-events: none;
  display: block;
}

/* Main ambient glow — CSS radial gradient (SVG filters don't work in <img>) */
.ac-deco-glow {
  display: none;
}

.ac-glow--hero-main {
  width: 1200px;
  height: 1000px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(7, 169, 209, 0.40) 0%,
    rgba(7, 169, 209, 0.25) 20%,
    rgba(6, 207, 195, 0.10) 45%,
    transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
}

/* Central hero triangle logo decoration (glowing "A") — hidden, SVG filters don't render */
.ac-deco-hero-triangle {
  display: none;
}

/* CTA section triangle */
.ac-deco-cta-triangle {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/* Badge wrap */
.ac-hero__badge-wrap {
  margin-bottom: 1.25rem !important;
  position: relative;
  z-index: 2;
}

/* Hero title */
.ac-hero__title {
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.11 !important;
  margin-bottom: 0.875rem !important;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero rotating text */
.ac-hero-rotator {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-hero-rotator__inner {
  display: inline-block;
  position: relative;
}

.ac-hero-rotator__phrase {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-hero-rotator__phrase--active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.ac-hero-rotator__phrase--exit {
  opacity: 0;
  transform: translateY(-100%);
}

/* Hero subtitle */
.ac-hero__subtitle {
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.375rem !important;
  position: relative;
  z-index: 2;
}

/* CTA buttons */
.ac-hero__ctas {
  gap: 1rem !important;
  margin-bottom: 1.75rem !important;
  position: relative;
  z-index: 2;
}

/* --- Chatbot input (decorative, non-functional) --- */
.ac-hero__chatbot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.ac-chatbot-input {
  display: flex;
  align-items: center;
  background: rgba(6, 33, 44, 0.7);
  border: 1px solid rgba(7, 169, 209, 0.18);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--ac-transition);
}

.ac-chatbot-input:hover {
  border-color: rgba(7, 169, 209, 0.35);
}

.ac-chatbot-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ac-text-muted);
  font-size: var(--body-4-size);
  font-family: inherit;
  outline: none;
  padding: 0;
}

.ac-chatbot-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ac-chatbot-input__send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--ac-transition);
}

.ac-chatbot-input__send:hover {
  opacity: 1;
}

.ac-chatbot-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ac-chatbot-action {
  background: rgba(6, 33, 44, 0.5);
  border: 1px solid rgba(7, 169, 209, 0.12);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--body-5-size);
  font-family: inherit;
  cursor: default;
  transition: border-color var(--ac-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-chatbot-action:hover {
  border-color: rgba(7, 169, 209, 0.3);
}


/* --- Trusted-by infinite carousel --- */
.ac-trust-carousel {
  position: relative !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2;
  overflow: hidden;
  padding: 0 0 0.5rem;
  text-align: center;
  margin-top: 40px;
}

.ac-trust-carousel__label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

.ac-trust-carousel__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: max-content;
  margin: 0 auto;
  animation: ac-trust-scroll 20s linear infinite;
}

.ac-trust-carousel__track:hover {
  animation-play-state: paused;
}

@keyframes ac-trust-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade edges */
.ac-trust-carousel::before,
.ac-trust-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ac-trust-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--ac-bg), transparent);
}

.ac-trust-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--ac-bg), transparent);
}

.ac-trust-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.ac-trust-logo--no-filter {
  filter: none;
}

.ac-trust-logo--square {
  /* Link Foundation is square-ish, needs slightly different sizing */
}

/* --- Hero address badge (matches Google Reviews style) --- */
.ac-hero__address-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none !important;
  transition: all var(--ac-transition);
}

.ac-hero__address-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(7, 169, 209, 0.3);
  transform: translateY(-2px);
}

.ac-hero__address-icon {
  flex-shrink: 0;
}

.ac-hero__address-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ac-hero__address-line1 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ac-text-light);
  white-space: nowrap;
}

.ac-hero__address-line2 {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

.ac-hero__address-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.ac-hero__address-badge:hover .ac-hero__address-arrow {
  color: var(--ac-primary);
}

/* --- Scroll indicator --- */
.ac-hero-scroll-indicator {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.ac-hero-scroll-arrow {
  font-size: var(--body-4-size);
  color: rgba(255, 255, 255, 0.35);
}

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

/* --- Hero bottom (Google reviews + address badge) --- */
.ac-hero__bottom {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--ac-max-width);
  padding: 0 var(--wp--preset--spacing--50, 2rem) !important;
  box-sizing: border-box !important;
  z-index: 2;
}

.ac-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ac-text-light);
  opacity: 0.7;
}

.ac-hero__scroll svg {
  animation: ac-bounce 2s ease-in-out infinite;
}

@keyframes ac-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}


/* --- Inline Google Review Badge (components/google-review-badge.php) --- */
.ac-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.ac-review-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}
.ac-review-badge__g {
  flex-shrink: 0;
}
.ac-review-badge__stars {
  color: #FBBC05;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1;
}
.ac-review-badge__rating {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}
.ac-review-badge__sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}
.ac-review-badge__count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}
@media (max-width: 600px) {
  .ac-review-badge {
    font-size: 11px;
    padding: 0.4rem 0.75rem;
    gap: 0.35rem;
  }
  .ac-review-badge__rating { font-size: 12px; }
}

/* Google Reviews badge */
.ac-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none !important;
  transition: all var(--ac-transition);
}

.ac-google-review:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ac-google-review__icon {
  flex-shrink: 0;
}

.ac-google-review__stars {
  display: flex;
  align-items: center;
}

.ac-google-review__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.ac-google-review__text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   PROBLEM SECTION — Blocker Cards
   ========================================================================== */
/* Shared heading styles reused by multiple sections */
.friction-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  background: transparent;
  letter-spacing: normal;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.friction-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.friction-title--gradient {
  background: linear-gradient(90deg, var(--ac-primary), var(--ac-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ==========================================================================
   PROBLEM SECTION — Journey Diagram + Symptom Checklist
   ========================================================================== */

.ac-problem {
  background: var(--ac-bg);
  padding: 6rem var(--wp--preset--spacing--50);
}

.ac-problem__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ac-problem__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* --- Journey Diagram --- */
.ac-journey {
  margin-bottom: 3.5rem;
}

.ac-journey__track {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2.5rem; /* room for labels */
}

.ac-journey__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.ac-journey__node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.ac-journey__label {
  position: absolute;
  top: calc(100% + 0.6rem);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.ac-journey__segment {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 60px;
}

.ac-journey__line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
}

.ac-journey__break {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.ac-journey__break-icon {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.2);
  transition: color 0.4s;
}

.ac-journey__break--active {
  border-color: #ff5a3c;
  background: rgba(255, 90, 60, 0.1);
  box-shadow: 0 0 18px rgba(255, 90, 60, 0.45), 0 0 36px rgba(255, 90, 60, 0.15);
  animation: ac-break-pulse 2s ease-in-out infinite;
}

.ac-journey__break--active .ac-journey__break-icon {
  color: #ff7a5c;
}

@keyframes ac-break-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 90, 60, 0.45), 0 0 36px rgba(255, 90, 60, 0.15); }
  50%       { box-shadow: 0 0 28px rgba(255, 90, 60, 0.65), 0 0 52px rgba(255, 90, 60, 0.25); }
}

/* --- Checklist --- */
.ac-checker {
  max-width: 860px;
  margin: 0 auto;
}

.ac-checker__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 2rem;
}

.ac-checker__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.ac-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}

.ac-check-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}

.ac-check-item__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ac-check-item__box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.ac-check-item__box::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  position: absolute;
  top: 1px;
}

.ac-check-item__input:checked ~ .ac-check-item__box {
  background: var(--ac-primary);
  border-color: var(--ac-primary);
}

.ac-check-item__input:checked ~ .ac-check-item__box::after {
  transform: rotate(45deg) scale(1);
}

.ac-check-item__text {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.ac-check-item--checked {
  background: rgba(7,169,209,0.06);
  border-color: rgba(7,169,209,0.22);
}

.ac-check-item--checked .ac-check-item__text {
  color: rgba(255,255,255,0.9);
}

/* --- Slide-in CTA --- */
.ac-checker__cta {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.45s ease;
  text-align: center;
  padding-top: 0;
}

.ac-checker__cta--visible {
  max-height: 300px;
  opacity: 1;
  padding-top: 0.5rem;
}

.ac-checker__cta-text {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 1.5rem;
}

.ac-checker__cta-text strong {
  color: var(--ac-primary);
  font-weight: 700;
}

.ac-checker__cta-note {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2rem 0 0;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 768px) {
  .ac-journey__label  { font-size: 9px; }
  .ac-journey__segment { min-width: 32px; }
  .ac-journey__break  { width: 28px; height: 28px; }
  .ac-journey__break-icon { width: 13px; height: 13px; }
  .ac-check-item__text { font-size: 15px; }
  .ac-checker__heading { font-size: 1.35rem; }
  .ac-checker__cta-text { font-size: 1.1rem; }
  .ac-checker__list { grid-template-columns: 1fr; }
}


@media (max-width: 768px) {
  /* Industries pills */
  .ac-industries__banner {
    padding: 1.5rem;
  }

  /* Capabilities orbit collapses */
  .ac-capabilities__orbit {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: static;
  }

  .ac-capabilities__center {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ac-cap-pill {
    position: static;
  }

  .ac-case-study {
    padding: 1.5rem;
  }

  .ac-step {
    gap: 1.25rem;
  }

  .ac-step__number {
    min-width: 40px;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .ac-industries__input-wrap {
    padding: 1.5rem;
  }

  .ac-triangle-3d {
    width: 280px;
    height: 280px;
  }

  .ac-deco-hero-triangle {
    width: 180px;
    height: 180px;
    opacity: 0.25;
  }

  .ac-deco-glow {
    width: 500px;
    opacity: 0.25;
  }

  .ac-footer__chatbot-mini {
    align-items: flex-start;
    margin-top: 1rem;
  }

  /* Footer links — ensure adequate touch target height */
  .ac-footer__links a {
    display: inline-block;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Watermark responsive rules removed */

  /* Section padding reductions */
  .racetrack-section {
    padding: 3rem 1.25rem !important;
  }
  .ac-industries {
    padding: 3rem 1.25rem 4rem !important;
    margin-top: 0 !important;
  }
  .ac-cta-wrapper-bg {
    padding-top: 2rem !important;
  }
  .ac-cta {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* ── Typography: bump sub-14px elements to readable floor ── */
  .ac-trust-carousel__label { font-size: 1rem; }
  .ac-hero__address-line1 { font-size: 0.875rem; }   /* 0.78rem → 14px */
  .ac-hero__address-line2 { font-size: 0.75rem; }    /* 0.65rem → 12px (decorative sub-line) */
  .racetrack-card__tag { font-size: 12px; }          /* 11px → 12px */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phone */
@media (max-width: 480px) {
  .ac-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .ac-case-study__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-hero__title {
    font-size: 2.2rem !important;
  }

  .ac-cta {
    border-radius: 28px !important;
    margin: 0 24px !important;
    width: calc(100% - 48px) !important;
  }
}

/* ==========================================================================
   ENQUIRY MODAL
   ========================================================================== */
.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ac-modal[hidden] {
  display: none !important;
}
.ac-modal__field[hidden] { display: none !important; }

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ac-modal-fade-in 0.3s ease;
}

.ac-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  animation: ac-modal-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(1, 13, 18, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #1a2b38;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.ac-modal__close:hover {
  background: rgba(1, 13, 18, 0.12);
  color: #010D12;
}

.ac-modal__body {
  padding: 44px 40px 40px;
}

.ac-modal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #07A9D1;
  margin-bottom: 10px;
}

.ac-modal__title {
  font-size: 22px;
  font-weight: 800;
  color: #010D12;
  line-height: 1.25;
  margin-bottom: 28px;
}

.ac-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ac-modal__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ac-modal__field label {
  font-size: 13px;
  font-weight: 600;
  color: #1a2b38;
}

.ac-modal__field input,
.ac-modal__field textarea {
  background: #f4f7f9;
  border: 1.5px solid #dde4ea;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1a2b38;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.ac-modal__field input::placeholder,
.ac-modal__field textarea::placeholder {
  color: #9aaab6;
}

.ac-modal__field input:focus,
.ac-modal__field textarea:focus {
  border-color: #07A9D1;
  box-shadow: 0 0 0 3px rgba(7, 169, 209, 0.12);
  background: #ffffff;
}

.ac-modal__field textarea {
  min-height: 110px;
  resize: vertical;
}

.ac-modal__msg {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 16px;
  display: none;
}

.ac-modal__msg.is-success {
  display: block;
  background: rgba(7, 169, 209, 0.08);
  border: 1px solid rgba(7, 169, 209, 0.3);
  color: #0580a0;
}

.ac-modal__msg.is-error {
  display: block;
  background: rgba(224, 82, 82, 0.07);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: #c0392b;
}

.ac-modal__submit {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #010D12;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border: none;
  padding: 15px 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
  width: 100%;
  letter-spacing: 0.01em;
}

.ac-modal__submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ac-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes ac-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ac-modal-slide-up {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  /* Restore native font sizes in modal — body{zoom:0.80} would shrink them
     below the 14 px readable floor if zoom is applied to fixed elements. */
  .ac-modal__eyebrow {
    font-size: 12px; /* up from 11px */
  }
  .ac-modal__field label {
    font-size: 14px; /* up from 13px */
  }
  .ac-modal__field input,
  .ac-modal__field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    min-height: 44px; /* adequate touch target */
  }
}

@media (max-width: 480px) {
  .ac-modal__dialog {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    align-self: flex-end;
  }

  .ac-modal__body {
    padding: 36px 24px 28px;
  }

  .ac-modal__row {
    grid-template-columns: 1fr;
  }

  .ac-modal__submit {
    width: 100%;
    padding: 15px 24px;
  }
}

.racetrack-section {
  position: relative;
  background: #ffffff !important;
  padding: 120px 40px;
  overflow: hidden;
}

.racetrack-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
}

.racetrack-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 24px;
  background: transparent;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.ac-cases-scroll {
  padding-top: 80px;
}

/* Badge on light backgrounds */
.racetrack-section .racetrack-badge,
.ac-industries .racetrack-badge,
.ac-cases-scroll .racetrack-badge {
  color: rgba(0,0,0,0.7);
  border-color: rgba(0,0,0,0.2);
  background: transparent;
}

.racetrack-headline {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 20px;
}

.racetrack-subheadline {
  font-size: 18px;
  color: var(--ac-grey-text);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

.racetrack-track {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 1600px;
}

.racetrack-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}

.racetrack-path-base {
  stroke: rgba(0,0,0,0.1);
  stroke-width: 2.5;
  stroke-dasharray: 12 10;
  fill: none;
}

.racetrack-path-glow {
  stroke: #07A9D1;
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 0 6px #07A9D1) drop-shadow(0 0 16px rgba(7,169,209,0.4));
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  transition: stroke-dashoffset 0.05s linear;
}

.racetrack-marker-outer {
  fill: #ffffff;
  stroke: rgba(7,169,209,0.25);
  stroke-width: 2;
  transition: stroke 0.4s ease;
}

.racetrack-marker-inner {
  fill: rgba(7,169,209,0.25);
  transition: fill 0.4s ease;
}

.racetrack-marker-group--active .racetrack-marker-outer {
  stroke: #07A9D1;
  filter: drop-shadow(0 0 12px rgba(7,169,209,0.6));
}

.racetrack-marker-group--active .racetrack-marker-inner {
  fill: #07A9D1;
  filter: drop-shadow(0 0 6px #07A9D1);
}

.racetrack-step {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

.racetrack-bg-num {
  font-size: 200px;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 0;
  transition: color 0.6s ease-out;
}

.racetrack-step--active .racetrack-bg-num {
  color: rgba(7,169,209,0.12);
}

.racetrack-card {
  background: rgba(7,169,209,0.02);
  border: 1px solid rgba(7,169,209,0.12);
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.6s ease-out;
}

.racetrack-card--visible {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(7,169,209,0.35);
}

.racetrack-card__tag {
  display: inline-block;
  color: #07A9D1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.racetrack-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  line-height: 1.3;
}

.racetrack-card__body {
  font-size: var(--body-4-size);
  line-height: 1.7;
  color: var(--ac-grey-text);
  margin: 0;
}

/* Step 1 — card RIGHT of path, 01 LEFT */
.racetrack-step--1 {
  top: 140px;
  right: 0;
  left: auto;
}
.racetrack-step--1 .racetrack-bg-num {
  left: -380px;
  top: -20px;
}

/* Step 2 — card LEFT of path, 02 RIGHT */
.racetrack-step--2 {
  top: 460px;
  left: 0;
  right: auto;
}
.racetrack-step--2 .racetrack-bg-num {
  right: -380px;
  top: -40px;
}

/* Step 3 — card RIGHT of path, 03 LEFT */
.racetrack-step--3 {
  top: 840px;
  right: 0;
  left: auto;
}
.racetrack-step--3 .racetrack-bg-num {
  left: -380px;
  top: -40px;
}

/* Step 4 — card LEFT of path, 04 RIGHT */
.racetrack-step--4 {
  top: 1220px;
  left: 0;
  right: auto;
}
.racetrack-step--4 .racetrack-bg-num {
  right: -380px;
  top: -40px;
}

.racetrack-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  padding: 80px 24px;
}

.racetrack-cta__heading {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto 32px;
}

/* === RACETRACK SECTION END === */

/* === CASES RESPONSIVE — Mobile === */
@media (max-width: 768px) {
  .ac-cases-scroll {
    padding-bottom: 0 !important;
  }
}

/* === RACETRACK RESPONSIVE — Mobile === */
@media (max-width: 768px) {
  .racetrack-headline { font-size: 32px; }
  .racetrack-subheadline { font-size: var(--body-4-size); }
  .racetrack-svg { display: none; }
  .racetrack-bg-num { display: none; }
  .racetrack-track { height: auto; min-height: 0 !important; padding-left: 40px; border-left: 2px solid rgba(7,169,209,0.2); }
  .racetrack-step { position: relative; top: auto !important; left: auto !important; right: auto !important; flex-direction: row !important; margin-bottom: 2rem; }
  .racetrack-card { opacity: 1; transform: none; max-width: 100%; }

  .racetrack-card__title {
    font-size: 20px;
  }

  .racetrack-card__body {
    font-size: var(--body-4-size);
  }

  .racetrack-cta {
    margin-top: 2rem !important;
    padding: 0 1.25rem !important;
  }

  .racetrack-cta__heading {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
}


/* ==========================================================================
   INDUSTRIES (Light background section) — matching Figma
   ========================================================================== */
.ac-industries {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  padding: 100px 40px 200px;
  text-align: center;
  margin-top: 80px;
}

.ac-industries__header {
  text-align: center;
  margin-bottom: 0;
}
.ac-industries__header .racetrack-badge {
  margin-bottom: 24px;
}

.ac-industries__title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0 auto 50px;
  text-align: center;
}

/* Dark gradient banner */
.ac-industries__banner {
  max-width: 740px;
  margin: 0 auto 48px;
  background: linear-gradient(160deg, #1a2a3a 0%, #0d1b2a 60%, #0a1622 100%);
  border-radius: 24px;
  padding: 48px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Subtle glow at bottom of banner */
.ac-industries__banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #07A9D1, transparent);
  filter: blur(1px);
}

.ac-industries__banner-text {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* Search input — rectangular rounded */
.ac-industries__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(7, 169, 209, 0.4);
  border-radius: 10px;
  padding: 14px 20px;
  max-width: 420px;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}

.ac-industries__search:hover {
  border-color: rgba(7, 169, 209, 0.7);
}

.ac-industries__search input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  color: rgba(255, 255, 255, 0.8);
  outline: none;
  cursor: default;
}

.ac-industries__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ac-industries__search svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Industry pills */
.ac-industries__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.ac-industry-pill {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid #07A9D1;
  border-radius: 100px;
  color: #07A9D1;
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.ac-industry-pill--active {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: #ffffff;
  border-color: transparent;
}

.ac-industry-pill:hover {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.25);
}

/* ==========================================================================
   CAPABILITIES — pills around central logo, matching Figma
   ========================================================================== */
.ac-capabilities {
  position: relative;
  overflow: hidden;
}

.ac-capabilities__title {
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 1;
}

/* Orbit layout — pills around central logo */
.ac-capabilities__orbit {
  position: relative;
  width: 700px;
  height: 460px;
  margin: 0 auto;
}

.ac-capabilities__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: var(--ac-dark-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(205, 205, 205, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.ac-capabilities__center img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Pill buttons positioned around the center — white bg, thick teal border per Figma */
.ac-cap-pill {
  position: absolute;
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 3px solid var(--ac-primary);
  border-radius: 20px;
  color: var(--ac-primary);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ac-transition);
  background: #fff;
  white-space: nowrap;
  z-index: 1;
}

.ac-cap-pill:hover {
  background: var(--ac-primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.25);
}

.ac-cap-pill--tl { top: 15%; left: 0; }
.ac-cap-pill--tr { top: 15%; right: 0; }
.ac-cap-pill--bl { bottom: 15%; left: 5%; }
.ac-cap-pill--br { bottom: 15%; right: 5%; }

/* ==========================================================================
   CASE STUDIES — light background matching Figma
   ========================================================================== */
.ac-case-studies {
  position: relative;
  overflow: hidden;
}

.ac-case-studies__title {
  margin-bottom: 3rem !important;
  position: relative;
  z-index: 1;
}

/* Light variant of case study card */
.ac-case-study--light {
  background: #fff;
  border: 1px solid rgba(7, 169, 209, 0.08);
  border-radius: var(--ac-radius-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ac-case-study__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-case-study__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-case-study__client {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ac-text-dark);
}

.ac-case-study__industry--light {
  font-size: var(--body-5-size);
  color: var(--ac-primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(7, 169, 209, 0.25);
  border-radius: 100px;
  font-weight: 500;
}

.ac-case-study__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ac-case-study__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-primary);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.ac-case-study__section p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ac-grey-text);
  margin: 0;
}

.ac-case-study__footer {
  text-align: right;
}

.ac-link-arrow {
  color: var(--ac-primary);
  text-decoration: none;
  font-size: var(--body-4-size);
  font-weight: 600;
  transition: all var(--ac-transition);
}

.ac-link-arrow:hover {
  opacity: 0.8;
}

.ac-case-studies__more {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.ac-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0a2a2f 0%, #0f3a40 30%, #1a4a50 50%, #010D12 100%) !important;
  border-radius: 56px 56px 0 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ac-cta-wrapper-bg {
  background: #ffffff;
  padding: 60px 0 0 0;
  margin-bottom: 0;
}

.ac-cta__glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center bottom, rgba(120, 200, 230, 0.35) 0%, rgba(80, 180, 220, 0.2) 25%, rgba(40, 150, 200, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}



.ac-cta__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.ac-glow--cta-left {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.25) 0%, rgba(6, 207, 195, 0.08) 40%, transparent 70%);
  bottom: -150px;
  left: -150px;
  filter: blur(60px);
}

.ac-glow--cta-right {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.20) 0%, rgba(10, 87, 107, 0.10) 40%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
}

.ac-cta__title {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem !important;
}

.ac-cta__buttons {
  gap: 1rem !important;
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ac-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* CTA icon */
.ac-cta__icon-wrap {
  display: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7,169,209,0.15) 0%, rgba(6,207,195,0.1) 100%);
  border: 1px solid rgba(7,169,209,0.25);
  color: var(--ac-primary);
  margin: 0 auto 1.5rem;
  animation: ac-cta-icon-float 3s ease-in-out infinite;
}

@keyframes ac-cta-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* CTA subtitle */
.ac-cta__subtitle {
  position: relative;
  z-index: 2;
}

/* CTA reassurance line */
.ac-cta__reassurance {
  display: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--body-5-size);
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  margin-top: 2rem !important;
  position: relative;
  z-index: 2;
}
.ac-cta__reassurance svg {
  color: var(--ac-primary);
  opacity: 0.6;
  flex-shrink: 0;
}

/* CTA white button */
.ac-btn--cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(6, 207, 195, 0.5) !important;
  padding: 0.85rem 2.2rem !important;
  border-radius: 100px !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: none;
}
.ac-btn--cta-white:hover {
  background: #ffffff !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,207,195,0.3);
  border-color: rgba(6, 207, 195, 0.9) !important;
}

/* CTA glowing primary button */
.ac-btn--glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border: none;
  box-shadow: 0 0 20px rgba(7,169,209,0.3), 0 0 60px rgba(7,169,209,0.1);
  animation: ac-cta-btn-glow 2.5s ease-in-out infinite;
}

@keyframes ac-cta-btn-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(7,169,209,0.3), 0 0 60px rgba(7,169,209,0.1); }
  50% { box-shadow: 0 0 30px rgba(7,169,209,0.5), 0 0 80px rgba(7,169,209,0.2); }
}

.ac-btn--glow:hover {
  animation: none;
  box-shadow: 0 0 35px rgba(7,169,209,0.6), 0 0 100px rgba(7,169,209,0.25);
  transform: translateY(-2px);
}



/* CTA pulse rings */
.ac-cta__pulse-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(7,169,209,0.08);
  pointer-events: none;
  animation: ac-cta-pulse-expand 4s ease-out infinite;
}
.ac-cta__pulse-ring--1 { width: 300px; height: 300px; animation-delay: 0s; }
.ac-cta__pulse-ring--2 { width: 500px; height: 500px; animation-delay: 1.3s; }
.ac-cta__pulse-ring--3 { width: 700px; height: 700px; animation-delay: 2.6s; }

@keyframes ac-cta-pulse-expand {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* CTA speed lines */
.ac-cta__speed-lines {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-cta__speed-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(7,169,209,0.25), transparent);
  border-radius: 1px;
  animation: ac-cta-speed-shimmer 3s ease-in-out infinite;
}
.ac-cta__speed-lines span:nth-child(1) { width: 160px; animation-delay: 0s; }
.ac-cta__speed-lines span:nth-child(2) { width: 110px; animation-delay: 0.4s; opacity: 0.6; }
.ac-cta__speed-lines span:nth-child(3) { width: 70px; animation-delay: 0.8s; opacity: 0.35; }
.ac-cta__speed-lines span:nth-child(4) { width: 130px; animation-delay: 1.2s; opacity: 0.5; }

@keyframes ac-cta-speed-shimmer {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(20px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ac-footer {
  border-top: none;
  background: #010D12;
}

.ac-footer__brand {
  margin-bottom: 1.25rem;
}

.ac-footer__brand .ac-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ac-footer__brand .ac-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ac-text-light);
}

.ac-footer__desc {
  max-width: 320px;
}


.ac-footer__social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.ac-footer__linkedin,
.ac-footer__discord {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity var(--ac-transition);
}
.ac-footer__linkedin:hover,
.ac-footer__discord:hover {
  opacity: 1;
}
.ac-footer__linkedin svg,
.ac-footer__discord svg {
  flex-shrink: 0;
  display: block;
}

.ac-footer__address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ac-footer__address-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ac-footer__address-label span {
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ac-footer__address address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
  padding-left: 1.1rem;
}
.ac-footer__address address span {
  color: #8899A4;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ac-footer__heading {
  margin-bottom: 1.25rem !important;
}

.ac-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ac-footer__links a {
  color: var(--ac-grey-muted);
  text-decoration: none;
  font-size: var(--body-5-size);
  transition: color var(--ac-transition);
}

.ac-footer__links a:hover {
  color: var(--ac-primary);
}

.ac-footer__divider {
  margin: 2.5rem 0 0 !important;
  opacity: 0.2 !important;
}

/* Footer chatbot mini */
.ac-footer__chatbot-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-input {
  max-width: 360px;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(6, 45, 50, 0.4);
}

.ac-footer__chatbot-mini .ac-chatbot-actions {
  margin: 0.4rem 0 0;
  gap: 0.4rem;
  justify-content: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-action {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
}

/* ==========================================================================
   ANIMATIONS — keyframes
   ========================================================================== */

/* Gentle floating up/down */
@keyframes ac-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Reverse-phase float */
@keyframes ac-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Very slow rotation */
@keyframes ac-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Counter-rotation */
@keyframes ac-rotate-slow-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Subtle glow pulse */
@keyframes ac-pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Drift horizontally */
@keyframes ac-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -4px); }
  50% { transform: translate(-4px, 6px); }
  75% { transform: translate(4px, 2px); }
}

/* Particle float — each dot gets a unique delay via JS */
@keyframes ac-particle-float {
  0%, 100% { transform: translate(0, 0); opacity: var(--dot-opacity, 0.3); }
  33% { transform: translate(var(--dx1, 5px), var(--dy1, -8px)); opacity: calc(var(--dot-opacity, 0.3) * 1.3); }
  66% { transform: translate(var(--dx2, -4px), var(--dy2, 5px)); opacity: calc(var(--dot-opacity, 0.3) * 0.7); }
}

/* Orbit pulse for capabilities pills */
@keyframes ac-orbit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Dashed line flow animation for capability connecting lines */
@keyframes ac-line-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

/* ==========================================================================
   ANIMATION ASSIGNMENTS
   ========================================================================== */

/* Hero particle dots — floating */
.ac-hero__decorations circle {
  animation: ac-particle-float 8s ease-in-out infinite;
}

/* Hero glow — breathing pulse */
.ac-glow--hero-main {
  animation: ac-pulse-glow 6s ease-in-out infinite;
}

/* Problem section — center deco rotation handled inline */

/* Process triangle — slow rotation */


/* CTA glows — pulsing */
.ac-glow--cta-left {
  animation: ac-pulse-glow 7s ease-in-out infinite;
}

.ac-glow--cta-right {
  animation: ac-pulse-glow 5s ease-in-out infinite 1.5s;
}

/* Capabilities pills — subtle orbit pulse */
.ac-cap-pill {
  animation: ac-orbit-pulse 4s ease-in-out infinite;
}

.ac-cap-pill--tr { animation-delay: 1s; }
.ac-cap-pill--bl { animation-delay: 2s; }
.ac-cap-pill--br { animation-delay: 3s; }

/* Process dashed line — draw on scroll via clip-path */


/* ==========================================================================
   SCROLL ANIMATIONS — fade-in reveals
   ========================================================================== */
.ac-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ac-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.ac-industries__pills .ac-fade-in:nth-child(2) { transition-delay: 0.06s; }
.ac-industries__pills .ac-fade-in:nth-child(3) { transition-delay: 0.12s; }
.ac-industries__pills .ac-fade-in:nth-child(4) { transition-delay: 0.18s; }
.ac-industries__pills .ac-fade-in:nth-child(5) { transition-delay: 0.24s; }
.ac-industries__pills .ac-fade-in:nth-child(6) { transition-delay: 0.30s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large desktop */
@media (min-width: 1440px) {
  .ac-hero__title {
    font-size: 48px !important;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
}

/* Tablet */
@media (max-width: 1024px) {
  .ac-case-study__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ac-header-wrap { padding: 16px 30px !important; }
  .ac-header-pill { padding: 12px 28px; gap: 20px; }
  .ac-nav__list { gap: 4px; }
  .ac-nav__list a { font-size: 12px; padding: 7px 12px; }
  .ac-nav-cta { font-size: 12px; padding: 8px 18px; margin-left: 4px; }

  .ac-triangle-3d {
    width: 300px;
    height: 300px;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  /* ── Bug 1 fix: body{zoom:0.80} shifts hit-areas for position:fixed elements
     on iOS/WebKit. Counter the zoom so header and mobile-menu touch targets
     align with their visual positions. ── */
  .ac-header-wrap,
  .ac-header-wrap.wp-block-template-part {
    padding: 12px 16px !important;
    zoom: 1.25 !important; /* 0.80 × 1.25 = 1.00 — restores native coordinate space */
  }

  .ac-mobile-menu {
    zoom: 1; /* moved to body via JS — no longer inside header-wrap zoom context */
  }

  .ac-header-pill { padding: 12px 20px; border-radius: 40px; gap: 16px; }

  .ac-nav,
  .ac-header-pill > .ac-nav-cta {
    display: none !important;
  }

  /* Ensure hamburger meets 44×44 px minimum touch target */
  .ac-hamburger {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* eliminates 300 ms tap delay */
  }

  .ac-hero {
    height: auto !important;
    min-height: calc(100vh / 0.80) !important; /* compensate body{zoom:0.80} so hero fills visual viewport */
    max-height: none !important;
    padding-top: 120px !important; /* clear the fixed header (≈93px viewport after zoom) */
    padding-bottom: 0 !important;
  }

  .ac-hero .ac-trust-carousel {
    position: relative !important;
    bottom: auto !important;
    margin-top: 3.5rem;
  }

  .ac-hero__bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    margin-top: 1.5rem;
  }

  .ac-hero-scroll-indicator {
    display: none;
  }

  .ac-hero__scroll {
    order: 2;
  }

  .ac-case-study--light {
    padding: 1.5rem;
  }


  /* Friction section — mobile */
  .friction-scroll { height: 125vh; }

  .friction-sticky {
    min-height: auto !important;
    justify-content: flex-start !important;
    padding: 2rem 1.25rem 1.5rem !important;
  }

  .friction-text-column {
    min-height: 160px !important;
  }

  .friction-text-wrap {
    min-height: 160px !important;
  }

  .friction-body {
    flex-direction: column;
    gap: 2rem;
  }

  .friction-col-left {
    flex: none;
    width: 100%;
  }

  .friction-diagram {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .friction-circle-large {
    width: 250px;
    height: 250px;
  }

  .friction-teal {
    width: 60px;
    height: 60px;
  }

  .friction-label-group {
    display: none;
  }

  .friction-text-column {
    width: 100%;
    padding: 20px;
  }

  .friction-paragraph {
    font-size: 20px;
    line-height: 1.65;
  }


  /* Industries pills */
  .ac-industries__banner {
    padding: 1.5rem;
  }

  /* Capabilities orbit collapses */
  .ac-capabilities__orbit {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: static;
  }

  .ac-capabilities__center {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ac-cap-pill {
    position: static;
  }

  .ac-case-study {
    padding: 1.5rem;
  }

  .ac-step {
    gap: 1.25rem;
  }

  .ac-step__number {
    min-width: 40px;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .ac-industries__input-wrap {
    padding: 1.5rem;
  }

  .ac-triangle-3d {
    width: 280px;
    height: 280px;
  }

  .ac-deco-hero-triangle {
    width: 180px;
    height: 180px;
    opacity: 0.25;
  }

  .ac-deco-glow {
    width: 500px;
    opacity: 0.25;
  }

  .ac-footer__chatbot-mini {
    align-items: flex-start;
    margin-top: 1rem;
  }

  /* Footer links — ensure adequate touch target height */
  .ac-footer__links a {
    display: inline-block;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Watermark responsive rules removed */

  /* Section padding reductions */
  .racetrack-section {
    padding: 3rem 1.25rem !important;
  }
  .ac-industries {
    padding: 3rem 1.25rem 4rem !important;
    margin-top: 0 !important;
  }
  .ac-cta-wrapper-bg {
    padding-top: 2rem !important;
  }
  .ac-cta {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* ── Typography: bump sub-14px elements to readable floor ── */
  .ac-trust-carousel__label { font-size: 1rem; }
  .ac-hero__address-line1 { font-size: 0.875rem; }   /* 0.78rem → 14px */
  .ac-hero__address-line2 { font-size: 0.75rem; }    /* 0.65rem → 12px (decorative sub-line) */
  .racetrack-card__tag { font-size: 12px; }          /* 11px → 12px */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phone */
@media (max-width: 480px) {
  .ac-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .ac-case-study__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-hero__title {
    font-size: 2.2rem !important;
  }

  .ac-cta {
    border-radius: 28px !important;
    margin: 0 24px !important;
    width: calc(100% - 48px) !important;
  }
}

/* ==========================================================================
   ENQUIRY MODAL
   ========================================================================== */
.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ac-modal[hidden] {
  display: none !important;
}

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ac-modal-fade-in 0.3s ease;
}

.ac-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  animation: ac-modal-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(1, 13, 18, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #1a2b38;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.ac-modal__close:hover {
  background: rgba(1, 13, 18, 0.12);
  color: #010D12;
}

.ac-modal__body {
  padding: 44px 40px 40px;
}

.ac-modal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #07A9D1;
  margin-bottom: 10px;
}

.ac-modal__title {
  font-size: 22px;
  font-weight: 800;
  color: #010D12;
  line-height: 1.25;
  margin-bottom: 28px;
}

.ac-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ac-modal__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ac-modal__field label {
  font-size: 13px;
  font-weight: 600;
  color: #1a2b38;
}

.ac-modal__field input,
.ac-modal__field textarea {
  background: #f4f7f9;
  border: 1.5px solid #dde4ea;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1a2b38;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.ac-modal__field input::placeholder,
.ac-modal__field textarea::placeholder {
  color: #9aaab6;
}

.ac-modal__field input:focus,
.ac-modal__field textarea:focus {
  border-color: #07A9D1;
  box-shadow: 0 0 0 3px rgba(7, 169, 209, 0.12);
  background: #ffffff;
}

.ac-modal__field textarea {
  min-height: 110px;
  resize: vertical;
}

.ac-modal__msg {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 16px;
  display: none;
}

.ac-modal__msg.is-success {
  display: block;
  background: rgba(7, 169, 209, 0.08);
  border: 1px solid rgba(7, 169, 209, 0.3);
  color: #0580a0;
}

.ac-modal__msg.is-error {
  display: block;
  background: rgba(224, 82, 82, 0.07);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: #c0392b;
}

.ac-modal__submit {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #010D12;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border: none;
  padding: 15px 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
  width: 100%;
  letter-spacing: 0.01em;
}

.ac-modal__submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ac-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes ac-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ac-modal-slide-up {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  /* Restore native font sizes in modal — body{zoom:0.80} would shrink them
     below the 14 px readable floor if zoom is applied to fixed elements. */
  .ac-modal__eyebrow {
    font-size: 12px; /* up from 11px */
  }
  .ac-modal__field label {
    font-size: 14px; /* up from 13px */
  }
  .ac-modal__field input,
  .ac-modal__field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    min-height: 44px; /* adequate touch target */
  }
}

@media (max-width: 480px) {
  .ac-modal__dialog {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    align-self: flex-end;
  }

  .ac-modal__body {
    padding: 36px 24px 28px;
  }

  .ac-modal__row {
    grid-template-columns: 1fr;
  }

  .ac-modal__submit {
    width: 100%;
    padding: 15px 24px;
  }
}


/* ==========================================================================
   FAQ ACCORDION COMPONENT — copied here so ac-capabilities.css is not needed globally
   ========================================================================== */

.ac-capp-faq {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 169, 209, 0.04) 0%, transparent 60%),
    var(--ac-bg);
  position: relative;
}

.ac-capp-faq__list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-capp-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ac-capp-faq__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ac-capp-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ac-text-light);
  text-align: left;
  gap: 1rem;
  transition: color var(--ac-transition);
}

.ac-capp-faq__trigger:hover {
  color: var(--ac-primary);
}

.ac-capp-faq__icon {
  flex-shrink: 0;
  color: var(--ac-primary);
  transition: transform 0.3s ease;
}

.ac-capp-faq__trigger[aria-expanded="true"] .ac-capp-faq__icon {
  transform: rotate(180deg);
}

.ac-capp-faq__answer {
  padding: 0 0 1.25rem;
}

.ac-capp-faq__answer p {
  font-size: 24px;
  line-height: 1.65;
  color: var(--ac-text-muted);
  margin: 0;
}

/* ==========================================================================
   HOMEPAGE FAQ — 2-column layout overrides
   ========================================================================== */

.ac-home-faq__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.ac-home-faq__left {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ac-home-faq__heading {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Question text — larger, better letter-spacing */
.ac-home-faq .ac-capp-faq__trigger {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  padding: 1.5rem 0;
}

/* Answer text — grey, larger, more breathing room */
.ac-home-faq .ac-capp-faq__answer p {
  font-size: 1.05rem;
  color: var(--ac-text-muted);
  line-height: 1.8;
  letter-spacing: 0.015em;
  word-spacing: 0.04em;
  padding-bottom: 1rem;
}

/* No top margin on list since heading is in left col */
.ac-home-faq .ac-capp-faq__list {
  margin-top: 0;
}

@media (max-width: 768px) {
  .ac-home-faq__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ac-home-faq__left {
    position: static;
  }

  .ac-home-faq__heading {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

/* ==========================================================================
   HOW WE BUILD IS DIFFERENT
   ========================================================================== */
.ac-how-we-build {
  position: relative;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #040f1a !important;
  padding-top: 16px !important;
  --glow-x: 50%;
  --glow-y: 50%;
}

.ac-how-we-build::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 2 / 1;
  top: 0;
  left: 0;
  transform: translate(calc(var(--glow-x) - 50%), calc(var(--glow-y) - 50%));
  background-image: url('/wp-content/themes/ac-theme/assets/images/how-we-build-glow.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  opacity: 1;
  transition: transform 0.12s ease-out;
  pointer-events: none;
  z-index: 0;
}

.ac-how-we-build::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255,255,255,0.85) 70%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.ac-how-we-build > * {
  position: relative;
  z-index: 2;
}

.ac-how-we-build .ac-approach__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.ac-how-we-build .ac-approach__quote {
  text-align: left;
  padding: 80px 40px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.ac-how-we-build .ac-approach__quote-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: 1 !important;
  margin: 0 0 24px !important;
}

.ac-how-we-build-subtitle {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.ac-how-we-build-word {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
  color: #1a1a2e;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.ac-how-we-build .ac-approach__quote-accent {
  font-family: 'Inter', sans-serif;
  font-size: 48px !important;
  font-weight: 400 !important;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.ac-how-we-build .ac-approach__quote-accent:first-of-type {
  font-size: 24px !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #000000 !important;
  background-clip: unset !important;
  color: #000000 !important;
}

.ac-how-we-build .ac-approach-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-how-we-build .ac-approach-anim.ac-approach-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .ac-how-we-build .ac-approach__inner { padding: 0 20px; }
  .ac-how-we-build .ac-approach__quote { padding: 40px 20px 60px; }
  .ac-how-we-build .ac-approach__quote-accent { font-size: 26px !important; }
  .ac-how-we-build-subtitle { font-size: 32px !important; }
  .ac-how-we-build-word { font-size: 32px !important; }
}
