/* ==========================================================================
   GLP Marketing — Design System v3.0
   Linear × Vercel × Stripe — Sophisticated dark theme
   ========================================================================== */

/* ============================================================
   RESET & CUSTOM PROPERTIES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Base palette */
  --bg:           #0a0a0a;
  --bg-subtle:    #111111;
  --bg-elevated:  #161616;
  --bg-card:      #131313;

  /* Accent — one color only */
  --accent:       #22d3ee;
  --accent-dim:   rgba(34,211,238,0.12);
  --accent-glow:  rgba(34,211,238,0.25);

  /* Text */
  --text-primary: rgba(255,255,255,0.92);
  --text-secondary:rgba(255,255,255,0.72);
  --text-muted:   rgba(255,255,255,0.45);
  --white:        #ffffff;

  /* Borders */
  --border:       rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.12);
  --border-accent:rgba(34,211,238,0.3);

  /* Spacing */
  --section-pad:  120px;
  --section-pad-mobile: 72px;

  /* Radius */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.25s var(--ease);
  --transition-md:0.4s var(--ease);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; font-size: 1rem; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: rgba(34,211,238,0.2); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 16px; padding: 12px 24px;
  background: var(--accent); color: var(--bg); border-radius: var(--radius-xs);
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mobile) 0; }
  .container { padding: 0 20px; }
}

/* Divider line */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #38e8ff;
  border-color: #38e8ff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.30);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--transition-md), border-color var(--transition-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.header-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-logo-wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-links > a:not(.btn),
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
}

.nav-links > a:hover,
.nav-dropdown-toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

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

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

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  z-index: 10000;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* Desktop CTA */
#nav-cta-desktop {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  #nav-cta-desktop { display: inline-flex !important; }
  .nav-cta-mobile {
    display: none !important; }
}

/* Mobile Nav Toggle */
.nav-toggle {
  position: relative;
  z-index: 10001;
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle {
  position: relative;
  z-index: 10001; display: flex; }

  .header-inner { gap: 16px; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 80px 20px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    border-top: none;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-dropdown { width: 100%; }

  .nav-links > a:not(.btn),
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    background: var(--bg-subtle);
    margin-top: 4px;
    display: none;
    width: 100%;
    box-shadow: none;
    border-color: var(--border);
  }

  .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none !important; left: auto !important; }

  .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-bg-line {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 100%;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.logo-strip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.logo-strip-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-strip-logos img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
  filter: invert(1) grayscale(1) brightness(1.2);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-strip-logos img:hover {
  opacity: 1;
  filter: invert(1) grayscale(0.5) brightness(1.4);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 0 56px;
    justify-content: flex-start;
  }

  .hero-inner { padding: 0 20px; }

  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }

  .hero-desc { font-size: 1rem; margin-bottom: 32px; }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { justify-content: center; text-align: center; }
}


/* ============================================================
   CLIENT LOGO BAR
   ============================================================ */
.logo-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.logo-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo-bar-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.logo-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: nowrap;
}

.logo-bar-logos img {
  height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: invert(1) grayscale(1) brightness(1.3);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 1;
  min-width: 0;
}

.logo-bar-logos img:hover {
  opacity: 1;
  filter: invert(1) grayscale(0.5) brightness(1.5);
}

@media (max-width: 768px) {
  .logo-bar { padding: 32px 0; }
  .logo-bar-inner { padding: 0 20px; }
  .logo-bar-label { margin-bottom: 20px; font-size: 0.68rem; }
  .logo-bar-logos { gap: 24px 32px; flex-wrap: wrap; justify-content: center; }
  .logo-bar-logos img { height: 40px !important; }
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-header h2 { margin-bottom: 20px; }

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

.section-header.centered p { margin: 0 auto; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: var(--border);
}

.stat-item {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num em {
  font-style: normal;
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 20px; }
  .stat-num { font-size: 2.4rem; }
}

/* ============================================================
   CARDS — base styles
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
}

.card:hover {
  border-color: rgba(255,255,255,0.30);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.card-accent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-accent-line:hover::before { opacity: 1; }

/* ============================================================
   SERVICES GRID
   ============================================================ */

@media (min-width: 1025px) {
}





/* ============================================================
   CASE STUDY FEATURE
   ============================================================ */
.case-study-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.csf-top {
  padding: 60px;
  border-bottom: 1px solid var(--border);
}

.csf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}

