/* ==========================================================================
   LUXNARR DESIGN SYSTEM & CINEMATIC MOTION GRAPHICS
   - Pure black #000000 base with immediate zero-flash enforcement
   - CloudFront background video atmosphere & tactile film grain
   - Liquid-metal navigation pills with directional shine sweeps
   - Masked typography with Instrument Serif italic emphasis
   - Liquid-glass button mechanics with edge luminescence
   - Preserves 100% of LuxNarr's complete platform, telemetry & case studies
   ========================================================================== */

/* Force pure black immediately */
html, body {
  background: #000000 !important;
  color: #ffffff;
}

:root {
  --bg: #000000;
  --bg-surface: #070709;
  --text: #ffffff;
  --muted: #9a9a9a;
  --stat: #d8d8d8;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.10);
  --border-bright: rgba(255, 255, 255, 0.35);

  /* Typography Stacks */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: 'Instrument Serif', "Times New Roman", Times, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Standardized 8-Token Typographic Scale (Issue 1 - Under 10 sizes, min >= 12px) */
  --text-xs: 12px;       /* Tags, chips, indicators, badges (accessible baseline) */
  --text-sm: 13.5px;     /* Subtext, secondary labels, table metrics */
  --text-base: 15px;     /* Body copy, lede, default buttons */
  --text-md: 18px;       /* Subheadings, scorecard numbers */
  --text-lg: 20px;       /* Card headers */
  --text-xl: 24px;       /* Subsection titles, modal headers */
  --text-2xl: 32px;      /* Section headlines */
  --text-3xl: clamp(34px, 4.5vw, 52px); /* Hero display title */

  /* Standardized 5-Token Corner Radius Scale (Issue 2 - Strictly under 6 radii) */
  --radius-xs: 6px;      /* Indicators, tiny tag chips */
  --radius-sm: 8px;      /* Buttons, form inputs, mini cards */
  --radius-md: 12px;     /* Cards, dashboard sub-panels */
  --radius-lg: 18px;     /* Modals, dossier frame */
  --radius-pill: 9999px; /* Badges, pill toggles, avatars */

  /* Sizing Tokens mapped to consolidated scale */
  --logo: var(--text-base);
  --logo-mark: 22px;
  --nav: var(--text-sm);
  --nav-h: 38px;
  --btn: var(--text-sm);
  --btn-h: 40px;
  --hero-btn-h: 44px;
  --h1: var(--text-3xl);
  --lede: var(--text-base);
  --badge: var(--text-xs);
  --stat-size: var(--text-sm);
  --header-y: 20px;
  --header-x: 36px;
  --max-width: 1240px;

  /* Accents */
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
}

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

html {
  scroll-behavior: smooth;
  background: #000000;
  color: #ffffff;
}

