/* ============================================================
   KnowledgeBricks — Global Design System
   Tokens follow the KB Brand Identity System (brand sheet v1).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens (brand sheet) ───────────────────────────── */
:root {
  /* Brand */
  --indigo:       #3A56D2;   /* Primary Accent — CTAs, links            */
  --indigo-lt:    #6C84EE;   /* Dark-BG Accent — highlights, accents    */
  --indigo-deep:  #263AA0;   /* Hover / Active state                    */
  --charcoal:     #262A36;   /* Icon dark                               */
  --steel:        #6C748A;   /* Icon mid                                */
  --steel-lt:     #A8AEC0;   /* Subtle borders & captions               */
  --void:         #0B0F17;   /* Dark background                         */
  --white:        #FFFFFF;

  /* Semantic aliases used through the stylesheet */
  --primary:  var(--indigo);
  --primary-hover: var(--indigo-deep);
  --accent:   var(--indigo-lt);

  /* Surfaces */
  --bg:       #ffffff;
  --bg2:      #f5f6f8;
  --card:     #ffffff;
  --dark:     var(--void);

  /* Text */
  --t1:       #15171c;
  --t2:       #4a5060;
  --t3:       var(--steel);
  --t4:       var(--steel-lt);

  /* Hairlines */
  --border:   #e5e7eb;
  --border-strong: #d6d9e0;

  /* Typography */
  --font: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Spacing & layout */
  --section-py: 96px;
  --container:  1200px;

  /* Radius */
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-pill: 50px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Scale ──────────────────────────────────────── */
.display-1 {
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -3px;
}

.display-2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.display-3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.stat-number {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--indigo);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 86, 210, 0.08);
  border: 1px solid rgba(58, 86, 210, 0.18);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.cyan, .text-accent { color: var(--indigo); }
.text-light-accent { color: var(--indigo-lt); }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Section padding ───────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--alt  { background: var(--bg2); }
.section--light { background: var(--bg); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--indigo);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn--primary:hover { background: var(--indigo-deep); transform: translateY(-1px); }

.btn--primary-light {
  background: #ffffff;
  color: var(--indigo) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn--primary-light:hover { opacity: 0.92; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.6); color: #fff !important; }

.btn--outline-dark {
  background: transparent;
  color: var(--indigo) !important;
  border: 1px solid var(--border-strong);
}
.btn--outline-dark:hover { border-color: var(--indigo); background: rgba(58,86,210,0.04); }

.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav (light surface) ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

@media (max-width: 960px) { .nav-links { display: none; } }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--t1); background: rgba(15, 17, 28, 0.04); }
.nav-link .chevron { width: 12px; height: 12px; opacity: 0.55; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) { .nav-actions .btn--pill-ghost { display: none; } }

.btn--pill-ghost {
  background: transparent;
  color: var(--indigo) !important;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.btn--pill-ghost:hover { border-color: var(--indigo); background: rgba(58,86,210,0.04); }

.btn--pill-primary {
  background: var(--indigo);
  color: #fff !important;
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}
.btn--pill-primary:hover { background: var(--indigo-deep); }

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

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(15, 17, 28, 0.10);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  /* Slight delay on hide so jitter across the bridge doesn't flicker the menu shut.
     No delay on show. */
  transition: opacity 0.15s ease 80ms,
              transform 0.15s ease 80ms,
              visibility 0s linear 230ms;
  visibility: hidden;
}

/* Invisible "bridge" that fills the gap between the button and the dropdown,
   so :hover stays alive while the mouse moves between them. */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;          /* covers the 8px visual gap + 4px slack */
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-menu.wide {
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* On show: zero delay, snappy. */
  transition: opacity 0.15s ease 0s,
              transform 0.15s ease 0s,
              visibility 0s linear 0s;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--t1);
  transition: background 0.1s;
}
.dropdown-item:hover { background: var(--bg2); }
.dropdown-item strong { font-weight: 600; font-size: 13px; }
.dropdown-item span { font-size: 11px; color: var(--t3); }

