/* ==========================================================================
   FABLE DIGITAL PRODUCTS & SOLUTIONS - PRO STYLESHEET
   Engineered with Chrome Modern Web Guidance, 120 FPS Compositor Motion & Spotlight Shaders
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Heavy Luxury Black & White (Obsidian & Platinum) */
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #121212;
  --bg-glass: rgba(10, 10, 10, 0.88);
  --bg-glass-card: rgba(14, 14, 14, 0.78);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.34);

  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-inverse: #000000;

  /* Accent Brand Gradients & Solid Colors - Crisp Monochrome with Platinum Sheen */
  --brand-primary: #ffffff;
  --brand-cyan: #38bdf8;
  --brand-emerald: #10b981;
  --brand-purple: #c084fc;
  --brand-amber: #fbbf24;
  --brand-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  --gradient-neon: linear-gradient(90deg, #ffffff, #a1a1aa, #ffffff);
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(255, 255, 255, 0.12);

  /* Layout */
  --header-height-initial: 82px;
  --header-height-shrunk: 66px;
  --max-width: 1220px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.92);
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-highlight: rgba(79, 70, 229, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.12);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color-scheme: dark light;
  scroll-padding-top: var(--header-height-initial);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Interactive Ambient Aurora Mesh Gradient System */
.aurora-ambient-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
  background: var(--bg-primary);
  contain: strict;
}

.aurora-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.38;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

[data-theme="light"] .aurora-mesh-orb {
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: blur(35px);
}

.orb-primary {
  top: -12%;
  left: 15%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  animation: aurora-drift-1 18s ease-in-out infinite alternate;
}

.orb-cyan {
  top: 18%;
  right: -8%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(220, 230, 245, 0.06) 0%, rgba(220, 230, 245, 0) 70%);
  animation: aurora-drift-2 22s ease-in-out infinite alternate;
}

.orb-purple {
  top: 55%;
  left: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  animation: aurora-drift-3 20s ease-in-out infinite alternate;
}

.orb-emerald {
  bottom: -12%;
  right: 20%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(200, 215, 235, 0.05) 0%, rgba(200, 215, 235, 0) 70%);
  animation: aurora-drift-4 24s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(70px, 50px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, 80px, 0) scale(0.96); }
}

@keyframes aurora-drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-60px, 70px, 0) scale(1.05); }
  100% { transform: translate3d(50px, -40px, 0) scale(0.94); }
}

@keyframes aurora-drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(50px, -60px, 0) scale(1.1); }
  100% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

@keyframes aurora-drift-4 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -50px, 0) scale(1.06); }
  100% { transform: translate3d(60px, 30px, 0) scale(0.92); }
}

.aurora-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
}

[data-theme="light"] .aurora-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.aurora-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Eliminate browser default blue tap-highlight and click flash */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}

button, a, input, select, textarea, [role="button"], [tabindex] {
  -webkit-tap-highlight-color: transparent !important;
}

/* Prevent default browser blue focus rings on mouse click while preserving accessibility for keyboard */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

[data-theme="light"] :focus-visible {
  outline: 2px solid #0f172a;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Scroll Progress Indicator (MWG: scroll-progress-indicator)
   -------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-scroll-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    #scroll-progress {
      animation: grow-scroll-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* --------------------------------------------------------------------------
   4. Global Header & Pro Floating Capsule Navigation (Black & White Luxury)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-inline: 1rem;
  margin-bottom: -14px;
  transition: transform 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 64px;
  padding-inline: 1.25rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  position: relative;
  max-width: 1380px;
  width: min(1380px, calc(100% - 1.5rem));
  margin-inline: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle Shimmer Border Animation (Platinum Monochrome Sheen) */
.header-inner::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-full);
  padding: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: neon-flow 12s linear infinite;
}

@keyframes neon-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.site-header.is-shrunk .header-inner {
  height: 54px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
  z-index: 2;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.brand-logo-icon svg {
  width: 100%;
  height: 100%;
}

.brand-mark-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1;
}

.fable-wordmark {
  display: block;
  height: 18px;
  width: auto;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fable-wordmark-footer {
  height: 22px;
}

.site-brand:hover .fable-wordmark {
  opacity: 0.88;
}

[data-theme="light"] .fable-wordmark {
  color: #090d16;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

[data-theme="light"] .brand-name {
  color: #09090b;
}

.brand-tagline {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #a1a1aa;
}

[data-theme="light"] .brand-tagline {
  color: #475569;
}

/* Nav Menu Centered Island */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  z-index: 1;
}

.site-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1aa;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  white-space: nowrap;
}

.nav-link:hover, .nav-link:focus-visible, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-link {
  color: #52525b;
}

[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link:focus-visible {
  color: #09090b;
  background: rgba(0, 0, 0, 0.06);
}

/* Header Actions Hub */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 2;
}

.header-cta {
  height: 40px;
  padding-inline: 1.25rem;
  font-size: 0.86rem;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.menu-icon-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-icon-box .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 1rem;
  right: 1rem;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 2000;
  animation: mobileMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-dropdown-menu[hidden] {
  display: none !important;
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d4d4d8;
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-menu-actions {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-meta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-aura 2s infinite;
}

.header-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  max-width: 175px;
}

.header-cta {
  padding: 0.48rem 1.15rem;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.menu-button {
  display: none;
}

.mobile-cta-item {
  display: none;
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: var(--bg-surface-elevated);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Global [hidden] Enforcement */
[hidden],
.icon-btn svg[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. Buttons & Magnetic Micro-Motion
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.22);
  border: 1px solid #ffffff;
  font-weight: 700;
}

.btn-primary:hover {
  background: #e4e4e7;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.38);
}

.btn-primary:active {
  background: #d4d4d8 !important;
  color: #000000 !important;
  transform: scale(0.96) !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2) !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline:active {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  color: #ffffff !important;
  transform: scale(0.96) !important;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn svg,
.btn-arrow, .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow, .btn:hover .btn-icon {
  transform: translateX(4px);
}

.link-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-btn:hover {
  color: #a1a1aa;
  gap: 0.55rem;
}
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-btn:hover {
  color: #38bdf8;
  gap: 0.6rem;
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-aura 2s infinite;
}

/* --------------------------------------------------------------------------
   6. 3D Spotlight Shader Effect & Iridescent Border Beam for Cards
   Radial specular gradient & cursor-tracking border beam via --mouse-x, --mouse-y
   -------------------------------------------------------------------------- */
.spotlight-card {
  position: relative;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.16), transparent 45%), var(--bg-glass-card);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Linear / Raycast Style Iridescent Border-Beam on Mouse Move */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(168, 85, 247, 0.85),
    rgba(56, 189, 248, 0.6) 30%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.18);
}

[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(
    450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(147, 51, 234, 0.7),
    rgba(14, 165, 233, 0.5) 30%,
    transparent 65%
  );
}

/* --------------------------------------------------------------------------
   7. Hero Section & Atmosphere Glow
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-block: 3.75rem 3.5rem;
  overflow: hidden;
}

.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.orb-2 {
  top: 25%;
  right: 5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
}

.orb-3 {
  bottom: 0;
  left: 40%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
}

.glow-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, #000 60%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-block: 1.5rem 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Kinetic Typography Reveal Engine (Zero Layout Shift) */
.kinetic-words-viewport {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  vertical-align: bottom;
  min-width: 380px;
}

@media (max-width: 640px) {
  .kinetic-words-viewport {
    min-width: 280px;
  }
}

.kinetic-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(115%);
  opacity: 0;
  filter: blur(8px);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
  pointer-events: none;
}

.kinetic-word.active {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.kinetic-word.exit {
  position: absolute;
  transform: translateY(-115%);
  opacity: 0;
  filter: blur(8px);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.hero-cta-group .btn-lg {
  padding: 0.72rem 0.98rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-cta-group .cta-text-mobile {
  display: none;
}

.hero-cta-group .cta-text-full {
  display: inline;
}

.hero-cta-group .hero-cta-btn-primary {
  border: none !important;
}

.hero-cta-group .hero-cta-btn-secondary {
  border: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.hero-cta-group .hero-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.hero-cta-group .hero-cta-btn-tertiary {
  border: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-secondary) !important;
}

.hero-cta-group .hero-cta-btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.hero-metrics-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  max-width: 600px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   8. 3D Interactive Hero Device Showcase (Apple / Linear Caliber)
   -------------------------------------------------------------------------- */
.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-stage {
  perspective: 1400px;
  width: 100%;
  max-width: 620px;
}

.hero-device-perspective {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.device-ambient-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.15), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  transform: translateZ(-30px);
}

.device-frame-box {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.9), 0 0 55px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #07070b;
  transition: box-shadow 0.3s ease;
}

.hero-flagship-render {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.4s ease;
}

.device-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%, rgba(6, 182, 212, 0.08) 100%);
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Floating Micro Halo Badges (Non-overlapping geometry) */
.halo-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.5rem 0.88rem;
  border-radius: var(--radius-md);
  background: rgba(14, 20, 36, 0.86);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  font-size: 0.76rem;
  white-space: nowrap;
  transform: translateZ(50px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.halo-badge strong {
  display: block;
  font-size: 0.77rem;
  line-height: 1.15;
  color: var(--text-primary);
}

.halo-badge small {
  display: block;
  font-size: 0.66rem;
  line-height: 1.15;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.badge-top-right {
  top: -22px;
  right: -12px;
  animation: float-gentle-1 5s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: -24px;
  left: -14px;
  animation: float-gentle-2 6s ease-in-out infinite alternate;
}

.badge-bottom-right {
  bottom: -24px;
  right: -14px;
  animation: float-gentle-1 7s ease-in-out infinite alternate 1.5s;
}

/* Infinite Institutional Trust Marquee */
.hero-trust-marquee {
  margin-top: 3.5rem;
  padding-block: 1rem;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 2.75rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee-infinite 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.marquee-star {
  color: #38bdf8;
  font-size: 0.85rem;
}

.badge-icon-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

@keyframes float-gentle-1 {
  0% { transform: translateY(0px) translateZ(40px); }
  100% { transform: translateY(-8px) translateZ(50px); }
}

@keyframes float-gentle-2 {
  0% { transform: translateY(0px) translateZ(40px); }
  100% { transform: translateY(8px) translateZ(50px); }
}

/* --------------------------------------------------------------------------
   9. Featured Work / Selected Case Studies (Showcase Architecture)
   -------------------------------------------------------------------------- */
.work-section {
  padding-block: 6.5rem;
  position: relative;
}

.work-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 3.5rem;
}

.work-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(147, 51, 234, 0.22);
}

/* Dynamic Interactive Glare Layer */
.card-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  mix-blend-mode: screen;
  border-radius: inherit;
}

