/* ============================================
   KOLOGIC.AI — Main Stylesheet
   Brand Guidelines v2.0 | Segoe UI | Navy/Teal/Blue
   ============================================ */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* === CSS VARIABLES — Official Kologic Brand === */
:root {
  /* Brand Colors */
  --primary-blue: #0078D4;
  --dark-navy: #1E2761;
  --accent-teal: #00B4D8;
  --light-blue: #4A9EFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-muted: #666666;
  --divider: #E0E0E0;
  --alt-row: #F0F4F8;
  --callout-bg: #F5F7FA;
  --success-green: #00C48C;
  --warning-amber: #FFB800;
  --error-red: #FF4D4D;

  /* Typography — Segoe UI per brand guidelines */
  --font: 'Segoe UI', Arial, Helvetica, sans-serif;

  /* Shadow System — from brand guidelines */
  --shadow-card: 0 2px 6px rgba(0,0,0,0.15);
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-footer: 0 -2px 4px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);

  /* Layout */
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Responsive Typography */
  --text-hero: clamp(2.8rem, 6vw, 4.2rem);
  --text-h2: clamp(1.8rem, 3.5vw, 2.5rem);
  --text-h3: 1.15rem;
  --text-body: 1rem;
  --text-body-lg: 1.05rem;
  --text-small: 0.9rem;
  --text-xs: 0.85rem;

  /* Spacing */
  --section-py: clamp(3.5rem, 8vw, 6rem);
  --section-px: clamp(1rem, 5vw, 2rem);

  /* Transitions — centralized durations */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* === BASE === */
body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === SKIP LINK (Accessibility) === */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--dark-navy); color: var(--text-light);
  padding: 0.8rem 1.5rem; border-radius: 0 0 8px 8px;
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* === HEADER / NAV === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.9rem 2rem;
  background: rgba(30, 39, 97, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(30, 39, 97, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.logo {
  font-size: 1.5rem; font-weight: 700; color: var(--text-light);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent-teal); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .nav-dropdown-toggle {
  color: rgba(255,255,255,0.75); font-size: var(--text-small);
  font-weight: 600; transition: color 0.2s; position: relative;
  cursor: pointer; background: none; border: none; font-family: var(--font);
  padding: 0; display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-links a:hover, .nav-links a.active,
.nav-links .nav-dropdown-toggle:hover { color: #fff; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-teal); border-radius: 1px;
}
/* Dropdown arrow */
.nav-dropdown-toggle svg { width: 12px; height: 12px; fill: currentColor; transition: transform var(--transition-fast); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -0.5rem; margin-top: 0.8rem;
  background: var(--dark-navy); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.5rem 0; min-width: 180px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:focus-within {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1.2rem; white-space: nowrap;
  font-size: var(--text-small); transition: background var(--transition-fast);
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--primary-blue); color: var(--text-light);
  padding: 0.6rem 1.5rem; border-radius: 8px;
  font-size: var(--text-small); font-weight: 600; transition: all 0.2s;
}
.nav-cta:hover { background: #006abc; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  position: absolute; left: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 9px; transform: rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark-navy); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  color: var(--text-light); font-size: 1.3rem; font-weight: 600;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent-teal); }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-blue); color: var(--text-light);
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: var(--text-body); transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #006abc; transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 120, 212, 0.35);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.25); color: var(--text-light);
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: var(--text-body); transition: all 0.2s;
  background: transparent; cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent-teal); background: rgba(0, 180, 216, 0.08); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--divider); color: var(--text-dark);
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: var(--text-body); transition: all 0.2s;
  background: transparent; cursor: pointer;
}
.btn-outline-dark:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--primary-blue);
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: var(--text-body); transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* === SECTION UTILITIES === */
.section { padding: var(--section-py) 0; }
.section--white { background: #fff; }
.section--gray { background: #EDF1F7; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section--navy { background: var(--dark-navy); }
.section--blue { background: var(--primary-blue); }

/* Soft gradient transitions between dark and light sections */
.section--navy + .section--white,
.section--navy + .section--gray,
.section--blue + .section--white,
.section--blue + .section--gray { position: relative; }
.section--navy + .section--white::before,
.section--navy + .section--gray::before,
.section--blue + .section--white::before,
.section--blue + .section--gray::before {
  content: ''; position: absolute; top: -60px; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, var(--dark-navy), transparent);
  pointer-events: none; z-index: 1;
}
.section--blue + .section--white::before,
.section--blue + .section--gray::before {
  background: linear-gradient(to bottom, var(--primary-blue), transparent);
}
/* Light to dark transition */
.section--white + .section--navy,
.section--gray + .section--navy,
.section--white + .section--blue,
.section--gray + .section--blue { position: relative; }
.section--white + .section--navy::before,
.section--gray + .section--navy::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, rgba(30,39,97,0), rgba(30,39,97,0.3));
  pointer-events: none; z-index: 1;
}
.section--white + .section--blue::before,
.section--gray + .section--blue::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, rgba(0,120,212,0), rgba(0,120,212,0.3));
  pointer-events: none; z-index: 1;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header h2 {
  font-size: var(--text-h2); font-weight: 700;
  color: var(--dark-navy); letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section-header h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent-teal); margin: 0.8rem auto 0; border-radius: 2px;
}
.section--navy .section-header h2,
.section--blue .section-header h2 { color: var(--text-light); }
.section--navy .section-header h2::after,
.section--blue .section-header h2::after { background: var(--warning-amber); }
.section-header p { color: var(--text-muted); font-size: var(--text-body-lg); margin-top: 1rem; }
.section--navy .section-header p,
.section--blue .section-header p { color: rgba(255,255,255,0.75); }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--dark-navy);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(0, 180, 216, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 75% 65%, rgba(0, 120, 212, 0.1) 0%, transparent 55%);
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 6rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 4px; background: var(--accent-teal);
}
.hero-content { max-width: 900px; text-align: center; position: relative; z-index: 3; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 184, 0, 0.12); border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--warning-amber); padding: 0.4rem 1.2rem; border-radius: 50px;
  font-size: var(--text-xs); font-weight: 700; margin-bottom: 2rem;
}
.hero-badge svg { width: 16px; height: 16px; fill: var(--warning-amber); }