.csf-top h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  max-width: 680px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.csf-numbers {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}

.csf-metric {
  flex: 1;
  padding: 48px 52px;
  border-right: 1px solid var(--border);
}

.csf-metric:last-child { border-right: none; }

.csf-metric-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.csf-metric-num.is-accent { color: var(--accent); }

.csf-metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.csf-bottom {
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.csf-bottom p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 480px;
}

@media (max-width: 768px) {
  .csf-top { padding: 36px 28px; }
  .csf-numbers { flex-direction: column; }
  .csf-metric { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 28px; }
  .csf-metric:last-child { border-bottom: none; }
  .csf-bottom { padding: 28px; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-2px);
}

/* Lite YouTube embed */
.lite-youtube {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg-subtle) center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}

.lite-youtube::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background var(--transition);
  pointer-events: none;
  z-index: 1;
}

.lite-youtube:hover::after {
  background: rgba(0,0,0,0.1);
}

.lite-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

.play-icon,
.lite-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 72px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.play-icon::after,
.lite-youtube-play::after {
  content: '';
  border-left: 18px solid #000;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.lite-youtube:hover .play-icon,
.lite-youtube:hover .lite-youtube-play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.lite-youtube:hover .play-icon::after,
.lite-youtube:hover .lite-youtube-play::after {
  border-left-color: #000;
}

.testimonial-quote {
  padding: 24px 24px 28px;
}

.testimonial-quote p.quote-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 8px;
}

.testimonial-quote p.quote-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}


