/* ============================================================
   TRAPEZOID — Global Design System
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* CSS VARIABLES */
:root {
  /* Dark teal palette — matching product dashboard */
  --navy:       #1A2F38;
  --navy-2:     #223A44;
  --navy-3:     #2C4751;
  --navy-4:     #38555F;
  /* Teal accent — from dashboard charts */
  --teal:       #4A8B8B;
  --teal-2:     #3D7A7A;
  --teal-3:     #2D6464;
  --teal-lt:    #E8F4F4;
  --teal-dim:   rgba(74,139,139,0.10);
  --blue:       #3D7A7A;
  --white:      #FFFFFF;
  /* Light surface palette — clean white like dashboard */
  --g-50:       #F7F9FB;
  --g-100:      #EFF3F6;
  --g-200:      #E2E8ED;
  --g-300:      #CBD5DE;
  --g-400:      #94A3B8;
  --g-500:      #64748B;
  --g-600:      #475569;
  --g-700:      #334155;
  --g-800:      #1E293B;
  --g-900:      #0F172A;
  --amber:      #F59E0B;
  --purple:     #7C3AED;
  --rose:       #BE123C;
  --success:    #10B981;
  --danger:     #EF4444;
  /* Dashboard chart colors */
  --chart-green:  #10B981;
  --chart-purple: #8B5CF6;
  --chart-pink:   #EC4899;
  --chart-orange: #F97316;
  --chart-cyan:   #06B6D4;
  --chart-yellow: #EAB308;

  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --rad-xs:   4px;
  --rad-sm:   6px;
  --rad:      10px;
  --rad-lg:   14px;
  --rad-xl:   20px;
  --rad-2xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.20);
  --shadow-dark:0 24px 80px rgba(0,0,0,.50);

  --nav-h: 76px;
  --max-w: 1200px;
  --section-py: 5rem;
}

/* BASE TYPOGRAPHY */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--g-800);
  background: #F6F9F8;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--g-900);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--g-600); line-height: 1.7; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-sm { max-width: 760px; }
.container-lg { max-width: 1400px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,250,249,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--g-200);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(248,250,249,0.99);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 2.5rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(74,139,139,0.4)) drop-shadow(0 0 24px rgba(74,139,139,0.2)) drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--g-800);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(74,139,139,0.35), 0 0 20px rgba(74,139,139,0.15), 0 0 2px rgba(0,0,0,0.06);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 14px;
  font-size: 14px;
  color: var(--g-700);
  cursor: pointer;
  gap: 4px;
  transition: color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: var(--navy); }
.nav-item.ai-nav { color: var(--teal); font-weight: 500; }
.nav-item.ai-nav:hover { color: #8BBFBF; }
.nav-item svg.chevron {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform 0.2s;
  opacity: 0.7;
}
.nav-item.menu-open svg.chevron { transform: rotate(180deg); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* MEGA MENU */
.mega-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--g-100);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 999;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 320px;
}
.mega-col-products {
  background: var(--g-50);
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--g-200);
}
.mega-col-help {
  padding: 1.75rem 2rem;
  background: white;
}
.mega-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-400);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-col-label .accent-bar {
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.mega-product-list { display: flex; flex-direction: column; gap: 2px; }
.mega-product-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--rad);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}
.mega-product-item:hover { background: var(--g-100); border-color: var(--g-200); }
.mega-product-item.ai-item { background: rgba(74,139,139,0.05); border-color: rgba(74,139,139,0.15); }
.mega-product-item.ai-item:hover { background: rgba(74,139,139,0.1); }
.mega-product-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-product-icon svg { width: 16px; height: 16px; }
.mega-product-name { font-size: 13px; font-weight: 500; color: var(--g-800); }
.mega-product-name.ai { color: var(--teal-2); }
.mega-product-sub { font-size: 11px; color: var(--g-400); margin-top: 1px; }
.new-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 700;
  background: var(--teal-lt); color: var(--teal-2);
  border-radius: 4px; padding: 1px 5px;
  margin-left: 6px; vertical-align: middle;
  letter-spacing: 0.03em;
}
.mega-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-help-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--rad);
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}
.mega-help-item:hover { background: var(--g-50); border-color: var(--g-200); }
.mega-help-item.ai { background: rgba(74,139,139,0.04); border-color: rgba(74,139,139,0.18); }
.mega-help-item.ai:hover { background: rgba(74,139,139,0.08); }
.mega-help-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.mega-help-icon svg { width: 13px; height: 13px; }
.mega-help-title { font-size: 13px; font-weight: 500; color: var(--g-800); }
.mega-help-title.ai { color: var(--teal-2); }
.mega-help-desc { font-size: 11px; color: var(--g-500); line-height: 1.45; margin-top: 2px; }
.mega-help-product { font-size: 10px; font-weight: 500; color: var(--g-400); margin-top: 3px; }
.mega-help-product.ai { color: var(--teal-2); }
.mega-footer-bar {
  border-top: 1px solid var(--g-200);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  max-width: var(--max-w);
  margin: 0 auto;
}
.mega-footer-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mega-footer-chips span { font-size: 11px; color: var(--g-400); }
.mega-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--g-200);
  color: var(--g-500);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.mega-chip:hover { border-color: var(--g-400); color: var(--g-700); }