.hero h1 {
  font-size: var(--text-hero); font-weight: 700; color: var(--text-light);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.hero h1 .highlight { color: var(--accent-teal); }

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,0.75);
  max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-channels {
  display: flex; gap: 2rem; justify-content: center; margin-top: 3.5rem;
  color: rgba(255,255,255,0.35); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* === FRAMEWORK TABS (How Our AI Thinks) === */
.fw-tabs {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.fw-tab {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); padding: 0.7rem 1.5rem; border-radius: 50px;
  font-family: var(--font); font-size: var(--text-small); font-weight: 600;
  cursor: pointer; transition: all var(--transition-base);
  display: flex; align-items: center; gap: 0.5rem;
}
.fw-tab:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.fw-tab.active { color: var(--text-light); }
.fw-tab.active[data-fw="empathy"] { background: rgba(0,120,212,0.15); border-color: var(--primary-blue); }
.fw-tab.active[data-fw="negotiate"] { background: rgba(0,180,216,0.15); border-color: var(--accent-teal); }
.fw-tab.active[data-fw="objection"] { background: rgba(0,196,140,0.15); border-color: var(--success-green); }
.fw-tab-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Framework Panels */
.fw-panel { display: none; max-width: 1100px; margin: 0 auto; }
.fw-panel.active { display: block; animation: fwFadeIn 0.3s ease; }
@keyframes fwFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

/* Metric badge */
.fw-metric {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.06); border: 1px solid;
  border-radius: 10px; padding: 0.8rem 1.2rem; margin-top: 0.5rem;
}
.fw-metric-val { font-size: 1.4rem; font-weight: 800; }
.fw-metric-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 600; }

/* Chat comparison */
.fw-chat-compare { display: flex; flex-direction: column; gap: 1rem;scale: 0.9;margin-top: -8%; }
.fw-chat-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.fw-label-generic { color: rgba(255,255,255,0.35); }
.fw-label-kologic { color: var(--accent-teal); }
.fw-label-dot { width: 6px; height: 6px; border-radius: 50%; }

.fw-chatbox { border-radius: var(--radius); padding: 1rem; }
.fw-chatbox-generic { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.fw-chatbox-kologic { border: 1.5px solid; }

.fw-msg { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.7rem; }
.fw-msg:last-child { margin-bottom: 0; }
.fw-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.fw-avatar-user { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }
.fw-avatar-generic { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); }
.fw-avatar-kologic { color: var(--dark-navy); }

