/* ==========================================================================
   MTR DIGITAL MARKETING — OFFICIAL BRAND DESIGN SYSTEM
   Exact NITSAN.AI Architecture & Physics Calibrated to MTR Brand Colors
   Brand Palette: Royal Electric Blue (#025bdd), Sky Cyan (#00a2ff), Deep Navy (#01269b)
   Reference: https://nitsan.ai/ & assets/logo.jpg
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & BRAND VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Typography: Plus Jakarta Sans (Executive Sculptural Headings) & Inter (Precision UI/Body) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --_size: 1.8rem;
  --_font-default: var(--font-sans);
  --_font-accent: var(--font-display);

  /* Corner Radii (Exact NITSAN Scale) */
  --_radius-s: 1rem;       /* 10px */
  --_radius-m: 2.6rem;     /* 26px */
  --_radius-l: 5rem;       /* 50px */
  --_radius-xl: 8rem;      /* 80px */

  /* Animation Speeds */
  --_animspeed-fast: 0.15s;
  --_animspeed-medium: 0.35s;
  --_animspeed-slow: 0.6s;
  --_animbezier: cubic-bezier(0.23, 0.65, 0.74, 1.09);

  /* Light Theme Canvas Palette (Gallery Paper-White & Clean Surfaces) */
  --base: #f8fafc;
  --base-rgb: 248, 250, 252;
  --base-tint: #ffffff;
  --base-tint-card: #ffffff;
  --base-shade: #f1f5f9;
  --base-opp: #090e1c;

  /* Official MTR Brand Color Tokens (From Logo) */
  --accent: #025bdd;          /* Royal Electric Blue (Primary Logo Core) */
  --accent-rgb: 2, 91, 221;
  --accent-hover: #0148b3;
  --accent-glow: rgba(2, 91, 221, 0.25);
  
  --additional: #0084d6;      /* High-contrast Sky Cyan (Accessible on Light) */
  --additional-rgb: 0, 132, 214;
  --additional-navy: #01269b; /* Deep Navy Shadow */

  /* Text Colors (High-Contrast Obsidian & Slate on Light) */
  --t-bright: #090e1c;
  --t-medium: #334155;
  --t-muted: #64748b;
  --t-muted-extra: #94a3b8;
  --t-opp-bright: #ffffff;

  /* Borders & Hairlines */
  --st-bright: #090e1c;
  --st-medium: #cbd5e1;
  --st-muted: rgba(2, 91, 221, 0.12);
  --st-opp-bright: #ffffff;

  /* Elevation & Shadows */
  --shadow-card: 0 16px 40px -8px rgba(2, 91, 221, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(2, 91, 221, 0.09);
  --shadow-accent: 0 10px 28px rgba(2, 91, 221, 0.3);

  /* Component Surfacing Variables */
  --hero-art-bg: rgba(255, 255, 255, 0.95);
  --hero-art-border: rgba(2, 91, 221, 0.16);
  --hero-art-shadow: 0 20px 50px rgba(2, 91, 221, 0.1), 0 0 0 1px rgba(2, 91, 221, 0.08);
  --card-case-bg: linear-gradient(135deg, #eef5ff, #f8fafc);
  --yield-panel-bg: #f1f5f9;
  --cta-box-bg: linear-gradient(135deg, #f0f7ff 0%, #e1eefd 100%);
  --modal-bg: #ffffff;
  --modal-backdrop: rgba(15, 23, 42, 0.65);
  --input-bg: #f8fafc;
  --ambient-radial: radial-gradient(circle at 85% 15%, rgba(2, 91, 221, 0.05) 0%, transparent 55%), radial-gradient(circle at 15% 45%, rgba(0, 132, 214, 0.04) 0%, transparent 45%);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --base: #080d1a;
  --base-rgb: 8, 13, 26;
  --base-tint: #0e1628;
  --base-tint-card: #121c32;
  --base-shade: #050811;
  --base-opp: #faf7f6;

  --accent: #025bdd;
  --accent-rgb: 2, 91, 221;
  --accent-hover: #004ecc;
  --accent-glow: rgba(2, 91, 221, 0.4);
  
  --additional: #00a2ff;
  --additional-rgb: 0, 162, 255;
  --additional-navy: #01269b;

  --t-bright: #ffffff;
  --t-medium: #cbd5e1;
  --t-muted: #71829e;
  --t-muted-extra: #3b4864;
  --t-opp-bright: #ffffff;

  --st-bright: #ffffff;
  --st-medium: #475569;
  --st-muted: rgba(2, 91, 221, 0.18);
  --st-opp-bright: #0f0f0f;

  --shadow-card: 0 16px 48px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(2, 91, 221, 0.16);
  --shadow-accent: 0 12px 36px rgba(2, 91, 221, 0.45);

  --hero-art-bg: linear-gradient(135deg, rgba(16, 26, 48, 0.92), rgba(10, 16, 30, 0.96));
  --hero-art-border: rgba(2, 91, 221, 0.35);
  --hero-art-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(2, 91, 221, 0.2);
  --card-case-bg: linear-gradient(135deg, #131c33, #0a1120);
  --yield-panel-bg: #09101f;
  --cta-box-bg: linear-gradient(135deg, #101930 0%, #080d1a 100%);
  --modal-bg: #0d1527;
  --modal-backdrop: rgba(4, 7, 15, 0.85);
  --input-bg: rgba(7, 11, 22, 0.85);
  --ambient-radial: radial-gradient(circle at 85% 15%, rgba(2, 91, 221, 0.16) 0%, transparent 55%), radial-gradient(circle at 15% 45%, rgba(0, 162, 255, 0.1) 0%, transparent 50%);
}

/* --------------------------------------------------------------------------
   2. RESET, BASE & SELECTION
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--base);
  color: var(--t-medium);
  font-family: var(--_font-default);
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  width: 100%;
  min-width: 360px;
  font-size: var(--_size);
  line-height: 1.6;
  background-color: var(--base);
  background-image: var(--ambient-radial);
  background-attachment: fixed;
  color: var(--t-medium);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--base-shade);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--additional));
  border-radius: var(--_radius-s);
}

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--additional) 50%, #38bdf8 100%);
  z-index: 1100;
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.85);
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY (PLUS JAKARTA SANS DESIGN SYSTEM)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--_font-accent);
  color: var(--t-bright);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(4.4rem, 7.2vw, 9.8rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(3.2rem, 5.2vw, 6.8rem); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: clamp(2.4rem, 3.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; }
h4 { font-size: clamp(2.0rem, 2.8vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h5 { font-size: 2.2rem; font-weight: 600; }
h6 { font-size: 1.9rem; font-weight: 600; }

p {
  font-family: var(--_font-default);
  font-size: 1.8rem;
  line-height: 1.65;
  color: var(--t-medium);
  letter-spacing: -0.01em;
}
p.t-large {
  font-size: 2.3rem;
  color: var(--t-bright);
  line-height: 1.45;
  letter-spacing: -0.015em;
}
p.t-muted {
  color: var(--t-muted);
}
p.t-bright {
  color: var(--t-bright);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--_animspeed-medium) var(--_animbezier);
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS (NITSAN MXD SYSTEM)
   -------------------------------------------------------------------------- */
.mxd-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
}
@media (min-width: 768px) {
  .mxd-container { padding: 0 6rem; }
}
@media (min-width: 1400px) {
  .mxd-container { padding: 0 9rem; }
}

.mxd-section {
  width: 100%;
  position: relative;
  padding-bottom: 14rem;
}
@media (min-width: 768px) {
  .mxd-section { padding-bottom: 18rem; }
}

/* Section Header Motif */
.mxd-section-head {
  margin-bottom: 6rem;
}
.mxd-subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--_font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--additional);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
}
.mxd-subtitle-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & ROTATING BADGE (NITSAN STYLE IN BRAND BLUE)
   -------------------------------------------------------------------------- */
.btn-anim {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 3.2rem;
  border-radius: var(--_radius-xl);
  font-family: var(--_font-accent);
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--_animspeed-medium) var(--_animbezier), box-shadow var(--_animspeed-medium) var(--_animbezier);
  position: relative;
  overflow: hidden;
}

