/* ============================================
   DxLogic — DxLogic Design System
   ============================================ */

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

:root {
  /* DxLogic design tokens */
  --bg: #111111;
  --bg-card: rgba(17,17,17,0.3);
  --text: #F8FAFC;
  --text-muted: rgba(248,250,252,0.7);
  --text-dim: rgba(248,250,252,0.45);
  --border: #2E2E2E;
  --border-hover: #444;
  --accent: #3566E0;
  --accent-hover: #4576F0;
  --surface: rgba(255,255,255,0.04);
  --green: #4ade80;
  --green-bg: rgba(74,222,128,0.08);
  --yellow: #FBBF24;
  --red: #DC2626;
  --red-hover: #EF4444;

  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', serif;

  --container: 1200px;
  --pad: 24px;
}

/* Phosphor icon defaults */
[class^="ph-"], [class*=" ph-"], .ph { line-height: 1; vertical-align: -0.125em; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; justify-content: center;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); width: 100%;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-badge {
  font-size: 11px; font-weight: 500; color: var(--green);
  background: rgba(74,222,128,0.12);
  padding: 2px 8px; border-radius: 9999px;
  margin-left: 12px;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: 24px; list-style: none; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 13px; color: var(--text-dim); font-family: var(--mono); }
.btn-ghost-sm {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
  transition: all 0.15s; background: transparent;
}
.btn-ghost-sm:hover { border-color: var(--border-hover); color: var(--text); }
.btn-nav-primary {
  font-size: 13px; font-weight: 600; color: #fff;
  padding: 6px 14px; border-radius: 6px;
  background: var(--accent); border: 1px solid var(--accent);
  transition: all 0.15s;
}
.btn-nav-primary:hover { background: var(--accent-hover); }

/* ---- MEGA MENU ---- */
.nav-links li { position: relative; }
.nav-links .has-mega { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-links .mega-chevron {
  display: inline-block; width: 12px; height: 12px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.3s;
  margin-left: 2px;
}
.nav-links li:hover .mega-chevron { transform: rotate(-135deg) translateY(0); }

.mega-dropdown {
  position: absolute; left: 0; top: calc(100% + 12px);
  background: rgba(10,10,10,0.98); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; min-width: 480px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease; z-index: 200;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-links li:hover .mega-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}

.mega-cols { display: flex; gap: 0; }
.mega-col { min-width: 200px; padding: 0 32px; }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { padding-right: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--border); }
.mega-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px;
}
.mega-dropdown-wide { min-width: 680px; }
.nav-mobile-only { display: none; }

/* Compact column — icon + label only (no descriptions) */
.mega-col-compact { min-width: 240px; }
.mega-item-simple {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500; transition: color 0.15s;
}
.mega-item-simple:hover { color: var(--text); }
.mega-item-simple .mega-item-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-dim); border: none; border-radius: 0;
  transition: color 0.15s;
}
.mega-item-simple:hover .mega-item-icon { color: var(--accent); background: none; border: none; }

/* Rich column — icon + title + description */
.mega-col-rich { min-width: 320px; }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; text-decoration: none; color: inherit;
  transition: all 0.15s;
}
.mega-item:hover { color: var(--text); }
.mega-item-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; transition: all 0.2s;
}
.mega-item:hover .mega-item-icon {
  background: var(--accent); color: white; border-color: var(--accent);
}
.mega-item-text { flex: 1; }
.mega-item-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.mega-item-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.mega-item:hover .mega-item-desc { color: var(--text-muted); }

/* Footer link at bottom of mega column */
.mega-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.mega-footer-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: opacity 0.15s;
}
.mega-footer-link:hover { opacity: 0.8; }

