/* ============================================================
   CX Direct – styles.css
   Apple-inspired design system
   ============================================================ */

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

:root {
  --white:       #ffffff;
  --near-black:  #1d1d1f;
  --gray:        #6e6e73;
  --gray-mid:    #86868b;
  --light-bg:    #f5f5f7;
  --border:      #d2d2d7;
  --blue:        #0071e3;
  --blue-dark:   #0055b3;
  --blue-light:  #147ce5;
  --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.12);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font);
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
h5 { font-size: 1rem;    font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1rem; line-height: 1.7; color: var(--gray); }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--light-bg); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title  { color: var(--near-black); margin-bottom: 16px; }
.section-desc   { font-size: 1.1rem; color: var(--gray); line-height: 1.65; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,113,227,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ---- Scroll Animations ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text-fallback {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--near-black);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 980px;
  padding: 7px 16px;
  margin-left: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

/* Dark-hero pages – invert logo & lighten links before scroll */
.navbar.nav-on-dark .logo-img {
  filter: invert(1);
}
.navbar.nav-on-dark .nav-link:not(.nav-cta):not(.nav-portal) {
  color: rgba(255,255,255,0.88);
}
.navbar.nav-on-dark .nav-link:not(.nav-cta):not(.nav-portal):hover {
  color: var(--white);
}
.navbar.nav-on-dark .nav-portal {
  color: rgba(255,255,255,0.7) !important;
}
.navbar.nav-on-dark .nav-portal:hover {
  color: var(--white) !important;
}
.navbar.nav-on-dark .hamburger span {
  background: var(--white);
}

/* Solutions dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 1px 0 rgba(0,0,0,0.06);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

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

/* Bridge the gap so mouse can travel from toggle to menu without losing hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--near-black);
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(0,113,227,0.07);
  color: var(--blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,55,179,.08) 0%, transparent 60%),
    linear-gradient(160deg, #f5f5f7 0%, #ffffff 50%, #eef4ff 100%);
  z-index: 0;
}

/* animated orbs */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}
.hero-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,113,227,.18), transparent);
  top: -100px; right: -200px;
}
.hero-bg::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,210,255,.15), transparent);
  bottom: 0; left: -100px;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(0,113,227,.08);
  border-radius: 980px;
  border: 1px solid rgba(0,113,227,.15);
}

.hero-headline {
  color: var(--near-black);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #0071e3, #64b5f6, #0071e3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-mid);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--near-black);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.12);
}

.stat-number,
.stat-text {
  display: inline-block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
  vertical-align: super;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-dark {
  background: var(--near-black);
  border-color: rgba(255,255,255,.08);
}
.card-dark h4 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,.55); }

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.card-icon svg { width: 100%; height: 100%; }

.card-icon-white { color: rgba(255,255,255,.7); }

/* ============================================================
   CRM FEATURE
   ============================================================ */
.crm-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.crm-feature-img { height: 360px; overflow: hidden; }
.crm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.crm-feature:hover .crm-img { transform: scale(1.03); }
.crm-img-fallback { background: linear-gradient(135deg, #0055b3, #0071e3); }

.crm-feature-text {
  padding: 40px 48px 40px 8px;
}
.crm-feature-text h3 { margin-bottom: 16px; }

/* ============================================================
   BADGE ROW
   ============================================================ */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--near-black);
}
.trust-badge-icon { font-size: 1rem; }

/* ============================================================
   TWO COL
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.two-col-text .section-title { margin-top: 8px; }
.two-col-text .section-desc  { margin-top: 12px; margin-bottom: 28px; }

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--near-black);
}

.feature-check {
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Avaya Callout */
.avaya-callout {
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  position: sticky;
  top: 80px;
}

.avaya-callout-logo {
  height: 40px;
  margin-bottom: 24px;
}
.partner-logo-large {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.avaya-callout h3 { color: var(--white); margin-bottom: 12px; }
.avaya-callout p  { color: rgba(255,255,255,.6); margin-bottom: 28px; }

.callout-stats { display: flex; gap: 32px; }
.callout-stat-num   { display: block; font-size: 1.8rem; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }
.callout-stat-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   ANALYTICS
   ============================================================ */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.analytics-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.analytics-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.analytics-icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
  flex-shrink: 0;
}
.analytics-icon svg { width: 100%; height: 100%; }

.analytics-feature h4 { margin-bottom: 6px; }

.analytics-partners { text-align: center; }
.partners-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-mid); margin-bottom: 20px; }

.analytics-partner-logos {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.analytics-partner-tile {
  padding: 16px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 72px;
}

.analytics-partner-tile img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.section-ai {
  background: #0a0a0f;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.ai-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,113,227,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,113,227,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.section-eyebrow-light { color: #64b5f6; }
.section-title-light   { color: var(--white); }
.section-desc-light    { color: rgba(255,255,255,.55); }

.ai-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.ai-pillar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.ai-pillar:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(0,113,227,.4);
  transform: translateY(-3px);
}

.ai-pillar-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ai-pillar h4   { color: var(--white); margin-bottom: 8px; }
.ai-pillar p    { color: rgba(255,255,255,.5); font-size: 0.9rem; }

.ai-platforms-title {
  color: var(--white);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* AI Platform Grid */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.ai-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.ai-tile:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,113,227,.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,113,227,.2);
}