body {
  background: #000000;
  background: var(--bg, #000000);
  color: #ffffff;
  color: var(--text, #ffffff);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   FILM GRAIN & ATMOSPHERIC VIDEO LAYERS
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-photo {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000000;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.08) brightness(0.92);
  transition: opacity 1s ease-out;
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.content-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

/* ==========================================================================
   HEADER & LIQUID-METAL NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: padding 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(4, 4, 6, 0.88);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: var(--logo);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-mark {
  width: var(--logo-mark);
  height: var(--logo-mark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  flex-shrink: 0;
}

.logo:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.75));
}

.logo-suffix {
  font-weight: 400;
  color: var(--muted);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  margin-left: 4px;
}

/* Primary Header Navigation (Issues 9 & 18) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Liquid-Metal Center Navigation */
.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.liquid-pill {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(198, 198, 198, 0.45);
  background: linear-gradient(105deg, #050505 0%, #1e1e24 48%, #3a3a42 100%);
  color: #f3f3f3;
  font-size: var(--nav);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.liquid-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.liquid-pill:hover::before {
  transform: translateX(120%);
}

.liquid-pill:hover {
  border-color: rgba(235, 235, 235, 0.9);
  background: linear-gradient(105deg, #111115 0%, #2e2e38 45%, #5a5a68 100%);
  box-shadow: 0 0 18px rgba(200, 210, 230, 0.2);
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2.5s infinite;
}

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

/* Burger Button */
.burger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(8px);
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.burger-bar {
  width: 16px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.menu-open .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .burger-bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   BUTTONS (LIQUID-GLASS SYSTEM)
   ========================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: var(--btn);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, transform 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.45) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:active {
  transform: scale(0.98);
}

/* Solid White Liquid-Glass Button (Primary Action - Issue 19) */
.btn-solid {
  background: linear-gradient(180deg, #ffffff 0%, #ececec 48%, #cfcfcf 100%);
  color: #0a0a0a;
  border: 1px solid #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-solid:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 42%, #d5def2 100%);
  border-color: #f2f6ff;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 24px rgba(186, 208, 255, 0.38), 0 8px 18px rgba(255, 255, 255, 0.12);
}

/* Ghost / Secondary Liquid-Glass Button (Secondary Action - Issues 3 & 20) */
.btn-ghost,
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 22px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-hero {
  height: var(--hero-btn-h);
  padding: 0 22px;
  font-size: var(--text-base);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   ENTRANCE MOTION GRAPHICS (KEYFRAMES & CLASSES)
   ========================================================================== */
.appear {
  opacity: 1;
  animation-duration: 1.05s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: var(--d, 0.08s);
}

.appear--scale { animation-name: in-scale; }
.appear--soft  { animation-name: in-soft; }
.appear--mask  { animation-name: in-mask; }
.appear--pop   { animation-name: in-pop; }
.appear--btn   { animation-name: in-btn; }
.appear--side  { animation-name: in-side; }
.appear--stat  { animation-name: in-stat; }

@keyframes in-scale {
  0% { opacity: 0; transform: scale(0.84); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes in-soft {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes in-mask {
  0% { opacity: 0; transform: translateY(40%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes in-pop {
  0% { opacity: 0; transform: scale(0.9); }
  70% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes in-btn {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes in-side {
  0% { opacity: 0; transform: translateX(22px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes in-stat {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes in-star {
  0% { opacity: 0; transform: scale(0.2) rotate(-50deg); }
  65% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes in-em {
  0% { opacity: 0.35; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0px); }
}

.badge-star {
  display: inline-block;
  animation: in-star 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}

.is-in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 60px;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
}

/* Sparkle Gradient Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7d7d7d 0%, #2a2a2a 52%, #0a0a0a 100%);
  color: #f2f2f2;
  font-size: var(--badge);
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sparkle-icon {
  width: 18px;
  height: 20px;
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45));
}

/* Hero Eyebrow (Issue 21 - Elevated Value Proposition) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* Hero Brand Name (Positioned Directly Above 'Be the Brand to Be Found.') */
.hero-brand-line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
  /* Radiant metallic silver gradient */
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Refined silver luminescence & highlight glow */
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 32px rgba(205, 225, 250, 0.4))
          drop-shadow(0 1px 2px rgba(255, 255, 255, 0.35));
}

/* Headline */
.headline-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.12em 0.12em;
  font-size: var(--h1);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.14;
  color: #ffffff;
}

.headline-line em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.03em;
  color: #c4c4c4;
  animation: in-em 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.72s;
}

.lede {
  max-width: 620px;
  margin-top: 22px;
  color: #a1a1aa;
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.highlight-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* Engine Radar Horizontal Grid */
.hero-radar-box {
  width: 100%;
  max-width: 980px;
  margin-top: 40px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.radar-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.radar-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.radar-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.radar-metric {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.radar-status {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px var(--stats-x, 72px) var(--stats-y, 36px);
  color: var(--stat);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--stat-size);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.stat-icon {
  width: 20px;
  height: 20px;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wide {
  width: 38px;
  height: 21px;
}

/* ==========================================================================
   CLIENT MARQUEE
   ========================================================================== */
.clients-section {
  position: relative;
  z-index: 10;
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 12, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.marquee-title::before,
.marquee-title::after {
  content: "";
  height: 1px;
  width: 40px;
  background: rgba(255, 255, 255, 0.18);
}

.marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: scroll-marquee 28s linear infinite;
}

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

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 14px)); }
}

.marquee-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 180px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.marquee-logo-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.client-logo-img {
  max-height: 44px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.platform-section {
  position: relative;
  z-index: 10;
  padding: 64px 0;
  background: transparent;
}

/* Seamless lead-in between How We Work and Proven Performance */
#how-it-works {
  padding-top: 56px;
  padding-bottom: 12px;
}

#performance {
  padding-top: 12px;
  padding-bottom: 64px;
}

#contact {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  border-left: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #9a9a9a;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   COMPARISON MATRIX TABLE
   ========================================================================== */
.table-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-x: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.comparison-table th {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.col-luxnarr {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: #cbd5e1;
}

.comparison-table td.cell-luxnarr {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.check-green {
  color: var(--accent-green);
  margin-right: 6px;
  font-weight: bold;
}

/* ==========================================================================
   SERVICES & USP (3-PILLAR SHOWCASE)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 38px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

.service-card--featured {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(24, 24, 34, 0.85) 0%, rgba(14, 14, 20, 0.7) 100%);
}

.service-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-green);
  margin-bottom: 20px;
  font-weight: 500;
}

.service-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 22px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-body {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

.feature-bullet {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  margin-top: 3px;
  margin-right: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* ==========================================================================
   SCROLL REVEAL MOTION GRAPHICS (GPU Accelerated for Desktop & Mobile)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reveal-on-scroll.reveal-soft {
  transform: translate3d(0, 18px, 0);
  transition-duration: 0.75s;
}

.reveal-on-scroll.reveal-left {
  transform: translate3d(-36px, 0, 0);
}

.reveal-on-scroll.reveal-right {
  transform: translate3d(36px, 0, 0);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.93) translate3d(0, 20px, 0);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.stagger-1 { transition-delay: 0.07s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.28s; }
.stagger-5 { transition-delay: 0.35s; }
.stagger-6 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   BENTO GRID (CAPABILITIES)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.bento-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.bento-body {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #cbd5e1;
}

.meter-wrapper {
  margin-top: 12px;
}

.meter-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 8px;
}

.meter-fill {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, #94a3b8, #ffffff);
  border-radius: 3px;
}

.meter-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.code-box {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
  overflow-x: auto;
}

/* ==========================================================================
   POLLARIZ CASE STUDY & SCORECARD
   ========================================================================== */
.case-study-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.frame-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.frame-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ==========================================================================
   PEGASUS-STYLE AUTHENTIC POLLARIZ DASHBOARD UI
   ========================================================================== */
.dash-board-ui {
  background: #0d0e15;
  color: #f1f5f9;
  font-family: var(--font-sans);
  padding: 24px 28px 32px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Subtle atmospheric silver glow */
.dash-board-ui::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 20%;
  right: 20%;
  height: 160px;
  background: radial-gradient(ellipse at 50% 50%, rgba(226, 232, 240, 0.12), transparent 70%);
  pointer-events: none;
}

/* Top bar: Brand + Before/After Toggle Pill + Engine status */
.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}

.dash-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-brand-icon {
  width: 26px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dash-brand-icon span {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #94a3b8, #ffffff);
}
.dash-brand-icon span:nth-child(1) { width: 16px; }
.dash-brand-icon span:nth-child(2) { width: 24px; }
.dash-brand-icon span:nth-child(3) { width: 12px; }

.dash-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.dash-brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.dash-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-toggle-group {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dash-toggle-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.22s ease;
  min-height: 36px;
}

.dash-toggle-btn:hover {
  color: #ffffff;
}

.dash-toggle-btn.active {
  background: #ffffff;
  color: #080a10;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #34d399;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

/* Metric Strip (Pegasus style 4 numbers) */
.dash-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-kpi-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Hero Focal Point (Issue 8 - Visual Story Hierarchy) */
.dash-kpi-card--hero {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(20, 24, 30, 0.6) 100%);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.08);
}

.hero-kpi-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.dash-kpi-lbl {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.dash-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dash-kpi-num {
  font-size: var(--text-xl);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Standardized Positive Status Badges (Issue 11) */
.dash-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.28);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.dash-kpi-subtext {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.badge-pos {
  background: rgba(52, 211, 153, 0.12) !important;
  color: var(--accent-green) !important;
  border: 1px solid rgba(52, 211, 153, 0.28) !important;
}

.badge-neg {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

/* Action banner with refined metallic silver border and gradient */
.dash-action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(20, 22, 30, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 22px;
  gap: 16px;
}

.dash-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.dash-banner-text-top {
  font-size: 11px;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.dash-banner-text-val {
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
}

.dash-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.dash-banner-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Middle Split: 62% Stepped Chart / 38% News */
.dash-split-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.dash-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-card-title::before {
  content: "";
  width: 3px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 2px;
}

.dash-card-link {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* Stepped 3D Bars (Liquid Silver / Platinum Stepped Chart) */
.dash-stepped-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 190px;
  padding: 10px 8px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-stepped-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.dash-stepped-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
}

.dash-stepped-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  position: relative;
  box-shadow: 0 -4px 18px rgba(255, 255, 255, 0.12);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Distinct 3D natural liquid silver & platinum step gradients */
.bar-step-5 {
  height: 130px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 35%, #475569 100%);
  border-top: 1px solid #ffffff;
  box-shadow: 0 -4px 22px rgba(255, 255, 255, 0.28);
}
.bar-step-4 {
  height: 100px;
  background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 40%, #334155 100%);
  border-top: 1px solid #ffffff;
  box-shadow: 0 -4px 16px rgba(255, 255, 255, 0.16);
}
.bar-step-3 {
  height: 72px;
  background: linear-gradient(180deg, #e2e8f0 0%, #64748b 45%, #1e293b 100%);
  border-top: 1px solid #cbd5e1;
}
.bar-step-2 {
  height: 48px;
  background: linear-gradient(180deg, #cbd5e1 0%, #475569 50%, #0f172a 100%);
  border-top: 1px solid #94a3b8;
}
.bar-step-1 {
  height: 22px;
  background: linear-gradient(180deg, #94a3b8 0%, #334155 55%, #020617 100%);
  border-top: 1px solid #64748b;
}

.dash-stepped-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

/* Frontier AI Engine Breakdown Panel */
.dash-engine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-engine-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dash-engine-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
}

.dash-engine-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-engine-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dash-engine-name {
  font-size: var(--text-xs);
  color: #cbd5e1;
  font-weight: 500;
}

.dash-engine-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dash-engine-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-engine-meter {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.dash-engine-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #34d399 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.dash-engine-pct {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #ffffff;
  min-width: 36px;
  text-align: right;
  transition: color 0.3s ease;
}

/* Bottom: Opportunities / Cohorts Strip */
.dash-cohorts-wrap {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
}

.dash-cohort-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-cohort-subtitle {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}

.dash-cohort-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-cohort-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dash-cohort-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.dash-cohort-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-cohort-query {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.dash-cohort-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dash-cohort-sub {
  font-size: var(--text-xs);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-query-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
  transition: color 0.3s ease;
}

/* Dashboard Toggle Indicator Dots */
.toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-dot-neutral,
.toggle-dot-red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}

.toggle-dot-active {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

/* Dashboard Responsive Layout for Laptop, Tablet, iPhone, Android */
@media (max-width: 992px) {
  .dash-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dash-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-cohort-grid {
    grid-template-columns: 1fr;
  }
  .dash-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .dash-board-ui {
    padding: 16px 14px 22px;
  }
  .dash-top-bar {
    gap: 12px;
  }
  .dash-toggle-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dash-toggle-group {
    width: 100%;
    display: flex;
  }
  .dash-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .dash-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dash-kpi-card {
    padding: 12px;
  }
  .dash-kpi-num {
    font-size: 1.25rem;
  }
  .dash-stepped-chart {
    height: 160px;
  }
  .dash-action-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .dash-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .dash-kpi-strip {
    grid-template-columns: 1fr;
  }
  .dash-toggle-btn {
    font-size: 10.5px;
    padding: 7px 6px;
  }
}

/* ==========================================================================
   PERFORMANCE SECTION & SCORECARD CARDS
   ========================================================================== */
.scorecard-panel {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.score-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.score-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.score-val {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.score-diff {
  font-size: var(--text-xs, 12px);
  color: #cbd5e1;
  line-height: 1.5;
}

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

@media (max-width: 600px) {
  .scorecard-grid {
    grid-template-columns: 1fr;
  }
  .scorecard-panel {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   PROJECTION SIMULATOR
   ========================================================================== */
.sim-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sim-input-group {
  margin-bottom: 24px;
}

.sim-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.sim-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.sim-select option {
  background: #0f0f14;
  color: #ffffff;
}

.sim-slider {
  width: 100%;
  accent-color: #ffffff;
  cursor: pointer;
  margin: 12px 0;
}

.slider-scale-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  float: right;
}

.slider-stops {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.sim-results-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-row {
  margin-bottom: 20px;
}

.result-val {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   CONSULTATION / QUOTE MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background: rgba(14, 14, 20, 0.95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  transform: scale(0.92) translate3d(0, 28px, 0);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translate3d(0, 0, 0);
  opacity: 1;
}

/* ==========================================================================
   SERVICES SHOWCASE MODAL (SMOOTH MOTION GRAPHICS)
   ========================================================================== */
.services-modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 20, 0.97);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 70px rgba(255, 255, 255, 0.08);
  transform: scale(0.92) translateY(28px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-overlay.active .services-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.services-modal-header {
  margin-bottom: 24px;
  padding-right: 48px;
}

.services-direct-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 36px;
  row-gap: 4px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .services-direct-list {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
}

.service-direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.service-direct-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.service-direct-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 500;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.service-direct-item:hover .service-direct-idx {
  color: #ffffff;
}

.service-direct-name {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45), 0 0 22px rgba(255, 255, 255, 0.18);
  transition: text-shadow 0.25s ease, color 0.25s ease;
  flex-grow: 1;
}

.service-direct-item:hover .service-direct-name {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.85), 0 0 34px rgba(255, 255, 255, 0.4);
}

.service-direct-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.service-direct-item:hover .service-direct-arrow {
  color: #ffffff;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.services-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.services-modal-footer-text {
  font-size: 13.5px;
  color: var(--muted);
}
.services-modal-footer-text strong {
  color: #ffffff;
}

.services-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease;
}

.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.country-code-select {
  box-sizing: border-box;
  height: 44px;
  width: 95px;
  flex: 0 0 95px;
  max-width: 95px;
  padding: 0 20px 0 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23cbd5e1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.country-code-select:focus,
.country-code-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.1);
}

.country-code-select option {
  background: #111118;
  color: #ffffff;
  font-family: var(--font-sans);
  padding: 8px 12px;
}

.phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.form-input:focus {
  border-color: #ffffff;
}

.form-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #ef4444;
  margin-top: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 56px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-nav-link .footer-link-arrow {
  font-size: 11px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-nav-link:hover .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Distinct Action Button (Issues 17 & 23) */
.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #e2e8f0;
  padding: 2px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.footer-action-btn:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-action-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.footer-action-btn:hover .footer-action-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (OPTIMIZED FOR MOBILE, IOS & ANDROID)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-modal-grid { grid-template-columns: repeat(2, 1fr); }
  .scorecard-grid { grid-template-columns: repeat(2, 1fr); }
  .scorecard-footer-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header {
    padding: 14px 24px;
  }
  .dash-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .dash-split-grid { grid-template-columns: 1fr; }
  .dash-cohort-grid { grid-template-columns: 1fr; }
  .scorecard-footer-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Responsive Section Spacing for Mobile / Tablets */
  .platform-section {
    padding: 40px 0;
  }
  .section-header {
    margin: 0 auto 24px;
  }
  .clients-section {
    padding: 30px 0;
  }
  .marquee-title {
    margin-bottom: 16px;
  }
  #how-it-works {
    padding-top: 36px;
    padding-bottom: 8px;
  }
  #performance {
    padding-top: 8px;
    padding-bottom: 40px;
  }
  #contact {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  #contact .scorecard-panel {
    padding: 32px 18px !important;
  }
  .site-footer {
    padding: 42px 0 28px;
  }
  .case-study-frame {
    margin-bottom: 0;
  }

  /* Navigation & Header (Mobile Responsive for iPhone & Android) */
  .header {
    padding: 10px 16px;
    flex-wrap: wrap;
    row-gap: 8px;
    background: rgba(3, 3, 5, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  .header.scrolled {
    padding: 8px 16px;
    background: rgba(3, 3, 5, 0.98);
  }
  .header .logo {
    order: 1;
  }
  .header .open-quote-btn {
    order: 2;
    padding: 7px 14px;
    font-size: var(--text-xs);
    height: 34px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .header-nav-link {
    font-size: var(--text-xs);
    padding: 6px 10px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  /* Scorecards (Proven Performance & Interactive Scorecard) */
  .scorecard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .score-card {
    padding: 18px 16px;
  }
  .score-val {
    font-size: 1.5rem;
  }
  .score-diff {
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--text-xs);
    line-height: 1.5;
  }

  /* Interactive Scorecard Panel */
  .scorecard-panel {
    padding: 22px 16px;
  }
  .scorecard-header {
    gap: 14px;
    margin-bottom: 20px;
  }
  .toggle-group {
    width: 100%;
    display: flex;
    padding: 3px;
    box-sizing: border-box;
  }
  .toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: var(--text-xs);
    white-space: nowrap;
  }
  .scorecard-footer-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-stat-item {
    padding: 12px 14px;
  }

  /* Case Study Frame & Dashboard UI */
  .case-study-frame {
    border-radius: var(--radius-md);
    margin-bottom: 0;
  }
  .frame-header {
    padding: 10px 14px;
    gap: 8px;
  }
  .frame-url {
    font-size: var(--text-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
  }
  .frame-badge {
    font-size: var(--text-xs);
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .dash-board-ui {
    padding: 18px 14px 22px;
  }
  .dash-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .dash-brand-block {
    justify-content: flex-start;
  }
  .dash-brand-name {
    font-size: var(--text-sm);
  }
  .dash-nav-pills {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
    gap: 4px;
    box-sizing: border-box;
  }
  .dash-nav-pills::-webkit-scrollbar {
    display: none;
  }
  .dash-pill-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: var(--text-xs);
  }
  .dash-meta-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .dash-status-pill {
    font-size: var(--text-xs);
    padding: 3px 8px;
    white-space: nowrap;
  }
  .dash-user-chip {
    display: none; /* Streamline dashboard density on mobile */
  }

  /* Dashboard KPIs */
  .dash-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .dash-kpi-card {
    padding: 12px 10px;
  }
  .dash-kpi-lbl {
    font-size: var(--text-xs);
    margin-bottom: 4px;
  }
  .dash-kpi-num {
    font-size: 1.25rem;
  }
  .dash-kpi-val-row {
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
  }
  .dash-mini-badge {
    font-size: var(--text-xs);
    padding: 2px 6px;
    white-space: nowrap;
  }

  /* Action Banner */
  .dash-action-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    margin-bottom: 16px;
  }
  .dash-banner-info {
    align-items: flex-start;
    gap: 12px;
  }
  .dash-banner-text-val {
    font-size: var(--text-xs);
    line-height: 1.45;
  }
  .dash-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    box-sizing: border-box;
  }

  /* Split Grid & Chart */
  .dash-split-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .dash-card {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .dash-card-header {
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .dash-stepped-chart {
    gap: 6px;
    height: 170px;
    padding: 10px 4px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .dash-stepped-val {
    font-size: var(--text-xs);
    margin-bottom: 6px;
  }
  .dash-stepped-label {
    font-size: var(--text-xs);
    margin-top: 6px;
    white-space: normal;
    line-height: 1.15;
  }
  .dash-stepped-label .dash-day-sub {
    display: block;
    font-size: 10px;
    opacity: 0.85;
  }
  .dash-news-item {
    padding: 9px 10px;
  }
  .dash-news-text {
    font-size: var(--text-xs);
  }

  /* Cohorts / Monitored Queries */
  .dash-cohorts-wrap {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .dash-cohort-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }
  .dash-cohort-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dash-cohort-item {
    padding: 10px 12px;
  }
  .dash-cohort-sub {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Modals */
  .services-grid { grid-template-columns: 1fr; }
  .services-modal-grid { grid-template-columns: 1fr; }
  .services-modal-card { padding: 24px 16px; max-height: 90vh; }
  .services-direct-list { grid-template-columns: 1fr; row-gap: 2px; }
  .service-direct-item { padding: 14px 8px; gap: 12px; }
  .service-direct-name { font-size: 1.05rem; }
  .modal-card { padding: 26px 18px; }
}

@media (max-width: 640px) {
  :root { --h1: 32px; }
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .headline-line { font-size: 28px; }
  .lede { font-size: var(--text-base); line-height: 1.6; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-highlights { gap: 10px 16px; font-size: var(--text-xs); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .content-container { padding-left: 16px; padding-right: 16px; }
  .section-title { font-size: 1.75rem; }
  .section-desc { font-size: var(--text-sm); }
  .country-code-select {
    width: 86px;
    flex: 0 0 86px;
    max-width: 86px;
    padding: 0 16px 0 6px;
    font-size: 12px;
  }
}

/* Footer Legal Link Button */
.footer-legal-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-btn:hover {
  color: #ffffff;
}

.terms-modal-card {
  max-width: 820px;
}

@media (max-width: 380px) {
  .dash-kpi-num { font-size: 1.15rem; }
  .dash-stepped-chart { gap: 4px; }
  .toggle-btn { font-size: var(--text-xs); padding: 6px 4px; }
}