.fw-bubble {
  font-size: 0.83rem; line-height: 1.5; border-radius: 10px;
  padding: 0.5rem 0.8rem; max-width: 88%;
}
.fw-bubble-user { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.fw-bubble-generic { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.06); }
.fw-bubble-kologic { color: rgba(255,255,255,0.8); }

.fw-vs {
  text-align: center; font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.2); text-transform: uppercase;
  letter-spacing: 0.15em; padding: 0.2rem 0; position: relative;
}
.fw-vs::before, .fw-vs::after {
  content: ''; position: absolute; top: 50%; height: 1px;
  background: rgba(255,255,255,0.06); width: 35%;
}
.fw-vs::before { left: 0; }
.fw-vs::after { right: 0; }

@media (max-width: 768px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fw-tabs { gap: 0.4rem; }
  .fw-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* === HERO EVOLUTION INFOGRAPHIC === */
.hero-evolution {
  display: flex; gap: 1.5rem; justify-content: center; align-items: center;
  margin-top: 3.5rem; flex-wrap: wrap;
}
.evo-row {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; padding: 0.5rem 0.7rem 0.5rem 1rem;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.evo-row:hover {
  border-color: rgba(0, 180, 216, 0.4);
  background: rgba(0, 180, 216, 0.06);
}
.evo-from {
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
}
.evo-arrow {
  color: var(--accent-teal); display: flex; align-items: center;
  flex-shrink: 0;
}
.evo-to {
  font-size: 0.85rem; font-weight: 700; color: var(--accent-teal);
  text-transform: uppercase; letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .hero-evolution { flex-direction: column; gap: 0.8rem; }
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--dark-navy);
  background-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 65%);
  padding: 8rem 2rem 4rem;
  text-align: center; position: relative;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 3px; background: var(--accent-teal);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  color: var(--text-light); letter-spacing: -0.02em; margin-bottom: 1rem;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.75);
  max-width: 600px; margin: 0 auto;
}

/* === TRUST BAR (Scrolling Logo Carousel) === */
.trust-bar {
  background: linear-gradient(to bottom, #f8fafc, #fff);
  padding: 3.5rem 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.trust-bar p {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  padding: 0 2rem;
}
.trust-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  gap: 1rem;
}
.trust-track:hover { animation-play-state: paused; }
.trust-set {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}
.trust-logo {
  flex-shrink: 0;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-navy);
  white-space: nowrap;
  opacity: 0.65;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-base);
  cursor: pointer;
}
.trust-logo:hover {
  opacity: 1;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
  transform: translateY(-2px);
}
/* When using actual images */
.trust-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}
.trust-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1rem; }
  .trust-set { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* === STAT CARDS === */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-item {
  background: #fff; border-radius: var(--radius); padding: 2rem 1rem;
  box-shadow: var(--shadow-card); transition: transform 0.2s; text-align: center;
}
.stat-item:hover { transform: translateY(-3px); }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--dark-navy); letter-spacing: -0.02em;
}
.stat-number .accent { color: var(--accent-teal); }
.stat-label { font-size: var(--text-small); color: var(--text-muted); margin-top: 0.4rem; font-weight: 500; }

/* === SERVICE CARDS === */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 2.2rem; transition: all 0.25s; box-shadow: var(--shadow-subtle);
}
.card:hover {
  border-color: var(--primary-blue); transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0, 180, 216, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.3rem;
}
.card h3 { font-size: var(--text-h3); font-weight: 600; color: var(--dark-navy); margin-bottom: 0.6rem; }
.card p { font-size: var(--text-body); color: var(--text-muted); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--primary-blue); font-size: var(--text-small); font-weight: 600;
  margin-top: 1rem; transition: gap 0.2s;
}
.card-link:hover { gap: 0.6rem; }

/* === CALLOUT CARDS (teal left border) === */
.callout-card {
  background: #fff; border-radius: var(--radius); padding: 2.5rem 2.2rem;
  border-left: 4px solid var(--accent-teal);
  box-shadow: var(--shadow-card);
}
.callout-card h3 {
  font-size: var(--text-h3); font-weight: 700; color: var(--dark-navy);
  margin-bottom: 0.8rem;
}
.callout-card p { font-size: var(--text-body); color: var(--text-muted); line-height: 1.7; }

/* === TEAL ACCENT BAR === */
.teal-bar {
  width: 60%; height: 4px; background: var(--accent-teal);
  margin: 0 auto; border-radius: 2px;
}

