/* ═══════════════════════════════════════════════════════════════
   8bitflow Design System — Consolidated Base + Polish
   Single source of truth for components, typography, & global polish.
   Loaded inside @layer base so mobile.css (@layer mobile) wins cleanly.
   ═══════════════════════════════════════════════════════════════ */

/* ── Cap decorative blur blobs to viewport so they never force horizontal overflow ──
   Defined OUTSIDE @layer because max-width is defensive, not cosmetic,
   and must win regardless of layer priority. */
[class*="blur-"].absolute.pointer-events-none {
  max-width: calc(100vw - 2rem) !important;
  max-height: 100vh !important;
}

/* Final defensive UI normalization for generated/animated labels. */
.hero-viz *,
.hiw-viz *,
.dl-root [class*="label"],
.dl-root [class*="sub"],
.text-\[11px\],
.text-\[10px\],
.text-\[9px\],
.featured-industry-card .text-\[11px\],
#featured-container .text-\[11px\] {
  font-size: 12px !important;
}

[data-img-reveal] {
  transform: none !important;
  clip-path: none !important;
  opacity: 1 !important;
}

.absolute.top-0.right-0.w-64,
.absolute.-top-8.-right-8.w-24 {
  right: 0 !important;
  max-width: min(10rem, calc(100vw - 2rem)) !important;
}

@media (max-width: 1100px) {
  .absolute.top-0.right-0.w-64 {
    width: 7rem !important;
    height: 7rem !important;
    transform: none !important;
  }
}

@layer base {

/* ── Foundation ── */
html { scroll-behavior: smooth; }

@property --color-primary {
  syntax: '<color>'; inherits: true; initial-value: #a78bfa;
}
@property --color-tertiary {
  syntax: '<color>'; inherits: true; initial-value: #34d399;
}

/* ── Scrollbar (was in site-polish.css) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #09090b; border-radius: 0; }
::-webkit-scrollbar-thumb { background: #262630; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a78bfa; }
html { scrollbar-width: thin; scrollbar-color: #262630 #09090b; }

/* ── Selection (was in site-polish.css) ── */
::selection { background: rgba(167,139,250,0.25); color: #fafafa; }

/* ── Typography (was in site-polish.css) ── */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
p { line-height: 1.75; }

/* ── Smooth image loading (was in site-polish.css) ── */
img { transition: opacity 0.3s ease; }
img[loading="lazy"], img[loading="eager"] { opacity: 1; }

/* ── Link polish (was in site-polish.css) ── */
a { transition: color 0.2s ease, opacity 0.2s ease; }

/* ── Inline code (was in site-polish.css) ── */
code {
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  color: #a78bfa;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* ── Pre/code blocks (was in site-polish.css) ── */
pre {
  background: #121215;
  border: 1px solid #262630;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
}
pre code { background: none; border: none; padding: 0; }

/* ── Tables (was in site-polish.css) ── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #262630;
  border-radius: 0.75rem;
  overflow: hidden;
}
th {
  background: #121215;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #262630;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9d9db5;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(38,38,48,0.5);
  font-size: 0.875rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(167,139,250,0.03); }

/* ── Blockquote (was in site-polish.css) ── */
blockquote {
  border-left: 2px solid #a78bfa;
  padding-left: 1rem;
  margin-left: 0;
  color: #9d9db5;
  font-style: italic;
}

/* ── Horizontal rule (was in site-polish.css) ── */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.15), rgba(52,211,153,0.15), transparent);
}

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #34d399);
  z-index: 9999;
  transition: width 0.1s linear;
  will-change: width;
}