/* Brand Royal Electric Blue Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--additional) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 91, 221, 0.35);
}
.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-accent);
  filter: brightness(1.1);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--t-bright);
  border: 1px solid var(--st-muted);
}
.btn-ghost:hover {
  border-color: var(--additional);
  color: var(--additional);
  transform: translateY(-3px);
}

/* Arrow Icon Movement */
.slide-right-up .btn-icon {
  display: inline-block;
  font-size: 1.8rem;
  transition: transform var(--_animspeed-medium) var(--_animbezier);
}
.slide-right-up:hover .btn-icon {
  transform: translate(3px, -3px);
}

/* Rotating Circle Badge Button */
.btn-rotating-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-rotating-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateCircle 14s linear infinite;
}
.btn-rotating-svg text {
  fill: var(--t-bright);
  font-family: var(--_font-accent);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}
.btn-rotating-center {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--additional));
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(2, 91, 221, 0.4);
  transition: transform var(--_animspeed-medium) var(--_animbezier);
}
.btn-rotating-center::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #025bdd, #00f0ff, #10b981, #f59e0b, #ec4899, #8b5cf6, #025bdd);
  z-index: -1;
  animation: rotateConic 8s linear infinite;
  filter: blur(1.5px);
}
@keyframes rotateConic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.btn-rotating-wrap:hover .btn-rotating-center {
  transform: scale(1.15) rotate(45deg);
}

@keyframes rotateCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION (DYNAMIC ISLAND DOCK & MOBILE DRAWER)
   -------------------------------------------------------------------------- */
.mxd-header {
  position: fixed;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, calc(100% - 2.8rem));
  z-index: 1000;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(2, 91, 221, 0.12);
  box-shadow: 0 10px 32px -6px rgba(2, 91, 221, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .mxd-header {
  background: rgba(8, 13, 26, 0.85);
  border-color: rgba(2, 91, 221, 0.30);
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 162, 255, 0.15);
}

.mxd-header.scrolled {
  top: 1.0rem;
  padding: 0.65rem 1.6rem;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 91, 221, 0.22);
  box-shadow: 0 16px 42px -8px rgba(2, 91, 221, 0.16), 0 3px 10px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .mxd-header.scrolled {
  background: rgba(6, 10, 22, 0.94);
  border-color: rgba(0, 162, 255, 0.35);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 162, 255, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  width: 100%;
}