.mega-chip.ai { border-color: rgba(74,139,139,0.3); color: var(--teal-2); background: rgba(74,139,139,0.04); }
.mega-chip svg { width: 10px; height: 10px; }
.mega-view-all {
  font-size: 12px; font-weight: 500;
  color: var(--teal-2);
  display: flex; align-items: center; gap: 5px;
  text-decoration: none;
  transition: gap 0.15s;
}
.mega-view-all:hover { gap: 8px; }
.mega-view-all svg { width: 12px; height: 12px; }

/* Simple nav dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(var(--nav-h) - 4px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 999;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--g-700);
  border-radius: var(--rad-sm);
  transition: background 0.12s;
}
.nav-dropdown a:hover { background: var(--g-50); color: var(--g-900); }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--rad);
  padding: 0 20px;
  height: 42px;
  transition: all 0.18s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--teal-2);
  border-color: var(--teal-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,139,139,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--g-700);
  border-color: var(--g-300);
}
.btn-secondary:hover {
  background: var(--g-50);
  border-color: var(--g-400);
  color: var(--g-900);
}
.btn-outline {
  background: transparent;
  color: var(--teal-2);
  border-color: var(--teal-2);
}
.btn-outline:hover { background: var(--teal-dim); }
.btn-ghost-dark {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
.btn-light {
  background: white;
  color: var(--g-800);
  border-color: var(--g-200);
}
.btn-light:hover { background: var(--g-50); border-color: var(--g-300); box-shadow: var(--shadow-sm); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; border-radius: var(--rad-lg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--rad-sm); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--rad-sm); }

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */
.section { padding: var(--section-py) 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 6rem 0; }
.section-dark { background: linear-gradient(170deg, #EDF3F2 0%, #F4F7F6 100%); }
.section-darker { background: linear-gradient(170deg, #E9EFEE 0%, #F1F5F4 100%); }
.section-light { background: linear-gradient(175deg, #F3F7F6 0%, #F8FAF9 100%); }
.section-white { background: #F8FAF9; }
.section-teal { background: linear-gradient(135deg, rgba(74,139,139,0.08), rgba(61,122,122,0.05)); }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 0.75rem;
}
.section-eyebrow svg { width: 14px; height: 14px; }
.section-eyebrow.white { color: var(--teal); }
.section-h { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; color: var(--g-900); }
.section-h.white { color: var(--g-900); }
.section-sub {
  font-size: 17px;
  color: var(--g-600);
  line-height: 1.7;
  max-width: 540px;
}
.section-sub.white { color: var(--g-500); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 1rem; }
.grid-60-40 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.grid-40-60 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.grid-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: linear-gradient(165deg, #EFF5F4 0%, #F5F8F7 40%, #F2F6F5 100%);
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(74,139,139,0.12) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(74,139,139,0.07) 1px, transparent 1px);
  background-size: 28px 28px, 44px 44px;
  background-position: 0 0, 14px 14px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,139,139,0.12) 0%, transparent 65%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,139,139,0.08) 0%, transparent 65%);
  bottom: -150px; left: 50px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,139,139,0.12);
  border: 1px solid rgba(74,139,139,0.28);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 1.4rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-badge span { font-size: 12px; font-weight: 500; color: var(--teal); letter-spacing: 0.03em; }
.hero h1 { color: var(--g-900); margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--teal); }
.hero-sub {
  font-size: 18px;
  color: var(--g-600);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g-400); }