/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.process-step {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.process-step:last-child { border-bottom: none; }

.process-step-num {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.process-step:hover .process-step-num {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.process-step-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  padding-top: 12px;
}

.process-step-body p {
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 580px) {
  .process-step { gap: 24px; }
  .process-steps::before { left: 23px; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition), background var(--transition);
  letter-spacing: -0.01em;
}

.faq-question:hover {
  color: var(--white);
  background: rgba(255,255,255,0.02);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition);
}

.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item.active .faq-question { color: var(--white); }
.faq-item.active .faq-icon { border-color: var(--border-accent); background: var(--accent-dim); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.active .faq-icon::before { background: var(--accent); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.faq-item.active .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 36px 28px;
}

.faq-answer-inner p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .faq-question { padding: 22px 24px; font-size: 0.925rem; }
  .faq-answer-inner { padding: 0 24px 24px; }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 80px 64px;
  background: var(--bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
}

@media (max-width: 768px) {
  .cta-section { padding: 52px 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

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

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

.footer-brand-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-col > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.925rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col.footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col.footer-brand { grid-column: unset; }
  .site-footer { padding-top: 56px; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.61s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy support — inner pages may use these classes */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.animate-in.visible { opacity: 1; transform: translateY(0); }

.stagger-in > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger-in.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-in.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger-in.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.stagger-in.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.stagger-in.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.stagger-in.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }

/* ============================================================
   INNER PAGE LEGACY SUPPORT
   Cards, glass, grid helpers needed by inner pages
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.30);
  background: var(--bg-elevated);
}

.glass-card-glow:hover {
  box-shadow: 0 0 0 1px var(--border-hover), 0 20px 40px rgba(0,0,0,0.3);
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Legacy gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ai {
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legacy subtitle/eyebrow */
.subtitle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Legacy section-intro */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-intro h2 { margin-bottom: 16px; }
.section-intro p { color: var(--text-secondary); }

/* Legacy tech tags */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tech-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Legacy practice cards */
.practice-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.practice-card .icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.practice-card h3 {
  margin-bottom: 8px;
}

/* Legacy noise overlay — just remove the effect, keep class */
.noise-overlay { position: relative; }

/* Legacy metric blocks */
.metrics-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.metrics-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.metrics-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 8px #22c55e;
}

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

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

.metric-block .metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-block .metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Legacy step cards */
.step-card {
  position: relative;
  padding-left: 52px;
}

.step-card h3 { margin-bottom: 8px; }

/* Legacy case study card */
.case-study-card .cs-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.case-study-card h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 32px; }

.case-study-metrics {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cs-metric .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cs-metric .value {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}

.cs-metric .value.before { color: var(--text-secondary); }
.cs-metric .value.after  { color: var(--accent); }

/* Bg blobs — legacy inner pages */
.bg-blobs { display: none; }

/* Background mesh — remove */
.bg-mesh { display: none; }
.hero-mesh { display: none; }
.hero-grid-lines { display: none; }

/* Legacy AI section */
.ai-section { }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .ai-grid { grid-template-columns: 1fr; } }

.ai-card .ai-icon { font-size: 1.5rem; margin-bottom: 16px; }

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

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

.pillar-card { position: relative; }
.pillar-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.pillar-icon { font-size: 1.5rem; margin-bottom: 16px; }

/* Legacy social proof strip */
.social-proof-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.social-proof-strip.visible { opacity: 1; transform: translateY(0); }

.social-proof-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-proof-strip img {
  height: 20px;
  width: auto;
  opacity: 0.3;
  filter: grayscale(1) brightness(3);
}

/* Legacy hero metrics (remove floating cards look) */
.hero-metrics { display: none; }

/* Legacy section eyebrow (inner page version) */
.section-eyebrow span {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legacy hero-grid for inner pages */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* Testimonial card (video) — legacy */
.testimonial-card .video-wrap { }
.testimonial-card .quote {
  padding: 20px 24px 24px;
}
.testimonial-card .quote p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* FAQ label legacy */
.faq-icon { }

/* How steps legacy */
.how-steps {}

/* CTA section legacy */
.cta-section h2 { }

/* Inner page hero */
section.hero {
  /* reset for inner pages that have their own hero styles */
}

/* ============================================================
   HERO TWO-COLUMN LAYOUT
   ============================================================ */
.hero-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   HERO DASHBOARD VISUALIZATION
   ============================================================ */
.hero-visual { overflow: hidden;
  position: relative;
}

.hv-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hv-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.hv-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.hv-dot:first-child { background: rgba(255,100,100,0.5); }
.hv-dot:nth-child(2) { background: rgba(255,200,50,0.5); }
.hv-dot:nth-child(3) { background: rgba(80,200,80,0.5); }

.hv-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hv-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.hv-metric {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-metric:first-child {
  border-right: 1px solid var(--border);
}

.hv-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hv-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hv-metric-value.hv-accent { color: var(--accent); }

.hv-chart {
  padding: 16px 20px 0;
  height: 100px;
}

.hv-chart svg {
  width: 100%;
  height: 100%;
}

.hv-bar-section {
  padding: 8px 20px 16px;
}

.hv-bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.hv-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
}

.hv-bar {
  flex: 1;
  background: rgba(34,211,238,0.30);
  border-radius: 2px 2px 0 0;
  transition: background 0.3s ease;
}

.hv-bar-accent {
  background: var(--accent) !important;
  box-shadow: 0 0 12px rgba(34,211,238,0.3);
}

.hv-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.hv-stat {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--border);
}

.hv-stat:last-child { border-right: none; }

.hv-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hv-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-visual { overflow: hidden; max-width: 100%; margin: 0 auto; }
}

@media (max-width: 580px) {
  /* hero-visual visibility controlled per-page */
}

@media (max-width: 580px) {
  .hv-metric-value { font-size: 1.4rem; }
  .hv-bars { height: 48px; }
}

/* Section alternating backgrounds */
.testimonials-section-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   BLOG / ARTICLE CONTENT
   ============================================================ */
.blog-hero { padding: 140px 0 40px; }
@media (max-width: 768px) { .blog-hero { padding: 100px 0 32px; } }

.blog-article { padding: 0 0 80px; }

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content > * + * {
  margin-top: 1.5em;
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-content p {
  margin-bottom: 0;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.article-content a:hover { opacity: 0.8; }

.article-content strong, .article-content b {
  color: var(--white);
  font-weight: 700;
}

.article-content ul, .article-content ol {
  padding-left: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.article-content li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: rgba(255,255,255,0.8);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 2em 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.92rem;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.article-content th {
  background: var(--bg-card);
  color: var(--white);
  font-weight: 600;
}
.article-content td { color: var(--text-secondary); }

.article-content pre, .article-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
}
.article-content code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 2em 0;
}
.article-content pre code { background: none; padding: 0; }

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

/* Blog card grid (blog index) */
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.blog-card:hover { transform: translateY(-3px); }

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}
.blog-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.read-more {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.5rem; }
  .article-content h3 { font-size: 1.2rem; }
}