/* Mobile nav */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 24px; position: relative;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px; background: var(--text-muted);
  position: absolute; left: 0; transition: all 0.3s;
}
.mobile-menu-btn span:nth-child(1) { top: 4px; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

/* Hamburger → X animation when open */
.mobile-menu-btn.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---- MOBILE NAV PANEL ---- */
@media (max-width: 768px) {
  /* Remove backdrop-filter so position:fixed children escape properly */
  .nav.mobile-nav-open {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(10,10,10,0.98);
    height: auto; min-height: 64px;
  }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    padding: 24px 20px 40px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    animation: mobileSlideDown 0.25s ease;
  }
  @keyframes mobileSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open > li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.mobile-open > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; font-size: 16px; font-weight: 500; color: var(--text);
    width: 100%;
  }

  /* Mega dropdown: always visible in mobile when parent toggled */
  .nav-links.mobile-open .mega-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0 0 16px 0;
    background: none; border: none; border-radius: 0;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    display: none; /* hidden by default, toggled by JS */
  }
  .nav-links.mobile-open .mega-dropdown.mobile-show {
    display: block;
  }
  .nav-links.mobile-open .mega-dropdown::before { display: none; }
  .nav-links.mobile-open .mega-cols {
    flex-direction: column; gap: 8px;
  }
  .nav-links.mobile-open .mega-col { min-width: 0; padding: 0; }
  .nav-links.mobile-open .mega-col + .mega-col { border-left: none; border-top: 1px solid var(--border); padding-top: 8px; }
  .nav-links.mobile-open .mega-col-title {
    font-size: 10px; margin-bottom: 4px; padding-bottom: 4px;
  }
  .nav-links.mobile-open .mega-item { padding: 6px 0 6px 8px; }
  .nav-links.mobile-open .mega-item-simple { padding: 6px 0 6px 8px; font-size: 14px; }
  .nav-links.mobile-open .mega-dropdown-wide { min-width: 0; }
  .nav-links.mobile-open .mega-item-icon { width: 24px; height: 24px; font-size: 13px; }
  .nav-links.mobile-open .mega-item-label { font-size: 13px; }
  .nav-links.mobile-open .mega-item-desc { display: none; }
  .nav-links.mobile-open .mega-footer { display: none; }
  /* Hide industries column from Solutions mega on mobile — shown as separate nav item */
  .nav-links.mobile-open .mega-col-rich { display: none; }
  .nav-links.mobile-open .mega-col-compact { border: none; }
  /* Show the mobile-only Industries nav item */
  .nav-mobile-only { display: list-item; }

  /* Chevron rotation for mobile */
  .nav-links.mobile-open .mega-chevron {
    transition: transform 0.2s;
  }
  .nav-links.mobile-open li.mobile-mega-open .mega-chevron {
    transform: rotate(-135deg) translateY(0);
  }

  /* Mobile CTA at bottom */
  .nav-links.mobile-open .mobile-nav-cta {
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
  }
  .nav-links.mobile-open .mobile-nav-cta a {
    text-align: center; font-size: 15px; padding: 14px;
    border-radius: 8px; font-weight: 600;
  }
  .nav-links.mobile-open .mobile-nav-cta .btn-nav-primary {
    font-size: 15px; padding: 14px;
  }
  .nav-links.mobile-open .mobile-nav-cta .mobile-phone {
    font-size: 13px; color: var(--text-dim); font-family: var(--mono);
    text-align: center; padding: 8px 0;
  }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--red); border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.btn-primary:hover { background: var(--red-hover); }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 500; color: var(--text);
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--surface); }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; color: #111;
  background: #fff; border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
}
.btn-white:hover { opacity: 0.9; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---- MOVING BORDER (orbiting glow for CTA buttons) ---- */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.moving-border {
  position: relative;
  isolation: isolate;
}
.moving-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: conic-gradient(from var(--border-angle), transparent 60%, rgba(74,222,128,0.7) 78%, rgba(53,102,224,0.9) 88%, transparent 95%);
  z-index: -1;
  animation: border-spin 4s linear infinite;
}
.moving-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: conic-gradient(from var(--border-angle), transparent 60%, rgba(74,222,128,0.3) 78%, rgba(53,102,224,0.4) 88%, transparent 95%);
  z-index: -1;
  filter: blur(8px);
  animation: border-spin 4s linear infinite;
}
@keyframes border-spin {
  to { --border-angle: 360deg; }
}
.moving-border:hover::before,
.moving-border:hover::after {
  animation-duration: 2s;
}

/* ---- HERO GLOW (PulpSense-inspired radial gradient) ---- */
.hero-glow {
  position: relative; overflow: hidden;
}
.hero-glow::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(125% 125% at 50% 10%, var(--bg) 40%, rgba(53,102,224,0.15) 100%);
  pointer-events: none;
}
.hero-glow > * { position: relative; z-index: 1; }

/* ---- GRID LINES OVERLAY (architectural framing) ---- */
.grid-lines {
  position: relative;
}
.grid-lines::before,
.grid-lines::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.grid-lines::before { left: var(--pad); }
.grid-lines::after { right: var(--pad); }

/* ---- DOT PATTERN BACKGROUND ---- */
.dot-pattern {
  position: relative;
}
.dot-pattern::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(248,250,252,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
}
.dot-pattern > * { position: relative; z-index: 1; }