.proof-item svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }
.hero-screen {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rad-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  position: relative;
}
.screen-topbar {
  background: var(--navy-3);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.screen-dot { width: 9px; height: 9px; border-radius: 50%; }
.screen-title { font-size: 11px; color: var(--g-400); margin-left: 6px; flex: 1; }
.screen-tabs { display: flex; gap: 5px; }
.screen-tab {
  font-size: 10px; padding: 3px 9px; border-radius: 5px;
  background: rgba(255,255,255,0.07); color: var(--g-400);
}
.screen-tab.active { background: var(--teal); color: white; }
.screen-body { padding: 14px; }
.screen-kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.screen-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
}
.kpi-val { font-size: 18px; font-weight: 700; color: white; }
.kpi-lbl { font-size: 9px; color: var(--g-400); margin-top: 2px; }
.kpi-chg { font-size: 9px; color: var(--teal); margin-top: 2px; }
.screen-bars { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px; }
.bar-row-item { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.bar-row-item:last-child { margin-bottom: 0; }
.bar-name { font-size: 9px; color: var(--g-400); width: 68px; text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.bar-val { font-size: 9px; color: var(--g-300); width: 32px; }
.ai-bar {
  display: flex; align-items: center; gap: 5px;
  background: rgba(74,139,139,0.12);
  border: 1px solid rgba(74,139,139,0.25);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px; color: var(--teal);
  margin-top: 8px;
}
.ai-bar svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Solution page hero variant */
.hero-solution { background: linear-gradient(165deg, #ECF2F1 0%, #F3F7F6 50%, #F6F9F8 100%); }
.hero-solution h1 { color: var(--g-900) !important; }
.hero-solution p { color: var(--g-500) !important; }
.hero-solution .breadcrumb, .hero-solution .breadcrumb a { color: var(--g-400) !important; }

/* ============================================================
   TRUST / LOGO WALL
   ============================================================ */
.trust-section {
  padding: 2.5rem 0;
  background: var(--g-50);
  border-top: 1px solid var(--g-200);
  border-bottom: 1px solid var(--g-200);
}
.trust-label {
  text-align: center;
  font-size: 12px;
  color: var(--g-400);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: center;
}
.logo-slot {
  height: 36px;
  background: var(--g-200);
  border-radius: 6px;
  opacity: 0.5;
}

/* ============================================================
   SOLUTION CARDS
   ============================================================ */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sol-card:hover { border-color: var(--g-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.sol-card:hover::before { opacity: 1; }
.sol-card.teal-card { border-color: rgba(74,139,139,0.25); background: linear-gradient(135deg, rgba(74,139,139,0.03), rgba(61,122,122,0.02)); }
.sol-card.teal-card::before { background: linear-gradient(90deg, var(--teal), var(--blue)); opacity: 1; }
.sol-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sol-icon svg { width: 20px; height: 20px; }
.si-teal { background: var(--teal-lt); }
.si-teal svg { stroke: var(--teal-2); }
.si-blue { background: #DBEAFE; }
.si-blue svg { stroke: #1D4ED8; }
.si-amber { background: #FEF3C7; }
.si-amber svg { stroke: #B45309; }
.si-purple { background: #EDE9FE; }
.si-purple svg { stroke: var(--purple); }
.si-rose { background: #FFE4E6; }
.si-rose svg { stroke: var(--rose); }
.si-ai { background: linear-gradient(135deg, var(--teal-lt), #BFDBFE); }
.si-ai svg { stroke: var(--teal-2); }
.sol-name { font-size: 15px; font-weight: 600; color: var(--g-800); }
.sol-name.ai { color: var(--teal-2); }
.sol-desc { font-size: 13px; color: var(--g-500); line-height: 1.6; flex: 1; }
.sol-link {
  font-size: 13px; font-weight: 500;
  color: var(--teal-2);
  display: flex; align-items: center; gap: 5px;
  margin-top: auto;
  text-decoration: none;
  transition: gap 0.15s;
}
.sol-link:hover { gap: 8px; }
.sol-link svg { width: 13px; height: 13px; }

/* ============================================================
   PRODUCT SHOWCASES
   ============================================================ */
.showcase { padding: 4rem 0; }
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.showcase-inner.flip { direction: rtl; }
.showcase-inner.flip > * { direction: ltr; }
.showcase-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--teal-2);
  margin-bottom: 0.75rem;
}
.showcase-tag svg { width: 14px; height: 14px; }
.showcase h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 0.7rem; }
.showcase-sub { font-size: 15px; color: var(--g-500); line-height: 1.65; margin-bottom: 1.25rem; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.feature-row { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--g-600); line-height: 1.45; }
.feature-row svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.feature-row .ai-note { color: var(--teal-2); font-weight: 500; }
.showcase-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--teal-2); text-decoration: none; transition: gap 0.15s; }
.showcase-cta:hover { gap: 9px; }
.showcase-cta svg { width: 14px; height: 14px; }
.mock-screen {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mock-screen.dark { background: var(--navy-2); border-color: rgba(255,255,255,0.09); }
.mock-topbar { padding: 9px 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--g-100); }
.mock-topbar.dark-bar { border-color: rgba(255,255,255,0.07); background: var(--navy-3); }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-title { font-size: 10px; color: var(--g-400); margin-left: 5px; flex: 1; }
.mock-body { padding: 13px; }
.mk-kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 8px; }
.mk-kpi { border-radius: 7px; padding: 8px 10px; }
.mk-kpi.lt { background: var(--g-50); border: 1px solid var(--g-200); }
.mk-kpi.dk { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); }
.mk-v { font-size: 15px; font-weight: 700; }
.mk-v.wt { color: white; }
.mk-l { font-size: 9px; color: var(--g-400); margin-top: 2px; }
.mk-chg { font-size: 9px; color: var(--teal); margin-top: 1px; }
.mk-bar-area { border-radius: 7px; padding: 8px 10px; }
.mk-bar-area.lt { background: var(--g-50); border: 1px solid var(--g-200); }
.mk-bar-area.dk { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.mk-bar-label { font-size: 9px; color: var(--g-500); margin-bottom: 6px; font-weight: 600; }
.mk-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mk-bn { font-size: 8.5px; color: var(--g-400); width: 64px; text-align: right; flex-shrink: 0; }
.mk-bt { flex: 1; height: 6px; border-radius: 3px; overflow: hidden; }
.mk-bt.lt { background: var(--g-200); }
.mk-bt.dk { background: rgba(255,255,255,0.08); }
.mk-bf { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.mk-bv { font-size: 8.5px; color: var(--g-600); width: 30px; }
.mk-bv.wt { color: var(--g-300); }
.mk-list { border-radius: 7px; padding: 8px 10px; margin-top: 7px; }
.mk-list.lt { background: var(--g-50); border: 1px solid var(--g-200); }
.mk-list.dk { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.mk-list-row { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid var(--g-100); }
.mk-list-row.dk-sep { border-color: rgba(255,255,255,0.06); }
.mk-list-row:last-child { border: none; }
.mk-rank { width: 17px; height: 17px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 7.5px; color: white; font-weight: 700; flex-shrink: 0; }
.mk-row-name { font-size: 9.5px; flex: 1; }
.mk-row-name.wt { color: var(--g-200); }
.mk-tag { font-size: 8px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.mk-tag.tl { background: var(--teal-lt); color: var(--teal-2); }
.mk-tag.am { background: #FEF3C7; color: #B45309; }
.mk-row-val { font-size: 9.5px; font-weight: 700; }
.mk-row-val.wt { color: white; }
.mk-ai-chip { display: flex; align-items: center; gap: 4px; background: rgba(74,139,139,0.12); border: 1px solid rgba(74,139,139,0.25); border-radius: 6px; padding: 4px 8px; font-size: 9.5px; color: var(--teal); margin-top: 7px; }
.mk-ai-chip svg { width: 10px; height: 10px; flex-shrink: 0; }

/* ============================================================
   AI AGENTS SECTION
   ============================================================ */
.agents-section { background: linear-gradient(170deg, #EBF1F0 0%, #F3F7F6 100%); padding: var(--section-py) 0; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 2.5rem; }
.agent-card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: rgba(74,139,139,0.4); }
.agent-card.featured {
  border-color: rgba(74,139,139,0.35);
  background: rgba(74,139,139,0.07);
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.agent-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
}
.agent-avatar svg { width: 20px; height: 20px; stroke: var(--teal); }
.agent-avatar.main {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border: none;
}
.agent-avatar.main svg { stroke: white; width: 26px; height: 26px; }
.agent-name { font-size: 14px; font-weight: 600; color: var(--g-800); }
.agent-name.featured-name { font-size: 17px; }
.agent-desc { font-size: 12px; color: var(--g-400); line-height: 1.55; }
.agent-sol-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--teal);
  background: rgba(74,139,139,0.1);
  border-radius: 5px; padding: 2px 8px;
  margin-top: 2px; width: fit-content;
}
.agent-sol-tag svg { width: 10px; height: 10px; }

/* ============================================================
   METRICS
   ============================================================ */
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2.5rem; }
.metric-card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.metric-card.ai { border-color: rgba(74,139,139,0.3); background: rgba(74,139,139,0.07); }
.metric-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); margin-bottom: 4px; }
.metric-icon svg { width: 17px; height: 17px; stroke: var(--teal); }
.metric-val { font-size: 36px; font-weight: 700; color: var(--g-900); letter-spacing: -0.03em; line-height: 1; }
.metric-lbl { font-size: 13px; color: var(--g-400); line-height: 1.45; }
.metric-sol { font-size: 11px; color: var(--teal); font-weight: 500; margin-top: 2px; }

/* ============================================================
   CARDS — General
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-img {
  height: 120px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card-img svg { width: 36px; height: 36px; stroke: rgba(74,139,139,0.4); }

/* Story cards */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-card-tags { display: flex; gap: 5px; margin-bottom: 8px; }
.story-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.story-co { font-size: 11px; color: var(--g-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.story-h { font-size: 14px; font-weight: 600; color: var(--g-800); line-height: 1.35; margin-bottom: 6px; }
.story-metric { font-size: 13px; color: var(--teal-2); font-weight: 600; margin-bottom: 8px; }
.story-link { font-size: 12px; color: var(--g-500); display: flex; align-items: center; gap: 4px; }
.story-link svg { width: 11px; height: 11px; }

/* Testimonials */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.test-card { background: white; border: 1px solid var(--g-200); border-radius: var(--rad-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: 11px; }
.test-stars { display: flex; gap: 3px; }
.test-stars svg { width: 13px; height: 13px; fill: var(--amber); stroke: none; }
.test-quote { font-size: 13px; color: var(--g-700); line-height: 1.7; font-style: italic; flex: 1; }
.test-person { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.test-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--g-200); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.test-avatar svg { width: 16px; height: 16px; stroke: var(--g-400); }
.test-name { font-size: 13px; font-weight: 600; color: var(--g-800); }
.test-title { font-size: 11px; color: var(--g-400); }
.test-sol { font-size: 10px; color: var(--teal-2); font-weight: 500; display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.test-sol svg { width: 10px; height: 10px; }

/* Resource cards */
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.resource-card { background: white; border: 1px solid var(--g-200); border-radius: var(--rad-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block; }
.resource-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.resource-thumb { height: 90px; display: flex; align-items: center; justify-content: center; }
.resource-thumb svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.4); }
.resource-body { padding: 1rem; display: flex; flex-direction: column; gap: 5px; }
.resource-type { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.resource-h { font-size: 13px; font-weight: 600; color: var(--g-800); line-height: 1.4; }
.resource-meta { font-size: 11px; color: var(--g-400); }

/* ============================================================
   PLATFORM ARCHITECTURE
   ============================================================ */
.arch-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2.5rem;
}
.arch-node {
  flex: 1;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rad-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.arch-node.ai-node { border-color: rgba(74,139,139,0.4); background: rgba(74,139,139,0.07); }
.arch-node-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.arch-node-icon svg { width: 18px; height: 18px; }
.arch-node-icon.plain { background: rgba(255,255,255,0.1); }
.arch-node-icon.plain svg { stroke: rgba(255,255,255,0.7); }
.arch-node-icon.ai-icon { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.arch-node-icon.ai-icon svg { stroke: white; }
.arch-node-lbl { font-size: 13px; font-weight: 600; color: white; }
.arch-node-sub { font-size: 11px; color: var(--g-400); line-height: 1.5; }
.arch-arrow { display: flex; align-items: center; justify-content: center; padding: 0 10px; flex-shrink: 0; }
.arch-arrow svg { width: 16px; height: 16px; stroke: var(--g-500); }

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: 5.5rem 0;
  text-align: center;

  position: relative;
  overflow: hidden;
}
.cta-banner-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(74,139,139,0.2) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner h2 { color: white; margin-bottom: 0.85rem; position: relative; }
.cta-banner h2 .accent { color: var(--teal); }
.cta-banner p { color: var(--g-300); max-width: 480px; margin: 0 auto 2rem; font-size: 17px; line-height: 1.65; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; position: relative; flex-wrap: wrap; }
.sol-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; position: relative; }
.sol-chip {
  font-size: 12px; padding: 4px 13px; border-radius: 99px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--g-300);
}
.sol-chip.ai { background: rgba(74,139,139,0.1); border-color: rgba(74,139,139,0.3); color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--g-900); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-mark {
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark img { height: 28px; width: auto; display: block; }
.footer-logo-text { font-size: 14px; font-weight: 600; color: white; }
.footer-desc { font-size: 13px; color: var(--g-500); line-height: 1.65; margin-bottom: 1.25rem; max-width: 260px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  cursor: pointer;
}
.footer-social:hover { background: rgba(255,255,255,0.12); }
.footer-social svg { width: 14px; height: 14px; stroke: var(--g-400); }
.footer-col {}
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: white; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 13px; color: var(--g-500); text-decoration: none; transition: color 0.15s; display: flex; align-items: center; gap: 4px; }
.footer-link:hover { color: var(--g-300); }
.footer-link.ai { color: var(--teal-3); }
.footer-link.ai:hover { color: var(--teal); }
.footer-link svg { width: 11px; height: 11px; }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 12px; color: var(--g-600); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: var(--g-600); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--g-400); }

/* ============================================================
   PAGE-SPECIFIC: DEMO
   ============================================================ */
.demo-layout { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.demo-form-section { padding: calc(var(--nav-h) + 4rem) 0 5rem; background: var(--g-50); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--g-700); margin-bottom: 6px; }
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--g-200);
  border-radius: var(--rad);
  font-size: 14px;
  color: var(--g-800);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,139,139,0.12); }
.form-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--g-200);
  border-radius: var(--rad);
  font-size: 14px;
  color: var(--g-800);
  background: white;
  appearance: none;
  outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-privacy { font-size: 12px; color: var(--g-400); margin-top: 0.75rem; line-height: 1.5; }
.demo-sidebar { background: var(--navy); border-radius: var(--rad-xl); padding: 2rem; }
.demo-what-expect { margin-bottom: 2rem; }
.what-step { display: flex; gap: 12px; margin-bottom: 1.25rem; }
.what-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-dim); border: 1px solid rgba(74,139,139,0.3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.what-step-text {}
.what-step-title { font-size: 13px; font-weight: 600; color: white; margin-bottom: 3px; }
.what-step-desc { font-size: 12px; color: var(--g-400); line-height: 1.5; }
.demo-logos { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 1.5rem; }
.demo-logo-slot { height: 30px; background: rgba(255,255,255,0.07); border-radius: 6px; }

/* ============================================================
   PAGE-SPECIFIC: RESOURCES
   ============================================================ */
.resource-filter-bar {
  display: flex; gap: 6px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--g-200);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--g-200);
  color: var(--g-500);
  cursor: pointer;
  transition: all 0.15s;
  background: white;
}
.filter-tab:hover { border-color: var(--g-300); color: var(--g-700); }
.filter-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ============================================================
   PAGE-SPECIFIC: CAREERS
   ============================================================ */
.role-list { display: flex; flex-direction: column; gap: 0; }
.role-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--g-100);
  transition: background 0.15s;
}
.role-item:hover { background: var(--g-50); padding-left: 0.5rem; border-radius: var(--rad-sm); }
.role-title { font-size: 14px; font-weight: 600; color: var(--g-800); flex: 1; }
.role-dept { font-size: 12px; color: var(--g-500); width: 120px; }
.role-loc { font-size: 12px; color: var(--g-500); width: 120px; }
.role-type { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 99px; }
.role-apply { font-size: 13px; font-weight: 500; color: var(--teal-2); text-decoration: none; }

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.steps-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; margin-top: 2.5rem; }
.steps-row::before { content: ''; position: absolute; top: 28px; left: calc(12.5% + 14px); right: calc(12.5% + 14px); height: 1px; background: linear-gradient(90deg, transparent, rgba(74,139,139,0.4), transparent); }
.step-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--g-200); background: white; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-num svg { width: 22px; height: 22px; stroke: var(--teal); }
.step-label { font-size: 14px; font-weight: 600; color: var(--g-800); margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--g-400); line-height: 1.55; }