/* Brand Logo (Transparent, Vibrant & Balanced) */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--_animspeed-fast);
}
.header-brand:hover {
  opacity: 0.92;
}

.brand-logo-frame {
  height: 38px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 4px rgba(2, 91, 221, 0.25));
  transition: transform var(--_animspeed-fast), filter var(--_animspeed-fast);
}
[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 0 14px rgba(0, 162, 255, 0.65));
}
.header-brand:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(2, 91, 221, 0.35), transparent);
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title {
  font-family: var(--_font-accent);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--t-bright);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.brand-title-bold {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-title-light {
  font-weight: 600;
  color: var(--t-bright);
}
.brand-title .badge {
  font-size: 0.95rem;
  font-family: var(--_font-default);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 162, 255, 0.12);
  color: var(--additional);
  border: 1px solid rgba(0, 162, 255, 0.32);
  letter-spacing: 0.03em;
}
.brand-subtitle {
  font-family: var(--_font-default);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Center Nav Links Pill Dock */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: rgba(2, 91, 221, 0.04);
  border: 1px solid rgba(2, 91, 221, 0.08);
  border-radius: 9999px;
  transition: all var(--_animspeed-fast);
}
[data-theme="dark"] .header-nav {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-family: var(--_font-accent);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--t-medium);
  text-decoration: none;
  position: relative;
  transition: all var(--_animspeed-fast);
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(2, 91, 221, 0.07);
}
[data-theme="dark"] .nav-link:hover {
  color: #00f0ff;
  background: rgba(0, 162, 255, 0.12);
}
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--additional));
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(2, 91, 221, 0.35);
}
.nav-link.active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--additional));
}

/* Right Header CTA Group */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* Header Icon Buttons (Sound & Theme) */
.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 91, 221, 0.05);
  border: 1px solid rgba(2, 91, 221, 0.12);
  color: var(--t-bright);
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--_animspeed-fast);
}
[data-theme="dark"] .header-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.header-icon-btn:hover {
  background: rgba(2, 91, 221, 0.12);
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 3px 12px var(--accent-glow);
}

/* Primary Header CTA Button */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 38px;
  padding: 0 1.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent), var(--additional));
  color: #ffffff;
  font-family: var(--_font-accent);
  font-size: 1.35rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 91, 221, 0.28);
  transition: all var(--_animspeed-fast);
  white-space: nowrap;
}
.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 91, 221, 0.45);
}
.header-cta-btn .btn-icon {
  font-size: 1.2rem;
  transition: transform var(--_animspeed-fast);
}
.header-cta-btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

/* Sleek Animated Hamburger Trigger */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 91, 221, 0.06);
  border: 1px solid rgba(2, 91, 221, 0.15);
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all var(--_animspeed-fast);
}
[data-theme="dark"] .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.mobile-menu-btn:hover {
  background: rgba(2, 91, 221, 0.12);
  border-color: var(--accent);
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background: var(--t-bright);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6B. MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 86vw);
  background: var(--base);
  border-left: 1px solid var(--st-muted);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  padding: 2.8rem 2.4rem;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .mobile-nav-drawer {
  background: #080d1a;
  border-left-color: rgba(2, 91, 221, 0.25);
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.7);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--st-muted);
}
.mobile-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.mobile-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.mobile-brand-title {
  font-family: var(--_font-accent);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--t-bright);
}
.mobile-brand-title strong {
  color: var(--accent);
}
.mobile-brand-sub {
  font-family: var(--_font-default);
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.04em;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  color: var(--t-bright);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--_animspeed-fast);
}
.mobile-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2.4rem;
  flex: 1;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-radius: var(--_radius-m);
  color: var(--t-bright);
  font-family: var(--_font-accent);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--base-tint);
  border: 1px solid transparent;
  transition: all var(--_animspeed-fast);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  border-color: var(--accent);
  background: rgba(2, 91, 221, 0.08);
  color: var(--accent);
  transform: translateX(4px);
}
.mobile-nav-num {
  font-family: var(--_font-default);
  font-size: 1.2rem;
  color: var(--additional);
  font-weight: 800;
}
.mobile-nav-text {
  flex: 1;
  margin-left: 1.4rem;
}
.mobile-nav-arrow {
  color: var(--t-muted);
  transition: transform var(--_animspeed-fast);
}
.mobile-nav-link:hover .mobile-nav-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 2.0rem;
  border-top: 1px solid var(--st-muted);
}
.mobile-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.0rem;
}
.mobile-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.0rem 1.4rem;
  border-radius: var(--_radius-m);
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  color: var(--t-bright);
  font-family: var(--_font-accent);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--_animspeed-fast);
}
.mobile-tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mobile-cta-full {
  width: 100%;
  justify-content: center;
  padding: 1.3rem 2.0rem;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   7. HERO BANNER (NITSAN HERO PATTERN IN BRAND BLUE)
   -------------------------------------------------------------------------- */
.mxd-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 18rem;
  padding-bottom: 12rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(2, 91, 221, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(0, 162, 255, 0.08) 0%, transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Headline: Human [ First ] Sovereign Scale Always */
.hero-headline {
  font-size: clamp(4.4rem, 6.8vw, 9.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05rem;
  color: var(--t-bright);
  margin-bottom: 3.2rem;
}

.hero-rotating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 2.4rem;
  border-radius: var(--_radius-xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--additional) 100%);
  color: #ffffff;
  font-family: var(--_font-accent);
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 0 25px rgba(2, 91, 221, 0.5);
  transition: transform var(--_animspeed-fast);
}
.hero-rotating-pill:hover {
  transform: rotate(-3deg) scale(1.04);
}

.hero-subline {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--t-medium);
  max-width: 640px;
  margin-bottom: 4rem;
}
.hero-subline strong {
  color: var(--t-bright);
  font-weight: 600;
}

