/* ==========================================
   OPERATOR — MODERN B2B LANDING PAGE SYSTEM
   DESIGNED FOR WORDPRESS + ELEMENTOR
   ========================================== */

/* Theme Variables & Tokens */
:root {
  /* Light Mode Palette */
  --bg-primary: #F8F9FB;
  --bg-secondary: #EFEFEF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --accent-emphasis: #0F172A;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(15, 23, 42, 0.4);
  
  --img-filter: brightness(1.02) contrast(1.04);
  --vignette-color: #F8F9FB;
  
  --transition-speed: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Dark Mode Palette */
  --bg-primary: #0A0D14;
  --bg-secondary: #141923;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --accent-emphasis: #FFFFFF;
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.5);

  --img-filter: brightness(0.9) contrast(1.1);
  --vignette-color: #0A0D14;
}

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

html, body {
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Ambient Background Mesh */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(200, 200, 200, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(150, 150, 150, 0.03) 0%, transparent 50%);
  opacity: 0.8;
}

[data-theme="dark"] .ambient-bg {
  background: 
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}


/* Site Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 20;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: all 300ms ease;
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.05);
  transform: translateY(-1px);
}

.toggle-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Main Hero Viewport (100vh / 100svh) */
.hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 85px 4rem 60px 4rem;
  z-index: 10;
  top:7%;
}

/* Container Structure (Elementor Equivalent: Flex Container Row) */
.hero-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: calc(100vh - 145px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* LEFT: Content Container (Approx 45%) */
.hero-content {
  flex: 0 0 45%;
  max-width: 45%;
  padding-right: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
  animation: contentFadeIn 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* HEADLINE STYLING */
.hero-headline {
  font-size: clamp(40px, 4.6vw, 80px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 2.2rem;
  text-wrap: balance;
}

.hero-headline .highlight {
  position: relative;
  color: var(--accent-emphasis);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

/* ATTRIBUTION STYLING */
.attribution-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.attribution-dash {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.attribution-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* RIGHT: Visual Container (Approx 55%) */
.hero-visual {
  flex: 0 0 55%;
  max-width: 55%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Business Operator Portrait Image */
.operator-portrait {
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: var(--img-filter);
  transition: filter 500ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 2;
  animation: portraitScaleIn 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portraitScaleIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Seamless Vignette Masks for Background Blending */
.vignette-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.bottom-vignette {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to top, var(--vignette-color) 15%, transparent 100%);
  transition: background 400ms ease;
}

.left-vignette {
  top: 0;
  left: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(to right, var(--vignette-color) 20%, transparent 100%);
  transition: background 400ms ease;
}

[data-theme="light"] .light-blend-overlay {
  inset: 0;
  background: radial-gradient(circle at 50% 60%, transparent 35%, var(--vignette-color) 85%);
  opacity: 0.4;
}

[data-theme="dark"] .dark-blend-overlay {
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  opacity: 0.6;
}

/* Bottom Navigation Controls (Arrow Buttons ONLY) */
.bottom-nav-container {
  position: absolute;
  bottom: 3.5rem;
  right: 4rem;
  z-index: 30;
  display: flex;
  align-items: center;
  animation: navFadeIn 1100ms 400ms ease both;
}

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

/* Arrow Navigation Buttons */
.nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.arrow-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.arrow-btn:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
  transform: translateY(-1px);
}

#prev-btn:hover svg {
  transform: translateX(-4px);
}

#next-btn:hover svg {
  transform: translateX(4px);
}

.arrow-btn svg {
  transition: transform 250ms ease;
}


/* ==========================================
   SERVICES PAGE NO-SCROLL LAYOUT & STYLING
   ========================================== */
.font-mono {
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}

.services-viewport {
  overflow: hidden;
}

.services-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: calc(100vh - 145px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  position: relative;
}

/* LEFT SIDE PANEL */
.services-left-panel {
  flex: 0 0 52%;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2rem;
  padding-right: 1rem;
}

/* Left Nav Menu with Left Thin Line Track */
.services-nav-wrapper {
  position: relative;
  padding-left: 1.75rem;
}

/* Thin vertical line on left side */
.nav-thin-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-subtle);
  border-radius: 2px;
}

/* Sliding Active Line Indicator */
.nav-line-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 38px;
  background-color: var(--text-primary);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--border-hover);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .nav-line-indicator {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.services-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-item {
  position: relative;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 300ms ease;
  width: 100%;
  text-align: left;
}

.nav-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  opacity: 0.7;
}