/* ============================================================
   Article Layout — TOC + Content
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
.article-layout .blog-article {
  min-width: 0;
  padding: 0 0 60px !important;
}
.article-layout .blog-article .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* TOC Sidebar */
.article-toc {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 16px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  font-size: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.article-toc::-webkit-scrollbar { width: 4px; }
.article-toc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.toc-header svg { opacity: 0.4; flex-shrink: 0; }

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list li a {
  display: block;
  padding: 7px 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  line-height: 1.45;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.toc-list li a:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.toc-list li a.active {
  color: var(--accent);
  background: rgba(16,193,245,0.08);
  font-weight: 600;
}

/* Mobile: TOC stacks above content */
@media (max-width: 960px) {
  .article-layout {
    display: block;
    max-width: 760px;
    padding: 0 20px;
  }
  .article-toc {
    position: relative;
    top: auto;
    max-height: none;
    margin-bottom: 28px;
    padding: 20px;
  }
}

/* Mobile TOC: collapsible */
@media (max-width: 960px) {
  .toc-header {
    cursor: pointer;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    user-select: none;
  }
  .toc-header::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.2s;
  }
  .article-toc.toc-open .toc-header::after {
    transform: rotate(-135deg);
  }
  .article-toc .toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-top: 0;
  }
  .article-toc.toc-open .toc-list {
    max-height: 600px;
    margin-top: 14px;
  }
  .article-toc.toc-open .toc-header {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg:           #f8f8fa;
  --bg-subtle:    #f0f0f3;
  --bg-elevated:  #ffffff;
  --bg-card:      #ffffff;

  --accent:       #0891b2;
  --accent-dim:   rgba(8,145,178,0.08);
  --accent-glow:  rgba(8,145,178,0.20);

  --text-primary: rgba(0,0,0,0.88);
  --text-secondary:rgba(0,0,0,0.65);
  --text-muted:   rgba(0,0,0,0.4);
  --white:        #111111;

  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.14);
  --border-accent:rgba(8,145,178,0.3);

  color-scheme: light;
}

/* Body & base overrides */
[data-theme="light"] body {
  background: var(--bg);
  color: var(--text-primary);
}

