/* ==========================================================================
   Mnemo Data - CSS Design System & Stylesheet
   ========================================================================== */

/* 1. Design Tokens & Variables */
:root {
  --font-title: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette - cool white fintech tone */
  --bg-primary: #f7f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef3f8;
  --bg-glass: rgba(255, 255, 255, 0.82);

  --border-glass: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(59, 130, 246, 0.24);

  --color-blue: #3b82f6;
  --color-blue-glow: rgba(59, 130, 246, 0.45);
  --color-purple: #8b5cf6;
  --color-purple-glow: rgba(139, 92, 246, 0.45);
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.45);
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.45);
  --color-orange: #f59e0b;
  --color-orange-glow: rgba(245, 158, 11, 0.45);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.45);

  --text-main: #0f172a;
  --text-muted: #3e4f63; /* Darkened for WCAG AA 4.5:1 on light bg */
  --text-dark: #556578;

  /* 8px-based spacing scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 2.5rem;   /* 40px */
  --space-8: 3rem;     /* 48px */
  --space-10: 4rem;    /* 64px */
  --space-12: 5rem;    /* 80px */
  --space-16: 6rem;    /* 96px */

  /* Container */
  --container-max: 1200px;
  --container-padding: 2rem;

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 500;
  --z-header: 1000;
  --z-skip: 10000;

  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* 2. Global Resets & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 46%, #ffffff 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  overflow-wrap: anywhere;
}

html[lang="en"] body {
  hyphens: auto;
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: var(--z-skip);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Visible focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-ring,
  .wheel-instruction {
    animation: none !important;
  }
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.nav-open {
  overflow: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Common Section Layouts */
section {
  padding: 6rem 0;
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.text-center {
  text-align: center;
}
.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   3. Header & Navigation Bar
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  height: 66px;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 66px;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  min-width: max-content;
}

.logo-icon {
  width: 34px;
  height: 34px;
  color: #101820;
  fill: currentColor;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #101820;
  white-space: nowrap;
}

.logo-text-highlight {
  color: inherit;
}

#navbar-menu {
  min-width: 0;
  justify-self: end;
  transform: translateX(40px);
}

.nav-links {
  display: flex;
  gap: clamp(0.35rem, 1vw, 0.85rem);
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #334155;
  font-size: 0.92rem;
  position: relative;
  min-width: auto;
  height: 32px;
  min-height: 0;
  line-height: 32px;
  padding: 0 clamp(0.75rem, 1.25vw, 1.35rem);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-blue);
  background: rgba(59, 130, 246, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--color-blue);
  box-shadow: none;
}

html[lang="en"] .nav-links {
  gap: clamp(0.25rem, 0.7vw, 0.55rem);
}

html[lang="en"] .nav-link {
  font-size: 0.8rem;
  height: 32px;
  line-height: 32px;
  padding: 0 clamp(0.42rem, 0.8vw, 0.78rem);
}

html[lang="en"] .section-title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

html[lang="en"] .hero-paragraphs {
  font-size: 1rem;
  line-height: 1.72;
}

html[lang="en"] .stat-num,
html[lang="en"] .stat-num-text {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

html[lang="en"] .stat-desc,
html[lang="en"] .region-countries,
html[lang="en"] .matrix-card p,
html[lang="en"] .mh-body p {
  font-size: 0.84rem;
}

html[lang="en"] .matrix-card h4,
html[lang="en"] .mh-header h4 {
  font-size: 1rem;
}

html[lang="en"] .scenario-card h3 {
  font-size: 1.08rem;
}

html[lang="en"] .scenario-card p {
  font-size: 0.78rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
  margin-left: 72px;
}

.lang-select {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: var(--transition-fast);
  margin-right: 3rem;
  outline: none;
}

.lang-select:hover {
  border-color: var(--color-blue);
}

.lang-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.sector-title {
  display: none;
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* Burger Animation */
.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.11) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 42%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-paragraphs {
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
  text-align: left;
}

.lead-text {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.12rem;
  border-left: none;
  padding-left: 0;
}

/* Stats Card Grid */
.hero-stats-wrapper {
  z-index: 2;
  width: 100%;
  padding: 0;
  position: relative;
  overflow: visible;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  padding: 2rem 1.5rem 1.8rem;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.stat-card:nth-child(1):hover::before { background: var(--color-blue); }
.stat-card:nth-child(2):hover::before { background: var(--color-purple); }
.stat-card:nth-child(3):hover::before { background: var(--color-cyan); }
.stat-card:nth-child(4):hover::before { background: var(--color-green); }

.stat-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
}

.icon-svg {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
  transition: var(--transition-fast);
}

.stat-card:hover .icon-svg {
  fill: var(--text-main);
}

/* Colors specifically for headers */
.blue-glow { box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.2); }
.purple-glow { box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2); }
.cyan-glow { box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.2); }
.green-glow { box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2); }
.orange-glow { box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2); }
.red-glow { box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.2); }