/* Mobile hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

@media (max-width: 960px) { .nav-burger { display: flex; } }

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 68px;
  background: var(--bg);
  z-index: 99;
  padding: 24px clamp(20px, 4vw, 48px);
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer .drawer-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--t1);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer .drawer-link:hover { color: var(--indigo); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 96px 0 80px;
  overflow: hidden;
  background: var(--void);
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,15,23,0.92) 0%, rgba(11,15,23,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 { color: #fff; }

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 20px 0 36px;
}

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

.hero-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(108,132,238,0.06) 50%, transparent 60%);
  animation: hero-shine 6s ease-in-out infinite;
}

.hero--light {
  background: var(--bg);
  color: var(--t1);
  min-height: 360px;
  padding: 72px 0;
}
.hero--light h1 { color: var(--t1); }
.hero--light .hero-lead { color: var(--t2); }

.hero .eyebrow,
.section--dark .eyebrow {
  background: rgba(108,132,238,0.12);
  border-color: rgba(108,132,238,0.28);
  color: var(--indigo-lt);
}
.hero .eyebrow .dot,
.section--dark .eyebrow .dot { background: var(--indigo-lt); }

.hero .cyan,
.section--dark .cyan { color: var(--indigo-lt); }

/* ── Stat Row ──────────────────────────────────────────────── */
.stat-row {
  background: var(--void);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}

.stat-row .stat-number { color: var(--indigo-lt); }

.stat-row .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .stat-row .container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.stat-tile { text-align: center; }

.stat-tile .stat-number {
  display: block;
  margin-bottom: 8px;
}

.stat-tile .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-lt);
}

/* ── Split Section ─────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; direction: ltr; }
}

.split-copy { display: flex; flex-direction: column; gap: 20px; }
.split-copy h2 { margin-bottom: 4px; }
.split-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--t2);
}
.section--dark .split-copy p { color: rgba(255,255,255,0.7); }

.split-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 4/3;
  position: relative;
}

/* ── Numbered Steps ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (min-width: 901px) and (max-width: 1100px) { .steps-grid { grid-template-columns: 1fr 1fr; } }

.step-card {
  position: relative;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover { box-shadow: 0 6px 24px rgba(15,17,28,0.06); transform: translateY(-2px); }

.section--dark .step-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.step-num {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--indigo-lt);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--t2);
}

.section--dark .step-card p { color: rgba(255,255,255,0.7); }
.section--dark .step-card h3 { color: #fff; }

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 680px) { .card-grid-2 { grid-template-columns: 1fr; } }

.accent-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  border-left: 3px solid var(--indigo-lt);
  transition: box-shadow 0.2s, transform 0.2s;
}
.accent-card:hover { box-shadow: 0 4px 24px rgba(15,17,28,0.06); transform: translateY(-2px); }

.section--dark .accent-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.accent-card.cyan,
.accent-card.navy,
.accent-card.green,
.accent-card.violet,
.accent-card.amber,
.accent-card.pink   { border-left-color: var(--indigo); }

.accent-card.navy   { border-left-color: var(--indigo-deep); }
.accent-card.steel  { border-left-color: var(--steel); }

.accent-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.accent-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--t2);
}

.section--dark .accent-card h3 { color: #fff; }
.section--dark .accent-card p { color: rgba(255,255,255,0.7); }

/* ── Section heading layout ────────────────────────────────── */
.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 56px;
}

.section-heading h2 { margin-bottom: 16px; }

.section-heading p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--t2);
}

.section--dark .section-heading p { color: rgba(255,255,255,0.7); }

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--indigo-deep) 0%, var(--void) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(108,132,238,0.06);
}
.cta-band::before { width: 500px; height: 500px; top: -200px; right: -100px; }
.cta-band::after  { width: 360px; height: 360px; bottom: -180px; left: -80px; }

.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .deploy-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.cta-band .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-band .cyan { color: var(--indigo-lt); }