.hero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Hero Right: 3D Floating Art Showcase */
.hero-floating-art {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-art-card {
  position: absolute;
  border-radius: var(--_radius-m);
  background: var(--hero-art-bg);
  border: 1px solid var(--hero-art-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.8rem;
  box-shadow: var(--hero-art-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Art Piece 1: Central Monolith / Core Hologram */
.art-core {
  width: 320px;
  height: 380px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--hero-art-bg);
  border: 1px solid var(--hero-art-border);
  box-shadow: var(--hero-art-shadow);
}
.art-core .art-badge {
  font-size: 1.25rem;
  font-family: var(--_font-default);
  font-weight: 700;
  color: var(--additional);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.art-core .art-stat {
  font-family: var(--_font-accent);
  font-size: 5rem;
  font-weight: 800;
  color: var(--t-bright);
  line-height: 1;
}
.art-core .art-stat-label {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--t-muted);
  margin-top: 6px;
}
.art-core .art-visual-3d {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: var(--_radius-s);
  background: radial-gradient(circle at center, rgba(2, 91, 221, 0.18), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-orb-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Art Piece 2: Floating 3D Star & AI Pill */
.art-star-pill {
  top: 20px;
  right: 10px;
  z-index: 3;
  padding: 1.8rem 2.6rem;
  border-radius: var(--_radius-xl);
  background: var(--hero-art-bg);
  border: 1px solid var(--hero-art-border);
  box-shadow: var(--hero-art-shadow);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.art-star-icon {
  font-size: 2.8rem;
  color: var(--additional);
  filter: drop-shadow(0 0 14px var(--additional));
  animation: pulseStar 3s infinite ease-in-out;
}
@keyframes pulseStar {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(15deg); }
}
.art-star-text {
  font-family: var(--_font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--t-bright);
}

/* Art Piece 3: Floating Telemetry Chip */
.art-metric-chip {
  bottom: 20px;
  left: 10px;
  z-index: 3;
  padding: 2rem 2.4rem;
  border-radius: var(--_radius-m);
  background: var(--hero-art-bg);
  border: 1px solid var(--hero-art-border);
  box-shadow: var(--hero-art-shadow);
}
.chip-header {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--t-muted);
  margin-bottom: 6px;
}
.chip-val {
  font-family: var(--_font-accent);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--additional);
}

/* --------------------------------------------------------------------------
   8. SERVICES STACK (NITSAN STICKY STACKING CARDS)
   -------------------------------------------------------------------------- */
.mxd-services-stack {
  position: relative;
  padding-bottom: 14rem;
}

.stack-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.stack-card {
  position: sticky;
  top: 120px;
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-l);
  padding: 6rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
  transition: transform var(--_animspeed-medium) var(--_animbezier);
  will-change: transform;
}

.stack-card:nth-child(1) { top: 100px; z-index: 1; }
.stack-card:nth-child(2) { top: 125px; z-index: 2; }
.stack-card:nth-child(3) { top: 150px; z-index: 3; }
.stack-card:nth-child(4) { top: 175px; z-index: 4; }

[data-theme="dark"] .stack-card:nth-child(2) { background: #0f182c; }
[data-theme="dark"] .stack-card:nth-child(3) { background: #121c33; }
[data-theme="dark"] .stack-card:nth-child(4) { background: #15223c; }

.stack-card-left {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.stack-card-cat {
  font-family: var(--_font-default);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--additional);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stack-card-title {
  font-size: clamp(3.2rem, 4vw, 5.2rem);
  line-height: 1.15;
  color: var(--t-bright);
}
.stack-card-desc {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--t-medium);
}

/* Tags Pill Cluster */
.stack-card-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.tag-pill {
  padding: 0.6rem 1.6rem;
  border-radius: var(--_radius-xl);
  font-family: var(--_font-accent);
  font-size: 1.3rem;
  font-weight: 500;
  background: rgba(2, 91, 221, 0.08);
  border: 1px solid rgba(2, 91, 221, 0.2);
  color: var(--t-bright);
  transition: all var(--_animspeed-fast);
}
.tag-pill:hover {
  border-color: var(--additional);
  color: var(--additional);
  background: rgba(0, 162, 255, 0.15);
}

/* Stack Card Right: 3D Artwork Frame */
.stack-card-right {
  height: 380px;
  border-radius: var(--_radius-m);
  background: var(--card-case-bg);
  border: 1px solid var(--st-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .stack-card-right {
  background: radial-gradient(circle at center, rgba(2, 91, 221, 0.18), rgba(6, 10, 20, 0.95));
}
.stack-artwork-svg {
  width: 100%;
  height: 100%;
  padding: 3rem;
}

/* --------------------------------------------------------------------------
   LIVING TELEMETRY HUDs (STACKING CARDS)
   -------------------------------------------------------------------------- */
.telemetry-card-box {
  height: 380px;
  border-radius: var(--_radius-m);
  background: var(--card-case-bg);
  border: 1px solid var(--st-muted);
  padding: 3.2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(2, 91, 221, 0.04);
}
[data-theme="dark"] .telemetry-card-box {
  background: radial-gradient(circle at center, rgba(2, 91, 221, 0.14), rgba(6, 10, 20, 0.98));
  box-shadow: inset 0 0 40px rgba(2, 91, 221, 0.12);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.telemetry-title {
  font-family: var(--_font-default);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.telemetry-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--_font-default);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: var(--_radius-xl);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.6rem;
  border-top: 1px solid var(--st-muted);
}
.t-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-lbl {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.t-val {
  font-family: var(--_font-accent);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--t-bright);
  font-variant-numeric: tabular-nums;
}
.t-val.accent {
  color: var(--accent);
}

/* Card 1: Waveform */
.telemetry-waveform-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.waveform-svg {
  width: 100%;
  height: 100%;
}
.wave-grid-line {
  stroke: var(--st-muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.wave-glow-path {
  fill: none;
  stroke: var(--additional);
  stroke-width: 6;
  opacity: 0.3;
  filter: blur(4px);
}
.wave-main-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: waveDraw 3s infinite linear;
}
@keyframes waveDraw {
  0% { stroke-dashoffset: 400; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -400; }
}

/* Card 2: Radar */
.radar-visual-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--st-muted);
}
.radar-ring.r1 { width: 60px; height: 60px; }
.radar-ring.r2 { width: 120px; height: 120px; }
.radar-ring.r3 { width: 180px; height: 180px; border-color: rgba(2, 91, 221, 0.3); }

.radar-scan-beam {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 0;
  left: 90px;
  transform-origin: 0% 100%;
  background: conic-gradient(from 0deg, rgba(2, 91, 221, 0.45) 0deg, transparent 60deg);
  animation: radarRotate 4s linear infinite;
  border-radius: 0 100% 0 0;
  pointer-events: none;
}
@keyframes radarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-bright);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.radar-node .node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.node-chatgpt { top: 12px; left: 100px; }
.node-chatgpt .node-dot { background: #10a37f; box-shadow: 0 0 12px rgba(16, 163, 127, 0.85); }

.node-perplexity { top: 90px; right: -15px; }
.node-perplexity .node-dot { background: #00f0ff; box-shadow: 0 0 12px rgba(0, 240, 255, 0.85); }

.node-google { bottom: 20px; left: 20px; }
.node-google .node-dot { background: #ea4335; box-shadow: 0 0 12px rgba(66, 133, 244, 0.85); }

.node-claude { top: 45px; left: -10px; }
.node-claude .node-dot { background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.85); }

/* Card 3: Heatmap Funnel */
.funnel-heatmap-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}
.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-step {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.02em;
}
.h-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--_radius-xl);
  background: var(--base-shade);
  overflow: hidden;
}
.h-fill {
  height: 100%;
  border-radius: var(--_radius-xl);
  background: linear-gradient(90deg, var(--additional), var(--accent));
  transition: width 0.6s ease;
}
.h-fill.highlight {
  background: linear-gradient(90deg, #10b981, #0084d6);
}
.h-metric {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-medium);
  text-align: right;
  letter-spacing: 0.01em;
}
.h-metric.accent {
  color: var(--accent);
  font-weight: 700;
}

/* Card 4: Region Orchestrator */
.region-selector-pills {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
}
.region-pill {
  padding: 0.6rem 1.4rem;
  border-radius: var(--_radius-xl);
  font-family: var(--_font-accent);
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  color: var(--t-medium);
  cursor: pointer;
  transition: all var(--_animspeed-fast);
}
.region-pill:hover,
.region-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.region-telemetry-display {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}
.region-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.01em;
}
.region-calc-box {
  background: var(--base-shade);
  border-radius: var(--_radius-s);
  padding: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--st-muted);
}
.r-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r-k {
  font-family: var(--_font-default);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--t-muted);
}
.r-v {
  font-family: var(--_font-accent);
  font-size: 2rem;
  font-weight: 700;
  color: var(--t-bright);
  font-variant-numeric: tabular-nums;
}
.r-v.accent {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. VELOCITY MARQUEE SLIDER (NITSAN STYLE IN BRAND BLUE)
   -------------------------------------------------------------------------- */
.mxd-marquee-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 6rem 0;
  border-top: 1px solid var(--st-muted);
  border-bottom: 1px solid var(--st-muted);
  background: var(--base-shade);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
}
.marquee-text {
  font-family: var(--_font-accent);
  font-size: clamp(3.6rem, 5.5vw, 6.4rem);
  font-weight: 700;
  color: var(--t-bright);
  text-transform: uppercase;
  letter-spacing: -0.02rem;
}
.marquee-text.outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--t-muted-extra);
}
.marquee-star {
  font-size: 3.2rem;
  color: var(--additional);
  filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.6));
}

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