.stat-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-num-container {
  margin-bottom: 0.3rem;
}

.stat-num, .stat-num-text {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-blue);
}

.stat-num-text {
  font-size: 2rem;
}

.stat-desc {
  color: #334155;
  font-size: 0.98rem;
  font-weight: 600;
}

/* ==========================================================================
   5. Global Layout Section
   ========================================================================== */
.global-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.global-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

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

.region-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  min-width: 0;
}

.region-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.18);
}

.region-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
}

.region-bar.na { background: var(--color-blue); }
.region-bar.as { background: var(--color-orange); }
.region-bar.sa { background: var(--color-purple); }
.region-bar.af { background: var(--color-cyan); }

.region-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.region-countries {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.region-card.pending {
  opacity: 0.7;
}

.region-card.pending::after {
  content: 'PREP';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  padding: 1px 5px;
  border-radius: 4px;
}

.global-map-wrapper {
  position: relative;
}

.map-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.map-base-img {
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: contrast(1.06) brightness(1.05) saturate(0.9);
}

.map-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Pulsing Pins - 44px touch target */
.map-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: ring-pulse 1.8s infinite ease-out;
  opacity: 0;
}

.bg-na { background-color: var(--color-blue); }
.bg-as { background-color: var(--color-orange); }
.bg-sa { background-color: var(--color-purple); }
.bg-af { background-color: var(--color-cyan); }

/* ==========================================================================
   6. Data Capabilities Section
   ========================================================================== */
.capabilities-section {
  background: var(--bg-secondary);
}

.capabilities-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

.cap-intro {
  z-index: 2;
}

.cap-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.cap-metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.8rem;
  transition: var(--transition-smooth);
}

.cap-metric-card:hover {
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.96);
}

.cap-metric-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.4rem;
}

.cap-metric-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Interactive Wheel */
.cap-wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wheel-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border: 1px dashed var(--border-glass);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  /* Animation limited to 3 cycles per UX best practices */
}

.wheel-interactive-container {
  width: 480px;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-container-circle {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
}

.wheel-sector {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.sector-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-icon {
  width: 32px;
  height: 32px;
  fill: var(--text-muted);
  transition: var(--transition-fast);
}

.wheel-sector:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.wheel-sector.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.wheel-sector.active .sector-icon {
  fill: #fff;
}

/* Positions of the sectors around the circle */
#wheel-s1 { top: 5px; left: 50%; transform: translateX(-50%); }
#wheel-s2 { right: 5px; top: 50%; transform: translateY(-50%); }
#wheel-s3 { bottom: 5px; left: 50%; transform: translateX(-50%); }
#wheel-s4 { left: 5px; top: 50%; transform: translateY(-50%); }

#wheel-s1:hover { transform: translateX(-50%) scale(1.15); }
#wheel-s2:hover { transform: translateY(-50%) scale(1.15); }
#wheel-s3:hover { transform: translateX(-50%) scale(1.15); }
#wheel-s4:hover { transform: translateY(-50%) scale(1.15); }

/* Center Display Screen */
.wheel-center-display {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  text-align: center;
  z-index: 5;
  backface-visibility: hidden;
}

.wheel-center-content {
  animation: fadeIn 0.4s ease-out;
}

.cap-detail-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.4rem;
}

.cap-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.cap-detail-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. Core Products Section
   ========================================================================== */
.products-section {
  background: var(--bg-primary);
}

.prod-tab-wrapper {
  margin: 2rem 0 4rem 0;
  display: flex;
  justify-content: center;
  max-width: 100%;
  position: relative;
}

.prod-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-glass);
  padding: 0.4rem;
  border-radius: 50px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.prod-tabs::-webkit-scrollbar {
  display: none;
}

