/* ── APEX VIRTUAL ASSISTANTS — Global Styles ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --green:#16A34A;
  --green-dark:#15803D;
  --green-mid:#22C55E;
  --green-light:#DCFCE7;
  --green-pale:#F0FDF4;
  --navy:#0A0F1E;
  --navy-mid:#111827;
  --charcoal:#1F2937;
  --white:#FFFFFF;
  --off-white:#F9FAFB;
  --warm-grey:#F3F4F6;
  --border:#E5E7EB;
  --border-soft:#F3F4F6;
  --text:#111827;
  --text-soft:#4B5563;
  --text-muted:#9CA3AF;
  --shadow:0 4px 24px rgba(22,163,74,0.08);
  --shadow-lg:0 16px 48px rgba(22,163,74,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; line-height: 1.1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── REVEAL ANIMATIONS ── */
.rv, .rv-left, .rv-right {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.rv { transform: translateY(24px); }
.rv-left { transform: translateX(-24px); }
.rv-right { transform: translateX(24px); }
.rv.in, .rv-left.in, .rv-right.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }
.rv.d5 { transition-delay: .5s; }

/* ── NAV ── */
.apex-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.apex-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apex-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.apex-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green-dark);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apex-logo-mark svg { color: white; }
.apex-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}
.apex-logo-sub {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}
.apex-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.apex-nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
  white-space: nowrap;
}
.apex-nav-links a:hover { color: var(--navy); }
.apex-nav-links a.active { color: var(--green-dark); font-weight: 600; }
.apex-nav-links .on-demand-link {
  color: var(--green-dark);
  font-weight: 600;
}
.apex-nav-cta {
  background: var(--green-dark);
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s !important;
  white-space: nowrap;
}
.apex-nav-cta:hover {
  background: var(--green);
  transform: translateY(-1px);
}
.apex-nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.apex-nav-mobile-btn span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── FOOTER ── */
.apex-footer {
  background: var(--navy);
  padding: 72px 64px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.apex-footer-inner { max-width: 1400px; margin: 0 auto; }
.apex-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.apex-footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.apex-footer-brand .logo-mark {
  width: 30px;
  height: 30px;
  background: var(--green-dark);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apex-footer-brand .logo-mark svg { color: white; }
.apex-footer-brand .logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.01em;
}
.apex-footer-brand p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  max-width: 240px;
  font-weight: 300;
  margin-bottom: 20px;
}
.apex-footer-social {
  display: flex;
  gap: 10px;
}
.apex-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.apex-footer-social a:hover {
  background: rgba(22,163,74,0.15);
  border-color: rgba(22,163,74,0.3);
}
.apex-footer-social a svg { color: rgba(255,255,255,0.5); }
.apex-footer-col h5 {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.apex-footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 10px;
  transition: color 0.2s;
  font-weight: 300;
}
.apex-footer-col a:hover { color: rgba(34,197,94,0.75); }
.apex-footer-col a.on-demand {
  color: rgba(34,197,94,0.55);
  font-weight: 500;
}
.apex-footer-col a.on-demand:hover { color: rgba(34,197,94,0.85); }
.apex-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.apex-footer-bottom span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}
.apex-footer-bottom .allvia {
  color: rgba(14,165,233,0.4);
}

/* ── BUTTONS ── */
.btn-green {
  background: var(--green-dark);
  color: white;
  padding: 13px 26px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(22,163,74,0.25);
  cursor: pointer;
}
.btn-green:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,163,74,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 13px 26px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-white {
  background: white;
  color: var(--navy);
  padding: 13px 26px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-white:hover { background: var(--green-pale); }
.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 13px 26px;
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* ── SECTION UTILITIES ── */
.section { padding: 96px 64px; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-kicker::before { content: ''; width: 20px; height: 2px; background: var(--green-dark); }
.section-h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.78;
  max-width: 560px;
  font-weight: 300;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy);
  padding: 100px 64px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.1) 0%, transparent 65%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
  font-weight: 600;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 800px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.78;
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 36px;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy);
  padding: 96px 64px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 65%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}
.cta-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.cta-band h2 em { font-style: normal; color: var(--green-mid); }
.cta-band p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.78;
  font-weight: 300;
}
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.cta-action:hover {
  border-color: rgba(22,163,74,0.3);
  background: rgba(22,163,74,0.07);
}
.cta-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-action-icon svg { color: var(--green-dark); }
.cta-action-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.cta-action-sub { font-size: 0.74rem; color: rgba(255,255,255,0.38); }
.cta-action-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}
.cta-action:hover .cta-action-arrow {
  color: var(--green-mid);
  transform: translateX(4px);
}

/* ── FORM STYLES ── */
.apex-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.apex-form input,
.apex-form select,
.apex-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  margin-bottom: 18px;
}
.apex-form input:focus,
.apex-form select:focus,
.apex-form textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.apex-form textarea { min-height: 120px; resize: vertical; }

/* ── RESPONSIVE ── */
@media(max-width: 1100px) {
  .apex-nav-inner { padding: 0 32px; }
  .apex-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px 32px; }
  .page-hero { padding: 80px 32px 64px; }
  .cta-band { padding: 72px 32px; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media(max-width: 768px) {
  .apex-nav-inner { padding: 0 24px; }
  .apex-nav-links { display: none; }
  .apex-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .apex-nav-mobile-btn { display: flex; }
  .apex-footer { padding: 56px 24px 28px; }
  .apex-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 64px 24px; }
  .page-hero { padding: 72px 24px 56px; }
  .cta-band { padding: 64px 24px; }
}