/* ---- SHIMMER PILL (MagicUI shiny-text) ---- */
@keyframes shimmer-slide {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero-pill-shimmer {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer-slide 3s ease-in-out infinite;
}

/* ---- TEXT HIGHLIGHT UNDERLINE ---- */
@keyframes highlight-draw {
  0% { background-size: 0% 3px; }
  100% { background-size: 100% 3px; }
}
.text-highlight {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  padding-bottom: 2px;
}
.text-highlight.animated {
  animation: highlight-draw 1s ease-out forwards;
  animation-delay: 1.5s;
}
.text-highlight-green {
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  padding-bottom: 2px;
}

/* ---- FADE IN ON SCROLL ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
}
.fade-in-up.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ---- HERO (generic) ---- */
.hero { padding: 160px 0 80px; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
  transition: all 0.2s;
}
.hero-pill:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }
.hero-pill-badge {
  background: var(--yellow); color: #111; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 9999px;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700; line-height: 1; letter-spacing: -2.4px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 20px; line-height: 1.6; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 40px;
}
.hero-sub a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero.left-align { text-align: left; }
.page-hero h1 {
  font-family: var(--mono); font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 18px; color: var(--text-muted); line-height: 1.6;
  max-width: 660px; margin-bottom: 32px;
}
.page-hero.left-align .page-hero-sub { margin-left: 0; margin-right: auto; }
.page-hero .center { margin-left: auto; margin-right: auto; }
.page-hero .btn-accent { display: inline-flex; margin-bottom: 0; }
.page-hero .stats-bar { margin-top: 24px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}
.breadcrumb.center { justify-content: center; }
.breadcrumb a { color: var(--text-dim); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-dim); opacity: 0.5; }

/* ---- BADGE ---- */
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(53,102,224,0.15); color: var(--accent);
}
.badge-green { background: var(--green-bg); color: var(--green); }

/* ---- SECTION ---- */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title {
  font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-muted); text-align: center;
  max-width: 600px; margin: 0 auto 40px;
}

/* ---- MONO HEADING SECTION ---- */
.mono-section {
  padding: 120px 0 80px; text-align: center;
  border-top: 1px solid var(--border);
}
.mono-section h2 {
  font-family: var(--mono); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.mono-section-sub {
  font-size: 18px; color: var(--text-muted); line-height: 1.6;
  max-width: 660px; margin: 0 auto 40px;
}
.mono-section-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.mono-section-links a {
  font-size: 14px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.mono-section-links a:hover { color: var(--text); }

/* ---- GRID COMPONENTS ---- */
.grid-1px {
  display: grid; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.grid-1px > * { background: var(--bg); }
.grid-1px > *:hover { background: rgba(255,255,255,0.03); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---- CARD COMPONENTS ---- */
.card { padding: 28px 24px; transition: background 0.2s; }
.card-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.card-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.card-metric {
  font-family: var(--mono); font-size: 13px; color: var(--green);
  margin-top: 12px;
}
.card-link {
  font-size: 13px; color: var(--text-dim); margin-top: 12px;
  display: inline-block; transition: color 0.15s;
}
.card-link:hover { color: var(--text); }
.card-mono-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  margin-top: 12px;
}

/* ---- STATS ---- */
.stats-bar {
  display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--mono); font-size: 32px; font-weight: 700; margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-dim); }

.stats-grid {
  display: grid; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.stats-grid .stat-cell {
  background: var(--bg); padding: 32px; text-align: center;
}
.stats-grid .stat-value {
  font-family: var(--mono); font-size: 40px; font-weight: 700;
  margin-bottom: 4px;
}
.stats-grid .stat-label { font-size: 13px; color: var(--text-dim); }

/* ---- LOGO GRID ---- */
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; max-width: 900px; margin: 0 auto;
}
.logo-cell {
  background: var(--bg); padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
.logo-cell img {
  max-height: 32px; width: auto; opacity: 0.6;
  filter: grayscale(1) brightness(2);
  transition: all 0.3s;
}
.logo-cell:hover img { opacity: 1; }

/* ---- LOGO CAROUSEL ---- */
.logo-carousel { padding: 64px 0; overflow: hidden; border-top: 1px solid var(--border); }
.logo-carousel-title {
  text-align: center; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 32px;
}
.logo-carousel-mask { position: relative; overflow: hidden; }
.logo-carousel-mask::before,
.logo-carousel-mask::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.logo-carousel-mask::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.logo-carousel-mask::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.logo-carousel-track {
  display: flex; align-items: center; gap: 64px;
  width: max-content; animation: logoScroll 35s linear infinite;
}
.logo-carousel-track:hover { animation-play-state: paused; }
.logo-carousel-track img {
  height: 40px; width: auto; object-fit: contain;
  filter: grayscale(1) brightness(2) opacity(0.5);
  transition: filter 0.3s;
}
.logo-carousel-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- PROBLEM CARDS ---- */
.problem-cards {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg); padding: 28px 32px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: background 0.2s; text-decoration: none; color: inherit;
}
.problem-card:hover { background: rgba(255,255,255,0.03); }
.problem-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.problem-content { flex: 1; }
.problem-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.problem-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.problem-result { font-size: 13px; color: var(--green); font-family: var(--mono); }
.problem-cta { font-size: 14px; color: var(--text-dim); white-space: nowrap; margin-top: 4px; transition: color 0.15s; }
.problem-card:hover .problem-cta { color: var(--text); }

/* ---- HOW IT WORKS GRID ---- */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.how-card { background: var(--bg); padding: 32px 24px; }
.how-num { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.how-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.how-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.how-price { font-family: var(--mono); font-size: 14px; color: var(--accent); }

/* ---- CASE STUDY CARDS ---- */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.case-card { background: var(--bg); padding: 28px 24px; }
.case-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-bottom: 12px; display: inline-block;
}
.case-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.case-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.case-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.case-metric {
  font-family: var(--mono); font-size: 12px; color: var(--green);
  padding: 4px 8px; background: var(--green-bg); border-radius: 4px;
}
.case-quote {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--text-dim); line-height: 1.5; margin-bottom: 12px;
}
.case-link { font-size: 13px; color: var(--text-dim); transition: color 0.15s; }
.case-link:hover { color: var(--text); }