/* ── Footer (dark) ─────────────────────────────────────────── */
.footer {
  background: var(--void);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  display: block;
  height: 26px;
  width: auto;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── Chip Row ──────────────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.chip.light {
  background: rgba(15,17,28,0.04);
  border-color: var(--border);
  color: var(--t2);
}

/* ── Package / Pricing Cards ───────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } }

.package-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.package-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px rgba(58,86,210,0.2);
}

.package-card.dark {
  background: var(--void);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.package-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: rgba(58,86,210,0.10);
  color: var(--indigo);
  width: fit-content;
}

.package-card .price { display: flex; align-items: baseline; gap: 4px; }
.package-card .price .currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--t2);
  margin-top: 6px;
}
.package-card.dark .price .currency { color: rgba(255,255,255,0.65); }

.package-card .price .amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--t1);
}
.package-card.dark .price .amount { color: #fff; }

.package-card .price .cadence {
  font-size: 13px;
  color: var(--t3);
  align-self: flex-end;
  padding-bottom: 6px;
}

.package-card .description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
  margin-top: -8px;
}
.package-card.dark .description { color: rgba(255,255,255,0.7); }

.package-card hr {
  border: none;
  border-top: 1px solid var(--border);
}
.package-card.dark hr { border-color: rgba(255,255,255,0.1); }

.package-card .feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.package-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
}
.package-card.dark .feature-list li { color: rgba(255,255,255,0.7); }

.feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-check svg { width: 10px; height: 10px; }

.package-card .cta-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  margin-top: auto;
}

.package-card.featured .cta-btn { background: var(--indigo); color: #fff !important; }
.package-card.featured .cta-btn:hover { background: var(--indigo-deep); }
.package-card:not(.featured):not(.dark) .cta-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--t1) !important;
}
.package-card:not(.featured):not(.dark) .cta-btn:hover { border-color: var(--indigo); color: var(--indigo) !important; }
.package-card.dark .cta-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff !important;
}
.package-card.dark .cta-btn:hover { border-color: rgba(255,255,255,0.55); }

/* ── Industry badge strip ──────────────────────────────────── */
.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: all 0.15s;
  text-decoration: none;
}
.industry-badge:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); }
.industry-badge.light {
  background: rgba(15,17,28,0.03);
  border-color: var(--border);
  color: var(--t2);
}
.industry-badge.light:hover { background: rgba(58,86,210,0.06); color: var(--indigo); border-color: var(--indigo); }

/* ── Insights / Resource cards ─────────────────────────────── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.insight-card:hover { box-shadow: 0 6px 24px rgba(15,17,28,0.08); transform: translateY(-2px); }

.insight-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e9ecf8, #c8d1f0);
  position: relative;
  overflow: hidden;
}

.insight-body { padding: 20px; }

.insight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.insight-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(58,86,210,0.10);
  color: var(--indigo);
}

.insight-date { font-size: 11px; color: var(--t3); }

.insight-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.insight-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.insight-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes hero-shine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Content is visible by default. Animation only kicks in if JS adds .js-on to <html>. */
.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html.js-on .animate-on-scroll { opacity: 0; transform: translateY(20px); }
html.js-on .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

html.js-on .stagger > * { opacity: 0; transform: translateY(16px); }
html.js-on .stagger.visible > *:nth-child(1) { transition-delay: 0s; }
html.js-on .stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
html.js-on .stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
html.js-on .stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
html.js-on .stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
html.js-on .stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
html.js-on .stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ── Misc utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--t2); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-0  { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section--dark h2,
.section--dark h3 { color: #fff; }

.hero--product { min-height: 520px; }
.hero--platform { min-height: 480px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--t1); }
.breadcrumb .sep { opacity: 0.5; }

.hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.hero .breadcrumb a:hover { color: rgba(255,255,255,0.85); }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--indigo-lt); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group select { color: rgba(255,255,255,0.85); }
.form-group select option { color: #000; background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-group.light label { color: var(--t1); }
.form-group.light input,
.form-group.light select,
.form-group.light textarea {
  background: #fff;
  border-color: var(--border);
  color: var(--t1);
}
.form-group.light input:focus,
.form-group.light select:focus,
.form-group.light textarea:focus { border-color: var(--indigo); }
.form-group.light input::placeholder,
.form-group.light textarea::placeholder { color: var(--steel-lt); }

/* ============================================================
   Legacy compatibility — utility classes used by older page
   bodies that have not yet been rewritten. Brand-colored so
   nothing leaks the old cyan palette.
   ============================================================ */

/* Bullet lists with a small inline check icon */
.split-copy .bullets,
.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.split-copy .bullets li,
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
}