/* --------------------------------------------------------------------------
   10. SERVICES GRID (NITSAN 2-COLUMN CARDS)
   -------------------------------------------------------------------------- */
.mxd-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.6rem;
}

.service-card {
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-m);
  padding: 4.8rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.2rem;
  transition: transform var(--_animspeed-medium) var(--_animbezier), border-color var(--_animspeed-medium), box-shadow var(--_animspeed-medium);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 162, 255, 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card > * {
  position: relative;
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--additional);
  box-shadow: 0 20px 50px rgba(2, 91, 221, 0.2);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(2, 91, 221, 0.16), transparent 70%);
  pointer-events: none;
}

.service-top-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-num {
  font-family: var(--_font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--additional);
}
.service-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(2, 91, 221, 0.15);
  border: 1px solid rgba(2, 91, 221, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--additional);
}

.service-title {
  font-size: 2.8rem;
  color: var(--t-bright);
  line-height: 1.2;
}
.service-desc {
  font-size: 1.7rem;
  color: var(--t-medium);
  line-height: 1.6;
}

/* Multi-Colour Spectral Badges for Services Cards */
.service-spectrum-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--_radius-xl);
  font-family: var(--_font-default);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--_animspeed-fast);
}
.spectrum-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tag-cyan-blue {
  background: rgba(0, 162, 255, 0.1);
  border: 1px solid rgba(0, 162, 255, 0.3);
  color: #0084d6;
}
.tag-cyan-blue .spectrum-dot {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}
.tag-violet-magenta {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}
.tag-violet-magenta .spectrum-dot {
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}
.tag-emerald-teal {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}
.tag-emerald-teal .spectrum-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.tag-sunset-amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
}
.tag-sunset-amber .spectrum-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.service-card:nth-child(1):hover { border-color: rgba(0, 162, 255, 0.5); }
.service-card:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.5); }
.service-card:nth-child(3):hover { border-color: rgba(16, 185, 129, 0.5); }
.service-card:nth-child(4):hover { border-color: rgba(245, 158, 11, 0.5); }