/* === PARTNER BADGE === */
.partner-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 184, 0, 0.12); border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--warning-amber); padding: 0.4rem 1.2rem; border-radius: 50px;
  font-size: var(--text-xs); font-weight: 700;
}
.partner-badge svg { width: 16px; height: 16px; fill: var(--warning-amber); }
.partner-badge--lg { font-size: 1rem; padding: 0.5rem 1.5rem; }
.partner-badge--lg svg { width: 20px; height: 20px; }

/* === TIMELINE / PROCESS === */
.timeline {
  display: flex; align-items: flex-start; gap: 0; position: relative;
  max-width: 1000px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; top: 24px; left: 40px; right: 40px;
  height: 3px; background: var(--divider);
}
.timeline-step {
  flex: 1; text-align: center; position: relative; padding: 0 0.5rem;
}
.timeline-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-blue); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem;
  position: relative; z-index: 2;
  box-shadow: var(--shadow-card);
}
.timeline-step h4 { font-size: var(--text-small); font-weight: 700; color: var(--dark-navy); margin-bottom: 0.3rem; }
.timeline-step p { font-size: 0.8rem; color: var(--text-muted); }

/* === CASE STUDY CARDS === */
.case-card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  overflow: hidden; transition: all 0.25s; box-shadow: var(--shadow-subtle);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-card-img {
  height: 140px; background: var(--alt-row);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 600; padding: 1.5rem;
}
.case-card-img img {
  max-height: 60px; width: auto; object-fit: contain;
  filter: grayscale(30%); opacity: 0.85;
  transition: all var(--transition-base);
}
.case-card:hover .case-card-img img { filter: grayscale(0%); opacity: 1; }
.case-card-body { padding: 1.5rem; }
.case-card-tag {
  display: inline-block; background: rgba(0, 180, 216, 0.12);
  color: var(--accent-teal); font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.case-card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark-navy); margin-bottom: 0.5rem; }
.case-card-body p { font-size: var(--text-small); color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.case-card-metric {
  font-size: 1.3rem; font-weight: 700; color: var(--accent-teal);
}
.case-card-metric span { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; display: block; }
.case-tech {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 600;
  padding-top: 0.8rem; border-top: 1px solid var(--divider); letter-spacing: 0.02em;
}

/* === CHANNEL GRID === */
.channel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem;
}
.channel-item {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; transition: all 0.2s;
  box-shadow: var(--shadow-subtle);
}
.channel-item:hover { border-color: var(--accent-teal); transform: translateY(-2px); }
.channel-item .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.channel-item p { font-size: 0.8rem; font-weight: 600; color: var(--dark-navy); }

/* === CONTACT FORM === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: var(--text-small); font-weight: 600; color: var(--dark-navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font); font-size: var(--text-body);
  padding: 0.75rem 1rem; border: 1.5px solid var(--divider);
  border-radius: 8px; transition: border-color 0.2s; outline: none;
  background: #fff; color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-blue); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .error-msg {
  font-size: 0.8rem; color: var(--error-red); margin-top: 0.3rem; display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--error-red); }
.form-group.has-error .error-msg { display: block; }

/* === TWO COLUMN LAYOUT === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* === TEAM GRID === */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 130px; height: 130px; border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: all var(--transition-base);
  border: none;
}
.team-avatar:hover {
  box-shadow: 0 10px 28px rgba(0,120,212,0.2);
  transform: scale(1.06);
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark-navy); margin-bottom: 0.3rem; }
.team-card .role { font-size: var(--text-small); color: var(--primary-blue); font-weight: 600; }
.team-card p { font-size: var(--text-small); color: var(--text-muted); margin-top: 0.6rem; line-height: 1.5; }

/* === CTA BANNER === */
.cta-banner { text-align: center; }
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-light);
  font-weight: 700; margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: var(--text-body-lg); }

/* === FOOTER === */
.footer {
  background: var(--dark-navy); padding: 4rem 2rem 2rem;
  box-shadow: var(--shadow-footer);
}
.footer-grid {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.5); font-size: var(--text-small);
  margin-top: 1rem; line-height: 1.6;
}
.footer h4 {
  color: var(--accent-teal); font-size: var(--text-xs); font-weight: 700;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a {
  color: rgba(255,255,255,0.5); font-size: var(--text-small); transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent-teal); }