.prod-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: center;
  min-height: 44px;
}

.prod-tab-btn:hover {
  color: var(--text-main);
}

.prod-tab-btn.active {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Tab Panels */
.prod-detail-panel {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.prod-detail-panel.active {
  display: block;
}

.panel-intro {
  margin-bottom: 3rem;
}

.panel-intro h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.panel-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Panel 1: Product Matrix Grid */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.matrix-card {
  perspective: 1000px;
  min-height: 260px;
  height: auto;
  min-width: 0;
}

.matrix-card-face {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.matrix-card:hover .matrix-card-face {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.m-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.08);
}

.m-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-blue { color: var(--color-blue); }
.m-purple { color: var(--color-purple); }
.m-cyan { color: var(--color-cyan); }
.m-red { color: var(--color-red); }
.m-orange { color: var(--color-orange); }
.m-green { color: var(--color-green); }

.matrix-card h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.matrix-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Panel 3: Credit Score Split Layout */
.detail-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.detail-text-side {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.block-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.title-decor {
  width: 4px;
  height: 16px;
  background: var(--color-blue);
  border-radius: 2px;
}

.block-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight-box {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.box-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-blue);
}

.effect-list {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.effect-list li strong {
  color: var(--color-green);
  font-size: 1.2rem;
}

.glass-image-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}

.chart-header {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  text-align: center;
}

.model-chart-img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

/* Panel 4: Blacklist detail & Flowchart */
.blacklist-intro-block {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.2rem;
  margin-bottom: 3.5rem;
}

.blacklist-intro-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.bl-app-scenario {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text-main) !important;
}

.flow-chart-wrapper {
  margin-top: 2rem;
}

.flow-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.flow-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

.stage-header {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
}

.stage-in { border-color: var(--color-blue); color: var(--color-blue); }
.stage-proc { border-color: var(--color-purple); color: var(--color-purple); }
.stage-out { border-color: var(--color-red); color: var(--color-red); }

.flow-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-smooth);
  min-width: 0;
  flex: 1;
}

.flow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--border-glow);
}

.flow-card h6 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.card-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.card-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.bg-blue { background: rgba(59, 130, 246, 0.15); }
.bg-blue svg { fill: var(--color-blue); }
.bg-red { background: rgba(239, 68, 68, 0.15); }
.bg-red svg { fill: var(--color-red); }

.output-card {
  padding: 1.8rem 1.2rem;
}

.text-red {
  color: var(--color-red);
}

.card-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1rem;
}

.btn-sm {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-fast);
  line-height: 1.35;
}

.flow-arrow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.arrow-svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Panel 5: Credit Multi-head Grid */
.multihead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.multihead-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  min-width: 0;
}

.multihead-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
}

.mh-header {
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-glass);
  min-width: 0;
}

.mh-header h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.mh-blue { background: rgba(59, 130, 246, 0.04); color: var(--color-blue); }
.mh-purple { background: rgba(139, 92, 246, 0.04); color: var(--color-purple); }
.mh-cyan { background: rgba(6, 182, 212, 0.04); color: var(--color-cyan); }

.mh-body {
  padding: 1.8rem;
}

.mh-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mh-tag-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mh-tag {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.font-blue { color: var(--text-main); }
.font-purple { color: var(--text-main); }
.font-gray { color: var(--text-main); }

/* Panel 6: Joint Modeling Pipeline */
.pipeline-wrapper {
  overflow-x: auto;
  padding: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}
.pipeline-wrapper::-webkit-scrollbar {
  height: 5px;
}
.pipeline-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 3px;
}

