/* ═══════════════════════════════════════════
   APEX SYSTEMATIC — style.css
   ═══════════════════════════════════════════
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Buttons
   6.  Section Scaffolding
   7.  Header & Nav
   8.  Mobile Nav
   9.  Hero
   10. Services
   11. Demo
   12. How It Works
   13. Pricing
   14. About
   15. Testimonials
   16. Contact & Form
   17. Footer
   18. Animations
   19. Media Queries
   22. Chat Widget
═══════════════════════════════════════════ */


/* ── 1. Variables ── */
:root {
  --bg:               #0E1117;
  --surface:          #131820;
  --surface-2:        #182030;
  --border:           #1E2838;
  --border-light:     #263040;

  --text:             #D8DCE4;
  --text-muted:       #7A8299;
  --text-dim:         #4F5B6E;
  --white:            #FFFFFF;

  --gold:             #C9A84C;
  --gold-light:       #DDB95A;

  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', 'Helvetica Neue', sans-serif;

  --max-width:        1200px;
  --gutter:           28px;
  --section-y:        110px;
  --radius:           2px;

  --ease:             0.2s ease;
  --ease-slow:        0.4s ease;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
textarea { resize: vertical; }


/* ── 3. Typography ── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.1rem; }

p  { color: var(--text-muted); line-height: 1.8; }

.highlight-gold {
  color: #C9A84C;
  font-weight: 500;
}

/* ── 4. Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-sub {
  max-width: 560px;
  font-size: 1.05rem;
  margin-top: 0.875rem;
  line-height: 1.75;
}


/* ── 6. Main content offset for fixed nav ── */
#main-content,
main {
  padding-top: var(--nav-h, 97px);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}


/* ── 7. Header & Nav ── */
.header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 150;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

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

.header-logo svg {
  height: 52px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
}

.header-nav a:hover {
  color: var(--white);
}

/* ── Desktop nav dropdowns ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--ease);
}

.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--ease);
  opacity: 0.6;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 900;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.nav-dropdown-menu .nav-dropdown-view-all {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 11px;
  margin-top: 2px;
  border-top: 1px solid rgba(201,168,76,0.12);
}

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 160;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 88px 32px 40px;
  overflow-y: auto;
  gap: 0;
}

.mobile-nav.is-open {
  display: flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Flat links in mobile nav (Demos, Pricing, FAQ) */
.mobile-nav > a {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-transform: none;
  transition: color var(--ease);
}

.mobile-nav > a:hover {
  color: var(--gold);
}

.mobile-nav .btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  margin-top: 24px;
  text-align: center;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-close:hover {
  color: var(--white);
}

/* Mobile accordion groups */
.mobile-nav-group {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-nav-group-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.04em;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-group-toggle svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
  transition: transform var(--ease);
  flex-shrink: 0;
}

.mobile-nav-group-toggle.is-open svg {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  display: none;
  padding: 6px 0 12px 12px;
}

.mobile-nav-sub.is-open {
  display: block;
}

.mobile-nav-sub a {
  display: block;
  padding: 9px 0;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--ease);
}

.mobile-nav-sub a:hover {
  color: var(--gold);
}

.mobile-nav-sub .mobile-nav-view-all {
  color: var(--gold);
  font-size: 13px;
  border-bottom: none;
}


/* ── 9. Hero ── */
.hero {
  min-height: calc(100dvh - var(--nav-h, 97px));
  display: flex;
  align-items: center;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.hero .section-tag {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero .hero-sub {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  padding: 10px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.05);
  max-width: max-content;
}

.hero-metric-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── 10a. Certifications ── */
.certifications {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.certs-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color var(--ease), background var(--ease);
  cursor: pointer;
}

.cert-badge:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.cert-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.75);
  transition: filter var(--ease);
}

.cert-badge:hover .cert-logo {
  filter: brightness(0) invert(1);
}

.cert-logo--anthropic {
  height: 18px;
}

.cert-logo--google {
  height: 22px;
}

.cert-platform {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cert-name,
.cert-count {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.3;
}

.cert-count {
  color: var(--gold);
  font-weight: 500;
}

.cert-logo--badge {
  height: 64px;
  width: 64px;
  object-fit: contain;
  filter: none;
}

.cert-badge:hover .cert-logo--badge {
  filter: none;
}

/* Mobile */
@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cert-badge {
    padding: 16px 10px;
  }

  .cert-logo--badge {
    height: 48px;
    width: 48px;
  }
}