/* --------------------------------------------------------------------------
   11. CASE STUDIES MASONRY GRID (NITSAN PATTERN)
   -------------------------------------------------------------------------- */
.mxd-case-studies {
  position: relative;
}

.case-headline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.case-headline-title {
  font-size: clamp(4rem, 6.5vw, 9rem);
  line-height: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}
.case-card {
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--_animspeed-medium) var(--_animbezier), border-color var(--_animspeed-medium), box-shadow var(--_animspeed-medium);
  position: relative;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 162, 255, 0.15), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.case-card:hover::before {
  opacity: 1;
}
.case-card > * {
  position: relative;
  z-index: 2;
}
.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--additional);
  box-shadow: 0 20px 50px rgba(2, 91, 221, 0.25);
}

.case-visual-box {
  height: 240px;
  background: var(--card-case-bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--st-muted);
  position: relative;
  overflow: hidden;
}
.case-graphic-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09), opacity 0.3s ease;
  pointer-events: none;
}
.case-card:hover .case-graphic-svg {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}
.case-art-luxury {
  background: linear-gradient(135deg, rgba(2, 91, 221, 0.08), rgba(245, 158, 11, 0.08), var(--base-tint));
}
.case-art-fintech {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08), var(--base-tint));
}
.case-art-biotech {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08), var(--base-tint));
}
[data-theme="dark"] .case-art-luxury {
  background: linear-gradient(135deg, rgba(2, 91, 221, 0.25), rgba(245, 158, 11, 0.15), #080d1a);
}
[data-theme="dark"] .case-art-fintech {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.15), #080d1a);
}
[data-theme="dark"] .case-art-biotech {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.15), #080d1a);
}
.case-client-tag {
  font-family: var(--_font-default);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--additional);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-metric-tag {
  font-family: var(--_font-default);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-stat-badge {
  font-family: var(--_font-accent);
  font-size: 4rem;
  font-weight: 800;
  color: var(--t-bright);
  line-height: 1;
}

.case-body {
  padding: 3.6rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
  justify-content: space-between;
}
.case-title {
  font-size: 2.4rem;
  color: var(--t-bright);
}
.case-summary {
  font-size: 1.6rem;
  color: var(--t-medium);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11B. INTERACTIVE BEFORE/AFTER PERFORMANCE BENCHMARK (SPLIT SLIDER)
   -------------------------------------------------------------------------- */
.benchmark-container {
  margin-top: 8rem;
  padding: 5rem 6rem;
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-l);
  box-shadow: var(--shadow-card);
}
.benchmark-head {
  margin-bottom: 4rem;
}
.benchmark-title {
  font-size: clamp(2.8rem, 3.8vw, 4.4rem);
  color: var(--t-bright);
  margin-bottom: 1.2rem;
}
.benchmark-desc {
  font-size: 1.7rem;
  color: var(--t-medium);
  max-width: 780px;
}
.benchmark-presets {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.bench-preset-pill {
  padding: 0.8rem 2rem;
  border-radius: var(--_radius-xl);
  font-family: var(--_font-accent);
  font-size: 1.35rem;
  font-weight: 600;
  background: var(--base-shade);
  border: 1px solid var(--st-muted);
  color: var(--t-medium);
  cursor: pointer;
  transition: all var(--_animspeed-fast);
}
.bench-preset-pill:hover,
.bench-preset-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.split-slider-wrap {
  position: relative;
  min-height: 380px;
  border-radius: var(--_radius-m);
  overflow: hidden;
  border: 1px solid var(--st-muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.split-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.split-before {
  left: 0;
  background: var(--base-shade);
}
.split-after {
  left: 0;
  width: 50%;
  overflow: hidden;
  background: var(--base-tint);
  border-right: 3px solid var(--accent);
  z-index: 2;
  box-shadow: 5px 0 25px rgba(2, 91, 221, 0.25);
}
.split-badge-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.4rem 1.4rem;
  border-radius: var(--_radius-s);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.tag-before {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.tag-after {
  background: rgba(2, 91, 221, 0.12);
  color: var(--accent);
  border: 1px solid rgba(2, 91, 221, 0.3);
}

.split-inner-box {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.split-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.s-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-val {
  font-family: var(--_font-accent);
  font-size: clamp(3rem, 4vw, 4.4rem);
  font-weight: 700;
  color: var(--t-bright);
}
.s-val.accent {
  color: var(--accent);
}
.s-lbl {
  font-family: var(--_font-default);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--t-muted);
}
.split-list-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.split-list-features li {
  font-size: 1.55rem;
  color: var(--t-medium);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.split-list-features .cross {
  color: #ef4444;
  font-weight: 700;
}
.split-list-features .check {
  color: #10b981;
  font-weight: 700;
}

/* Slider Handle */
.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.handle-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  font-size: 1.4rem;
  border: 2px solid #ffffff;
  transition: transform var(--_animspeed-fast);
  z-index: 2;
}
.split-handle:hover .handle-button {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   12. COUNTER SECTION (NITSAN 4-COLUMN STATS)
   -------------------------------------------------------------------------- */
.mxd-counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  padding: 6rem 0;
  border-top: 1px solid var(--st-muted);
  border-bottom: 1px solid var(--st-muted);
}

.counter-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.counter-num {
  font-family: var(--_font-accent);
  font-size: clamp(5rem, 7vw, 9.5rem);
  font-weight: 700;
  color: var(--t-bright);
  line-height: 0.9;
  letter-spacing: -0.06rem;
}
.counter-num .accent {
  color: var(--additional);
}
.counter-desc {
  font-size: 1.7rem;
  line-height: 1.5;
  color: var(--t-medium);
  max-width: 260px;
}

/* --------------------------------------------------------------------------
   13. TACTILE CAPITAL YIELD ENGINE (IN MTR BRAND BLUE)
   -------------------------------------------------------------------------- */
.yield-console-wrapper {
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-l);
  padding: 6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.yield-controls {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

/* Sector Presets */
.sector-presets-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sector-presets-label {
  font-family: var(--_font-default);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sector-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.sector-pill-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--_radius-xl);
  background: rgba(2, 91, 221, 0.08);
  border: 1px solid rgba(2, 91, 221, 0.22);
  color: var(--t-medium);
  font-family: var(--_font-accent);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--_animspeed-fast) ease;
}
.sector-pill-btn:hover {
  background: rgba(2, 91, 221, 0.18);
  border-color: var(--additional);
  color: var(--t-bright);
}
.sector-pill-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--additional) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 91, 221, 0.4);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.slider-label {
  font-family: var(--_font-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--t-bright);
}
.slider-output-val {
  font-family: var(--_font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--additional);
  font-variant-numeric: tabular-nums;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(2, 91, 221, 0.12);
  outline: none;
  cursor: pointer;
}
[data-theme="dark"] .custom-range {
  background: rgba(255, 255, 255, 0.1);
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--additional));
  box-shadow: 0 0 18px rgba(2, 91, 221, 0.7);
  cursor: pointer;
  transition: transform var(--_animspeed-fast);
}
.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.yield-result-panel {
  background: var(--yield-panel-bg);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-m);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}