/* Header */
[data-theme="light"] .site-header {

  background: rgba(248,248,250,0.8);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(248,248,250,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Nav */
[data-theme="light"] .nav-links a { color: rgba(0,0,0,0.7); }
[data-theme="light"] .nav-links a:hover { color: #000; }
[data-theme="light"] .nav-dropdown-menu {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .nav-dropdown-menu a { color: rgba(0,0,0,0.7); }
[data-theme="light"] .nav-dropdown-menu a:hover {
  color: #000;
  background: rgba(0,0,0,0.04);
}

/* Mobile nav */
[data-theme="light"] .nav-toggle span { background: #333; }
[data-theme="light"] .mobile-overlay { background: rgba(0,0,0,0.3); }

/* Buttons */
[data-theme="light"] .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
[data-theme="light"] .btn-primary:hover {
  background: #0e7490;
  border-color: #0e7490;
  color: #fff;
}
[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
}

/* Glass cards */
[data-theme="light"] .glass-card {
  background: #fff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
[data-theme="light"] .glass-card:hover {
  border-color: rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Gradient text — needs darker colors for light bg */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .gradient-text-ai {
  background: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .gradient-text-warm {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Headings */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #111;
}

/* Links */
[data-theme="light"] a:hover { color: #000; }

/* Eyebrow/subtitle */
[data-theme="light"] .section-eyebrow span {
  color: var(--accent);
  border-color: rgba(8,145,178,0.2);
}
[data-theme="light"] .subtitle { color: var(--accent); }

/* Footer */
[data-theme="light"] .site-footer {
  background: #f0f0f3;
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .footer-bottom { border-top-color: rgba(0,0,0,0.06); }

/* Hero section — subtle gradient bg */
[data-theme="light"] .hero,
[data-theme="light"] section.hero {
  background: linear-gradient(180deg, #f0f4f8 0%, var(--bg) 100%);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* Selection */
[data-theme="light"] ::selection { background: rgba(8,145,178,0.15); color: #000; }

/* Stats/numbers that use inline color */
[data-theme="light"] .stat-value { color: var(--accent) !important; }

/* Article content */
[data-theme="light"] .article-content a { color: var(--accent); }
[data-theme="light"] .article-content blockquote {
  border-left-color: var(--accent);
  background: rgba(8,145,178,0.04);
}

/* TOC */
[data-theme="light"] .toc-list li a:hover {
  color: #000;
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .toc-list li a.active {
  color: var(--accent);
  background: rgba(8,145,178,0.06);
}

/* Blog cards */
[data-theme="light"] .blog-card-body p { color: rgba(0,0,0,0.55); }

/* Logo inversion — client logos need to NOT be inverted in light mode */
[data-theme="light"] .client-logo-strip img {
  filter: none !important;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 3px;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.theme-toggle-thumb svg {
  width: 13px;
  height: 13px;
  transition: opacity 0.2s;
}
.theme-toggle-thumb .icon-moon { display: block; }
.theme-toggle-thumb .icon-sun { display: none; }

/* Light mode toggle */
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(0,0,0,0.18);
}
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: #fbbf24;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
[data-theme="light"] .theme-toggle-thumb .icon-moon { display: none; }
[data-theme="light"] .theme-toggle-thumb .icon-sun { display: block; }

@media (max-width: 900px) {
  .theme-toggle {
    margin: 16px 0 8px;
    align-self: flex-start;
  }
}

/* Light mode fixes for inline styles */
[data-theme="light"] [style*="rgba(255,255,255,0.04)"] { background: rgba(0,0,0,0.03) !important; }
[data-theme="light"] [style*="rgba(255,255,255,0.08)"] { border-color: rgba(0,0,0,0.08) !important; }
[data-theme="light"] [style*="rgba(255,255,255,0.1)"] { background: rgba(0,0,0,0.06) !important; }
[data-theme="light"] [style*="rgba(255,255,255,0.12)"] { border-color: rgba(0,0,0,0.08) !important; }
[data-theme="light"] [style*="color:rgba(255,255,255,0.4)"] { color: rgba(0,0,0,0.45) !important; }
[data-theme="light"] [style*="color:rgba(255,255,255,0.5)"] { color: rgba(0,0,0,0.5) !important; }
[data-theme="light"] [style*="color:rgba(255,255,255,0.6)"] { color: rgba(0,0,0,0.6) !important; }
[data-theme="light"] [style*="color:rgba(255,255,255,0.7)"] { color: rgba(0,0,0,0.6) !important; }
[data-theme="light"] [style*="color:#fff"] { color: #111 !important; }
[data-theme="light"] [style*="color: #fff"] { color: #111 !important; }
[data-theme="light"] [style*="background:#141418"] { background: #fff !important; }
[data-theme="light"] [style*="background:#0a0a0a"] { background: var(--bg) !important; }
[data-theme="light"] [style*="rgba(0,0,0,0.6)"][style*="box-shadow"] { box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important; }

/* Blog filter buttons */
[data-theme="light"] .blog-filter-btn { color: rgba(0,0,0,0.5) !important; }
[data-theme="light"] .blog-filter-btn.active { background: var(--accent) !important; color: #fff !important; }

/* Client logo strip — remove invert in light mode */
[data-theme="light"] img[style*="filter: invert"],
[data-theme="light"] img[style*="filter:invert"] {
  filter: none !important;
}

/* Theme toggle in mobile nav */
@media (max-width: 1200px) {
  .theme-toggle-mobile-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .theme-toggle-mobile-wrapper .theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
  }
  /* Hide the toggle that sits in the header bar on mobile */
  #theme-toggle { display: none; }
}
@media (min-width: 1201px) {
  .theme-toggle-mobile-wrapper { display: none; }
}

/* Light mode logos — no invert, show original dark logos */
[data-theme="light"] .logo-strip-logos img,
[data-theme="light"] .logo-bar-logos img {
  filter: grayscale(1) !important;
  opacity: 0.7 !important;
}
[data-theme="light"] .logo-strip-logos img:hover,
[data-theme="light"] .logo-bar-logos img:hover {
  filter: grayscale(0.3) !important;
  opacity: 0.9 !important;
}
/* Also handle any inline filter:invert styles */
[data-theme="light"] .logo-bar-logos img[style*="invert"],
[data-theme="light"] .logo-strip-logos img[style*="invert"] {
  filter: grayscale(1) !important;
  opacity: 0.7 !important;
}

/* ============================================================
   FLOATING THEME TOGGLE (FAB)
   ============================================================ */
.theme-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(30,30,40,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}
.theme-fab:hover {
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}
.theme-fab svg {
  width: 20px;
  height: 20px;
  color: #e2e8f0;
  transition: opacity 0.2s, transform 0.3s;
}
.theme-fab .fab-moon { display: block; }
.theme-fab .fab-sun { display: none; }

/* Light mode FAB */
[data-theme="light"] .theme-fab {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
[data-theme="light"] .theme-fab:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}
[data-theme="light"] .theme-fab svg { color: #f59e0b; }
[data-theme="light"] .theme-fab .fab-moon { display: none; }
[data-theme="light"] .theme-fab .fab-sun { display: block; }

@media (max-width: 768px) {
  .theme-fab { bottom: 20px; right: 16px; width: 44px; height: 44px; }
  .theme-fab svg { width: 18px; height: 18px; }
}

/* Fix: hide overlay + play button when video is playing */
.lite-youtube:has(iframe)::after,
.lite-youtube:has(iframe) .play-icon,
.lite-youtube:has(iframe) .lite-youtube-play,
.lite-youtube.playing::after,
.lite-youtube.playing .play-icon,
.lite-youtube.playing .lite-youtube-play {
  display: none !important;
  pointer-events: none !important;
}
.lite-youtube:has(iframe),
.lite-youtube.playing {
  cursor: default;
}


/* Mobile: single column, clean stack */
@media (max-width: 767px) {
}

/* Light mode adjustments */


/* ═══════════════════════════════════════
   SERVICES — Practice Area Pills
   ═══════════════════════════════════════ */

.services-scroll-wrapper {
  position: relative;
}

.services-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── Individual pill row ── */
.service-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.service-pill:last-child {
  border-bottom: none;
}
.service-pill:hover {
  background: var(--bg-subtle);
}

/* Icon circle */
.service-pill-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 209, 178, 0.08);
}
.service-pill-icon svg {
  width: 22px !important;
  max-width: 22px;
  height: 22px;
  stroke: var(--accent);
}

/* Text block */
.service-pill-text {
  flex: 1;
  min-width: 0;
}
.service-pill-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--white);
  line-height: 1.3;
}
.service-pill-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Arrow */
.service-pill-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.service-pill-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}
.service-pill:hover .service-pill-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.service-pill:hover .service-pill-arrow svg {
  stroke: var(--accent);
}

/* "And Many More" variant */
.service-pill-more {
  background: rgba(0, 209, 178, 0.04);
}
.service-pill-more .service-pill-icon {
  background: rgba(0, 209, 178, 0.15);
}
.service-pill-more .service-pill-text h3 {
  color: var(--accent);
}

/* ── Desktop: 2 columns ── */
@media (min-width: 900px) {
  .services-scroll {
    grid-template-columns: 1fr 1fr;
  }
  .service-pill {
    border-bottom: none;
    border-bottom: 1px solid var(--border);
  }
  /* Right-column pills get a left border */
  .service-pill:nth-child(2n) {
    border-left: 1px solid var(--border);
  }
  /* Remove bottom border from last row */
  /* 7 items: last row is items 7. Second-to-last row is 5,6 */
  .service-pill:last-child {
    border-bottom: none;
  }
  .service-pill:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .service-pill:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    border-bottom: none;
    justify-content: center;
    text-align: center;
  }
  .service-pill:nth-last-child(1):nth-child(odd) .service-pill-text {
    flex: none;
  }
}

/* ── Mobile: tighter spacing ── */
@media (max-width: 899px) {
  .service-pill {
    padding: 16px 18px;
    gap: 14px;
  }
  .service-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .service-pill-icon svg {
    width: 18px;
    height: 18px;
  }
  .service-pill-text h3 {
    font-size: 0.95rem;
  }
  .service-pill-text p {
    font-size: 0.8rem;
  }
  .service-pill-arrow {
    opacity: 0.5;
  }
}

/* ── Light mode ── */
[data-theme="light"] .service-pill {
  color: var(--text-primary);
}
[data-theme="light"] .service-pill-text h3 {
  color: var(--text-primary);
}

/* Force services visible regardless of animation state */
.services-scroll-wrapper,
.services-scroll-wrapper .service-pill {
  opacity: 1 !important;
  transform: none !important;
}


/* ── Hero Command Center — Light Mode ── */
[data-theme="light"] .hv-command-center > div > div:first-child {
  background: #fff !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .hv-command-center div[style] {
  border-color: rgba(0,0,0,0.07) !important;
}

[data-theme="light"] .hv-command-center span[style*="color:rgba(255"],
[data-theme="light"] .hv-command-center div[style*="color:rgba(255"] {
  color: rgba(0,0,0,0.5) !important;
}

[data-theme="light"] .hv-command-center div[style*="color:white"],
[data-theme="light"] .hv-command-center div[style*="font-weight:800"][style*="color:white"] {
  color: #1a1a1a !important;
}

[data-theme="light"] .hv-command-center div[style*="font-weight:800"][style*="color:#00d1b2"] {
  color: #00a693 !important;
}

[data-theme="light"] .hv-command-center div[style*="background:rgba(255,255,255"] {
  background: rgba(0,0,0,0.03) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .hv-command-center div[style*="font-size:0.72rem"][style*="line-height:1.5"],
[data-theme="light"] .hv-command-center div[style*="font-size:0.82rem"],
[data-theme="light"] .hv-command-center div[style*="font-size:0.88rem"] {
  color: rgba(0,0,0,0.6) !important;
}

[data-theme="light"] .hv-command-center span[style*="font-weight:700"][style*="color:#00d1b2"],
[data-theme="light"] .hv-command-center span[style*="font-weight:700"][style*="color:#10a37f"],
[data-theme="light"] .hv-command-center span[style*="font-weight:600"][style*="color:#00d1b2"],
[data-theme="light"] .hv-command-center span[style*="font-weight:600"][style*="color:#10a37f"],
[data-theme="light"] .hv-command-center span[style*="font-weight:600"][style*="color:#20b8cd"],
[data-theme="light"] .hv-command-center span[style*="font-weight:600"][style*="color:#cc785c"] {
  filter: saturate(1.2);
}

/* Floating toasts — light mode */
[data-theme="light"] .hv-command-center div[style*="position:absolute"] {
  background: #fff !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  color: rgba(0,0,0,0.6) !important;
}

/* ── Background Canvas Animation ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-header {
 position: relative; z-index: 100; }
main, .logo-bar, .stats-section, .site-footer { position: relative; z-index: 1; }
.bg-blobs { z-index: 0; }

/* Light mode — dimmer canvas */
[data-theme="light"] #bg-canvas {
  opacity: 0.2 !important;
}

/* ── Ambient Background Glow ── */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-glow .orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Primary — large teal aurora, top-left */
.ambient-glow .orb-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,209,178,0.18) 0%, rgba(0,209,178,0.06) 40%, transparent 70%);
  top: -15%; left: -10%;
  filter: blur(40px);
  animation: orbDrift1 18s ease-in-out infinite alternate;
}

/* Secondary — electric blue, right side */
.ambient-glow .orb-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,150,255,0.14) 0%, rgba(0,120,200,0.04) 45%, transparent 70%);
  top: 35%; right: -15%;
  filter: blur(50px);
  animation: orbDrift2 24s ease-in-out infinite alternate;
}

/* Tertiary — warm accent, bottom */
.ambient-glow .orb-3 {
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,209,178,0.12) 0%, rgba(0,180,160,0.04) 50%, transparent 70%);
  bottom: -10%; left: 20%;
  filter: blur(60px);
  animation: orbDrift3 20s ease-in-out infinite alternate;
}

/* 4th orb — purple/magenta accent for depth */
.ambient-glow .orb-4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(120,0,255,0.08) 0%, rgba(100,0,200,0.03) 45%, transparent 70%);
  top: 60%; left: -5%;
  filter: blur(70px);
  animation: orbDrift4 28s ease-in-out infinite alternate;
}

/* 5th orb — cyan highlight, moves fast */
.ambient-glow .orb-5 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,230,200,0.1) 0%, transparent 60%);
  top: 15%; right: 20%;
  filter: blur(30px);
  animation: orbDrift5 14s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(120px, 60px) scale(1.15) rotate(5deg); }
  50% { transform: translate(-60px, 120px) scale(0.95) rotate(-3deg); }
  75% { transform: translate(80px, -40px) scale(1.1) rotate(4deg); }
  100% { transform: translate(-40px, 80px) scale(1.05) rotate(-2deg); }
}
@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-100px, -70px) scale(1.12); }
  50% { transform: translate(70px, -40px) scale(0.88); }
  75% { transform: translate(-50px, 90px) scale(1.15); }
  100% { transform: translate(60px, -60px) scale(1.08); }
}
@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(80px, -60px) scale(1.1) rotate(3deg); }
  66% { transform: translate(-100px, -30px) scale(1.15) rotate(-4deg); }
  100% { transform: translate(50px, 50px) scale(0.95) rotate(2deg); }
}
@keyframes orbDrift4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(150px, -80px) scale(1.2); }
  100% { transform: translate(-60px, 100px) scale(0.9); }
}
@keyframes orbDrift5 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(-80px, 60px) scale(1.3); opacity: 1; }
  100% { transform: translate(100px, -40px) scale(0.7); opacity: 0.6; }
}