.nav-btn:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-item.active .nav-btn {
  color: var(--text-primary);
  font-weight: 700;
  transform: translateX(6px);
}

/* CURRENTLY ACTIVE HEADING & CONTENT AREA */
.services-content-display {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services-content-display.content-changing {
  opacity: 0;
  transform: translateY(12px);
}

.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.active-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.active-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 90%;
}

/* Active Stats Grid */
.active-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-card {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: all 300ms ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Action Row & Scroll Hint */
.active-action-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.cta-primary-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 300ms ease;
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.scroll-instruction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.mouse-icon {
  animation: floatMouse 2s infinite ease-in-out;
}

@keyframes floatMouse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* RIGHT SIDE PANEL: VISUAL CARD WRAPPER */
.services-right-panel {
  flex: 0 0 45%;
  max-width: 45%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services-right-panel.visual-changing {
  opacity: 0;
  transform: scale(0.97);
}

.visual-card-wrapper {
  width: 100%;
  max-width: 480px;
}

.visual-card-container {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: border-color 300ms ease;
}

[data-theme="dark"] .visual-card-container {
  background: rgba(20, 25, 35, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.card-status-dot.green { background-color: #10B981; }
.card-status-dot.blue { background-color: #3B82F6; }
.card-status-dot.purple { background-color: #8B5CF6; }
.card-status-dot.emerald { background-color: #06B6D4; }
.card-status-dot.gold { background-color: #F59E0B; }

.card-code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(125, 125, 125, 0.1);
  color: var(--text-secondary);
}

/* TOPOLOGY GRAPHIC */
.topology-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.node {
  background: rgba(125, 125, 125, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.node-gateway {
  border-color: var(--border-hover);
  background: rgba(16, 185, 129, 0.05);
}

.node-icon { font-size: 1rem; }
.node-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.node-sub { font-size: 0.7rem; color: var(--text-secondary); }
.node-metric { font-size: 0.7rem; font-family: monospace; color: #10B981; font-weight: 600; }

.node-connections {
  height: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.wire {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--border-hover), transparent);
}

.node-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  font-size: 0.72rem;
}

.footer-stat .label { color: var(--text-secondary); }
.footer-stat .val { color: var(--text-primary); font-weight: 600; margin-left: 0.3rem; }
.footer-stat .val.green { color: #10B981; }

/* BAR CHART VISUAL */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 140px;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bar {
  width: 28px;
  background: var(--border-subtle);
  border-radius: 4px 4px 0 0;
  transition: height 600ms ease;
}

.chart-column.highlight .bar {
  background: var(--text-primary);
}

.chart-column.highlight {
  color: var(--text-primary);
  font-weight: 700;
}

/* PIPELINE VISUAL */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(125, 125, 125, 0.05);
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
}

.pipeline-item.active {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
}

.check-icon { color: #10B981; font-weight: bold; }
.pulse-icon { color: #8B5CF6; animation: blink 1s infinite alternate; }
.task-name { flex: 1; color: var(--text-primary); }
.task-time { color: var(--text-secondary); font-size: 0.7rem; }

@keyframes blink { from { opacity: 0.3; } to { opacity: 1; } }

/* INTEL GRID VISUAL */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.intel-tile {
  background: rgba(125, 125, 125, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.intel-tile.span-2 { grid-column: span 2; }
.tile-label { font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 0.05em; }
.tile-val { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }

.spark-svg { width: 100%; height: 35px; color: #06B6D4; stroke: currentColor; }

/* COMPLIANCE VISUAL */
.compliance-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comp-card {
  background: rgba(125, 125, 125, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.comp-shield { font-size: 1.8rem; }
.comp-title { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.comp-status { font-size: 0.68rem; font-family: monospace; }
.comp-status.green { color: #10B981; }


/* ==========================================
   DIAGNOSTICS / TELEMETRY PAGE STYLING
   ========================================== */
.diagnostics-viewport {
  overflow-y: auto !important;
  overflow-x: hidden;
  height: auto !important;
  min-height: 100vh;
}

.diagnostics-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: calc(100vh - 145px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
}

/* Left Hero & Stat Matrix Panel */
.diagnostics-hero-panel {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diagnostics-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagnostics-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.diagnostics-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.diagnostics-subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Telemetry Stats Grid (5 Metric Cards) */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.telemetry-card {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .telemetry-card {
  background: rgba(20, 25, 35, 0.5);
}

.telemetry-card.col-span-3 { grid-column: span 3; }
.telemetry-card.col-span-2 { grid-column: span 2; }
.telemetry-card.col-span-4 { grid-column: span 4; }

.telemetry-card:hover, .telemetry-card.active-telemetry {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .telemetry-card:hover,
[data-theme="dark"] .telemetry-card.active-telemetry {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 38, 54, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.telemetry-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-label-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.telemetry-label-ar {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.telemetry-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.telemetry-desc-en {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.telemetry-desc-ar {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.75;
  direction: rtl;
}

/* Right Career Level Dossier Panel */
.diagnostics-dossier-panel {
  flex: 0 0 46%;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Career Stepper Tabs */
.career-nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(125, 125, 125, 0.05);
  padding: 0.35rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.career-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 300ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.career-tab-btn:hover {
  color: var(--text-primary);
}

.career-tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dossier Main Card */
.dossier-card {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 300ms ease;
  min-height: 380px;
  justify-content: space-between;
}

[data-theme="dark"] .dossier-card {
  background: rgba(20, 25, 35, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.dossier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.dossier-level-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  letter-spacing: 0.06em;
}

.dossier-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dossier-role-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.dossier-role-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dossier-text-en {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.dossier-text-ar {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  direction: rtl;
}

.dossier-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.dossier-chip {
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dossier-chip.accent-green {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
}


/* ==========================================
   404 ERROR PAGE STYLING
   ========================================== */
.error-viewport {
  overflow: hidden;
}

.error-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: calc(100vh - 145px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.error-card {
  width: 100%;
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .error-card {
  background: rgba(20, 25, 35, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* Big Animated 404 Display */
.error-code-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(80px, 12vw, 150px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

.radar-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed var(--border-subtle);
  animation: radarRotate 12s linear infinite;
  z-index: 1;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.error-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  text-transform: uppercase;
}

.error-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.error-subtext {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
}

.error-console-box {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  width: 100%;
  max-width: 520px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="dark"] .error-console-box {
  background: rgba(10, 13, 20, 0.8);
}

.console-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-prompt { color: #10B981; }
.console-key { color: var(--text-primary); font-weight: 600; }
.console-val { color: var(--text-secondary); }

.error-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.75rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
  .site-header { padding: 0 2.5rem; }
  .hero-viewport { padding: 80px 2.5rem 40px 2.5rem; }
  .hero-headline { font-size: clamp(34px, 4vw, 58px); }
  .bottom-nav-container { right: 2.5rem; bottom: 2.5rem; }
  .services-container, .diagnostics-container { gap: 2rem; }
  .services-left-panel, .diagnostics-hero-panel { flex: 0 0 52%; max-width: 52%; }
  .services-right-panel, .diagnostics-dossier-panel { flex: 0 0 45%; max-width: 45%; }
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  
  .services-viewport, .diagnostics-viewport, .error-viewport {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
  }

  .site-header {
    padding: 0 1.5rem;
    height: 70px;
  }

  .hero-viewport {
    height: auto;
    min-height: 100vh;
    padding: 90px 1.5rem 100px 1.5rem;
  }

  .hero-container, .services-container, .diagnostics-container, .error-container {
    flex-direction: column;
    height: auto;
    gap: 2.5rem;
  }

  .hero-content, .services-left-panel, .diagnostics-hero-panel, .diagnostics-dossier-panel {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
    margin-top: 1rem;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .telemetry-card.col-span-3, .telemetry-card.col-span-2, .telemetry-card.col-span-4 {
    grid-column: span 2;
  }

  .services-right-panel {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .hero-visual {
    flex: 1 1 100%;
    max-width: 100%;
    height: 500px;
  }

  .operator-portrait {
    max-height: 480px;
  }

  .bottom-nav-container {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
    justify-content: flex-end;
    width: 100%;
  }
}

@media (max-width: 550px) {
  .hero-headline {
    font-size: 2.1rem;
  }

  .operator-portrait {
    max-height: 380px;
  }

  .active-stats-grid, .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-card.col-span-3, .telemetry-card.col-span-2, .telemetry-card.col-span-4 {
    grid-column: span 1;
  }

  .active-heading, .diagnostics-title {
    font-size: 1.85rem;
  }

  .career-nav-tabs {
    flex-direction: column;
    border-radius: 12px;
  }

  .error-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .error-cta-row button, .error-cta-row a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   PROBLEM STRUCTURING CONSOLE (DAIGNANOSTICS)
   ========================================== */

.console-box {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: calc(100vh - 160px);
  background: rgba(125, 125, 125, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .console-box {
  background: rgba(15, 20, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Console Header Block */
.console-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.console-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.console-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.console-privacy-badges {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.privacy-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(125, 125, 125, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge-dot.green {
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.badge-dot.border-only {
  border: 1.5px solid var(--text-secondary);
}

.console-supporting-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Step Blocks */
.console-input-view {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex: 1;
  justify-content: center;
}

.console-step-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.step-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.step-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-counter {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Step 01: Condition Selection Buttons Grid */
.condition-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.condition-btn {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  text-align: left;
  transition: all 250ms ease;
  outline: none;
}

.condition-btn:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
  transform: translateY(-2px);
}

.condition-btn.active {
  border-color: var(--text-primary);
  background: rgba(125, 125, 125, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .condition-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

.condition-btn-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.condition-radio {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: inline-block;
  transition: all 200ms ease;
}

.condition-btn.active .condition-radio {
  border-color: var(--text-primary);
  background-color: var(--text-primary);
  box-shadow: 0 0 6px var(--text-primary);
}

.condition-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.condition-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Step 02: Textarea */
.textarea-wrapper {
  position: relative;
  width: 100%;
}

.textarea-wrapper textarea {
  width: 100%;
  height: 100px;
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color 250ms ease, background 250ms ease;
}

.textarea-wrapper textarea:focus {
  border-color: var(--text-primary);
  background: rgba(125, 125, 125, 0.07);
}

/* Console Action Buttons */
.console-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.left-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.console-btn {
  border-radius: 100px;
  padding: 0.65rem 1.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 250ms ease;
  outline: none;
}

.console-btn.primary-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}

.console-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.console-btn.secondary-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.console-btn.secondary-btn:hover {
  border-color: var(--border-hover);
  background: rgba(125, 125, 125, 0.08);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 0.82rem;
  transition: transform 200ms ease;
}

.console-btn:hover .btn-icon {
  transform: translateX(2px);
}

.console-disclaimer {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* OUTPUT VIEW (GENERATED STRUCTURE) */
.console-output-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.6rem;
  flex: 1;
  animation: outputFadeIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.output-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.output-generated-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.output-condition-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(125, 125, 125, 0.1);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* 5-Stage Reasoning Grid */
.reasoning-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.reasoning-card {
  background: rgba(125, 125, 125, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reasoning-card.col-span-full {
  grid-column: span 4;
}

.reasoning-stage-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.reasoning-stage-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Output Meta Grid (Evidence & Action) */
.output-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.output-meta-card {
  background: rgba(125, 125, 125, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.meta-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-primary);
}

/* Input Preservation Box */
.input-preservation-box {
  background: rgba(125, 125, 125, 0.06);
  border: 1px dashed var(--border-hover);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.preservation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preservation-tag {
  font-size: 0.65rem;
  color: var(--text-primary);
  background: rgba(125, 125, 125, 0.12);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.preservation-text {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
}

@media (max-width: 1024px) {
  .condition-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reasoning-stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasoning-card.col-span-full {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .condition-options-grid {
    grid-template-columns: 1fr;
  }
  .reasoning-stages-grid, .output-bottom-grid {
    grid-template-columns: 1fr;
  }
  .reasoning-card.col-span-full {
    grid-column: span 1;
  }
}


/* =========================================================
   MOBILE SERVICE ARROWS
   ========================================================= */

.mobile-service-arrows {
    display: none;
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Main services viewport */
    .services-viewport {
        width: 100%;
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }


    /* Main container */
    .services-container {
        width: 100%;
        min-height: auto;
        height: auto;

        display: flex;
        flex-direction: column;

        padding: 0 20px 100px;
        box-sizing: border-box;
    }


    /* Left content */
    .services-left-panel {
        width: 100%;
        max-width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        box-sizing: border-box;
    }


    /* =====================================================
       SERVICE LIST
       ===================================================== */

    .services-nav-wrapper {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .services-nav-wrapper::-webkit-scrollbar {
        display: none;
    }


    .services-nav-list {
        width: max-content;
        min-width: 100%;

        display: flex;
        flex-direction: row;

        gap: 18px;

        margin: 0;
        padding: 0 0 18px;

        list-style: none;
    }


    .services-nav-list .nav-item {
        flex: 0 0 auto;
    }


    .services-nav-list .nav-btn {
        white-space: nowrap;
    }


    /* Hide desktop vertical indicator on mobile */
    .nav-thin-line {
        display: none;
    }


    /* =====================================================
       ACTIVE CONTENT
       ===================================================== */

    .services-content-display {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin-top: 20px;
    }


    .active-heading {
        max-width: 100%;

        font-size: clamp(32px, 9vw, 52px);
        line-height: 1.05;

        overflow-wrap: break-word;
        word-break: normal;
    }


    .active-stats-grid {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;
        gap: 10px;

        box-sizing: border-box;
    }


    .stat-card {
        width: 100%;
        box-sizing: border-box;
    }


    /* =====================================================
       ACTION AREA
       ===================================================== */

    .active-action-row {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;

        margin-top: 25px;
    }


    .cta-primary-btn {
        max-width: 100%;

        white-space: normal;
        text-align: center;
    }


    /* =====================================================
       MOBILE SERVICE ARROWS
       ===================================================== */

    .mobile-service-arrows {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: flex-start;

        gap: 10px;

        margin-top: 24px;
        margin-bottom: 25px;

        box-sizing: border-box;
    }


    .mobile-service-arrow {
        width: 44px;
        height: 44px;

        min-width: 44px;
        min-height: 44px;

        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 1px solid currentColor;

        background: transparent;
        color: inherit;

        cursor: pointer;

        box-sizing: border-box;

        transition:
            opacity 0.2s ease,
            background 0.2s ease,
            transform 0.2s ease;
    }


    .mobile-service-arrow:active {
        transform: scale(0.94);
    }


    .mobile-service-arrow:disabled {
        opacity: 0.25;
        cursor: not-allowed;
    }


    /* =====================================================
       RIGHT VISUAL
       ===================================================== */

    .services-right-panel {
        width: 100%;
        max-width: 100%;

        height: auto;

        margin-top: 10px;

        box-sizing: border-box;
    }


    .visual-card-wrapper {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }


    /* =====================================================
       EXISTING BOTTOM PAGE ARROWS
       DO NOT CHANGE THEIR FUNCTION
       ===================================================== */

    .bottom-nav-container {
        width: 100%;

        box-sizing: border-box;
    }


    .nav-arrows {
        display: flex;

        align-items: center;
        justify-content: space-between;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 480px) {

    .services-container {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 90px;
    }


    .services-content-display {
        margin-top: 15px;
    }


    .active-heading {
        font-size: clamp(30px, 10vw, 42px);
    }


    .active-stats-grid {
        gap: 8px;
    }


    .mobile-service-arrows {
        margin-top: 20px;
        margin-bottom: 20px;
    }


    .mobile-service-arrow {
        width: 42px;
        height: 42px;

        min-width: 42px;
        min-height: 42px;
    }
}

.ring:after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
}