.pipeline-row {
  display: flex;
  align-items: flex-start;
  min-width: 950px;
  gap: 0.8rem;
}

.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.step-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.35;
}

.step-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.step-card-section {
  padding: 1.2rem;
  flex: 1;
}

.border-b {
  border-bottom: 1px solid var(--border-glass);
}

.color-blue { color: var(--color-blue); }
.color-purple { color: var(--color-purple); }
.color-cyan { color: var(--color-cyan); }

.step-card h5 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-bullets li {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.p-centered {
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.p-stacked {
  padding: 1.2rem;
  gap: 0.8rem;
  justify-content: center;
}

.sub-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  line-height: 1.4;
}

.border-purple {
  border-color: rgba(139, 92, 246, 0.2);
}

.pipeline-or {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0.3rem 0;
}

.features-list {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  margin: 1.2rem 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-cyan);
}

.feature-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.small-tag-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.small-tag-card strong {
  font-size: 0.8rem;
  color: var(--text-main);
}

.small-tag-card span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pipeline-arrow {
  display: flex;
  align-self: center;
  padding-top: 1.8rem; /* Align with center of the cards */
  color: var(--text-dark);
}

.pipeline-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   8. Application Scenarios Section
   ========================================================================== */
.scenarios-section {
  background: var(--bg-secondary);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.scenario-card {
  height: 280px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eef5fb;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: flex-end;
  transition: var(--transition-smooth);
}

.scenario-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 24, 0) 0%,
    rgba(9, 14, 24, 0.15) 44%,
    rgba(9, 14, 24, 0.72) 100%
  );
  transition: var(--transition-smooth);
  z-index: 1;
}

.scenario-card-content {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.8rem;
  width: 100%;
  transform: translateY(0);
  transition: var(--transition-smooth);
  min-width: 0;
}

.scenario-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.scenario-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Hover effect */
.scenario-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.14);
}

.scenario-card:hover .scenario-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0) 0%,
    rgba(11, 15, 25, 0.42) 48%,
    rgba(11, 15, 25, 0.88) 100%
  );
  backdrop-filter: blur(2px);
}

.scenario-card:hover .scenario-card-content {
  transform: translateY(0);
}

.scenario-card:hover p {
  opacity: 1;
  max-height: 4.5em;
  margin-top: 0.6rem;
}

/* ==========================================================================
   9. Contact Us Section & Forms
   ========================================================================== */
.contact-section {
  padding: 0;
  background: var(--bg-secondary);
}

.contact-top {
  padding: 6rem 0 4rem 0;
  background: var(--bg-secondary);
}