/* Flagship Project Showcase (Horizontal Split Layout) */
.work-card-flagship {
  background: linear-gradient(135deg, rgba(16, 22, 36, 0.75) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-flagship-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  min-height: 440px;
}

.work-flagship-media {
  position: relative;
  overflow: hidden;
  background: #080b12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-flagship-media .work-visual-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #080b12;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-img {
  transform: scale(1.05);
}

.work-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 24, 0.9) 100%);
  pointer-events: none;
}

.work-category-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.work-flagship-content {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(14, 18, 30, 0.95) 0%, rgba(9, 12, 20, 0.98) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Secondary Projects (Duo Symmetrical Grid) */
.work-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.work-card-compact {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(15, 20, 32, 0.7) 0%, rgba(9, 12, 22, 0.95) 100%);
}

.work-card-compact .work-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080b12;
}

.work-card-compact .work-content {
  padding: 1.6rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Shared Content Metadata */
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.work-client {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 0.45rem;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.work-card-flagship .work-title {
  font-size: 1.55rem;
  line-height: 1.3;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.work-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.85rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.25rem;
}

.impact-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: all 0.25s ease;
}

.work-card:hover .impact-stat {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.impact-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.impact-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.work-stack-pills span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.work-card:hover .work-stack-pills span {
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--text-primary);
}

.work-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.work-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-footer .btn {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.12);
  color: #fff;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.25);
}

/* Dynamic Live Visual Overlays on Case Study Media */
.work-live-telemetry {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
  font-size: 0.72rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
}

.telemetry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-badge 1.5s infinite;
}

.telemetry-rate {
  color: #38bdf8;
  font-weight: 700;
}

.telemetry-lat {
  color: #34d399;
  font-weight: 700;
}

.work-ecg-stream {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.ecg-svg {
  width: 100px;
  height: 20px;
}

.ecg-path {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ecg-dash 2.4s linear infinite;
}

@keyframes ecg-dash {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

.ecg-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
}

.work-spatial-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #c084fc;
}

.spatial-cube-icon {
  display: inline-block;
  animation: spin-cube 6s linear infinite;
}

@keyframes spin-cube {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   9. Common Section Headings
   -------------------------------------------------------------------------- */
.section {
  padding-block: 6rem;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* --------------------------------------------------------------------------
   10. Services Grid & Cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(139, 92, 246, 0.22);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  user-select: none;
}

.service-card:hover .service-icon-img {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 28px rgba(168, 85, 247, 0.45);
  filter: brightness(1.12);
}

.circuit-icon-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(139, 92, 246, 0.25);
  user-select: none;
}

.tech-icon-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-features li::before {
  content: '✓';
  color: #ffffff;
  font-weight: 700;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   11. PRO MIDDLE CONTEXT: Architecture & Cloud Engine Visualizer
   -------------------------------------------------------------------------- */
.arch-tabs-hub {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
}

.arch-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.arch-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-tab-btn .tab-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.arch-tab-btn:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.arch-tab-btn.active {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.arch-tab-btn.active,
.arch-tab-btn.active span {
  color: #000000 !important;
}

.arch-tab-btn.active .tab-badge {
  background: #000000;
  color: #ffffff !important;
  font-weight: 700;
}

.arch-tab-btn.active:hover {
  background: #f4f4f5;
  border-color: #ffffff;
}

.arch-tab-btn.active:hover,
.arch-tab-btn.active:hover span {
  color: #000000 !important;
}

.arch-view {
  display: none;
}

.arch-view.active {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Circuit Flow Canvas (Tab 1) */
.circuit-flow-canvas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.circuit-node {
  flex: 1;
  min-width: 170px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.circuit-node .node-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.circuit-node h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.circuit-node p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.node-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.circuit-connector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 40px;
}

.circuit-connector::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(99, 102, 241, 0.3);
}

.pulse-beam {
  position: absolute;
  width: 24px;
  height: 3px;
  background: #38bdf8;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-travel 2s infinite linear;
}

@keyframes pulse-travel {
  0% { transform: translateX(-40px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(40px); opacity: 0; }
}

.conn-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  position: absolute;
  bottom: -18px;
  white-space: nowrap;
}

.circuit-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #34d399;
  margin-top: 1.25rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-right {
  display: flex;
  align-items: center;
}

.arch-pulse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: var(--radius-full);
}

.arch-pulse-btn:hover,
.arch-pulse-btn.pulsing {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.pulse-icon-lightning {
  color: #facc15;
}

.arch-live-pulse-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
}

.pulse-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.pulse-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.circuit-node.node-active-pulse {
  transform: scale(1.06);
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6) !important;
  transition: all 0.25s ease;
}

.circuit-status-bar .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Core Web Vitals Radar Gauges (Tab 2) */
.cwv-gauges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.gauge-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
}