@media (max-width: 500px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


    /* ── Industry savings band ── */
    .industry-band { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
    .industry-band .section-header { margin-bottom: 40px; }
    .industry-band-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border: 1px solid var(--border);
    }
    .ib-card {
      padding: 36px 32px;
      border-right: 1px solid var(--border);
      transition: background var(--ease);
      position: relative;
    }
    .ib-card::before {
      content: '';
      display: block;
      width: 28px;
      height: 1px;
      background: var(--gold);
      margin-bottom: 22px;
      transition: width var(--ease-slow);
    }
    .ib-card:hover::before { width: 48px; }
    .ib-card:hover { background: var(--surface); }
    .ib-card:last-child { border-right: none; }
    .ib-name {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 10px;
    }
    .ib-hrs {
      font-family: var(--font-display);
      font-size: 2.2rem;
      color: var(--white);
      line-height: 1;
      margin-bottom: 6px;
    }
    .ib-hrs span {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-family: var(--font-body);
    }
    .ib-workflow {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .industry-band-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .industry-band-footer p {
      font-size: 0.72rem;
      font-style: italic;
      color: var(--text-dim);
    }
    .industry-band-footer a {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
      white-space: nowrap;
      transition: color var(--ease);
      flex-shrink: 0;
    }
    .industry-band-footer a:hover { color: var(--white); }
    @media (max-width: 1024px) {
      .industry-band-grid { grid-template-columns: repeat(2, 1fr); }
      .ib-card:nth-child(2) { border-right: none; }
      .ib-card:nth-child(1),
      .ib-card:nth-child(2) { border-bottom: 1px solid var(--border); }
    }
    @media (max-width: 600px) {
      .industry-band-grid { grid-template-columns: 1fr; }
      .ib-card { border-right: none; border-bottom: 1px solid var(--border); }
      .ib-card:last-child { border-bottom: none; }
      .industry-band-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    }

/* ── 10. Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.service-card {
  padding: 44px 34px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
  position: relative;
}

.service-card::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  transition: width var(--ease-slow);
}

.service-card:hover::before {
  width: 56px;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: var(--surface);
}

.service-card h3 {
  margin-bottom: 0.875rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── 11. Demos Preview Section ── */

.demos-preview-grid .service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demos-preview-grid .service-card p {
  flex: 1;
  margin-bottom: 28px;
}

.demos-preview-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing var(--ease);
  margin-top: auto;
}

.demos-preview-link:hover {
  letter-spacing: 0.2em;
}


/* ── 12. How It Works ── */
.steps {
  border: 1px solid var(--border);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.step:last-child {
  border-bottom: none;
}

.step:hover {
  background: var(--surface);
}

.step-number {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 24px;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.step-content p {
  max-width: 580px;
}


/* ── 13. Pricing ── */

/* Section intro — Option B header style */
.pricing .section-header {
  margin-bottom: 40px;
}

/* Currency toggle */
.currency-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.currency-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
}

.currency-btn:hover {
  border-color: var(--text-muted);
  color: var(--white);
}

.currency-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* Pricing grid — stacked editorial strips */
.pricing-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

/* Tier row */
.opt-c-tier {
  display: grid;
  grid-template-columns: 1fr 300px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.opt-c-tier:last-child {
  border-bottom: none;
}

.opt-c-tier:hover {
  background: rgba(255, 255, 255, 0.015);
}

.opt-c-tier--featured {
  background: var(--surface);
}

.opt-c-tier--featured:hover {
  background: var(--surface-2);
}

/* Left content column */
.opt-c-content {
  padding: 48px 52px;
  border-right: 1px solid var(--border);
}

.opt-c-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.1;
}

.opt-c-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.opt-c-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 28px;
}

/* Feature list */
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}

.tier-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.68rem;
  top: 2px;
}

/* Right aside column */
.opt-c-aside {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.opt-c-price-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.opt-c-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
}

.opt-c-result-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.opt-c-result {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
}