.result-big-title {
  font-family: var(--_font-default);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.result-big-num {
  font-family: var(--_font-accent);
  font-size: clamp(4rem, 5.5vw, 6rem);
  font-weight: 800;
  color: var(--additional);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--st-muted);
}
.result-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chip-name {
  font-family: var(--_font-default);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--t-muted);
  letter-spacing: 0.02em;
}
.chip-stat {
  font-family: var(--_font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--t-bright);
}

/* --------------------------------------------------------------------------
   14. CTA SECTION (NITSAN EXACT PATTERN IN BRAND BLUE)
   -------------------------------------------------------------------------- */
.mxd-cta-section {
  position: relative;
  padding-bottom: 14rem;
}

.cta-banner-box {
  background: var(--cta-box-bg);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-l);
  padding: 8rem 6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.2rem;
  box-shadow: var(--shadow-card);
}
.cta-banner-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(2, 91, 221, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(3.6rem, 5vw, 6.4rem);
  color: var(--t-bright);
  max-width: 820px;
  line-height: 1.15;
}
.cta-desc {
  font-size: 2rem;
  color: var(--t-medium);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   15. GLOBAL DESKS & HOME FOOTER
   -------------------------------------------------------------------------- */
.mxd-footer {
  background: var(--base-shade);
  border-top: 1px solid var(--st-muted);
  padding: 10rem 0 4rem;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.8fr;
  gap: 5rem;
  margin-bottom: 8rem;
}

.footer-bio {
  font-size: 1.6rem;
  color: var(--t-medium);
  line-height: 1.6;
  margin-top: 2rem;
  max-width: 380px;
}

.footer-col-head {
  font-family: var(--_font-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--t-bright);
  margin-bottom: 2.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.footer-links a {
  font-size: 1.6rem;
  color: var(--t-medium);
  transition: color var(--_animspeed-fast);
}
.footer-links a:hover {
  color: var(--additional);
}

/* Global Sovereign Desks Cards */
.footer-address-group {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.address-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 1.8rem;
  border-radius: var(--_radius-m);
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  transition: all var(--_animspeed-fast);
}
.address-item:hover {
  border-color: rgba(2, 91, 221, 0.35);
  box-shadow: 0 4px 18px rgba(2, 91, 221, 0.08);
  transform: translateX(4px);
}
[data-theme="dark"] .address-item:hover {
  border-color: rgba(0, 162, 255, 0.35);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.address-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.address-city-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.city-flag-svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: block;
}
.address-city {
  font-family: var(--_font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--t-bright);
  white-space: nowrap;
}

.address-detail {
  font-family: var(--_font-default);
  font-size: 1.25rem;
  color: var(--t-muted);
  line-height: 1.5;
  padding-left: 2.9rem;
}

/* Live Operational Clock Tag (12-Hour AM/PM High Craft) */
.live-clock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 1.0rem;
  border-radius: var(--_radius-xl);
  background: rgba(2, 91, 221, 0.06);
  border: 1px solid rgba(2, 91, 221, 0.20);
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--additional);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: all var(--_animspeed-fast);
}
[data-theme="dark"] .live-clock-tag {
  background: rgba(0, 162, 255, 0.08);
  border-color: rgba(0, 162, 255, 0.25);
  color: #00f0ff;
}