/* ── Nav Bar (desktop ≥ 768px) ── */
@media (min-width: 768px) {
  nav[aria-label="Main navigation"] .max-w-7xl,
  nav.fixed:not([aria-label="Mobile navigation"]) .max-w-7xl {
    gap: 1rem;
  }

  [data-nav-indicator] {
    padding: 0.25rem;
    border: 1px solid rgba(39,39,42,0.72);
    border-radius: 9999px;
    background: rgba(18,18,25,0.58);
  }

  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.8rem;
    border-radius: 9999px;
    color: #9d9db5;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.nav-active,
  .nav-link[aria-current="page"] {
    color: #fafafa;
    background: rgba(167,139,250,0.09);
  }

  .nav-link.nav-active,
  .nav-link[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(167,139,250,0.16);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem; right: 0.75rem; bottom: 0.26rem;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #34d399);
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(167,139,250,0.5);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  }
  .nav-link.nav-active::after,
  .nav-link:hover::after { transform: scaleX(1); }
  [data-nav-indicator] .nav-link:not(.nav-active):hover::after {
    background: rgba(167,139,250,0.55); box-shadow: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex-shrink: 0;
  }

  .currency-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.1875rem;
    border: 1px solid rgba(39,39,42,0.9);
    border-radius: 9999px;
    background: rgba(18,18,25,0.72);
  }

  .currency-toggle button {
    min-width: 3rem;
    padding: 0.3125rem 0.5rem;
    border-radius: 9999px;
    color: #9d9db5;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .currency-toggle button:hover {
    color: #fafafa;
  }

  .currency-toggle button.is-active {
    color: #a78bfa;
    background: rgba(167,139,250,0.14);
    box-shadow: inset 0 0 0 1px rgba(167,139,250,0.2);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  nav[aria-label="Main navigation"] .max-w-7xl,
  nav.fixed:not([aria-label="Mobile navigation"]) .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-link {
    padding-left: 0.62rem;
    padding-right: 0.62rem;
    font-size: 0.8125rem;
  }

  nav[aria-label="Main navigation"] a[href*="case-studies"],
  nav[aria-label="Main navigation"] a[href*="trust"],
  nav.fixed:not([aria-label="Mobile navigation"]) a[href*="case-studies"],
  nav.fixed:not([aria-label="Mobile navigation"]) a[href*="trust"] {
    display: none;
  }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #ede9fe; font-weight: 600; font-size: 1rem;
  padding: 0.75rem 2rem; border-radius: 0.625rem;
  border: none; cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 8px rgba(124,58,237,0.25), 0 1px 3px rgba(167,139,250,0.15);
  letter-spacing: -0.01em;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.06));
}
.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
  box-shadow: 0 8px 32px rgba(167,139,250,0.35), 0 2px 8px rgba(124,58,237,0.2);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(0.97) translateY(0); box-shadow: 0 1px 4px rgba(124,58,237,0.2); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 2px #09090b, 0 0 0 4px #a78bfa; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(167,139,250,0.06); color: #fafafa; font-weight: 600; font-size: 1rem;
  padding: 0.75rem 2rem; border-radius: 0.625rem;
  border: 1px solid rgba(167,139,250,0.2); cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1); letter-spacing: -0.01em;
}
.btn-secondary:hover {
  background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.4);
  box-shadow: 0 4px 20px rgba(167,139,250,0.1); transform: translateY(-2px);
}
.btn-secondary:active { transform: scale(0.97) translateY(0); background: rgba(167,139,250,0.08); }
.btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 2px #09090b, 0 0 0 4px #a78bfa; }

/* ── Refined Card System ── */
.card, .card-interactive, .glass-panel {
  border-radius: 1rem;
}