.footer-bottom {
  max-width: var(--container-max); margin: 3rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.gold-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--warning-amber); font-size: 0.8rem; font-weight: 700;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Counter animation handled by JS */
.counter { display: inline-block; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* === FOCUS STYLES === */
:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-channels { flex-wrap: wrap; gap: 1rem; }
  .timeline { flex-direction: column; gap: 1.5rem; }
  .timeline::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
}

/* === FORM HOVER & PLACEHOLDER === */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #94a3b8; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(102,102,102,0.5); }

/* === CSS :has() — form validation without JS class toggling === */
@supports selector(:has(*)) {
  .form-group:has(input:user-invalid) input,
  .form-group:has(select:user-invalid) select,
  .form-group:has(textarea:user-invalid) textarea { border-color: var(--error-red); }
  .form-group:has(input:user-invalid) .error-msg,
  .form-group:has(textarea:user-invalid) .error-msg { display: block; }
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--dark-navy); color: var(--text-light);
  padding: 1rem 2rem; border-radius: var(--radius);
  font-size: var(--text-small); font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 9999; opacity: 0;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  border-left: 4px solid var(--success-green);
}
.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--dark-navy); color: rgba(255,255,255,0.8);
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  font-size: var(--text-small);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { max-width: 600px; line-height: 1.5; }
.cookie-banner a { color: var(--accent-teal); text-decoration: underline; }
.cookie-btn {
  background: var(--primary-blue); color: var(--text-light);
  padding: 0.5rem 1.2rem; border-radius: 6px; border: none;
  font-family: var(--font); font-size: var(--text-small); font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background var(--transition-fast);
}
.cookie-btn:hover { background: #006abc; }
.cookie-btn--outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
}
.cookie-btn--outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

/* === SCROLL-DRIVEN ANIMATIONS (CSS-native) === */
@supports (animation-timeline: view()) {
  .scroll-reveal {
    animation: scrollFadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  @keyframes scrollFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* === NAV LINK UNDERLINE ANIMATION === */
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent-teal); border-radius: 1px;
  transition: width var(--transition-base);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --divider: #334155;
    --alt-row: #1e293b;
    --callout-bg: #0f172a;
  }
  body { background: #0b1120; }

  .section--white { background: #0f172a; }
  .section--gray { background: #0b1120; border-color: #1e293b; }

  .card, .callout-card, .case-card, .stat-item, .channel-item {
    background: #1e293b; border-color: #334155;
  }
  .card:hover, .case-card:hover, .channel-item:hover { border-color: var(--accent-teal); }

  .trust-bar { background: #0f172a; }
  .trust-logos { opacity: 0.5; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: #1e293b; color: #e2e8f0; border-color: #334155;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--primary-blue); }

  .case-card-img { background: #1e293b; }
  .team-avatar { background: #1e293b; border-color: #334155; }

  .header {
    background: rgba(11, 17, 32, 0.92);
    border-bottom-color: rgba(255,255,255,0.06);
  }
}

/* === PRINT STYLES === */
@media print {
  .header, .mobile-nav, .menu-toggle, .cookie-banner, .toast,
  .skip-link, .cta-banner, .nav-cta { display: none !important; }

  body { color: #000; background: #fff; font-size: 12pt; }
  .hero, .page-hero {
    background: #fff !important; color: #000 !important;
    min-height: auto; padding: 2rem 0;
  }
  .hero h1, .page-hero h1, .hero p, .page-hero p { color: #000 !important; }
  .hero::after, .page-hero::after { display: none; }
  .hero-badge { color: #333 !important; border-color: #ccc !important; background: #f5f5f5 !important; }

  .section { padding: 1.5rem 0; }
  .section--navy, .section--blue { background: #fff !important; }
  .section--navy h2, .section--blue h2,
  .section--navy p, .section--blue p { color: #000 !important; }

  .footer { background: #fff !important; color: #000 !important; padding: 1rem 0; }
  .footer h4, .footer a, .footer p, .footer-brand p,
  .footer-bottom p { color: #333 !important; }

  .card, .callout-card, .stat-item, .case-card, .channel-item {
    box-shadow: none; border: 1px solid #ddd; break-inside: avoid;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  .logo a[href]::after, .nav-links a[href]::after, .btn-primary::after,
  .btn-white::after, .btn-outline::after { content: none; }
}