/* ---- CASE STUDY ARTICLE ---- */
.cs-article { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.cs-main { max-width: 720px; }
.cs-main h2 {
  font-size: 24px; font-weight: 700; margin-bottom: 16px;
  letter-spacing: -0.02em; margin-top: 48px;
}
.cs-main h2:first-child { margin-top: 0; }
.cs-main p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.cs-sidebar { position: sticky; top: 100px; }
.cs-sidebar-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 28px;
  background: var(--surface);
}
.cs-sidebar-card h3 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 20px;
}
.cs-sidebar-item { margin-bottom: 16px; }
.cs-sidebar-item:last-child { margin-bottom: 0; }
.cs-sidebar-label { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.cs-sidebar-value { font-size: 14px; font-weight: 600; }
.cs-sidebar-value.mono { font-family: var(--mono); color: var(--green); }
.results-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin: 32px 0;
}
.result-item { background: var(--bg); padding: 24px; text-align: center; }
.result-num { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.result-label { font-size: 13px; color: var(--text-dim); }
.cs-quote {
  border-left: 3px solid var(--accent); padding: 24px 32px;
  margin: 32px 0; background: rgba(53,102,224,0.08); border-radius: 0 8px 8px 0;
}
.cs-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--text); margin-bottom: 8px; line-height: 1.5;
}
.cs-quote cite { font-style: normal; font-size: 13px; color: var(--text-dim); }

/* ---- FAQ ---- */
.faq-section { padding: 80px 0; border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 20px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--text-muted); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--text-dim); }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  display: none; padding: 0 0 20px; font-size: 14px;
  color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 120px 0; text-align: center; border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: var(--mono); font-size: clamp(32px, 4vw, 56px);
  font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px;
}
.cta-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; max-width: 700px; margin: 48px auto 0;
}
.cta-link-card {
  background: var(--bg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; transition: background 0.2s;
}
.cta-link-card:hover { background: rgba(255,255,255,0.03); }
.cta-link-title { font-weight: 500; }
.cta-link-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.cta-link-arrow { color: var(--text-dim); }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text-muted); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}

/* ---- INDUSTRY GRID ---- */
.industry-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; max-width: 900px; margin: 0 auto;
}
.industry-cell {
  background: var(--bg); padding: 28px 16px; text-align: center;
  transition: background 0.2s;
}
.industry-cell:hover { background: rgba(255,255,255,0.04); }
.industry-cell a { display: block; text-decoration: none; color: inherit; }
.industry-cell-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.industry-cell-name { font-size: 13px; color: var(--text-muted); }