/* ============================================================
   PROBLEM STATEMENT CARDS
   ============================================================ */
.problem-card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.problem-icon { width: 36px; height: 36px; background: #FEF2F2; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.problem-icon svg { width: 17px; height: 17px; stroke: var(--danger); }
.problem-title { font-size: 14px; font-weight: 600; color: var(--g-800); }
.problem-desc { font-size: 13px; color: var(--g-500); line-height: 1.55; }

/* ============================================================
   TABS COMPONENT
   ============================================================ */
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--g-200); margin-bottom: 2rem; overflow-x: auto; }
.tab-btn { padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--g-500); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn:hover { color: var(--g-700); }
.tab-btn.active { color: var(--teal-2); border-bottom-color: var(--teal); }
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }

/* ============================================================
   FEATURE DETAIL (solution pages)
   ============================================================ */
.feature-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.feature-detail-card { background: var(--g-50); border: 1px solid var(--g-200); border-radius: var(--rad-lg); padding: 1.25rem; }
.feature-detail-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.feature-detail-icon svg { width: 16px; height: 16px; }
.feature-detail-title { font-size: 13px; font-weight: 600; color: var(--g-800); margin-bottom: 4px; }
.feature-detail-desc { font-size: 12px; color: var(--g-500); line-height: 1.5; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(165deg, #ECF2F1 0%, #F3F7F6 50%, #F6F9F8 100%);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(74,139,139,0.1) 1.2px, transparent 1.2px); background-size: 26px 26px; pointer-events: none; }
.page-hero h1 { color: var(--g-900); }
.page-hero p { color: var(--g-500); max-width: 560px; font-size: 17px; margin-top: 0.75rem; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--g-400); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--g-400); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 12px; height: 12px; stroke: var(--g-500); }