.gauge-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.gauge-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.gauge-val {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.val-green { stroke: #10b981; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5)); }
.val-cyan { stroke: #06b6d4; filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5)); }
.val-purple { stroke: #a855f7; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)); }

.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-center-text strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
}

.gauge-center-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gauge-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gauge-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Traffic & Revenue Simulator (Tab 3) */
.simulator-box {
  padding: 1.5rem;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.simulator-controls {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.sim-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sim-label strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #38bdf8;
}

.pro-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  outline: none;
  accent-color: var(--brand-cyan);
  cursor: pointer;
}

.sim-slider-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.simulator-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sim-stat-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.sim-stat-kicker {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sim-stat-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-block: 0.35rem;
}

.sim-stat-card small {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Live Code Terminal (Tab 4) */
.code-terminal-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #060911;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #38bdf8;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

.code-pane {
  display: none;
}

.code-pane.active {
  display: block;
}

.token-keyword { color: #f43f5e; font-weight: 600; }
.token-string { color: #34d399; }
.token-fn { color: #38bdf8; }
.token-comment { color: #64748b; font-style: italic; }

/* --------------------------------------------------------------------------
   12. PRO MIDDLE CONTEXT: Legacy Agency vs. Fable Comparison Table
   -------------------------------------------------------------------------- */
.comparison-section {
  position: relative;
  overflow: hidden;
}

.comparison-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}

.col-agency {
  color: var(--text-muted);
}

.col-fable {
  color: #38bdf8;
  background: rgba(99, 102, 241, 0.08) !important;
}

.comparison-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover td.col-fable,
.comparison-table tbody tr td:last-child {
  background: rgba(99, 102, 241, 0.04);
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34d399;
  font-weight: 600;
}

.check-pill::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   13. Interactive Project Scope & Cost Estimator (Ultra-Luxury Suite)
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.estimator-wrapper {
  padding: 3rem 2.5rem;
  max-width: 1060px;
  margin-inline: auto;
  border-radius: 28px;
  background: rgba(10, 10, 13, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.88), 0 0 50px rgba(139, 92, 246, 0.16);
  position: relative;
  overflow: hidden;
}

/* Estimator Header Status Bar */
.estimator-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.est-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e4e4e7;
  letter-spacing: 0.02em;
}

.pulse-dot-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-ring 2s infinite ease-out;
}

.est-engine-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

.estimator-step {
  border: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  color: #ffffff;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c084fc;
}

/* Primary Product Type Selection Cards */
.choice-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.choice-pill {
  cursor: pointer;
  position: relative;
  display: block;
}

.choice-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pill-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.35rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pill-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pill-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-icon-box {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  display: inline-flex;
}

.est-pill-icon-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.65), 0 0 12px rgba(139, 92, 246, 0.25);
  transition: transform 0.25s ease;
}

.pill-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.pill-desc {
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.45;
}

.pill-check-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.25s ease;
}

/* Checked State for Product Type */
.choice-pill input[type="radio"]:checked + .pill-card {
  border-color: rgba(168, 85, 247, 0.65);
  background: rgba(24, 18, 42, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.32);
  transform: translateY(-4px);
}

.choice-pill input[type="radio"]:checked + .pill-card .pill-badge-top {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.choice-pill input[type="radio"]:checked + .pill-card .pill-check-indicator {
  background: #a855f7;
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.choice-pill input[type="radio"]:checked + .pill-card .est-pill-icon-img {
  transform: scale(1.08);
}

/* Step 2: Advanced Feature Checkbox Tiles */
.feature-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}

.feature-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.feature-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-box-custom {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.feature-checkbox:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.feature-checkbox:hover .checkbox-box-custom {
  border-color: rgba(255, 255, 255, 0.45);
}

/* Checked State for Features */
.feature-checkbox.active,
.feature-checkbox:has(input[type="checkbox"]:checked) {
  background: rgba(22, 17, 36, 0.8);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(139, 92, 246, 0.2);
}

.feature-checkbox:has(input[type="checkbox"]:checked) .checkbox-box-custom {
  background: #a855f7;
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.feature-info {
  flex: 1 1 auto;
}

.feature-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.feature-title-row strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-cost-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  white-space: nowrap;
}

.feature-checkbox:has(input[type="checkbox"]:checked) .feature-cost-badge {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.feature-info small {
  display: block;
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.4;
}

/* Step 3: Dynamic Live Estimate Output (Luxury Telemetry Console) */
.estimate-summary-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 16, 26, 0.96) 0%, rgba(10, 10, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(139, 92, 246, 0.22);
  margin-top: 2rem;
}

.summary-details {
  flex: 1 1 450px;
}

.summary-kicker-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.summary-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
}

.feature-counter-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.summary-price-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-price {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: inline-block;
  transform-origin: left center;
}

.price-pulse {
  animation: pricePulse 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pricePulse {
  0% { transform: scale(0.96); filter: brightness(1.2); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); filter: brightness(1); }
}

.price-tier-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.summary-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #d4d4d8;
}

.meta-item svg {
  color: #a855f7;
  flex-shrink: 0;
}

.meta-item strong {
  color: #ffffff;
}

.summary-action-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.estimator-cta {
  height: 52px;
  padding-inline: 2rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.cta-micro-guarantee {
  font-size: 0.76rem;
  color: #71717a;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   14. Modern Standards Grid (Modern Web Guidance & Baseline)
   -------------------------------------------------------------------------- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.standard-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.standard-card:hover {
  transform: translateY(-4px);
}

.standard-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.standard-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.standard-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Technology Stack Tabs & Matrix
   -------------------------------------------------------------------------- */
.tech-pills-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tech-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.tech-tab-btn.active {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

.tech-tab-btn.active:hover {
  background: #f4f4f5;
  color: #000000 !important;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tech-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.tech-card.is-hidden {
  display: none;
}

.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover .tech-icon {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.tech-icon svg {
  width: 24px;
  height: 24px;
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tech-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   16. 5-Step Process Timeline
   -------------------------------------------------------------------------- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.process-step:hover {
  transform: translateX(6px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. Testimonials Grid
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   16B. 3-Month Subscription Plans (Silver & Gold)
   -------------------------------------------------------------------------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 960px;
  margin-inline: auto;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 10, 12, 0.94) 100%);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.plan-card--gold {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, rgba(12, 12, 16, 0.98) 45%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 36px rgba(251, 191, 36, 0.1);
}

.plan-card--gold:hover {
  border-color: rgba(251, 191, 36, 0.72);
}

.plan-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.plan-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
}

.plan-card--gold .plan-tier-badge {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.42);
  color: #fcd34d;
}

.plan-duration-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.plan-card--gold .plan-price {
  background: linear-gradient(135deg, #ffffff 35%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-subnote {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.plan-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1 1 auto;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.plan-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.plan-card--gold .plan-check {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
}

.plan-cross {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  font-size: 0.7rem;
  font-weight: 700;
}

.plan-feature-excluded {
  color: var(--text-muted);
}

[data-theme="light"] .plan-cross {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.3);
  color: #e11d48;
}

.plan-domain-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.35rem;
  line-height: 1.4;
}

.plan-cta-btn {
  width: 100%;
  height: 48px;
  padding: 0.72rem 1.35rem;
  font-size: 0.94rem;
  justify-content: center;
}

.plan-cta-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Light Mode Parity for Plans */
[data-theme="light"] .plan-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .plan-card--gold {
  border-color: rgba(217, 119, 6, 0.42);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 38%);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .plan-tier-badge {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .plan-card--gold .plan-tier-badge {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

[data-theme="light"] .plan-price {
  color: #0f172a;
}

[data-theme="light"] .plan-card--gold .plan-price {
  background: linear-gradient(135deg, #0f172a 35%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .plan-check {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

[data-theme="light"] .plan-card--gold .plan-check {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

[data-theme="light"] .plan-domain-note {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.14);
  color: #475569;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars, .stars-gold-row {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.45));
}

.quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.author-box strong {
  display: block;
  font-size: 0.95rem;
}

.author-box small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   18. FAQ Accordion (MWG Details/Summary)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-highlight);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

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

.faq-icon::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-cyan);
  transition: transform 0.2s ease;
  display: inline-block;
}

.faq-item[open] .faq-icon::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. Bottom CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-box {
  padding: 4rem 3rem;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
}

.cta-banner-content {
  max-width: 680px;
  margin-inline: auto;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-banner-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   20. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-block: 5rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-block: 1rem 1.5rem;
  max-width: 320px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #34d399;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav-col a:hover {
  color: var(--brand-cyan);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   21. Native Modal Dialog (MWG: dialog, forms, accessibility)
   -------------------------------------------------------------------------- */
dialog:modal {
  overscroll-behavior: contain;
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 640px);
  width: 100%;
  max-height: 92dvh;
  max-height: 92vh;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

dialog[open]:modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  dialog[open]:modal {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.25s ease, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: var(--text-primary);
  max-height: inherit;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.modal-close-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.req {
  color: #f43f5e;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.925rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  outline: none;
}

[data-theme="light"] .form-field input:focus,
[data-theme="light"] .form-field select:focus,
[data-theme="light"] .form-field textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-color: #ef4444;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   22. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-exit {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

.toast-success {
  border-left: 4px solid #10b981;
}

/* --------------------------------------------------------------------------
   23. Scroll-Driven Reveal Animations (MWG: scroll-entry-exit-effects)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes card-fade-up {
      entry 0% {
        opacity: 0;
        transform: translateY(30px);
      }
      entry 100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal {
      animation: card-fade-up auto cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 10% contain 40%;
    }
  }
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   23. Comprehensive Light Theme Engine (Complete Card & Typography Contrast)
   -------------------------------------------------------------------------- */

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

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .section-title,
[data-theme="light"] .hero-title {
  color: #090d16;
}

[data-theme="light"] .section-kicker {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .section-desc {
  color: #475569;
}

/* Global Buttons & Interactive Controls in Light Theme */
[data-theme="light"] .btn-primary {
  background: #090d16;
  color: #ffffff;
  border: 1px solid #090d16;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-primary:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.22);
  color: #090d16;
  font-weight: 600;
}

[data-theme="light"] .btn-outline:hover {
  background: #090d16;
  color: #ffffff;
  border-color: #090d16;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #090d16;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #000000;
}

/* Header & Pro Floating Capsule Navigation */
[data-theme="light"] .site-header {
  background: transparent;
}

[data-theme="light"] .header-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

[data-theme="light"] .site-header.is-shrunk .header-inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(124, 58, 237, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header-inner::after {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(0, 0, 0, 0.04), rgba(124, 58, 237, 0.35), rgba(0, 0, 0, 0.04));
}

[data-theme="light"] .site-brand .brand-name {
  color: #090d16;
}

[data-theme="light"] .brand-logo-icon {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .brand-tagline {
  color: #71717a;
}

[data-theme="light"] .site-menu {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link:focus-visible {
  color: #090d16;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-link.active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #090d16;
}

[data-theme="light"] .icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
  color: #000;
}

[data-theme="light"] .header-cta {
  background: #090d16;
  color: #ffffff;
  border-color: #090d16;
}

[data-theme="light"] .header-cta:hover {
  background: #1e293b;
  border-color: #1e293b;
}

[data-theme="light"] .menu-button {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #090d16;
}

[data-theme="light"] .mobile-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-nav-link {
  color: #334155;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Hero Section */
[data-theme="light"] .glow-grid {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero-badge-pill,
[data-theme="light"] .badge-pill {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.24);
  color: #3730a3;
}

[data-theme="light"] .hero-subtitle {
  color: #475569;
}

[data-theme="light"] .hero-metrics-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .metric-number {
  color: #090d16;
}

[data-theme="light"] .metric-label {
  color: #64748b;
}

[data-theme="light"] .metric-divider {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .device-frame-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12), 0 0 45px rgba(139, 92, 246, 0.18);
}

[data-theme="light"] .halo-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07), 0 0 20px rgba(147, 51, 234, 0.12);
}

[data-theme="light"] .halo-badge strong {
  color: #090d16;
}

[data-theme="light"] .halo-badge small {
  color: #64748b;
}

/* Selected Work / Case Studies Section */
[data-theme="light"] .work-card-flagship {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .work-flagship-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .work-card-compact {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .work-card:hover {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 0 40px rgba(147, 51, 234, 0.14);
}

[data-theme="light"] .work-title {
  color: #090d16;
}

[data-theme="light"] .work-desc {
  color: #475569;
}

[data-theme="light"] .work-client {
  color: #64748b;
  font-weight: 600;
}

[data-theme="light"] .work-badge {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="light"] .work-category-pill {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .work-impact-grid {
  border-top-color: rgba(0, 0, 0, 0.07);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .impact-stat {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .work-card:hover .impact-stat {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .impact-number {
  color: #090d16;
}

[data-theme="light"] .text-emerald,
[data-theme="light"] .impact-number.text-emerald {
  color: #059669 !important;
}

[data-theme="light"] .text-cyan,
[data-theme="light"] .impact-number.text-cyan {
  color: #0284c7 !important;
}

[data-theme="light"] .text-indigo,
[data-theme="light"] .impact-number.text-indigo {
  color: #4f46e5 !important;
}

[data-theme="light"] .text-purple,
[data-theme="light"] .impact-number.text-purple {
  color: #7c3aed !important;
}

[data-theme="light"] .impact-label {
  color: #64748b;
}

[data-theme="light"] .work-stack-pills span {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
  font-weight: 500;
}

[data-theme="light"] .work-card:hover .work-stack-pills span {
  border-color: rgba(147, 51, 234, 0.35);
  color: #090d16;
  background: #ffffff;
}

[data-theme="light"] .work-visual-overlay {
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.25) 100%);
}

/* Services Section */
[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-card:hover {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 0 30px rgba(147, 51, 234, 0.12);
}

[data-theme="light"] .service-icon-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .service-card:hover .service-icon-box {
  border-color: #8b5cf6;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .service-title {
  color: #090d16;
}

[data-theme="light"] .service-summary {
  color: #475569;
}

[data-theme="light"] .service-features {
  color: #334155;
}

[data-theme="light"] .service-features li::before {
  color: #7c3aed;
  font-weight: 700;
}

[data-theme="light"] .service-card .card-footer {
  border-top-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .link-btn {
  color: #7c3aed;
  font-weight: 600;
}

[data-theme="light"] .link-btn:hover {
  color: #6d28d9;
}

/* Architecture & Visualizer Section */
[data-theme="light"] .arch-tab-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  color: #475569;
}

[data-theme="light"] .arch-tab-btn:hover {
  border-color: rgba(147, 51, 234, 0.35);
  color: #090d16;
  background: #f8fafc;
}

[data-theme="light"] .arch-tab-btn.active {
  background: #090d16;
  color: #ffffff !important;
  border-color: #090d16;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .arch-tab-btn.active,
[data-theme="light"] .arch-tab-btn.active span {
  color: #ffffff !important;
}

[data-theme="light"] .arch-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-weight: 700;
}

[data-theme="light"] .arch-tab-btn.active:hover {
  background: #1e293b;
  border-color: #1e293b;
}

[data-theme="light"] .arch-tab-btn.active:hover,
[data-theme="light"] .arch-tab-btn.active:hover span {
  color: #ffffff !important;
}

[data-theme="light"] .circuit-flow-canvas {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .circuit-icon {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

[data-theme="light"] .circuit-node {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .circuit-node:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .circuit-node h4 {
  color: #090d16;
}

[data-theme="light"] .circuit-node p {
  color: #64748b;
}

[data-theme="light"] .circuit-node small {
  color: #64748b;
}

[data-theme="light"] .circuit-node .badge-mini {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803d;
  font-weight: 600;
}

[data-theme="light"] .circuit-status-bar {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #059669;
  font-weight: 600;
}

[data-theme="light"] .pulse-stat {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .work-live-telemetry,
[data-theme="light"] .work-ecg-stream,
[data-theme="light"] .work-spatial-tag {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .telemetry-rate {
  color: #0284c7;
}

[data-theme="light"] .telemetry-lat {
  color: #059669;
}

[data-theme="light"] .code-sub-tab {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  color: #475569;
}

[data-theme="light"] .code-sub-tab.active {
  background: #090d16;
  color: #ffffff;
  border-color: #090d16;
}

[data-theme="light"] .circuit-connector::before {
  background: rgba(147, 51, 234, 0.3);
}

[data-theme="light"] .conn-label {
  color: #64748b;
}

[data-theme="light"] .gauge-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .gauge-track {
  stroke: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .gauge-center-text strong {
  color: #090d16;
}

[data-theme="light"] .gauge-card h4 {
  color: #090d16;
}

[data-theme="light"] .gauge-card p {
  color: #475569;
}

[data-theme="light"] .simulator-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sim-label {
  color: #090d16;
}

[data-theme="light"] .sim-stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sim-stat-val {
  color: #090d16;
}

[data-theme="light"] .pro-slider {
  background: #e2e8f0;
}

/* Comparison Table */
[data-theme="light"] .comparison-table-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .comparison-table th {
  background: #f8fafc;
  color: #090d16;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .col-agency {
  color: #64748b;
}

[data-theme="light"] .col-fable {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.06) !important;
}

[data-theme="light"] .comparison-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

[data-theme="light"] .comparison-table td strong {
  color: #090d16;
}

[data-theme="light"] .comparison-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .check-pill {
  color: #059669;
  font-weight: 600;
}

[data-theme="light"] .check-pill::before {
  color: #047857;
}

/* Cost Estimator Suite */
[data-theme="light"] .estimator-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08), 0 0 40px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .estimator-header-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .est-status-pill {
  color: #090d16;
}

[data-theme="light"] .mono-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="light"] .step-label {
  color: #090d16;
}

[data-theme="light"] .step-number {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

[data-theme="light"] .pill-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .pill-card:hover {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pill-title {
  color: #090d16;
}

[data-theme="light"] .pill-desc {
  color: #64748b;
}

[data-theme="light"] .pill-badge-top {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #6d28d9;
  font-weight: 600;
}

[data-theme="light"] .pill-icon-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
}

[data-theme="light"] .pill-check-indicator {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card {
  background: #fbfbfe;
  border-color: #7c3aed;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.14);
}

[data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card .pill-title {
  color: #5b21b6;
}

[data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card .pill-badge-top {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

[data-theme="light"] .feature-checkbox {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .feature-checkbox:hover {
  background: #f8fafc;
  border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .feature-title-row strong {
  color: #090d16;
}

[data-theme="light"] .feature-info small {
  color: #64748b;
}

[data-theme="light"] .feature-cost-badge {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .checkbox-box-custom {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .feature-checkbox:has(input[type="checkbox"]:checked) {
  background: #fbfbfe;
  border-color: #7c3aed;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .feature-checkbox:has(input[type="checkbox"]:checked) .feature-title-row strong {
  color: #5b21b6;
}

[data-theme="light"] .feature-checkbox:has(input[type="checkbox"]:checked) .feature-cost-badge {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  color: #6d28d9;
}

[data-theme="light"] .estimate-summary-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07), 0 0 35px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .summary-tag {
  color: #64748b;
}

[data-theme="light"] .feature-counter-pill {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #6d28d9;
}

[data-theme="light"] .price-tier-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="light"] .summary-price {
  background: linear-gradient(135deg, #090d16 35%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .meta-item {
  color: #475569;
}

[data-theme="light"] .meta-item strong {
  color: #090d16;
}

[data-theme="light"] .estimator-cta {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.3) !important;
}

[data-theme="light"] .estimator-cta:hover {
  background: #6d28d9 !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45) !important;
}

[data-theme="light"] .cta-micro-guarantee {
  color: #64748b;
}

/* Standards, Tech Stack, Process, Testimonials, FAQ */
[data-theme="light"] .standard-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .standard-kicker {
  color: #0284c7;
  font-weight: 700;
}

[data-theme="light"] .standard-title {
  color: #090d16;
}

[data-theme="light"] .standard-desc {
  color: #475569;
}

[data-theme="light"] .tech-tab-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  color: #475569;
}

[data-theme="light"] .tech-tab-btn.active {
  background: #090d16;
  color: #ffffff !important;
  border-color: #090d16;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tech-tab-btn.active:hover {
  background: #1e293b;
  color: #ffffff !important;
}

[data-theme="light"] .tech-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .tech-icon {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .tech-card h4 {
  color: #090d16;
}

[data-theme="light"] .tech-card p {
  color: #64748b;
}

[data-theme="light"] .process-step {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .step-content h3 {
  color: #090d16;
}

[data-theme="light"] .step-content p {
  color: #475569;
}

[data-theme="light"] .step-num {
  color: #7c3aed;
}

[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .quote {
  color: #334155;
}

[data-theme="light"] .author-box strong {
  color: #090d16;
}

[data-theme="light"] .author-box small {
  color: #64748b;
}

[data-theme="light"] .author-avatar {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #090d16;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq-question {
  color: #090d16;
}

[data-theme="light"] .faq-answer {
  color: #475569;
}

/* CTA Banner, Modal, Footer */
[data-theme="light"] .cta-banner-box {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.07), 0 0 45px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .cta-banner-title {
  color: #090d16;
}

[data-theme="light"] .cta-banner-sub {
  color: #475569;
}

[data-theme="light"] .modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #090d16;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .modal-title {
  color: #090d16;
}

[data-theme="light"] .modal-sub {
  color: #64748b;
}

[data-theme="light"] .modal-close-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #090d16;
}

[data-theme="light"] .modal-close-btn:hover {
  background: #e2e8f0;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.14);
  color: #090d16;
}

[data-theme="light"] .form-group label {
  color: #090d16;
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .footer-heading {
  color: #090d16;
}

[data-theme="light"] .footer-desc {
  color: #64748b;
}

[data-theme="light"] .footer-links a {
  color: #475569;
}

[data-theme="light"] .footer-links a:hover {
  color: #090d16;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.07);
  color: #64748b;
}

/* --------------------------------------------------------------------------
   24. Responsive Media Queries (Mobile, Tablet, Desktop & Ultra-Wide)
   -------------------------------------------------------------------------- */

/* Prevent page-level horizontal blowout across all viewports */
html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
}

/* Large Desktop & Ultra-Wide (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
    padding-inline: 2rem;
  }

  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .standards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Desktop Compact & Laptops (1080px to 1240px) */
@media (max-width: 1240px) {
  .site-menu {
    gap: 0.12rem;
    padding: 0.2rem 0.3rem;
  }
  .nav-link {
    font-size: 0.76rem;
    padding: 0.28rem 0.45rem;
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape & Below (<= 1080px) */
@media (max-width: 1080px) {
  .site-nav {
    display: none !important;
  }

  .menu-button {
    display: inline-flex !important;
  }

  .header-meta-group {
    display: none !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics-bar {
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .work-flagship-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-flagship-media {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .work-duo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .standards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablet Portrait & Mobile App-Grade Architecture (<= 768px)
   Benchmarked against Linear, Vercel, Raycast & Clay Mobile UX */
@media (max-width: 768px) {
  /* Obsidian Dark Canvas & Refined Hairlines on Mobile */
  html:not([data-theme="light"]) {
    --bg-primary: #09090b;
    --bg-secondary: #0d0d11;
    --bg-surface: #121217;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
  }

  [data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-surface: #ffffff;
  }

  body {
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
  }

  /* Ensure horizontal swipe cards are always visible without IntersectionObserver lag */
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .container {
    padding-inline: 1.15rem;
  }

  .section {
    padding-block: 2.75rem;
  }

  .work-section {
    padding-block: 2.75rem !important;
  }

  /* Editorial Left-Aligned Section Headers on Mobile (Linear / Vercel Rhythm) */
  .section-header,
  .section-header.text-center {
    text-align: left !important;
    margin-inline: 0 !important;
    margin-bottom: 1.45rem !important;
    max-width: 100%;
  }

  .section-kicker {
    font-size: 0.7rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 0.4rem !important;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.2vw, 2.05rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 0.55rem !important;
  }

  .section-desc,
  .section-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--text-secondary) !important;
  }

  /* Crisp Horizontal Swipe Indicator Cue on Deck Sections */
  .work-section .section-header::after,
  .services-section .section-header::after,
  .plans-section .section-header::after,
  .solutions-section .section-header::after,
  .testimonials-section .section-header::after {
    content: 'SWIPE CARDS →';
    display: inline-flex;
    align-items: center;
    margin-top: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.22);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
  }

  .plans-section .section-header::after {
    content: 'SWIPE TO COMPARE PLANS →';
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.28);
  }

  [data-theme="light"] .work-section .section-header::after,
  [data-theme="light"] .services-section .section-header::after,
  [data-theme="light"] .solutions-section .section-header::after,
  [data-theme="light"] .testimonials-section .section-header::after {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.22);
  }

  [data-theme="light"] .plans-section .section-header::after {
    color: #b45309;
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.25);
  }

  /* Header & Floating Obsidian Drawer */
  .site-header {
    top: 8px;
    padding-inline: 0.75rem;
  }

  .header-inner {
    height: 52px;
    padding-inline: 0.85rem 0.5rem;
    width: 100%;
    border-radius: 16px;
    background: rgba(15, 15, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }

  [data-theme="light"] .header-inner {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .brand-name {
    font-size: 1.06rem;
  }

  .brand-tagline {
    display: none;
  }

  .header-cta {
    display: none !important;
  }

  .mobile-dropdown-menu {
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
  }

  .mobile-nav-link {
    font-size: 0.92rem;
    padding: 0.58rem 0.8rem;
  }

  [data-theme="light"] .mobile-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  }

  [data-theme="light"] .mobile-nav-link {
    color: #334155;
  }

  [data-theme="light"] .mobile-nav-link:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #0f172a;
  }

  [data-theme="light"] .mobile-menu-actions {
    border-top-color: rgba(15, 23, 42, 0.08);
  }

  .btn-block {
    width: 100%;
    justify-content: center;
  }

  /* Hero Section — Tight Editorial Fold + Bento Metric Tiles */
  .hero-section {
    padding-top: 4.45rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero-container {
    gap: 1.15rem !important;
  }

  .hero-content {
    text-align: left !important;
  }

  .badge-pill {
    font-size: 0.68rem !important;
    padding: 0.28rem 0.68rem !important;
    margin-bottom: 0 !important;
  }

  .hero-title {
    font-size: clamp(1.88rem, 7.6vw, 2.32rem) !important;
    line-height: 1.09 !important;
    letter-spacing: -0.03em !important;
    margin-block: 0.68rem 0.6rem !important;
  }

  .hero-title br {
    display: none;
  }

  .kinetic-words-viewport {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
    height: 1.24em !important;
    margin-top: 0.1rem;
  }

  .kinetic-word {
    font-size: inherit;
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.48 !important;
    color: #a1a1aa !important;
    margin-inline: 0 !important;
    margin-bottom: 0.95rem !important;
    max-width: 100% !important;
  }

  [data-theme="light"] .hero-subtitle {
    color: #475569 !important;
  }

  /* Mobile Hero CTA Action Grid (2-on-Top, 1-Wide-Below matching user specification) */
  .hero-cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
    width: 100% !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-cta-group .hero-cta-btn-primary {
    grid-column: 1 !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.65rem 0.65rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    justify-content: center !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.16) !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
  }

  .hero-cta-group .hero-cta-btn-secondary {
    grid-column: 2 !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.65rem 0.55rem !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    justify-content: center !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
  }

  .hero-cta-group .hero-cta-btn-tertiary {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    justify-content: center !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    color: var(--text-secondary) !important;
  }

  .hero-cta-group .cta-text-full {
    display: none !important;
  }

  .hero-cta-group .cta-text-mobile {
    display: inline !important;
  }

  /* 2x2 Bento Metric Tiles */
  .hero-metrics-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    padding: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .metric-divider {
    display: none !important;
  }

  .metric-card {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0.72rem 0.82rem !important;
    border-radius: 14px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    gap: 0.15rem;
  }

  [data-theme="light"] .metric-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  }

  .metric-number {
    font-size: 1.22rem !important;
    letter-spacing: -0.02em;
  }

  .metric-label {
    font-size: 0.68rem !important;
    white-space: normal !important;
    line-height: 1.25;
  }

  .hero-3d-stage {
    padding: 0 !important;
  }

  .device-frame-box {
    border-radius: 16px !important;
  }

  /* Bound hero badges cleanly without collisions */
  .halo-badge {
    padding: 0.28rem 0.52rem !important;
    border-radius: 9px !important;
    gap: 0.38rem !important;
  }

  .badge-bottom-right {
    display: none !important;
  }

  .badge-top-right {
    right: 6px !important;
    top: 6px !important;
  }

  .badge-bottom-left {
    left: 6px !important;
    bottom: 6px !important;
  }

  .halo-badge strong {
    font-size: 0.64rem !important;
    line-height: 1.1;
  }

  .halo-badge small {
    font-size: 0.54rem !important;
    line-height: 1.1;
  }

  .hero-trust-marquee {
    margin-top: 1.15rem !important;
    padding-block: 0.45rem !important;
  }

  .marquee-item {
    font-size: 0.68rem !important;
  }

  /* ==========================================================================
     Horizontal Scroll-Snap App Decks (Work, Services, Plans, Standards, Proofs)
     ========================================================================== */
  .work-showcase,
  .services-grid,
  .plans-grid,
  .standards-grid,
  .testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 1.15rem !important;
    margin-inline: -1.15rem !important;
    margin-top: 0.5rem !important;
    padding: 0.25rem 1.15rem 0.9rem !important;
    scrollbar-width: none !important;
    max-width: none !important;
  }

  .work-showcase::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .plans-grid::-webkit-scrollbar,
  .standards-grid::-webkit-scrollbar,
  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .work-duo-grid {
    display: contents !important;
  }

  .work-card-flagship,
  .work-card-compact {
    flex: 0 0 85% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    border-radius: 18px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  [data-theme="light"] .work-card-flagship,
  [data-theme="light"] .work-card-compact {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .work-flagship-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .work-flagship-media {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  .work-flagship-content {
    background: transparent !important;
    border-left: none !important;
    flex: 1 1 auto !important;
  }

  [data-theme="light"] .work-flagship-content {
    background: transparent !important;
  }

  .work-flagship-content,
  .work-card-compact .work-content {
    padding: 1.05rem 1rem !important;
    gap: 0.55rem !important;
    justify-content: flex-start !important;
  }

  .work-category-pill {
    top: 0.65rem !important;
    left: 0.65rem !important;
    font-size: 0.6rem !important;
    padding: 0.22rem 0.55rem !important;
  }

  .work-live-telemetry {
    left: 0.65rem !important;
    right: 0.65rem !important;
    bottom: 0.65rem !important;
    transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0.26rem 0.6rem !important;
    font-size: 0.62rem !important;
    max-width: calc(100% - 1.3rem) !important;
    width: max-content !important;
  }

  .work-ecg-stream,
  .work-spatial-tag {
    transform: scale(0.84);
    transform-origin: bottom right;
  }

  .work-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 0.5rem !important;
    margin-bottom: 0.1rem !important;
  }

  .work-client {
    font-size: 0.78rem !important;
  }

  .work-badge {
    white-space: nowrap !important;
    font-size: 0.64rem !important;
    padding: 0.18rem 0.5rem !important;
  }

  .work-title {
    font-size: 1.08rem !important;
    line-height: 1.24 !important;
    margin-bottom: 0.15rem !important;
  }

  .work-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.45rem !important;
    color: var(--text-secondary) !important;
  }

  .work-impact-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.45rem !important;
  }

  .impact-stat {
    padding: 0.5rem 0.35rem !important;
    border-radius: 10px !important;
    text-align: center !important;
  }

  .impact-number {
    font-size: 1rem !important;
    line-height: 1.15 !important;
    display: block !important;
  }

  .impact-label {
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
  }

  .work-stack-pills {
    gap: 0.32rem !important;
    margin-bottom: 0.5rem !important;
  }

  .work-stack-pills span {
    font-size: 0.64rem !important;
    padding: 0.18rem 0.48rem !important;
  }

  .work-footer {
    margin-top: auto !important;
  }

  .work-footer .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
  }

  /* Services Deck */
  .services-grid > .service-card {
    flex: 0 0 82% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 1.15rem 1.05rem !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.4) !important;
  }

  [data-theme="light"] .services-grid > .service-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .service-icon-box,
  .service-icon-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    margin-bottom: 0.15rem !important;
  }

  .service-title {
    font-size: 1.08rem !important;
    line-height: 1.24 !important;
    margin-bottom: 0.1rem !important;
  }

  .service-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.25rem !important;
  }

  .service-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.78rem !important;
  }

  .service-card .card-footer {
    margin-top: auto !important;
    padding-top: 0.65rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
  }

  [data-theme="light"] .service-card .card-footer {
    border-top-color: rgba(15, 23, 42, 0.08) !important;
  }

  .service-card .link-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.6rem 0.9rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-full) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  [data-theme="light"] .service-card .link-btn {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
  }

  /* 3-Month Subscription Plans Peek-a-Boo Deck */
  .plans-section .section-header {
    margin-bottom: 1rem !important;
  }

  .plans-grid > .plan-card {
    flex: 0 0 83% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 0.95rem 0.95rem !important;
    border-radius: 18px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 26px rgba(0, 0, 0, 0.45) !important;
  }

  .plans-grid > .plan-card--gold {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, #121217 48%) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
  }

  [data-theme="light"] .plans-grid > .plan-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  [data-theme="light"] .plans-grid > .plan-card--gold {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, #ffffff 42%) !important;
    border-color: rgba(217, 119, 6, 0.45) !important;
  }

  .plan-top-row {
    margin-bottom: 0.6rem !important;
  }

  .plan-tier-badge {
    font-size: 0.62rem !important;
    padding: 0.22rem 0.55rem !important;
    white-space: nowrap !important;
  }

  .plan-duration-tag {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .plan-name {
    font-size: 1.2rem !important;
    margin-bottom: 0.28rem !important;
  }

  .plan-price {
    font-size: 1.9rem !important;
  }

  .plan-subnote {
    font-size: 0.68rem !important;
    margin-bottom: 0.65rem !important;
  }

  .plan-desc {
    font-size: 0.78rem !important;
    line-height: 1.44 !important;
    margin-bottom: 0.72rem !important;
    padding-bottom: 0.68rem !important;
  }

  .plan-features {
    gap: 0.44rem !important;
    margin-bottom: 0.85rem !important;
  }

  .plan-features li {
    font-size: 0.77rem !important;
    gap: 0.48rem !important;
    line-height: 1.38 !important;
  }

  .plan-check {
    width: 17px !important;
    height: 17px !important;
    font-size: 0.62rem !important;
  }

  .plan-domain-note {
    font-size: 0.7rem !important;
    padding: 0.48rem 0.65rem !important;
    margin-bottom: 0.75rem !important;
  }

  .plan-cta-btn {
    height: 40px !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 1rem !important;
  }

  /* Architecture Pipeline — Clean Vertical Stem (Zero Sideways Overlap) */
  .arch-tabs-hub {
    padding: 0.9rem !important;
    border-radius: 18px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .arch-tabs-hub {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  }

  .arch-tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.55rem;
    margin-bottom: 0.65rem !important;
    gap: 0.45rem !important;
    scrollbar-width: none;
  }

  .arch-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .arch-tab-btn {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    font-size: 0.76rem !important;
    padding: 0.45rem 0.8rem !important;
    white-space: nowrap !important;
  }

  .circuit-flow-canvas {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0.85rem !important;
    background: #0b0b0f !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  [data-theme="light"] .circuit-flow-canvas {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.07) !important;
  }

  .circuit-node {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 38px 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    text-align: left !important;
    column-gap: 0.7rem !important;
    row-gap: 0.1rem !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
    background: #14141b !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
  }

  [data-theme="light"] .circuit-node {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
  }

  .circuit-node .node-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
  }

  [data-theme="light"] .circuit-node .node-icon {
    background: #f1f5f9;
  }

  .circuit-icon-img {
    width: 28px !important;
    height: 28px !important;
  }

  .circuit-node h4 {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.86rem !important;
    margin: 0 !important;
  }

  .circuit-node p {
    grid-column: 2 / 4;
    grid-row: 2;
    font-size: 0.7rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }

  .node-pill {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    font-size: 0.6rem !important;
    padding: 0.14rem 0.45rem !important;
  }

  /* Fix rotated sideways label bug: upright vertical beam + horizontal pill */
  .circuit-connector {
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    margin: 0 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .circuit-connector::before {
    width: 2px !important;
    height: 100% !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(99, 102, 241, 0.32) !important;
  }

  .pulse-beam {
    width: 3px !important;
    height: 12px !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    animation: pulse-travel-v 1.5s infinite linear !important;
  }

  @keyframes pulse-travel-v {
    0% { transform: translate(-50%, 0); opacity: 0; }
    45% { opacity: 1; }
    100% { transform: translate(-50%, 24px); opacity: 0; }
  }

  .conn-label {
    position: relative !important;
    bottom: auto !important;
    z-index: 2;
    padding: 0.14rem 0.58rem;
    border-radius: 999px;
    background: #181820;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.62rem !important;
    color: #a1a1aa !important;
  }

  [data-theme="light"] .conn-label {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569 !important;
  }

  .circuit-status-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    font-size: 0.72rem !important;
  }

  .cwv-gauges-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .gauge-card {
    padding: 1.2rem 1rem !important;
  }

  .simulator-box {
    padding: 1rem !important;
  }

  .simulator-results-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  /* Comparison Section — Zero Horizontal Overflow! Crisp 2-Col Bento Diff Cards */
  .comparison-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
  }

  [data-theme="light"] .comparison-table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .comparison-table {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  .comparison-table thead {
    display: none !important;
  }

  .comparison-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .comparison-table tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  [data-theme="light"] .comparison-table tr {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
  }

  .comparison-table td:first-child {
    grid-column: 1 / -1 !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  [data-theme="light"] .comparison-table td:first-child {
    background: #f8fafc !important;
    border-bottom-color: rgba(15, 23, 42, 0.07) !important;
  }

  .comparison-table td:nth-child(2) {
    padding: 0.72rem 0.8rem !important;
    font-size: 0.74rem !important;
    line-height: 1.42 !important;
    color: #9ca3af !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .comparison-table td:nth-child(2)::before {
    content: 'TYPICAL AGENCY';
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #71717a;
  }

  [data-theme="light"] .comparison-table td:nth-child(2) {
    color: #64748b !important;
    border-right-color: rgba(15, 23, 42, 0.07) !important;
  }

  .comparison-table td:nth-child(3),
  .comparison-table tbody tr td:last-child {
    padding: 0.72rem 0.8rem !important;
    font-size: 0.74rem !important;
    line-height: 1.42 !important;
    background: rgba(99, 102, 241, 0.07) !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .comparison-table td:nth-child(3)::before {
    content: 'FABLE PRO';
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #38bdf8;
  }

  [data-theme="light"] .comparison-table td:nth-child(3),
  [data-theme="light"] .comparison-table tbody tr td:last-child {
    background: rgba(79, 70, 229, 0.05) !important;
  }

  [data-theme="light"] .comparison-table td:nth-child(3)::before {
    color: #4f46e5;
  }

  .comparison-table .check-pill {
    align-items: flex-start !important;
    gap: 0.3rem !important;
    font-size: 0.74rem !important;
    line-height: 1.38 !important;
  }

  /* Interactive Scope & Cost Estimator */
  .estimator-wrapper,
  .estimator-card-shell {
    padding: 1.1rem 0.95rem !important;
    border-radius: 18px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  [data-theme="light"] .estimator-wrapper,
  [data-theme="light"] .estimator-card-shell {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
  }

  .estimator-header-bar {
    gap: 0.55rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.85rem !important;
  }

  .est-status-pill {
    font-size: 0.78rem !important;
  }

  .est-engine-tag {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  .mono-badge {
    font-size: 0.64rem !important;
    padding: 0.16rem 0.45rem !important;
  }

  .estimator-step {
    margin-bottom: 1.35rem !important;
  }

  .step-label {
    font-size: 1rem !important;
    margin-bottom: 0.85rem !important;
  }

  .choice-pills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }

  .pill-card {
    padding: 0.82rem 0.72rem !important;
    min-height: 126px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-radius: 14px !important;
    background: #17171e !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
    position: relative !important;
  }

  [data-theme="light"] .pill-card {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: none !important;
  }

  .pill-badge-top {
    position: static !important;
    display: inline-flex !important;
    align-self: flex-end !important;
    margin-left: 1.45rem !important;
    margin-bottom: 0.4rem !important;
    white-space: nowrap !important;
    font-size: 0.6rem !important;
    padding: 0.14rem 0.42rem !important;
    border-radius: var(--radius-full) !important;
  }

  .pill-icon-box,
  .est-pill-icon-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    margin-bottom: 0.4rem !important;
  }

  .pill-title {
    font-size: 0.86rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.2rem !important;
  }

  .pill-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.7rem !important;
    line-height: 1.32 !important;
    padding-right: 0 !important;
  }

  .pill-check-indicator {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.7rem !important;
    bottom: auto !important;
    right: auto !important;
    width: 18px !important;
    height: 18px !important;
  }

  .choice-pill input[type="radio"]:checked + .pill-card {
    border-color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    transform: none !important;
  }

  [data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card {
    border-color: #0f172a !important;
    background: #f1f5f9 !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25), 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .choice-pill input[type="radio"]:checked + .pill-card .pill-badge-top {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
  }

  [data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card .pill-badge-top {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
    color: #0f172a !important;
  }

  .choice-pill input[type="radio"]:checked + .pill-card .pill-check-indicator {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #09090b !important;
    box-shadow: none !important;
  }

  [data-theme="light"] .choice-pill input[type="radio"]:checked + .pill-card .pill-check-indicator {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
  }

  .feature-checkboxes-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .feature-checkbox {
    padding: 0.72rem 0.85rem !important;
    border-radius: 12px !important;
    align-items: center !important;
    gap: 0.65rem !important;
    background: #17171e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .feature-checkbox {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  .feature-checkbox:has(input[type="checkbox"]:checked) {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: none !important;
  }

  [data-theme="light"] .feature-checkbox:has(input[type="checkbox"]:checked) {
    background: #eef2ff !important;
    border-color: #4f46e5 !important;
  }

  .feature-checkbox:has(input[type="checkbox"]:checked) .checkbox-box-custom {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #09090b !important;
  }

  [data-theme="light"] .feature-checkbox:has(input[type="checkbox"]:checked) .checkbox-box-custom {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
  }

  .feature-title-row strong {
    font-size: 0.83rem !important;
  }

  .feature-cost-badge {
    font-size: 0.68rem !important;
    padding: 0.14rem 0.45rem !important;
  }

  .feature-info small {
    display: block !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-top: 0.1rem !important;
  }

  .estimate-summary-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1.1rem 1rem !important;
    border-radius: 16px !important;
    background: #17171f !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
  }

  [data-theme="light"] .estimate-summary-panel {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: none !important;
  }

  .summary-details {
    flex: 1 1 auto !important;
  }

  .summary-kicker-group {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    margin-bottom: 0.45rem !important;
  }

  .summary-tag {
    font-size: 0.72rem !important;
  }

  .feature-counter-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #e4e4e7 !important;
  }

  [data-theme="light"] .feature-counter-pill {
    background: rgba(79, 70, 229, 0.1) !important;
    border-color: rgba(79, 70, 229, 0.22) !important;
    color: #4338ca !important;
  }

  .summary-price-box {
    flex-wrap: wrap !important;
    gap: 0.4rem 0.65rem !important;
    margin-bottom: 0.7rem !important;
  }

  .summary-price {
    font-size: clamp(1.7rem, 6.8vw, 2.15rem) !important;
    background: linear-gradient(135deg, #ffffff 45%, #a1a1aa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  [data-theme="light"] .summary-price {
    background: linear-gradient(135deg, #0f172a 45%, #4f46e5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .estimator-cta {
    width: 100% !important;
    justify-content: center !important;
    height: 44px !important;
  }

  /* Standards Horizontal Deck */
  .standards-grid > .standard-card {
    flex: 0 0 82% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 1.15rem 1.05rem !important;
    border-radius: 16px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  [data-theme="light"] .standards-grid > .standard-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .standard-badge {
    margin-bottom: 0.55rem !important;
    font-size: 0.66rem !important;
  }

  .standard-title {
    font-size: 1.02rem !important;
    margin-bottom: 0.35rem !important;
  }

  .standard-desc,
  .standard-card p {
    display: block !important;
    font-size: 0.8rem !important;
    line-height: 1.48 !important;
  }

  /* Tech Stack Pills & Dense Raycast Horizontal Tiles */
  .tech-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-inline: -1.15rem !important;
    padding: 0 1.15rem 0.6rem !important;
    margin-bottom: 1rem !important;
    gap: 0.45rem !important;
    scrollbar-width: none;
  }

  .tech-pills-row::-webkit-scrollbar {
    display: none;
  }

  .tech-tab-btn {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    white-space: nowrap !important;
    font-size: 0.76rem !important;
    padding: 0.44rem 0.82rem !important;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .tech-card {
    display: grid !important;
    grid-template-columns: 32px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    text-align: left !important;
    column-gap: 0.55rem !important;
    row-gap: 0.25rem !important;
    padding: 0.75rem 0.7rem !important;
    border-radius: 14px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .tech-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  }

  .tech-icon {
    grid-column: 1;
    grid-row: 1;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
  }

  .tech-icon-img {
    width: 22px !important;
    height: 22px !important;
  }

  .tech-card h4 {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
  }

  .tech-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.7rem !important;
    line-height: 1.34 !important;
  }

  /* Compact 5-Step Process Timeline */
  .process-timeline {
    gap: 0.65rem !important;
  }

  .process-step {
    grid-template-columns: 36px 1fr !important;
    gap: 0.75rem !important;
    padding: 0.95rem 0.95rem !important;
    border-radius: 16px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .process-step {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  }

  .step-num {
    font-size: 1.25rem !important;
    padding-top: 2px;
  }

  .step-content h3 {
    font-size: 0.98rem !important;
    margin-bottom: 0.25rem !important;
  }

  .step-content p,
  .process-step p {
    display: block !important;
    font-size: 0.79rem !important;
    line-height: 1.46 !important;
  }

  /* Testimonials Horizontal Deck */
  .testimonials-grid > .testimonial-card {
    flex: 0 0 84% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    padding: 1.15rem 1.05rem !important;
    border-radius: 16px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  [data-theme="light"] .testimonials-grid > .testimonial-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .stars-gold-row {
    margin-bottom: 0.65rem !important;
  }

  .quote {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.1rem !important;
  }

  /* Compact FAQ Accordions */
  .faq-list {
    gap: 0.6rem !important;
  }

  .faq-item {
    border-radius: 14px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .faq-item {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  .faq-question {
    font-size: 0.88rem !important;
    padding: 0.9rem 1rem !important;
  }

  .faq-answer {
    padding: 0 1rem 0.9rem !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }

  /* Compact 2-Column Mobile Footer */
  .site-footer {
    padding-block: 2.5rem 1.75rem !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1rem !important;
    margin-bottom: 1.75rem !important;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .footer-brand-col {
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }

  .footer-desc {
    margin-block: 0.65rem 0.9rem !important;
    font-size: 0.82rem !important;
  }

  .footer-nav-col:last-child {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .footer-nav-col:last-child {
    border-top-color: rgba(15, 23, 42, 0.08);
  }

  .footer-heading {
    font-size: 0.88rem !important;
    margin-bottom: 0.75rem !important;
  }

  .footer-nav-col ul {
    gap: 0.45rem !important;
    font-size: 0.8rem !important;
  }

  .footer-nav-col:last-child .contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }

  .footer-nav-col:last-child .contact-list li:first-child {
    grid-column: 1 / -1;
  }

  .contact-list li {
    margin-bottom: 0 !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-top: 1.25rem !important;
    gap: 0.45rem !important;
    font-size: 0.76rem !important;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  dialog:modal {
    max-height: 92dvh !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }

  .modal-card {
    max-height: 92dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1.5rem !important;
  }

  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-box {
    padding: 1.65rem 1.05rem !important;
    text-align: left !important;
    border-radius: 18px !important;
    background: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  [data-theme="light"] .cta-banner-box {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
  }

  .cta-banner-title {
    font-size: 1.35rem !important;
    margin-bottom: 0.65rem !important;
  }

  .cta-banner-sub {
    font-size: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .cta-banner-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .cta-banner-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 0.62rem 0.95rem !important;
    font-size: 0.8rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  .cta-banner-actions .btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }
}

/* Compact Handset Viewport Refinement (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .section {
    padding-block: 2.35rem;
  }

  .work-section {
    padding-block: 2.35rem !important;
  }

  .site-header {
    top: 6px;
    padding-inline: 0.6rem;
  }

  .header-inner {
    height: 50px;
    padding-inline: 0.8rem 0.45rem;
    border-radius: 15px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .icon-btn,
  .menu-button {
    width: 34px;
    height: 34px;
  }

  .badge-pill {
    font-size: 0.68rem !important;
    padding: 0.28rem 0.68rem !important;
    gap: 0.4rem;
    max-width: 100%;
    white-space: nowrap;
  }

  .badge-pill .badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section {
    padding-top: 4.55rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
    line-height: 1.12 !important;
  }

  .hero-subtitle {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .hero-cta-group {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-metrics-bar {
    gap: 0.5rem !important;
  }

  .metric-card {
    padding: 0.65rem 0.72rem !important;
  }

  .metric-number {
    font-size: 1.15rem !important;
  }

  .metric-label {
    font-size: 0.64rem !important;
  }

  .badge-top-right {
    right: 6px !important;
    top: 6px !important;
    padding: 0.3rem 0.55rem !important;
  }

  .badge-bottom-left {
    left: 6px !important;
    bottom: 6px !important;
    padding: 0.3rem 0.55rem !important;
  }

  /* Match full-bleed horizontal scrollers cleanly to 1rem container gutter */
  .work-showcase,
  .services-grid,
  .plans-grid,
  .standards-grid,
  .testimonials-grid,
  .tech-pills-row {
    scroll-padding-inline: 1rem !important;
    margin-inline: -1rem !important;
    padding-inline: 1rem !important;
  }

  .pill-card {
    padding: 0.78rem 0.68rem !important;
    min-height: 122px !important;
  }

  .pill-badge-top {
    font-size: 0.56rem !important;
    padding: 0.14rem 0.38rem !important;
    margin-left: 1.35rem !important;
  }

  .pill-icon-box,
  .est-pill-icon-img {
    width: 34px !important;
    height: 34px !important;
  }

  .pill-title {
    font-size: 0.82rem !important;
  }

  .pill-desc {
    font-size: 0.68rem !important;
  }

  .pill-check-indicator {
    top: 0.68rem !important;
    left: 0.65rem !important;
    width: 17px !important;
    height: 17px !important;
  }

  /* Crisp Tactile Press Feedback */
  .service-card:active,
  .work-card-flagship:active,
  .work-card-compact:active,
  .choice-pill:active .pill-card,
  .feature-checkbox:active,
  .btn:active,
  .link-btn:active,
  .standard-card:active,
  .process-step:active {
    transform: scale(0.98) !important;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Mobile Modal Dialog & Project Brief Form Architecture */
  dialog:modal {
    max-width: min(94vw, 420px) !important;
    max-height: 92dvh !important;
    max-height: 92vh !important;
    margin: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
  }

  .modal-card {
    padding: 1.25rem 1.1rem !important;
    border-radius: 20px !important;
    max-height: 92dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-header {
    margin-bottom: 0.85rem !important;
    align-items: center !important;
  }

  .modal-title {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }

  .modal-sub {
    display: none !important;
  }

  .modal-close-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .modal-form {
    gap: 0.65rem !important;
  }

  .form-row:first-of-type {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .form-row:nth-of-type(2) {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .form-field {
    gap: 0.25rem !important;
  }

  .form-field label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
  }

  .form-field input,
  .form-field select {
    height: 42px !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
  }

  .form-field textarea {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
    min-height: 65px !important;
    height: 65px !important;
    resize: none !important;
  }

  .modal-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  .modal-actions #modal-cancel-btn {
    flex: 0 0 auto !important;
    padding: 0.6rem 0.95rem !important;
    font-size: 0.82rem !important;
    height: 40px !important;
    border-radius: var(--radius-full) !important;
  }

  .modal-actions #modal-submit-btn {
    flex: 1 1 auto !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    height: 40px !important;
    border-radius: var(--radius-full) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
  }

  .modal-actions #modal-submit-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
  }

  [data-theme="light"] dialog:modal {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  }

  [data-theme="light"] .modal-card {
    background: #ffffff !important;
    color: #090d16 !important;
  }

  [data-theme="light"] .form-field input,
  [data-theme="light"] .form-field select,
  [data-theme="light"] .form-field textarea {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #090d16 !important;
  }

  [data-theme="light"] .form-field label {
    color: #475569 !important;
  }
}

/* --------------------------------------------------------------------------
   Raycast / Linear Style Command Palette Modal (Ctrl+K / Cmd+K)
   -------------------------------------------------------------------------- */
.command-palette-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 620px;
  width: 90vw;
  margin: auto;
}

.command-palette-modal::backdrop {
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cmd-palette-box {
  background: rgba(13, 17, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(168, 85, 247, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .cmd-palette-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 0 35px rgba(147, 51, 234, 0.1);
}

.cmd-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .cmd-search-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.cmd-search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

#cmd-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.cmd-esc-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cmd-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem 0.25rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.35);
  color: #fff;
  transform: translateX(3px);
}

[data-theme="light"] .cmd-item:hover,
[data-theme="light"] .cmd-item.selected {
  background: #f1f5f9;
  border-color: rgba(147, 51, 234, 0.3);
  color: #0f172a;
}

.cmd-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cmd-item-label {
  flex: 1;
}

.cmd-item-shortcut {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
}

[data-theme="light"] .cmd-item-shortcut {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Estimator Copy Spec Button */
.est-copy-spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   VISIBILITY & CONTRAST POLISH (DARK + LIGHT + MOBILE)
   ========================================================================== */
.hero-subtitle,
.section-header p {
  color: #d4d4d8;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .section-header p {
  color: #334155;
}

.metric-label {
  color: #d4d4d8;
}

[data-theme="light"] .metric-label {
  color: #475569;
}

.tech-card p,
.service-card p,
.plan-subnote,
.plan-domain-note,
.footer-brand-desc,
.footer-nav-col a {
  color: #d4d4d8;
}

[data-theme="light"] .tech-card p,
[data-theme="light"] .service-card p,
[data-theme="light"] .plan-subnote,
[data-theme="light"] .plan-domain-note,
[data-theme="light"] .footer-brand-desc,
[data-theme="light"] .footer-nav-col a {
  color: #334155;
}

.comparison-table td:nth-child(2) {
  color: #d4d4d8;
}

[data-theme="light"] .comparison-table td:nth-child(2) {
  color: #475569;
}

.service-card,
.metric-card,
.tech-card,
.pricing-card,
.faq-item {
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .service-card,
[data-theme="light"] .metric-card,
[data-theme="light"] .tech-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .faq-item {
  border-color: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .btn-outline {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.24);
  color: #090d16;
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.45);
  color: #090d16;
}

@media (max-width: 768px) {
  .fable-wordmark {
    height: 17px;
  }

  .fable-wordmark-footer {
    height: 20px;
  }

  .brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  /* Mobile Copy & Explanation Reduction (Keep Desktop 100% Intact) */
  .hide-mobile,
  .section-header p,
  .service-card > p,
  .plan-desc,
  .tech-card p,
  .footer-brand-desc,
  .cta-banner-box p {
    display: none !important;
  }

  .section-header {
    margin-bottom: 1.15rem !important;
  }

  .process-step p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tech-card {
    padding: 0.85rem 0.9rem !important;
  }
}

/* --------------------------------------------------------------------------
   Website Showcase Dialogue (12 Live Cloudflare Tunnels + RTL Image Stream)
   -------------------------------------------------------------------------- */
.live-dot-mini {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.85);
  display: inline-block;
  flex-shrink: 0;
  animation: wsPulseDot 2s ease-in-out infinite;
}

@keyframes wsPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

.websites-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.work-showcase-cta-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Ultra-Smooth 120 FPS Viewport Rendering & Containment
   -------------------------------------------------------------------------- */
#work,
#services,
#architecture,
#estimator,
#comparison,
#stack,
#process,
#faq,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* Right-to-Left Continuous Website Reel Strip */
.websites-marquee-shell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.websites-marquee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ws-stream-count {
  color: var(--brand-emerald);
  font-weight: 700;
}

.websites-marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.25rem 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.websites-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: fableShowcaseRTL 48s linear infinite;
}

.websites-marquee-viewport:hover .websites-marquee-track,
.websites-marquee-viewport:focus-within .websites-marquee-track,
.websites-marquee-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes fableShowcaseRTL {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.website-reel-card {
  flex: 0 0 auto;
  width: 292px;
  margin-right: 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.website-reel-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.website-reel-card.is-active {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 14px 32px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .website-reel-card.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 12px 28px rgba(15, 23, 42, 0.14);
}

.reel-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0f19;
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.reel-index-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.reel-built-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  pointer-events: none;
}

.reel-built-badge .fable-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #60a5fa;
}

[data-theme="light"] .reel-built-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .reel-built-badge .fable-brand-dot {
  background: #2563eb;
  box-shadow: 0 0 4px #2563eb;
}

.reel-card-body {
  padding: 0.8rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.reel-card-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.reel-card-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 2.35rem;
}

.reel-card-built-meta {
  display: flex;
  align-items: center;
  margin-top: 0.05rem;
  margin-bottom: 0.15rem;
}

.reel-card-built-meta .built-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.02em;
}

[data-theme="light"] .reel-card-built-meta .built-tag {
  color: #1d4ed8;
}

.reel-card-footer {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .reel-card-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.reel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: #34d399;
}

.reel-status-pill .live-dot-mini {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #34d399;
}

[data-theme="light"] .reel-status-pill {
  color: #059669;
}

.reel-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
  color: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent !important;
}

.reel-visit-link:hover {
  transform: translateY(-1px) scale(1.02);
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Light Theme Website Showcase Card */
[data-theme="light"] .website-reel-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .reel-visit-link {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 640px) {
  .website-reel-card {
    width: 256px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .websites-marquee-track:not([data-user-play="true"]) {
    animation-play-state: paused;
  }
}

/* ==========================================================================
   Inline Hero Live Websites Showcase Dialogue (Always Visible Below Hero)
   ========================================================================== */
.hero-websites-dock-wrap {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  min-width: 0;
}

.hero-websites-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(180deg, rgba(13, 19, 36, 0.88) 0%, rgba(8, 12, 24, 0.92) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.hero-ws-clean-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.5rem 0.65rem;
  flex-wrap: wrap;
}

.hero-ws-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-ws-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-ws-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

[data-theme="light"] .hero-ws-title {
  color: #0f172a;
}

.hero-ws-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-ws-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.hero-ws-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero-ws-arrow-btn:active {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  transform: scale(0.92) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .hero-ws-arrow-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .hero-ws-arrow-btn:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero-ws-arrow-btn:active {
  background: rgba(15, 23, 42, 0.18) !important;
  border-color: rgba(15, 23, 42, 0.5) !important;
  transform: scale(0.92) !important;
}

.hero-ws-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.hero-ws-shell::before,
.hero-ws-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 5;
  pointer-events: none;
}

.hero-ws-shell::before {
  left: 0;
  background: linear-gradient(to right, rgba(9, 13, 22, 0.95) 0%, transparent 100%);
}

.hero-ws-shell::after {
  right: 0;
  background: linear-gradient(to left, rgba(9, 13, 22, 0.95) 0%, transparent 100%);
}

[data-theme="light"] .hero-ws-shell::before {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
}

[data-theme="light"] .hero-ws-shell::after {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
}

.hero-ws-float-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 15, 30, 0.78);
  color: #ffffff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0.85;
}

.hero-ws-float-arrow:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(129, 140, 248, 0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-ws-float-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-ws-float-prev {
  left: 8px;
}

.hero-ws-float-next {
  right: 8px;
}

@media (max-width: 640px) {
  .hero-ws-float-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-ws-float-prev {
    left: 4px;
  }
  .hero-ws-float-next {
    right: 4px;
  }
}

.hero-ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-ws-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hero-ws-filter-btn {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-ws-filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
}

.hero-ws-filter-btn.is-active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.22);
}

.hero-ws-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hero-ws-active-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}


.hero-ws-viewport {
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-md);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.hero-ws-viewport.is-dragging {
  cursor: grabbing;
}

.hero-ws-viewport.is-filtered-static {
  cursor: default;
  mask-image: none;
  -webkit-mask-image: none;
}

.hero-ws-viewport .websites-marquee-track {
  animation: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.hero-ws-viewport.is-filtered-static .websites-marquee-track {
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
  transform: none !important;
}

.hero-ws-viewport .website-reel-card {
  width: 292px;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reel-preview-btn {
  padding: 0.3rem 0.62rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.reel-preview-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.reel-preview-btn:active {
  background: rgba(255, 255, 255, 0.24) !important;
  transform: scale(0.95);
}

[data-theme="light"] .hero-websites-dock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%);
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero-ws-filter-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

[data-theme="light"] .hero-ws-filter-btn:hover {
  color: #0f172a;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.32);
}

[data-theme="light"] .hero-ws-filter-btn.is-active {
  color: #ffffff;
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
}

[data-theme="light"] .hero-ws-active-pill {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.28);
}

[data-theme="light"] .hero-websites-dock .websites-live-pill {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}

[data-theme="light"] .reel-preview-btn {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

[data-theme="light"] .reel-preview-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .reel-preview-btn:active {
  background: rgba(15, 23, 42, 0.16) !important;
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .hero-websites-dock-wrap {
    margin-top: 1.5rem;
  }

  .hero-websites-dock {
    padding: 0.9rem 0.85rem 0.95rem;
    gap: 0.65rem;
  }

  .hero-ws-header {
    align-items: flex-start;
    gap: 0.65rem;
    padding-bottom: 0.6rem;
  }

  .hero-ws-title-group {
    flex-basis: 100%;
  }

  .hero-ws-subtitle {
    font-size: 0.8rem;
  }

  .hero-ws-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-ws-active-pill {
    font-size: 0.68rem;
    padding: 0.28rem 0.6rem;
  }

  .hero-ws-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .hero-ws-filters::-webkit-scrollbar {
    display: none;
  }

  .hero-ws-filter-btn {
    flex-shrink: 0;
  }

  .hero-ws-hint {
    display: none;
  }

  .hero-ws-viewport {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    touch-action: pan-y !important;
  }

  .hero-ws-viewport .website-reel-card {
    width: 256px;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
}

/* ==========================================================================
   Dedicated 10-Specialist Elite Squad Section Styles
   ========================================================================== */
.team-section {
  position: relative;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
}

.team-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.team-metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.team-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.team-metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

.team-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.75rem 0 2rem;
  flex-wrap: wrap;
}

.team-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.team-filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.team-filter-btn.is-active {
  background: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.team-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.team-filter-btn.is-active .filter-count {
  background: rgba(0, 0, 0, 0.2);
}

/* Horizontal Slider Controls & Status Bar */
.team-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 1.25rem;
  padding: 0 0.25rem;
  flex-wrap: wrap;
}

.team-slider-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.team-status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.team-status-separator {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.team-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.team-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.team-counter-pill {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary);
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.team-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.team-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.team-arrow-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

/* Horizontal Carousel Viewport & Slidable Track (Desktop & Mobile) */
.team-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem 0 1.5rem;
}

.team-grid {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
  gap: 1.5rem !important;
  padding: 0.5rem 0.25rem 1.75rem !important;
  scrollbar-width: none;
  cursor: grab;
}

.team-grid::-webkit-scrollbar {
  display: none;
}

.team-grid.is-dragging {
  scroll-snap-type: none !important;
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

/* Individual Slidable Specialist Card */
.team-card {
  flex: 0 0 380px !important;
  width: 380px !important;
  max-width: 380px !important;
  min-width: 380px !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
  margin: 0 !important;
  border-radius: 16px;
  background: var(--bg-surface-elevated, #10141f);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.team-card.is-hidden {
  display: none !important;
}

.team-card-inner {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.team-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.team-live-indicator {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--bg-surface-elevated, #10141f);
  box-shadow: 0 0 8px #10b981;
}

/* Specific Avatar Themes */
.avatar-amazon {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.avatar-google {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #10b981 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.avatar-jaipur {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #f59e0b 100%);
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.avatar-cloud {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  border: 1px solid rgba(6, 182, 212, 0.5);
}

.avatar-meta {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.avatar-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.avatar-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.avatar-rose {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.avatar-cyan {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  border: 1px solid rgba(14, 165, 233, 0.5);
}

.avatar-amber {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border: 1px solid rgba(234, 179, 8, 0.5);
}

/* Credential Badge Tags */
.team-cred-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.team-cred-tag .cred-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.team-cred-amazon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.team-cred-amazon .cred-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.team-cred-google {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.team-cred-google .cred-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.team-cred-jaipur {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.team-cred-jaipur .cred-dot {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.team-cred-cloud {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #38bdf8;
}

.team-cred-meta {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

.team-cred-general {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.team-cred-general .cred-dot {
  background: #10b981;
}

/* Member Bio & Info */
.team-member-info {
  margin-bottom: 1.25rem;
}

.team-member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

.team-member-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.team-member-bio {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.team-member-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Skills Chips */
.team-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono, monospace);
}

/* Card Footer */
.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.team-status-pill {
  color: #10b981;
  font-weight: 600;
}

.team-location-pill {
  color: var(--text-tertiary);
  font-family: var(--font-mono, monospace);
}

/* Light Theme Harmonization for Team Section */
[data-theme="light"] .team-metrics-bar {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .team-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .team-card:hover {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .team-member-role {
  color: #0284c7;
}

[data-theme="light"] .skill-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .team-filter-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

[data-theme="light"] .team-filter-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

[data-theme="light"] .team-filter-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.team-mobile-nav {
  display: none;
}

@media (max-width: 820px) {
  .team-metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-radius: 16px;
    width: 100%;
  }

  .team-metric-divider {
    display: none;
  }

  .team-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .team-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .team-filter-btn {
    flex-shrink: 0;
  }

  .team-grid {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 1.15rem !important;
  }

  .team-slider-nav {
    gap: 0.5rem !important;
    margin: 1rem 0 !important;
  }

  .team-swipe-hint,
  .team-status-separator {
    display: none !important;
  }

  .team-slider-status {
    font-size: 0.74rem !important;
  }

  .team-card {
    flex: 0 0 85% !important;
    width: 85vw !important;
    max-width: 335px !important;
    min-width: 275px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
  }

  .team-card-inner {
    padding: 1.25rem 1.15rem !important;
  }

  .team-card-top {
    gap: 0.5rem !important;
    margin-bottom: 0.85rem !important;
  }

  .team-cred-tag,
  .team-member-badge {
    font-size: 0.67rem !important;
    padding: 0.22rem 0.52rem !important;
    max-width: calc(100% - 54px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .team-member-name {
    font-size: 1.15rem !important;
  }

  .team-member-role {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }

  .team-member-bio {
    font-size: 0.80rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.85rem !important;
  }

  .team-tags {
    gap: 0.28rem !important;
  }

  .skill-chip {
    font-size: 0.65rem !important;
    padding: 0.16rem 0.45rem !important;
  }

  .team-arrow-btn {
    width: 36px;
    height: 36px;
  }

  .team-counter-pill {
    padding: 0.22rem 0.65rem;
    font-size: 0.74rem;
  }

  [data-theme="light"] .team-arrow-btn {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
  }

  [data-theme="light"] .team-counter-pill {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: #334155;
  }
}

/* ==========================================================================
   Universal Card Overflow & Text Boundary Protection (Desktop & Mobile)
   ========================================================================== */
.service-card,
.work-card,
.team-card,
.why-card,
.tech-card,
.standard-card,
.website-reel-card {
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

.service-card *,
.work-card *,
.team-card *,
.why-card *,
.tech-card *,
.standard-card *,
.website-reel-card * {
  box-sizing: border-box;
}

/* Ensure no headings, labels or pills bleed outside cards */
.service-title,
.work-title,
.team-member-name,
.reel-card-title {
  max-width: 100%;
}