.ai-tile-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-tile-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.ai-tile:hover .ai-tile-logo img { opacity: 1; }

/* Text fallback for logo */
.ai-logo-fallback {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Initials tile (e.g. MJ for Midjourney) */
.ai-tile-logo-text {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-tile-logo-text span {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.ai-tile-info h5 { color: var(--white); font-size: 0.78rem; margin-bottom: 4px; }
.ai-tile-info p  { color: rgba(255,255,255,.45); font-size: 0.7rem; line-height: 1.4; }

/* Brand-specific accent colours on hover */
.ai-tile[data-brand="openai"]:hover     { border-color: rgba(16,163,127,.6); }
.ai-tile[data-brand="microsoft"]:hover  { border-color: rgba(0,120,212,.6); }
.ai-tile[data-brand="google"]:hover     { border-color: rgba(66,133,244,.6); }
.ai-tile[data-brand="anthropic"]:hover  { border-color: rgba(204,120,92,.6); }
.ai-tile[data-brand="salesforce"]:hover { border-color: rgba(0,161,224,.6); }
.ai-tile[data-brand="hubspot"]:hover    { border-color: rgba(255,122,89,.6); }
.ai-tile[data-brand="aws"]:hover        { border-color: rgba(255,153,0,.6); }
.ai-tile[data-brand="ibm"]:hover        { border-color: rgba(21,112,219,.6); }
.ai-tile[data-brand="tableau"]:hover    { border-color: rgba(233,82,43,.6); }
.ai-tile[data-brand="meta"]:hover       { border-color: rgba(24,119,242,.6); }
.ai-tile[data-brand="github"]:hover     { border-color: rgba(240,246,252,.4); }
.ai-tile[data-brand="zapier"]:hover     { border-color: rgba(255,74,27,.6); }

/* ============================================================
   IMPLEMENTATION PROCESS
   ============================================================ */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.process-step-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.process-step h4 { margin-bottom: 8px; }

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), rgba(0,113,227,.2));
  margin-top: 56px;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.two-col-about { align-items: start; }
.two-col-about .two-col-text p { margin-bottom: 0; }

.about-badges {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.about-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-badge-num   { font-size: 2.2rem; font-weight: 700; color: var(--near-black); letter-spacing: -0.04em; line-height: 1; }
.about-badge-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-mid); }

/* Timeline */
.two-col-timeline { padding: 8px 0; }
.timeline-heading { margin-bottom: 32px; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(0,113,227,.1));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 0;
  padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  position: absolute;
  left: -80px;
  top: 2px;
  width: 68px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}

.timeline-content h5 { margin-bottom: 4px; }

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section { padding: 80px 0; }

.partners-logo-strip {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.partner-logo-item {
  flex: 1;
  min-width: 140px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.partner-logo-item:last-child { border-right: none; }
.partner-logo-item:hover { background: var(--light-bg); }

.partner-logo-item img {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition);
}
.partner-logo-item:hover img { filter: grayscale(0); opacity: 1; }

.logo-name-fallback {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: -0.01em;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,113,227,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-info-item h5 { margin-bottom: 4px; color: var(--near-black); }
.contact-info-item p  { font-size: 0.95rem; }
.contact-link { color: var(--blue); }
.contact-link:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--near-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--near-black);
  background: var(--light-bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--near-black);
  color: var(--white);
  padding: 72px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  margin-bottom: 16px;
}

.footer-logo-fallback {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}