/* Render a small indigo dot before each bullet item — replaces the broken
   inline-icon pattern some older pages used. */
.bullets li::before,
.split-copy .bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--indigo-lt);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Defensive guard: if a page mistakenly applies .bullet-icon directly to an
   <li> (rather than to a child <span>), don't turn the entire line into a
   20px circle. */
li.bullet-icon {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
}
.section--dark li.bullet-icon { color: rgba(255,255,255,0.78); }
li.bullet-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--indigo-lt);
  margin-top: 8px;
  flex-shrink: 0;
}

.section--dark .bullets li,
.section--dark .split-copy .bullets li { color: rgba(255,255,255,0.78); }

/* Small circular icon used inside bullets (must constrain SVG size) */
.bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(108,132,238,0.12);
  border: 1px solid rgba(108,132,238,0.30);
  flex-shrink: 0;
  margin-top: 2px;
}
.bullet-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--indigo-lt);
  fill: none;
}

/* Defensive guard: any stray inline SVG inside a bullets list */
.bullets li > svg,
.split-copy .bullets li > svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Split-visual placeholder block used on about / industries pages */
.split-visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #15233f 0%, #1d2c52 50%, #0f1730 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #fff;
}

/* Older step pattern (.step / .step-inner / .step-eyebrow / numeric .step-num) */
.step { position: relative; padding: 32px 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); }
.section--dark .step { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

/* Older variant used a giant faded numeral as background — re-render it as a small label so it never blows up the layout */
.step > .step-num,
.step .step-inner > .step-eyebrow,
.step-inner .step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--indigo-lt);
  margin-bottom: 8px;
  position: static;
  display: block;
}

.step-inner { position: relative; }
.step-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--indigo-lt);
  margin-bottom: 6px;
}
.step h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.7; color: var(--t2); }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: rgba(255,255,255,0.7); }

/* Older card-icon (small square with SVG inside) */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(58,86,210,0.10);
  margin-bottom: 16px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--indigo);
  fill: none;
}

/* Older legacy button names */
.btn--primary-dark { background: var(--indigo); color: #fff !important; }
.btn--primary-dark:hover { background: var(--indigo-deep); }
.btn--pill-cyan { background: transparent; color: var(--indigo) !important; border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 8px 16px; font-size: 13px; font-weight: 600; }
.btn--pill-cyan:hover { border-color: var(--indigo); background: rgba(58,86,210,0.04); }
.btn--pill-navy { background: var(--indigo); color: #fff !important; border-radius: var(--r-pill); padding: 8px 18px; font-size: 13px; font-weight: 600; }
.btn--pill-navy:hover { background: var(--indigo-deep); }

/* Legacy nav wordmark / mark (we now use Logo.png — keep these as safe no-ops) */
.nav-logo-mark,
.footer-logo-mark { display: none; }
.nav-wordmark,
.footer-wordmark { font-weight: 700; }
.nav-wordmark span,
.footer-wordmark span { color: var(--indigo); }
.nav-login { font-size: 13px; color: var(--steel); font-weight: 500; }
.nav-login:hover { color: var(--t1); }

/* Backdrop image for older hero variants */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: luminosity;
  z-index: 0;
}

/* Portal preview card (older mockup) */
.portal-card {
  background: #0a0f1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.portal-card-header {
  background: #0d1420;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.portal-card-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.portal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--indigo-lt);
  font-weight: 500;
}
.portal-card-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-lt);
  animation: pulse-dot 2s ease-in-out infinite;
}
.portal-card-body { padding: 20px 18px; }

/* Final safety: any inline SVG without explicit sizing inside a section
   gets a sane default so a missing class can never blow up layout again. */
section svg:not([width]):not([height]):not(.chevron) {
  max-width: 100%;
  max-height: 100%;
}