.card {
  background: linear-gradient(135deg, rgba(24, 24, 29, 0.6) 0%, rgba(20, 20, 24, 0.8) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden; position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(167,139,250,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover { border-color: rgba(167,139,250,0.15); box-shadow: 0 12px 40px -12px rgba(167,139,250,0.1); }
.card:hover::before { opacity: 1; }

.card-interactive {
  background: linear-gradient(135deg, rgba(24, 24, 29, 0.6) 0%, rgba(20, 20, 24, 0.8) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer; position: relative;
  transition: border-color 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card-interactive::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(167,139,250,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card-interactive:hover {
  border-color: rgba(167,139,250,0.35);
  background: linear-gradient(135deg, rgba(30, 30, 36, 0.7) 0%, rgba(24, 24, 29, 0.9) 100%);
  box-shadow: 0 20px 48px -12px rgba(167,139,250,0.2);
  transform: translateY(-4px);
}
.card-interactive:hover::before { opacity: 1; }
.card-interactive:active { transform: scale(0.98) translateY(0); }

/* ── Product Tile ── */
.product-tile {
  background: linear-gradient(135deg, rgba(24, 24, 29, 0.6) 0%, rgba(20, 20, 24, 0.8) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.product-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(167,139,250,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.product-tile:hover {
  border-color: rgba(167,139,250,0.35);
  background: linear-gradient(135deg, rgba(30, 30, 36, 0.7) 0%, rgba(24, 24, 29, 0.9) 100%);
  box-shadow: 0 20px 48px -12px rgba(167,139,250,0.2);
  transform: translateY(-4px);
}
.product-tile:hover::before { opacity: 1; }
.product-tile:active { transform: scale(0.98) translateY(0); }

.process-step-card {
  border: 1px solid rgba(167, 139, 250, 0.12);
  background: linear-gradient(135deg, rgba(24, 24, 29, 0.72), rgba(14, 14, 18, 0.84));
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.process-step-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.08);
}

.status-card {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(24, 24, 29, 0.6) 0%, rgba(20, 20, 24, 0.8) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.status-card:hover {
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 8px 32px -8px rgba(52, 211, 153, 0.12);
  transform: translateY(-2px);
}
.status-card:active {
  transform: scale(0.98) translateY(0);
}

.card-interactive:focus-visible,
.product-tile:focus-visible {
  outline: none;
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 2px #09090b, 0 0 0 4px rgba(167,139,250,0.65), 0 18px 42px -20px rgba(167,139,250,0.4);
}

/* ── Glass Panel ── */
.glass-panel {
  background: rgba(18,18,25,0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.glass-panel:hover {
  background: rgba(24,24,32,0.75); border-color: rgba(167,139,250,0.25);
}

/* ── Glass utilities ── */
.glass {
  background: rgba(18,18,25,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(82,82,91,0.3);
}
.glass-light {
  background: rgba(18,18,25,0.4);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(82,82,91,0.2);
}

/* ── Form Inputs ── */
.form-input {
  width: 100%; background: #09090b; border: 1px solid #262630; border-radius: 0.5rem;
  padding: 0.75rem 1rem; color: #fafafa; font-family: 'Geist', sans-serif; font-size: 0.9375rem;
  transition: border-color 0.25s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.25s cubic-bezier(0.16,1,0.3,1),
              background 0.25s ease;
}
.form-input::placeholder { color: #505060; }
.form-input:hover { border-color: #3e3e4c; }
.form-input:focus {
  outline: none; border-color: #a78bfa; background: #0c0c0f;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12), 0 0 20px -8px rgba(167,139,250,0.15);
}
.form-input:focus-visible { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,0.12), 0 0 20px -8px rgba(167,139,250,0.15); }

.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: #fafafa; }

/* ── Section Heading ── */
.section-heading {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 2rem;
  letter-spacing: -0.03em; line-height: 1.15; color: #fafafa;
}
@media (min-width: 768px) {
  .section-heading { font-size: 2.75rem; }
}

/* ── Hero Heading ── */
.hero-heading {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 2.75rem;
  letter-spacing: -0.03em; line-height: 1.05; color: #fafafa;
}
@media (min-width: 768px) {
  .hero-heading { font-size: 4.75rem; }
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(18,18,25,0.8));
  border: 1px solid rgba(167,139,250,0.2); border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem; font-weight: 500; color: #a78bfa;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-badge:hover { border-color: rgba(167,139,250,0.4); box-shadow: 0 0 20px -8px rgba(167,139,250,0.2); }

/* ── Icon Utilities ── */
.icon-filled {
  font-variation-settings: 'FILL' 1;
}

/* ── Feature Icon ── */
.feature-icon {
  width: 3rem; height: 3rem;
  background: linear-gradient(135deg, rgba(167,139,250,0.15) 0%, rgba(167,139,250,0.05) 100%);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(167,139,250,0.15);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1); flex-shrink: 0;
}
.feature-icon:hover {
  background: linear-gradient(135deg, rgba(167,139,250,0.25) 0%, rgba(167,139,250,0.1) 100%);
  border-color: rgba(167,139,250,0.3); box-shadow: 0 4px 16px rgba(167,139,250,0.15);
}

/* ── Stat Item ── */
.stat-item { text-align: center; padding: 1rem; border-radius: 0.75rem; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.stat-item:hover { background: rgba(167,139,250,0.04); }

/* ── Gradient Text ── */
.text-gradient-primary {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background: linear-gradient(135deg, #a78bfa 0%, #34d399 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Footer ── */
footer[role="contentinfo"] {
  position: relative;
  overflow: hidden;
}
footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.42), rgba(52,211,153,0.18), transparent);
  opacity: 0.95;
  pointer-events: none;
}
footer[role="contentinfo"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(40rem, 78vw);
  height: 8rem;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(167,139,250,0.16) 0%, rgba(167,139,250,0.05) 34%, rgba(167,139,250,0) 72%);
  filter: blur(18px);
  opacity: 0.78;
  pointer-events: none;
}
footer[role="contentinfo"] > * {
  position: relative;
  z-index: 1;
}
.footer-link {
  display: inline-flex; width: fit-content;
  color: #a7a7bd; font-size: 0.875rem; text-decoration: underline;
  text-decoration-color: rgba(167,139,250,0);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28rem;
  transition: color 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, text-decoration-color 0.25s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
  opacity: 0.82;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: #d8ccff;
  opacity: 1;
  text-decoration-color: rgba(167,139,250,0.65);
  transform: translateX(2px);
}
.footer-link:focus-visible {
  outline: none;
}

/* ── Glow Dot ── */
.glow-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.5);
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(52,211,153,0.5); }
  50% { box-shadow: 0 0 16px rgba(52,211,153,0.8); }
}

/* ── Focus Ring ── */
.focus-ring:focus-visible {
  outline: none; box-shadow: 0 0 0 2px #09090b, 0 0 0 4px #a78bfa; border-radius: 0.375rem;
}

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.15), rgba(52,211,153,0.15), transparent);
  border: none; margin: 0;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 60;
  background: #a78bfa; color: #0a0012;
  padding: 0.5rem 1rem; border-radius: 0.375rem; font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  line-height: 1; white-space: nowrap;
}
.badge-primary   { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.badge-tertiary  { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
  .badge-muted     { background: rgba(161,161,170,0.1); color: #9d9db5; border: 1px solid rgba(161,161,170,0.15); }

  .metric-label {
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .roi-card-label {
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .range-label {
    font-size: 0.75rem;
    color: rgba(157, 157, 181, 0.9);
  }

  /* ── Range Slider ── */
.range-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: #18171d; border-radius: 9999px; outline: none; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: #a78bfa; border: 2px solid #09090b;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(167,139,250,0.15); }
.range-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #a78bfa; border: 2px solid #09090b; cursor: pointer; }
.range-slider:focus-visible { outline: none; }
.range-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(167,139,250,0.3); }
.range-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(167,139,250,0.3); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #18171d 25%, #262630 37%, #18171d 63%);
  background-size: 400% 100%;
  animation: skeletonPulse 1.4s ease infinite;
  border-radius: 0.375rem; color: transparent !important; pointer-events: none; user-select: none;
}
@keyframes skeletonPulse { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Industry Card ── */
.industry-card {
  will-change: opacity, transform;
}

/* ── Category Filter Button ── */
.category-filter-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-filter-btn.active {
  background: #a78bfa !important;
  color: #0a0012 !important;
  border-color: transparent !important;
  box-shadow: 0 0 16px -4px rgba(167,139,250,0.4);
}

/* ── Industry Featured Card ── */
.industry-featured-card {
  position: relative;
  overflow: hidden;
}

/* ── Industry Metric ── */
.industry-metric {
  font-weight: 700;
  line-height: 1.1;
}

/* ── Industry Client Grid ── */
.industry-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

/* ── Site Footer Grid ── */
.site-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 767.98px) {
  .site-footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

/* ── Scroll-snap for carousels (was in site-polish.css) ── */
[data-scroll-snap] {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
[data-scroll-snap] > * { scroll-snap-align: start; }

[data-scroll-affordance] {
  scroll-padding-inline: 1rem;
}

.scroll-fade-shell {
  position: relative;
  --scroll-fade-color: 9, 9, 11;
}

.scroll-fade-shell::before,
.scroll-fade-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(1rem, 3vw, 1.5rem);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.scroll-fade-shell::before {
  left: 0;
  background: linear-gradient(to right, rgba(var(--scroll-fade-color), 0.96), rgba(var(--scroll-fade-color), 0));
}

.scroll-fade-shell::after {
  right: 0;
  background: linear-gradient(to left, rgba(var(--scroll-fade-color), 0.96), rgba(var(--scroll-fade-color), 0));
}

@media (max-width: 1023.98px) {
  .scroll-fade-shell[data-scroll-fade]::before,
  .scroll-fade-shell[data-scroll-fade]::after {
    opacity: 1;
  }
}

/* ── Rounded image corners (was in site-polish.css) ── */
img.rounded-card { border-radius: 0.75rem; }
img.rounded-full-card { border-radius: 9999px; }

/* ── Subtle vignette overlay (was in site-polish.css) ── */
.vignette {
  position: relative;
}
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(9,9,11,0.4);
  border-radius: inherit;
}

/* ── Enhanced focus for interactive elements (was in site-polish.css) ── */
button, a, input, textarea, select {
  transition: outline-offset 0.15s ease, box-shadow 0.15s ease;
}

/* ── Safe area utility ── */
.pb-safe { padding-bottom: max(env(safe-area-inset-bottom, 0px), 0.5rem); }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  [data-animate], [data-hover-lift], [data-hover-scale], [data-hover-shine],
  [data-float], .animate-marquee, .skeleton {
    animation: none !important; transition: none !important; transform: none !important;
  }
  [data-hover-lift]:hover { transform: none !important; box-shadow: none !important; }
}

/* ── Mobile Touch Targets (base layer — refined by @layer mobile) ── */
@media (max-width: 767.98px) {
  body { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  .btn-primary, .btn-secondary { padding: 0.875rem 1.5rem; }
  .footer-link { padding: 0.5rem 0; }
  .badge { padding: 0.375rem 0.75rem; font-size: 0.6875rem; }
  .form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select { font-size: 16px; }
}

/* ── Shared premium patterns for all pages ── */

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fafafa;
}

.page-section-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.5rem;
}

.trust-section-kicker {
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-cta-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(24, 24, 29, 0.6));
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  font-size: 0.75rem;
  font-weight: 500;
  color: #a78bfa;
  white-space: nowrap;
}

.legal-content {
  max-width: 48rem;
  margin-inline: auto;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.75;
}

/* Sitewide proportion pass */
body,
button,
input,
textarea,
select {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline,
.font-display,
.font-label {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p,
li,
a,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

main,
section {
  max-width: 100%;
}

.tracking-tight,
.tracking-tighter,
[class*="tracking-["] {
  letter-spacing: 0 !important;
}

.btn-primary,
.btn-secondary,
.nav-link,
.footer-link {
  letter-spacing: 0 !important;
}

.card,
.card-interactive,
.glass-panel,
.product-tile,
.status-card,
.page-cta-card,
.metric-card,
.testimonial-card {
  border-radius: 0.75rem;
}

.card.p-8,
.card-interactive.p-8,
.glass-panel.p-8,
.page-cta-card.p-8 {
  padding: 1.75rem;
}

.card.p-12,
.card-interactive.p-12,
.glass-panel.p-12,
.page-cta-card.p-12 {
  padding: 2.5rem;
}

.card h3,
.card-interactive h3,
.glass-panel h3,
.product-tile h3,
.status-card h3 {
  line-height: 1.2;
}

.card p,
.card-interactive p,
.glass-panel p,
.product-tile p,
.status-card p {
  line-height: 1.62;
}

h1.page-hero-title {
  font-size: 3.75rem;
  line-height: 1.04;
}

/* ── AI Coach Workshop Landing Page ── */
.ai-workshop-page .feature-icon {
  width: 3rem;
  height: 3rem;
}

.workshop-mini-stat {
  padding: 0.95rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  background: rgba(18,18,25,0.58);
  text-align: center;
}

.workshop-mini-stat strong {
  display: block;
  color: #fafafa;
  font-size: 1rem;
  line-height: 1.15;
}

.workshop-mini-stat span {
  display: block;
  margin-top: 0.25rem;
  color: #9d9db5;
  font-size: 0.75rem;
}

.brand-pill {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(18,18,25,0.68), rgba(12,12,15,0.9));
  color: #fafafa;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.86;
}

.workshop-inclusions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workshop-inclusions > div {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.875rem;
  background: rgba(9,9,11,0.28);
}

.workshop-inclusions .material-symbols-outlined {
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.workshop-inclusions strong {
  display: block;
  color: #fafafa;
  margin-bottom: 0.35rem;
}

.workshop-inclusions p {
  margin: 0;
  color: #9d9db5;
  font-size: 0.9rem;
}

.workshop-timeline {
  position: relative;
  max-width: 58rem;
  margin: 0 auto;
}

.workshop-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(167,139,250,0.45), rgba(52,211,153,0.28), transparent);
}

.timeline-card {
  position: relative;
  width: calc(50% - 2.25rem);
  margin-bottom: 2rem;
}

.timeline-card:nth-child(odd) { margin-right: auto; }
.timeline-card:nth-child(even) { margin-left: auto; }

.timeline-marker {
  position: absolute;
  top: 1.25rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #121215;
  border: 1px solid rgba(167,139,250,0.45);
  color: #a78bfa;
  font-weight: 800;
  box-shadow: 0 0 0 6px #09090b;
}

.timeline-card:nth-child(odd) .timeline-marker { right: -3.35rem; }
.timeline-card:nth-child(even) .timeline-marker { left: -3.35rem; }

.timeline-card-body {
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(24,24,29,0.78), rgba(12,12,15,0.95));
}

.timeline-top span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-top strong {
  display: block;
  color: #fafafa;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #9d9db5;
  font-size: 0.9rem;
}

.timeline-card li { margin: 0.45rem 0; }

.testimonial-card {
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(24,24,29,0.72), rgba(12,12,15,0.92));
}

.testimonial-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(167,139,250,0.12);
  color: #a78bfa;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: #fafafa;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  display: block;
  color: #fafafa;
  font-style: normal;
  font-weight: 700;
}

.testimonial-card cite span {
  display: block;
  margin-top: 0.15rem;
  color: #9d9db5;
  font-size: 0.8rem;
  font-weight: 500;
}

.pricing-card {
  border: 1px solid rgba(167,139,250,0.28);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(30,30,36,0.9), rgba(12,12,15,0.98));
  box-shadow: 0 24px 90px -44px rgba(167,139,250,0.65);
}

.pricing-list {
  display: grid;
  gap: 0.75rem;
  color: #fafafa;
}

.pricing-list li {
  position: relative;
  padding-left: 1.65rem;
}

.pricing-list li::before {
  content: "check_circle";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: 'Material Symbols Outlined';
  color: #34d399;
}

.value-compare { align-self: stretch; }

.compare-row,
.compare-total,
.compare-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.compare-row span { color: #9d9db5; }
.compare-row strong { color: #fafafa; }

.compare-total {
  margin-top: 0.5rem;
  color: #fafafa;
  font-weight: 800;
}

.compare-total strong { color: #34d399; font-size: 1.4rem; }

.compare-pay {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 0.875rem;
  background: rgba(167,139,250,0.08);
  color: #fafafa;
  font-weight: 800;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.875rem;
  background: rgba(18,18,25,0.72);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.25rem;
  color: #fafafa;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: #a78bfa;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "-"; }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #9d9db5;
}

.workshop-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
  background: linear-gradient(180deg, rgba(9,9,11,0), rgba(9,9,11,0.96) 24%);
}

@media (min-width: 1024px) {
  main > section:first-of-type p {
    max-width: 42rem;
  }
}

} /* end @layer base */