.contact-top .section-title {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.contact-sub-text {
  color: #2f2f2f;
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
}

.contact-bottom {
  background: #0c151a;
  width: 100%;
  padding: 4rem 0 3rem 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-bottom-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-logo-icon {
  width: 54px;
  height: 54px;
  fill: #ffffff;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: min(100%, 22rem);
}

.info-block-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

.info-item {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.info-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.info-value {
  color: #ffffff;
  font-weight: 500;
  transition: var(--transition-fast);
}

a.info-value {
  text-decoration: none;
}

a.info-value:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.contact-meta-footer {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.meta-item {
  letter-spacing: 0.02em;
}

/* ==========================================================================
   11. Animations
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 4px var(--color-blue)); }
}

@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   12. UX Touch & Interaction Improvements
   ========================================================================== */

/* Cursor pointer on interactive elements */
.scenario-card,
.wheel-sector,
.matrix-card,
.region-card,
.cap-metric-card,
.stat-card,
.multihead-card,
.prod-tab-btn,
.lang-select,
.burger-btn,
.nav-link {
  cursor: pointer;
}

/* Ensure minimum touch target size */
.prod-tab-btn,
.lang-select {
  min-height: 44px;
  min-width: 44px;
}

/* Stagger animation for card grids */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid .stat-card,
.matrix-grid .matrix-card,
.scenarios-grid .scenario-card,
.multihead-grid .multihead-card,
.regions-grid .region-card,
.cap-metric-grid .cap-metric-card {
  animation: cardEntrance 0.5s ease-out both;
}

.stats-grid .stat-card:nth-child(1), .matrix-grid .matrix-card:nth-child(1), .scenarios-grid .scenario-card:nth-child(1), .multihead-grid .multihead-card:nth-child(1) { animation-delay: 0ms; }
.stats-grid .stat-card:nth-child(2), .matrix-grid .matrix-card:nth-child(2), .scenarios-grid .scenario-card:nth-child(2), .multihead-grid .multihead-card:nth-child(2) { animation-delay: 60ms; }
.stats-grid .stat-card:nth-child(3), .matrix-grid .matrix-card:nth-child(3), .scenarios-grid .scenario-card:nth-child(3), .multihead-grid .multihead-card:nth-child(3) { animation-delay: 120ms; }
.stats-grid .stat-card:nth-child(4), .matrix-grid .matrix-card:nth-child(4), .scenarios-grid .scenario-card:nth-child(4) { animation-delay: 180ms; }
.matrix-grid .matrix-card:nth-child(5), .scenarios-grid .scenario-card:nth-child(5) { animation-delay: 240ms; }
.matrix-grid .matrix-card:nth-child(6), .scenarios-grid .scenario-card:nth-child(6) { animation-delay: 300ms; }
.matrix-grid .matrix-card:nth-child(7) { animation-delay: 360ms; }
.matrix-grid .matrix-card:nth-child(8) { animation-delay: 420ms; }

/* Wheel instruction - stop after 3 cycles */
.wheel-instruction {
  animation: float-slow 3s ease-in-out 3;
}

/* Subtle press feedback on cards */
.scenario-card:active,
.matrix-card:active,
.stat-card:active,
.multihead-card:active,
.region-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ==========================================================================
   13. Responsive Media Queries
   ========================================================================== */

/* 12.1 Laptop and Medium Screens */
@media (max-width: 1100px) {
  .header-container { column-gap: 1rem; }
  #navbar-menu { transform: none; }
  .header-actions { margin-left: 32px; }
  .stats-grid { gap: 1.4rem; }
  .nav-link { font-size: 0.86rem; padding: 0 0.62rem; }
  html[lang="en"] .nav-link { font-size: 0.74rem; padding: 0 0.4rem; }
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 12.2 Compact header / mobile navigation */
@media (max-width: 960px) {
  :root {
    --container-padding: 1.25rem;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  #navbar-menu {
    transform: none;
  }

  .burger-btn {
    display: flex;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: calc(var(--z-header) - 1);
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .header-actions {
    margin-left: 0;
    transform: none;
    gap: 0.65rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 320px);
    height: 100dvh;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5.25rem 1.25rem 2rem;
    gap: 0.65rem;
    border-left: 1px solid var(--border-glass);
    box-shadow: -24px 0 40px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: var(--z-header);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link,
  html[lang="en"] .nav-link {
    width: 100%;
    height: 44px;
    min-height: 44px;
    line-height: 1.2;
    justify-content: flex-start;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .header-actions .lang-select {
    display: none;
  }

  .mobile-lang-item {
    display: block;
    margin-top: 2rem;
    padding: 1.5rem 1rem 0;
    border-top: 1px dashed var(--border-glass);
  }

  .mobile-lang-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    text-align: center;
  }
}

/* 12.3 Tablet Mode */
@media (max-width: 768px) {
  html { font-size: 15px; }
  
  section { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-paragraphs {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
    line-height: 1.72;
    text-align: left;
  }
  .lead-text {
    border-left: none;
    border-bottom: none;
    padding-left: 0;
    padding-bottom: 0;
    font-size: 1rem;
  }
  
  /* Global footprint split to columns */
  .global-container { grid-template-columns: 1fr; gap: 3rem; }
  
  /* Data capabilities responsive - WHEEL CONVERTED TO GRID TABS FOR MOBILE! */
  .capabilities-container { grid-template-columns: 1fr; gap: 3.5rem; }
  
  .wheel-interactive-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .wheel-container-circle {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    background-image: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .wheel-sector {
    position: static !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
    transform: none !important;
  }

  .sector-title {
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-fast);
  }

  .wheel-sector.active .sector-title {
    color: #fff;
  }
  
  .wheel-center-display {
    width: 100%;
    height: auto;
    border-radius: 16px;
    padding: 1.5rem;
  }
  
  .cap-detail-list {
    gap: 0.6rem;
  }
  
  /* Credit Score Detail responsive */
  .detail-split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  
  /* Flowchart connections wrap vertically */
  .flow-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .flow-stage { width: 100%; }
  .flow-arrow-connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
  
  /* Multihead grid vertical */
  .multihead-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Scenarios: show descriptions on touch devices */
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-card-content {
    transform: translateY(0);
  }
  .scenario-card p {
    opacity: 1;
    max-height: 4.5em;
    margin-top: 0.4rem;
  }
  .scenario-card:hover {
    transform: none;
  }

  /* Pipeline: vertical layout on tablet */
  .pipeline-wrapper {
    overflow-x: visible;
  }
  .pipeline-row {
    flex-direction: column;
    min-width: 0;
    gap: 1.5rem;
    align-items: stretch;
  }
  .pipeline-step {
    width: 100%;
  }
  .pipeline-arrow {
    align-self: center;
    padding-top: 0;
    transform: rotate(90deg);
  }
  .step-card {
    min-height: auto;
  }
  .pipeline-wrapper::after {
    display: none;
  }
  
  /* Contact section responsive */
  .contact-bottom {
    overflow: hidden;
    width: 100%;
  }
  .contact-bottom-grid {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    padding: 0 1rem 3.5rem 1rem;
  }
  .contact-brand {
    gap: 0.8rem;
  }
  .contact-logo-icon {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 1.8rem;
  }
  .contact-info-block {
    align-items: center;
  }
  .info-block-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .info-item {
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }
}

/* 12.3 Small Mobile Screens */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  html {
    font-size: 15px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .lang-select {
    padding: 0.38rem 1.55rem 0.38rem 0.7rem;
    font-size: 0.78rem;
  }

  .nav-links {
    width: min(86vw, 300px);
    padding: 5rem 1rem 2rem;
  }

  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .hero-container {
    gap: 1.75rem;
  }

  .hero-paragraphs {
    gap: 0.9rem;
    font-size: 0.94rem;
    line-height: 1.68;
    margin-bottom: 1.75rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .stat-card {
    min-height: auto;
    padding: 1.2rem 0.75rem 1.3rem;
  }
  .stat-num,
  .stat-num-text {
    font-size: 1.45rem;
  }
  .stat-desc {
    font-size: 0.88rem;
  }

  .regions-grid { grid-template-columns: 1fr; }
  .region-card { padding: 1.4rem; }

  .matrix-grid { grid-template-columns: 1fr; }
  .matrix-card,
  .matrix-card-face {
    min-height: auto;
  }
  .matrix-card-face {
    padding: 1.4rem;
  }

  .scenarios-grid { grid-template-columns: 1fr; }
  .scenario-card {
    height: 240px;
  }
  .scenario-card-content {
    transform: translateY(0);
    padding: 1.6rem;
  }
  .scenario-card p {
    opacity: 1;
  }

  .cap-metric-grid { grid-template-columns: 1fr; }
  .cap-metric-card { padding: 1.4rem; }
  .wheel-sector { padding: 0.9rem 1rem; }
  .wheel-center-display { padding: 1.2rem; }

  .glass-form { padding: 2rem 1.5rem; }

  .contact-top {
    padding: 4rem 0 2.5rem;
  }
  .contact-sub-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .contact-bottom {
    padding: 3rem 0 2.25rem;
  }
  .contact-bottom-grid {
    padding: 0 1rem 2.5rem;
  }
  .brand-name {
    font-size: 1.45rem;
  }
  .info-item,
  .meta-item {
    font-size: 0.82rem;
  }
}