/* No retainer bar */
.pricing-no-retainer {
  border: 1px solid var(--border);
  border-top: none;
  padding: 32px 40px;
  background: var(--surface);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.pricing-no-retainer-label {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.pricing-no-retainer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Responsive — tablet */
@media (max-width: 820px) {
  .opt-c-tier {
    grid-template-columns: 1fr;
  }

  .opt-c-content {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }

  .opt-c-aside {
    padding: 28px 24px;
    justify-content: flex-start;
    gap: 20px;
  }

  .pricing-no-retainer {
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
  }
}


/* ── 14. About ── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: 96px;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content p {
  line-height: 1.8;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-certs {
  display: flex;
  flex-direction: column;
}

.tools-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-cert-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.about-cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
  color: var(--text-muted);
}

.about-cert-row:last-child {
  border-bottom: none;
}

.about-cert-row:hover {
  background: var(--surface);
  color: var(--white);
}

.about-cert-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-cert-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: inherit;
  transition: color var(--ease);
}

.about-cert-icon-wrap {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-cert-icon--wide {
  width: 40px;
  height: 28px;
}

.about-cert-icon--ibm {
  width: 55px;
  height: 22px;
}

.about-cert-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.about-cert-count {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color var(--ease);
}

.about-cert-row:hover .about-cert-count {
  color: var(--text-muted);
}

.about-certs-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
  margin-top: 20px;
  transition: color var(--ease);
  align-self: flex-start;
}

.about-certs-link:hover {
  color: var(--white);
}

.about-cert-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.about-cert-tile {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
  transition: background var(--ease), color var(--ease);
  color: var(--text-muted);
}

.about-cert-tile:hover {
  background: var(--surface);
  color: var(--white);
}

.about-cert-name {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
}


/* ── 15. Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  gap: 1px;
  background: var(--border);
}

.testimonial-card {
  background: var(--bg);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  transition: background var(--ease);
}

.testimonial-card:hover {
  background: var(--surface);
}

.testimonial-card > p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}


/* ── 16. Contact & Form ── */
.contact-form {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease);
  line-height: 1.5;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8299' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--surface-2);
  color: var(--white);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-success {
  display: none;
  max-width: 660px;
  padding: 24px;
  border: 1px solid var(--gold);
}

.form-success p {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ── AUDIT FORM ── */
.audit-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.audit-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.audit-progress-bar {
  height: 100%;
  background: #C9A84C;
  border-radius: 2px;
  width: 33%;
  transition: width 0.4s ease;
}

.audit-step-label {
  font-size: 0.75rem;
  color: var(--color-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
}

.audit-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.audit-step-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.field-optional {
  font-size: 0.75rem;
  color: var(--color-muted, #888);
  font-weight: 400;
}

.audit-thankyou {
  margin-bottom: 2rem;
}

.audit-thankyou p {
  margin-bottom: 0.75rem;
}

.audit-sub {
  font-size: 0.85rem;
}

.audit-form-wrap {
  max-width: 560px;
  margin: 0;
}

.audit-next {
  margin-top: 1.5rem;
}

.audit-step-nav {
  margin-top: 1.5rem;
}

.audit-form-wrap .form-group {
  margin-top: 1.25rem;
}

.audit-form-wrap .form-group:first-child {
  margin-top: 0;
}

#audit-error {
  background: rgba(180, 40, 40, 0.15);
  border: 1px solid rgba(180, 40, 40, 0.4);
  color: #e88;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  display: none;
}

.audit-form-wrap .form-row .form-group {
  margin-top: 0;
}


/* ── 17. Footer ── */
.footer-wrap {
  border-top: 1px solid var(--border);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo svg {
  height: 44px;
  width: auto;
}

/* Column nav */
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.footer-nav-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.footer-nav-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color var(--ease);
}

.footer-nav-col a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}


/* ── Legal Pages ── */
.legal-page {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.legal-page ul {
  list-style: none;
  margin-bottom: 1.4rem;
}

.legal-page ul li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 0.6rem;
}

.legal-page ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 4px;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── 18. Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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


/* ── 19. Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .section-tag  { animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1            { animation: fadeInUp 0.6s ease 0.2s both; }
.hero .hero-sub     { animation: fadeInUp 0.6s ease 0.35s both; }
.hero .hero-actions { animation: fadeInUp 0.6s ease 0.5s both; }

/* ── 20. ROI CTA ── */
.roi-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.roi-cta-text h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .roi-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}


/* ── 21. Media Queries ── */

/* Large tablet */
@media (max-width: 1024px) {
  :root { --section-y: 80px; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .service-card:nth-child(2) {
    border-right: none;
  }

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

  .about-sidebar {
    padding-top: 0;
  }

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

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

/* Mobile */
@media (max-width: 1180px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .step {
    flex-direction: column;
    gap: 16px;
    padding: 36px var(--gutter);
  }

  .pricing-card {
    padding: 36px var(--gutter);
  }

  .testimonial-card {
    padding: 36px var(--gutter);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .footer-nav-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav-cols .footer-nav-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}

/* 22. CHAT WIDGET */

#apex-chat-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

#apex-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #C9A84C;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  z-index: 9998;
  transition: all 0.25s;
}

#apex-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

#apex-chat-bubble svg {
  transition: all 0.2s;
}

#apex-chat-bubble .bubble-close {
  display: none;
}

#apex-chat-bubble.open .bubble-open {
  display: none;
}

#apex-chat-bubble.open .bubble-close {
  display: block;
}