/* ---- WORKFLOW GRID (industry pages) ---- */
.workflow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.workflow-card {
  background: var(--bg); padding: 28px 24px; transition: background 0.2s;
}
.workflow-card:hover { background: rgba(255,255,255,0.03); }
.workflow-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.workflow-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.workflow-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.workflow-metric { font-family: var(--mono); font-size: 13px; color: var(--green); margin-bottom: 8px; }
.workflow-link { font-size: 13px; color: var(--text-dim); transition: color 0.15s; }
.workflow-link:hover { color: var(--text); }

/* ---- TABS (capability pages) ---- */
.tab-bar {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: 8px; overflow-x: auto; background: rgba(255,255,255,0.03);
}
.tab-btn {
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-dim); cursor: pointer; white-space: nowrap;
  border: none; background: transparent; border-bottom: 2px solid transparent;
  transition: all 0.2s; font-family: var(--font);
}
.tab-btn:hover { color: var(--text-muted); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); background: rgba(255,255,255,0.05); }
.tab-content { display: none; padding: 28px 32px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; }
.tab-content.active { display: block; }
.tab-pain { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.tab-solution { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.tab-metric { font-family: var(--mono); font-size: 13px; color: var(--green); margin-bottom: 12px; }
.tab-link { font-size: 13px; color: var(--accent); font-weight: 500; }
.tab-link:hover { text-decoration: underline; }

/* ---- DEMO (homepage) ---- */
.demo-section { padding: 0 0 80px; }
.demo-tabs {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.03); overflow-x: auto;
}
.demo-tab {
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-dim); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.demo-tab:hover { color: var(--text-muted); }
.demo-tab.active { color: var(--text); border-bottom-color: var(--text); background: rgba(255,255,255,0.05); }
.demo-tab-icon { font-size: 16px; opacity: 0.6; }
.demo-content {
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px; background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
}
.demo-code {
  padding: 24px; border-right: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--text-muted); overflow-x: auto;
}
.demo-code .kw { color: #C084FC; }
.demo-code .fn { color: #60A5FA; }
.demo-code .str { color: #34D399; }
.demo-code .cm { color: var(--text-dim); }
.demo-code .num { color: var(--yellow); }
.demo-ui { padding: 24px; position: relative; overflow: hidden; }

/* ---- PRICING CARDS ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.price-card {
  background: var(--bg); padding: 32px 24px;
  display: flex; flex-direction: column;
}
.price-card.featured { background: rgba(53,102,224,0.06); }
.price-phase {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 4px;
}
.price-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-amount {
  font-family: var(--mono); font-size: 28px; font-weight: 700; margin-bottom: 4px;
}
.price-duration {
  font-size: 13px; color: var(--accent); font-family: var(--mono);
  margin-bottom: 16px;
}
.price-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.price-includes { list-style: none; padding: 0; margin-bottom: 24px; flex: 1; }
.price-includes li {
  padding: 5px 0; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-includes li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.guarantee-badge {
  background: rgba(53,102,224,0.1); border: 1px solid rgba(53,102,224,0.3);
  border-radius: 6px; padding: 12px 16px;
  font-size: 13px; color: var(--accent); font-weight: 600;
  margin-bottom: 20px; text-align: center;
}

/* ---- COMPARISON TABLE ---- */
.comparison-wrapper { overflow-x: auto; margin-top: 16px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
.comparison-table th {
  padding: 16px 20px; text-align: left; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.comparison-table th:first-child { width: 180px; }
.comparison-table th.highlight { color: var(--accent); }
.comparison-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.comparison-table td.highlight { color: var(--text); font-weight: 600; }
.comparison-table td.label { font-weight: 600; color: var(--text); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--text-dim); }

/* ---- PHASE SECTIONS (how-it-works) ---- */
.phase-section { padding: 80px 0; border-top: 1px solid var(--border); }
.phase-header { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.phase-number {
  font-family: var(--mono); font-size: 48px; font-weight: 700;
  color: var(--text-dim); opacity: 0.3; line-height: 1; flex-shrink: 0;
}
.phase-info { flex: 1; }
.phase-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 4px;
}
.phase-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.phase-time {
  font-size: 13px; color: var(--accent); font-family: var(--mono);
}
.phase-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 680px; }
.phase-desc p { margin-bottom: 12px; }
.phase-deliverables {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 24px 28px; margin-top: 24px; max-width: 680px;
}
.phase-deliverables h3 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 12px;
}
.phase-deliverables ul { list-style: none; padding: 0; }
.phase-deliverables li {
  padding: 6px 0; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.phase-deliverables li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.phase-price {
  font-family: var(--mono); font-weight: 600;
  font-size: 15px; margin-top: 20px;
}

/* ---- BEFORE/AFTER TABLE ---- */
.ba-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ba-table th {
  text-align: left; padding: 16px 20px; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.ba-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); line-height: 1.6;
}
.ba-table td:last-child { color: var(--text); }

/* ---- TESTIMONIAL ---- */
.testimonial-block { text-align: center; max-width: 600px; margin: 0 auto; }
.testimonial-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; line-height: 1.6; margin-bottom: 16px;
}
.testimonial-attr { font-size: 14px; color: var(--text-dim); }

/* ---- ABOUT PAGE ---- */
.about-story { max-width: 720px; }
.about-story h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.about-story p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }

.timeline {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 48px; flex-wrap: wrap;
}
.timeline-item { display: flex; align-items: center; }
.timeline-node { text-align: center; padding: 0 20px; }
.timeline-year { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.timeline-label { font-size: 13px; color: var(--text-dim); }
.timeline-connector { width: 48px; height: 2px; background: var(--border); }

.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.leader-card { text-align: center; }
.leader-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; display: block;
  border: 2px solid var(--border); filter: grayscale(0.15);
  transition: all 0.3s;
}
.leader-card:hover .leader-photo { filter: grayscale(0); border-color: var(--accent); }
.leader-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.leader-title { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.leader-bio { font-size: 13px; color: var(--text-dim); line-height: 1.5; max-width: 260px; margin: 0 auto; }

.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.diff-card { background: var(--bg); padding: 28px 24px; }
.diff-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.diff-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.diff-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- BLOG ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.blog-card {
  background: var(--bg); padding: 28px 24px; transition: background 0.2s;
}
.blog-card:hover { background: rgba(255,255,255,0.03); }
.blog-date { font-size: 12px; color: var(--text-dim); font-family: var(--mono); margin-bottom: 12px; }
.blog-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.blog-read { font-size: 13px; color: var(--text-dim); transition: color 0.15s; }
.blog-card:hover .blog-read { color: var(--text); }

.blog-article { max-width: 720px; margin: 0 auto; }
.blog-article h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; }
.blog-article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.blog-article p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.blog-article ul, .blog-article ol { margin: 0 0 16px 24px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.blog-article li { margin-bottom: 8px; }
.blog-article blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px; margin: 24px 0;
  background: rgba(53,102,224,0.08); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text);
}

/* ---- BOOK/ASSESSMENT ---- */
.book-form {
  max-width: 600px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 40px 36px; background: var(--surface);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px; font-size: 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-family: var(--font);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* ---- TEAM MARQUEE (about page) ---- */
.team-marquee { padding: 64px 0; overflow: hidden; border-top: 1px solid var(--border); }
.team-marquee-row {
  display: flex; gap: 12px; width: max-content; margin-bottom: 12px;
}
.team-marquee-row.row1 { animation: teamScroll 40s linear infinite; }
.team-marquee-row.row2 { animation: teamScrollReverse 45s linear infinite; }
.team-marquee-row img {
  height: 120px; width: auto; border-radius: 10px; object-fit: cover; display: block;
}
@keyframes teamScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes teamScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---- NUMBER TICKER ---- */
.ticker {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- GLOW CARD (enhanced hover) ---- */
.glow-card {
  position: relative; overflow: hidden;
}
.glow-card::before {
  content: ''; position: absolute; inset: -1px;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(53,102,224,0.15), transparent 40%);
  z-index: 0; opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-content { grid-template-columns: 1fr; }
  .cs-article { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --pad: 16px; }

  .nav-links, .nav-phone, .nav-right .btn-ghost-sm { display: none; }
  .mobile-menu-btn { display: block; }

  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .page-hero h1 { font-size: 32px; }

  .grid-3, .grid-4, .grid-5,
  .workflow-grid, .cases-grid, .how-grid,
  .industry-grid, .logo-grid, .blog-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .diff-grid, .results-grid, .grid-2 { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .stats-bar { gap: 32px; }
  .demo-tabs { overflow-x: auto; }
  .tab-bar { overflow-x: auto; }

  .phase-header { flex-direction: column; gap: 8px; }
  .phase-number { font-size: 36px; }

  .cta-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---- Final CTA (used on blog, case studies, subpages) ---- */
.section-dark { background: rgba(255,255,255,0.03); }
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 16px; }
.final-cta p { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.final-cta .email { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: rgba(248,250,252,0.35); margin-top: 16px; }