.live-clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}
.desk-status-badge {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
[data-theme="dark"] .desk-status-badge {
  color: #10b981;
}
.live-clock-tag.desk-night .desk-status-badge {
  background: rgba(0, 162, 255, 0.15);
  color: #0084d6;
}
[data-theme="dark"] .live-clock-tag.desk-night .desk-status-badge {
  color: #00f0ff;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

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

/* --------------------------------------------------------------------------
   16. CONSULTATION MODAL (CONFIDENTIAL SOVEREIGN ALLOCATION)
   -------------------------------------------------------------------------- */
.mxd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mxd-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mxd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mxd-modal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--modal-bg);
  border: 1px solid rgba(2, 91, 221, 0.25);
  border-radius: var(--_radius-m);
  padding: 4.8rem 4rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 0 40px rgba(2, 91, 221, 0.12);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  overflow: hidden;
}
[data-theme="dark"] .mxd-modal-card {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(2, 91, 221, 0.25);
}
.mxd-modal-overlay.active .mxd-modal-card {
  transform: translateY(0) scale(1);
}
.mxd-modal-close {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--base-shade);
  border: 1px solid var(--st-muted);
  color: var(--t-medium);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--_animspeed-fast);
}
.mxd-modal-close:hover {
  background: rgba(2, 91, 221, 0.2);
  color: var(--t-bright);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 3.2rem;
}
.modal-title {
  font-size: 3.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}
.modal-sub {
  font-size: 1.5rem;
  color: var(--t-muted);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-field label {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 1.4rem 1.6rem;
  border-radius: var(--_radius-s);
  background: var(--input-bg);
  border: 1px solid var(--st-medium);
  color: var(--t-bright);
  font-family: var(--_font-default);
  font-size: 1.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.form-field select option {
  background: var(--modal-bg);
  color: var(--t-bright);
}
.modal-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1.6rem;
  margin-top: 1rem;
}

.modal-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  padding: 2rem 0;
}
.modal-success-state.active {
  display: flex;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--additional));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 25px rgba(2, 91, 221, 0.5);
}
.modal-success-state h4 {
  font-size: 2.6rem;
  color: var(--t-bright);
}
.modal-success-state p {
  font-size: 1.5rem;
  color: var(--t-medium);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   16. RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-floating-art {
    height: 420px;
  }
  .stack-card {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4.8rem 3.6rem;
  }
  .stack-card-right {
    height: 300px;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .mxd-counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .yield-console-wrapper {
    grid-template-columns: 1fr;
    padding: 4rem;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 768px) {
  .mxd-services-grid {
    grid-template-columns: 1fr;
  }
  .mxd-counters-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-box {
    padding: 6rem 3rem;
  }
  .benchmark-container {
    padding: 3.6rem 2.4rem;
  }
  .split-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 540px) {
  .mxd-header {
    width: calc(100% - 2.0rem);
    padding: 0.6rem 1.2rem;
    top: 1.0rem;
  }
  .header-brand {
    gap: 1.0rem;
  }
  .brand-logo-img {
    height: 28px;
  }
  .brand-divider {
    display: none;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .brand-title .badge {
    display: none;
  }
  .header-cta-btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   BESPOKE MAGNETIC TRAILING CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
}
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  z-index: 100000;
}
.cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.cursor-ring.active {
  width: 86px;
  height: 86px;
  background: rgba(2, 91, 221, 0.12);
  border-color: var(--additional);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cursor-label {
  font-family: var(--_font-accent);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-ring.active .cursor-label {
  opacity: 1;
}

@media (hover: none) or (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   INTERACTIVE PRISMATIC SPARKLE PARTICLES
   -------------------------------------------------------------------------- */
.prismatic-spark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  animation: sparkFloat 0.85s ease-out forwards;
}
@keyframes sparkFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -36px)) scale(0.2);
  }
}