[data-theme=light] .ambient-glow .orb-1 { background: radial-gradient(circle, rgba(0,209,178,0.08) 0%, transparent 70%); }
[data-theme=light] .ambient-glow .orb-2 { background: radial-gradient(circle, rgba(0,150,255,0.06) 0%, transparent 70%); }
[data-theme=light] .ambient-glow .orb-3 { background: radial-gradient(ellipse, rgba(0,209,178,0.05) 0%, transparent 70%); }
[data-theme=light] .ambient-glow .orb-4 { background: radial-gradient(circle, rgba(120,0,255,0.04) 0%, transparent 70%); }
[data-theme=light] .ambient-glow .orb-5 { background: radial-gradient(circle, rgba(0,230,200,0.05) 0%, transparent 60%); }

@media (prefers-reduced-motion: reduce) {
  .ambient-glow .orb { animation: none !important; }
}
@media (max-width: 768px) {
  .ambient-glow .orb-1 { width: 500px; height: 500px; }
  .ambient-glow .orb-2 { width: 400px; height: 400px; }
  .ambient-glow .orb-3 { width: 450px; height: 300px; }
  .ambient-glow .orb-4 { width: 300px; height: 300px; }
  .ambient-glow .orb-5 { width: 250px; height: 250px; }
}

/* Let glow show through */
.hero { background: transparent !important; }
section { background: transparent; }
.site-header {
 z-index: 10000; }