#apex-chat-bubble .unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #E74C3C;
  border-radius: 50%;
  border: 2px solid #0E1117;
  display: none;
}

#apex-chat-bubble .unread-dot.show {
  display: block;
}

#apex-chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  height: 520px;
  background: #13181F;
  border: 1px solid #1F2937;
  border-radius: 0;
  overflow: hidden;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#apex-chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#apex-chat-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  z-index: 1;
}

.apex-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px !important;
  border-bottom: 1px solid #1F2937;
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.apex-chat-header-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #F0EDE8;
}

.apex-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 5px #2ECC71;
  margin-left: auto;
  flex-shrink: 0;
  animation: apexPulse 2s infinite;
}

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

.apex-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.apex-messages::-webkit-scrollbar {
  width: 3px;
}

.apex-messages::-webkit-scrollbar-thumb {
  background: #1F2937;
  border-radius: 0;
}

.apex-msg {
  display: flex;
  gap: 8px;
  animation: apexMsgIn 0.25s ease forwards;
  opacity: 0;
}

@keyframes apexMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.apex-msg.apex-user {
  flex-direction: row-reverse;
}

.apex-bubble {
  max-width: 88%;
  padding: 10px 13px !important;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #F0EDE8;
}

.apex-msg.apex-bot .apex-bubble {
  background: #1A2030;
  border: 1px solid #1F2937;
}

.apex-msg.apex-user .apex-bubble {
  background: #1E2535;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.apex-typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #1A2030;
  border: 1px solid #1F2937;
  border-radius: 0;
}

.apex-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4B5060;
  animation: apexBounce 1.2s infinite;
}

.apex-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.apex-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes apexBounce {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

.apex-input-area {
  padding: 12px 14px !important;
  border-top: 1px solid #1F2937;
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}

.apex-input {
  flex: 1;
  background: #1A2030;
  border: 1px solid #1F2937;
  border-radius: 0;
  color: #F0EDE8;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  padding: 0 12px !important;
  resize: none;
  outline: none;
  overflow: hidden;
  line-height: 1.5;
  transition: border-color 0.2s;
  height: 36px;
  /* Remove browser default textarea resize arrows */
  -webkit-appearance: none;
  appearance: none;
}

.apex-input::placeholder {
  color: #4B5060;
}

.apex-input:focus {
  border-color: rgba(201, 168, 76, 0.4);
}

.apex-send {
  width: 36px;
  height: 36px;
  background: #C9A84C;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: #0E1117;
  font-size: 15px;
}

.apex-send:hover    { background: #E2C47A; }
.apex-send:disabled { opacity: 0.4; cursor: not-allowed; }

.apex-branding {
  text-align: center;
  padding: 6px;
  font-size: 10px;
  color: #4B5060;
  border-top: 1px solid #1F2937;
  flex-shrink: 0;
}

.apex-branding a {
  color: #C9A84C;
  text-decoration: none;
}

@media (max-width: 420px) {
  #apex-chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }

  #apex-chat-bubble {
    bottom: 20px;
    right: 20px;
  }
}


/* ── 23. FAQ ── */

.page-hero {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-tag {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.page-hero p {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-nav {
  position: sticky;
  top: calc(var(--nav-h, 97px) + 40px);
}

.faq-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-nav-item {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 14px;
  border-left: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.faq-nav-item:hover,
.faq-nav-item.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
}

.faq-sections {
  display: flex;
  flex-direction: column;
}

.faq-group {
  padding-bottom: 64px;
  margin-bottom: 64px;
}

.faq-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 32px;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  color: var(--text-muted);
  transition: color var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item.is-open .faq-question,
.faq-item.is-open .faq-icon {
  color: var(--gold);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
  max-width: 680px;
}

.faq-answer-inner p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-nav {
    position: static;
    display: none;
  }

  .faq-group {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }
}
/* ── WHO WE WORK WITH / VERTICALS NAV ── */
.verticals-nav {
  padding: 80px 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}

.verticals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

a.vertical-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, inherit);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

a.vertical-link:hover {
  background: var(--surface-hover, rgba(255,255,255,0.06));
  border-color: var(--accent, currentColor);
}

@media (max-width: 640px) {
  .verticals-grid {
    gap: 8px;
  }
  a.vertical-link {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}