.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-phone {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-phone:hover { color: var(--white); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-col h5 {
  color: rgba(255,255,255,.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-nav-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,.35); }

.footer-abn a {
  color: rgba(255,255,255,.35);
  transition: var(--transition);
}
.footer-abn a:hover { color: rgba(255,255,255,.6); }

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

/* Tablet – max 1024px */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-pillars { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

/* Tablet small – max 768px */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(300px, 100vw);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
    transition: right var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; padding: 10px 12px; width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
    padding: 4px 0 4px 8px;
    margin-top: 2px;
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s, padding 0.25s;
    pointer-events: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown-item { font-size: 0.95rem; padding: 8px 12px; color: var(--near-black); }

  /* Hero */
  .hero-headline br { display: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  /* Cards */
  .cards-grid,
  .cards-grid-5 { grid-template-columns: 1fr 1fr; }

  /* CRM feature */
  .crm-feature { grid-template-columns: 1fr; }
  .crm-feature-img { height: 240px; }
  .crm-feature-text { padding: 32px; }

  /* Two-col */
  .two-col { grid-template-columns: 1fr; gap: 48px; }

  /* Analytics */
  .analytics-grid { grid-template-columns: 1fr; }

  /* AI */
  .ai-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-pillars { grid-template-columns: 1fr 1fr; }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .process-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--blue), rgba(0,113,227,.2));
    margin: 0;
  }

  /* Partners strip */
  .partners-logo-strip { flex-direction: column; }
  .partner-logo-item {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .partner-logo-item:last-child { border-bottom: none; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile – max 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cards-grid,
  .cards-grid-5 { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-badges { gap: 16px; }
  .footer-nav { grid-template-columns: 1fr; }
  .analytics-partner-logos { flex-direction: column; }
}

/* ============================================================
   PAGE HERO (inner pages – not full viewport)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 50%, #1a1a2e 100%);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero .hero-eyebrow { color: rgba(255,255,255,0.5); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero .page-hero-sub { color: rgba(255,255,255,0.7); font-size: 1.2rem; max-width: 600px; margin: 1rem auto 0; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--near-black);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.cta-strip .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SERVICES OVERVIEW GRID (home page)
   ============================================================ */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-overview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-overview-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-overview-card .card-icon { margin-bottom: 16px; }
.service-overview-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-overview-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.service-overview-card .learn-more {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  margin-top: auto;
}
.service-overview-card .learn-more:hover { gap: 8px; }

@media (max-width: 768px) {
  .services-overview-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 480px) {
  .services-overview-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV PORTAL LINK
   ============================================================ */
.nav-portal {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--near-black) !important;
  border: 1.5px solid var(--border);
  padding: 6px 16px;
  border-radius: 980px;
  margin-left: 6px;
}
.nav-portal:hover { border-color: var(--blue); color: var(--blue) !important; }

/* ============================================================
   FOOTER EMAIL
   ============================================================ */
.footer-email {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  display: block;
  margin-top: 4px;
  transition: var(--transition);
}
.footer-email:hover { color: var(--white); }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.page-hero-light {
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  color: var(--near-black);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-light .section-eyebrow { color: var(--blue); }
.page-hero-light h1 { color: var(--near-black); font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero-light p { color: var(--gray); font-size: 1.2rem; max-width: 600px; margin: 1rem auto 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.news-card-body { padding: 24px; }
.news-card-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.news-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0,113,227,.08);
  padding: 3px 8px;
  border-radius: 4px;
}
.news-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.news-card-body p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; }
.news-date { font-size: 0.8rem; color: var(--gray-mid); }
.news-read-more { font-size: 0.85rem; font-weight: 600; color: var(--blue); }
.news-read-more:hover { gap: 8px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARTICLE LAYOUT – sidebar + content
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 56px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.article-sidebar h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 12px;
  padding-left: 14px;
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}

.article-sidebar ul li a {
  display: block;
  padding: 7px 14px;
  font-size: 0.81rem;
  color: var(--gray);
  line-height: 1.4;
  transition: color 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.article-sidebar ul li a:hover { color: var(--blue); }

.article-sidebar ul li a.active {
  color: var(--near-black);
  font-weight: 600;
  border-left-color: var(--blue);
}

.article-content { min-width: 0; }

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .article-sidebar ul { border-left: none; }
  .article-sidebar ul li a { border-left: none; padding-left: 0; }
}

/* ============================================================
   PRIVACY / T&C POLICY PAGES
   ============================================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.policy-section {
  margin-bottom: 48px;
}
.policy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--near-black);
}
.policy-section p {
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.75;
}
.policy-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.policy-section ul li {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ============================================================
   CONTACT DETAIL ITEM (contact.html)
   ============================================================ */
.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,113,227,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.1rem;
}

/* ============================================================
   AI PLATFORM MODAL POPUP
   ============================================================ */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(3px);
}
.ai-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.ai-modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.4,0.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
.ai-modal-overlay.open .ai-modal-card {
  transform: translateY(0) scale(1);
}
.ai-modal-header {
  padding: 36px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.ai-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.09);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ai-modal-close:hover { background: rgba(0,0,0,0.16); }
.ai-modal-logo-wrap {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--brand-bg, #f0f4ff);
}
.ai-modal-logo-wrap img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}
.ai-modal-logo-initials {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand, #7c3aed);
  font-family: var(--font-head);
}
.ai-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.ai-modal-body {
  padding: 0 32px 32px;
}
.ai-modal-tagline {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 14px;
  color: var(--brand, #0078d4);
}
.ai-modal-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 22px;
}
.ai-modal-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin: 0 0 10px;
}
.ai-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.ai-modal-features li {
  font-size: 0.855rem;
  color: var(--dark);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid #f2f2f2;
  line-height: 1.4;
}
.ai-modal-features li:last-child { border-bottom: none; }
.ai-modal-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #0078d4);
}
.ai-modal-bestfor {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand, #0078d4);
}
.ai-modal-bestfor p {
  font-size: 0.84rem;
  color: #555;
  margin: 6px 0 0;
  line-height: 1.6;
  font-style: italic;
}