/* ============================================================
   TIMELINE (About page)
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--teal), transparent); }
.timeline-item { position: relative; padding-bottom: 2rem; padding-left: 1.5rem; }
.timeline-dot { position: absolute; left: -2.25rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid var(--navy); }
.timeline-year { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.05em; margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 600; color: var(--g-800); margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--g-500); line-height: 1.55; }

/* ============================================================
   INTEGRATION GRID
   ============================================================ */
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.integration-card {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.integration-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.integration-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--g-100); display: flex; align-items: center; justify-content: center; }
.integration-icon svg { width: 24px; height: 24px; stroke: var(--g-500); }
.integration-name { font-size: 13px; font-weight: 600; color: var(--g-700); }
.integration-cat { font-size: 11px; color: var(--g-400); }
.integration-status { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.status-live { background: #D1FAE5; color: #065F46; }
.status-beta { background: #FEF3C7; color: #92400E; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: white !important; }
.text-teal { color: var(--teal-2) !important; }
.text-muted { color: var(--g-500) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0 !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.divider { height: 1px; background: var(--g-200); margin: 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.badge-teal { background: var(--teal-lt); color: var(--teal-2); }
.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-purple { background: #EDE9FE; color: var(--purple); }
.badge-rose { background: #FFE4E6; color: var(--rose); }
.badge-gray { background: var(--g-100); color: var(--g-600); }
.badge-green { background: #D1FAE5; color: #065F46; }

/* ============================================================
   PAGE-SPECIFIC: CAREERS ROLE ROWS
   ============================================================ */
.careers-role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--rad);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.careers-role-row:hover { border-color: var(--g-300); box-shadow: var(--shadow-sm); }
.careers-role-title { font-size: 14px; font-weight: 600; color: var(--g-800); margin-bottom: 3px; }
.careers-role-meta { font-size: 12px; color: var(--g-500); }

/* Card hover utility */
.card-hover-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ============================================================
   PREMIUM BACKGROUND SYSTEM
   Applied selectively — NOT on every section — for an
   unpredictable, layered, enterprise visual rhythm.
   Each tx-* class can combine: ::before for patterns,
   ::after for glows (compatible on the same element).
   ============================================================ */

/* Position context for all texture classes */
.tx-dots, .tx-dots-lg, .tx-dots-sm, .tx-grid,
.tx-glow-1, .tx-glow-2, .tx-glow-3, .tx-glow-4 {
  position: relative;
  overflow: hidden;
}

/* Float content above texture layers */
.tx-dots > .container,    .tx-dots-lg > .container,
.tx-dots-sm > .container, .tx-grid > .container,
.tx-glow-1 > .container, .tx-glow-2 > .container,
.tx-glow-3 > .container, .tx-glow-4 > .container {
  position: relative;
  z-index: 1;
}

/* ── Layer 1: DOT GRIDS (::before) ─────────────────────────── */

/* Standard dot grid — 26px spacing, soft */
.tx-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,139,139,0.14) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Large dot grid — 42px spacing */
.tx-dots-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,139,139,0.12) 1.8px, transparent 1.8px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}

/* Spiral dots — dual-layer offset pattern */
.tx-dots-sm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(74,139,139,0.13) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(74,139,139,0.08) 1px, transparent 1px);
  background-size: 20px 20px, 32px 32px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
  z-index: 0;
}

/* Fine grid lines — cross-hatch */
.tx-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,139,139,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,139,139,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layer 2: GRADIENT GLOWS (::after) ──────────────────────── */
/* These glow orbs are large, blurred, and barely perceptible.  */
/* Compatible with any of the ::before dot classes above.       */

/* Glow 1 — teal, top-left corner */
.tx-glow-1::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 700px;
  top: -300px;
  left: -200px;
  background: radial-gradient(ellipse at center, rgba(74,139,139,0.08) 0%, rgba(74,139,139,0.03) 40%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Glow 2 — cyan/blue, top-right corner */
.tx-glow-2::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 650px;
  top: -250px;
  right: -200px;
  left: auto;
  background: radial-gradient(ellipse at center, rgba(61,122,122,0.07) 0%, rgba(61,122,122,0.025) 40%, transparent 65%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

/* Glow 3 — maroon/burgundy, bottom-left */
.tx-glow-3::after {
  content: '';
  position: absolute;
  width: 750px;
  height: 650px;
  bottom: -250px;
  left: -150px;
  top: auto;
  right: auto;
  background: radial-gradient(ellipse at center, rgba(74,139,139,0.06) 0%, rgba(74,139,139,0.02) 40%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Glow 4 — teal, centered */
.tx-glow-4::after {
  content: '';
  position: absolute;
  width: 1100px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(74,139,139,0.06) 0%, rgba(74,139,139,0.02) 40%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SCREENSHOT FRAMES
   ============================================================ */
.screen-frame {
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(74,139,139,0.10), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--g-200);
  line-height: 0;
}
.screen-frame img { width: 100%; height: auto; display: block; }

.screen-frame-dark {
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--g-200);
  line-height: 0;
}
.screen-frame-dark img { width: 100%; height: auto; display: block; }

/* Screenshot gallery strip */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.screenshot-item { display: flex; flex-direction: column; gap: 0.75rem; }
.screenshot-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--g-500);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.animate-fade-up { animation: fadeUp 0.5s ease forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-60-40, .grid-40-60 { grid-template-columns: 1fr; }
  .showcase-inner, .showcase-inner.flip { grid-template-columns: 1fr; direction: ltr; }
  .demo-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arch-row { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; margin-left: auto; }
  .grid-3, .solution-grid, .story-grid, .test-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(4,1fr); }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card.featured { grid-column: 1; grid-row: auto; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}
