/* ==========================================================================
   Moix Ltd — Ultra-Futuristic Design System (Light Default + Dark Theme)
   ========================================================================== */

:root {
  /* Core Color Palette (Light Mode Default) */
  --rust: #DE7356;
  --rust-dark: #C25A3F;
  --rust-glow: rgba(222, 115, 86, 0.4);
  --rust-tint: #FDF3EF;
  --rust-tint-2: #FCE6DE;
  --gold: #F0A93D;
  --gold-glow: rgba(240, 169, 61, 0.35);

  --bg-body: #FAFAF9;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-alt: #F4F4F2;
  --surface-border: rgba(222, 115, 86, 0.2);
  --surface-border-strong: rgba(222, 115, 86, 0.85);

  --text-primary: #0F0F12;
  --text-secondary: #52525E;
  --text-muted: #848492;

  --nav-bg: rgba(250, 250, 249, 0.85);
  --grid-line: rgba(17, 17, 17, 0.05);
  
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 12px 34px -10px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 18px 46px -12px var(--rust-glow);
}

[data-theme="dark"] {
  --bg-body: #0A0A0D;
  --bg-card: rgba(18, 18, 24, 0.75);
  --bg-card-hover: rgba(26, 26, 36, 0.9);
  --bg-alt: #0F0F14;
  --surface-border: rgba(222, 115, 86, 0.28);
  --surface-border-strong: rgba(222, 115, 86, 0.95);

  --text-primary: #F5F5F7;
  --text-secondary: #A2A2B2;
  --text-muted: #6E6E7C;

  --nav-bg: rgba(10, 10, 13, 0.85);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow-subtle: 0 14px 40px -10px rgba(0, 0, 0, 0.6);
}

/* ---------- Global Reset & Typography ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s var(--ease-fluid), color 0.4s var(--ease-fluid);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-title {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Ambient Glow Mesh ---------- */
.pointer-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rust-glow) 0%, rgba(240, 169, 61, 0.15) 35%, transparent 70%);
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* ---------- Scroll Progress ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--rust-dark), var(--rust), var(--gold));
  z-index: 10000;
  box-shadow: 0 0 16px var(--rust);
}

/* ---------- Professional Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-fluid), visibility 0.5s var(--ease-fluid);
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(280px, 76vw);
}
.preloader-logo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo-circle {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px var(--rust-glow);
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
[data-theme="dark"] .preloader-logo-circle {
  background: transparent;
  border-color: transparent;
}
.preloader-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preloader-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1.5px solid var(--rust);
  opacity: 0;
  animation: preloadPulse 1.8s ease-out infinite;
  z-index: 1;
}
@keyframes preloadPulse {
  0%   { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.4);  opacity: 0;    }
}
.preloader-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  color: var(--text-primary);
  margin-top: 4px;
}
.preloader-brand-name span { color: var(--rust); }
.preloader-bar-track {
  width: 100%;
  height: 2px;
  border-radius: 100px;
  background: var(--surface-border);
  overflow: hidden;
  margin-top: 4px;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  border-radius: 100px;
  transition: width 0.08s linear;
}
.preloader-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Navbar (Black Pill — Proxyports Style) ---------- */
.navbar-moix {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: none;
  margin-top: 12px;
  transition: top 0.3s var(--ease-fluid);
}
.navbar-moix .container {
  padding-left: 12px;
  padding-right: 12px;
}
.nav-shell {
  background: #0A0A0D;
  border-radius: 8px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s var(--ease-fluid), transform 0.3s var(--ease-fluid);
}
.navbar-moix.scrolled .nav-shell {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

/* Brand Wrap */
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Rounded-Square Logo Container (matches proxyports style) */
.brand-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-fluid);
}
.brand-logo-box.sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand-wrap:hover .brand-logo-box {
  transform: scale(1.06);
}
.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brand Name (inside black nav = white text) */
.nav-shell .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.nav-shell .brand-name span { color: var(--rust); }

/* Brand name outside nav (offcanvas + footer) */
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.brand-name span { color: var(--rust); }

/* Desktop Nav Links (on Black Pill) */
.nav-shell .nav-link-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding: 6px 4px;
  transition: color 0.25s ease;
}
.nav-shell .nav-link-modern:hover,
.nav-shell .nav-link-modern.active-link {
  color: var(--rust);
}
.nav-link-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: width 0.3s var(--ease-fluid);
  border-radius: 4px;
}
.nav-link-modern:hover::after,
.nav-link-modern.active-link::after {
  width: 100%;
}

/* Theme Toggle — Desktop inside nav */
.nav-shell .theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-fluid);
}
.nav-shell .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--rust);
  color: var(--rust);
  transform: translateY(-1px);
}

/* Theme Toggle — Base (used in mobile offcanvas) */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--surface-border);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-fluid);
}
.theme-toggle-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
}
[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

/* Menu Toggle Button (Mobile Hamburger — White on Black, Rounded Square) */
.menu-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}
.menu-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  position: relative;
}
.menu-toggle-btn span::before,
.menu-toggle-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
}
.menu-toggle-btn span::before { top: -7px; }
.menu-toggle-btn span::after  { top: 7px; }

/* ---------- Mobile Offcanvas (Professional Redesign) ---------- */
.offcanvas-moix {
  background: var(--bg-body);
  border-left: 1px solid var(--surface-border);
  color: var(--text-primary);
  width: min(340px, 90vw);
}
.offcanvas-moix .offcanvas-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.offcanvas-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.offcanvas-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.btn-close-moix {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-fluid);
}
.btn-close-moix:hover {
  color: var(--rust);
  border-color: var(--rust);
  transform: rotate(90deg);
}

.offcanvas-body {
  padding: 22px !important;
  display: flex;
  flex-direction: column;
}

/* Mobile Theme Panel */
.mobile-theme-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  margin-bottom: 26px;
}
.mobile-theme-info { display: flex; flex-direction: column; }
.mobile-theme-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mobile-theme-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.mobile-theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* Section Label */
.offcanvas-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 4px;
}

/* Offcanvas Nav */
.offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.nav-link-mobile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.25s var(--ease-fluid);
  position: relative;
  border: 1px solid transparent;
}
.nav-link-mobile:hover {
  background: var(--bg-card);
  border-color: var(--surface-border);
  transform: translateX(2px);
}
.nav-link-mobile .nav-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rust);
  min-width: 22px;
}
.nav-mobile-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.nav-mobile-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-mobile-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.nav-mobile-arrow {
  color: var(--text-muted);
  transition: transform 0.25s var(--ease-fluid), color 0.25s ease;
  flex-shrink: 0;
}
.nav-link-mobile:hover .nav-mobile-arrow {
  color: var(--rust);
  transform: translateX(3px);
}

/* Offcanvas Footer Block */
.offcanvas-footer-block {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offcanvas-mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  transition: all 0.25s var(--ease-fluid);
}
.offcanvas-mail-row:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}
.offcanvas-mail-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--rust-tint);
  color: var(--rust-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .offcanvas-mail-icon {
  background: rgba(222, 115, 86, 0.15);
  color: var(--rust);
}
.offcanvas-mail-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.offcanvas-mail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.offcanvas-mail-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offcanvas-copyline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}

/* ---------- Hero Section (Dotted World Map + Colored Accent Dots) ---------- */
.hero {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
}
.hero-grid-matrix {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 15, 18, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 15, 18, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 30%, rgba(0,0,0,0.7) 60%, transparent 95%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 30%, rgba(0,0,0,0.7) 60%, transparent 95%);
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .hero-grid-matrix {
  background-image:
    linear-gradient(to right, rgba(245, 245, 247, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.06) 1px, transparent 1px);
}

/* Colored Accent Dots (Proxyports style scattered dots) */
.hero-accent-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.acc-dot {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}
.acc-dot.d1  { top: 10%; left: 8%;  width: 10px; height: 10px; background: #EF4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.55); animation: dotFloat 6s   ease-in-out infinite;       }
.acc-dot.d2  { top: 16%; left: 82%; width: 12px; height: 12px; background: #A855F7; box-shadow: 0 0 14px rgba(168, 85, 247, 0.55); animation: dotFloat 7s   ease-in-out infinite 0.4s;  }
.acc-dot.d3  { top: 30%; left: 26%; width: 8px;  height: 8px;  background: #3B82F6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.55); animation: dotFloat 5.5s ease-in-out infinite 0.8s;  }
.acc-dot.d4  { top: 42%; left: 62%; width: 10px; height: 10px; background: #F59E0B; box-shadow: 0 0 12px rgba(245, 158, 11, 0.55); animation: dotFloat 6.4s ease-in-out infinite 0.2s;  }
.acc-dot.d5  { top: 55%; left: 12%; width: 9px;  height: 9px;  background: #10B981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.55); animation: dotFloat 7.2s ease-in-out infinite 1.2s;  }
.acc-dot.d6  { top: 60%; left: 78%; width: 11px; height: 11px; background: #EC4899; box-shadow: 0 0 13px rgba(236, 72, 153, 0.55); animation: dotFloat 6.8s ease-in-out infinite 0.6s;  }
.acc-dot.d7  { top: 74%; left: 40%; width: 8px;  height: 8px;  background: #EF4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.45); animation: dotFloat 5.8s ease-in-out infinite 1.6s;  }
.acc-dot.d8  { top: 24%; left: 48%; width: 7px;  height: 7px;  background: #10B981; box-shadow: 0 0 9px  rgba(16, 185, 129, 0.55); animation: dotFloat 6.6s ease-in-out infinite 2s;    }
.acc-dot.d9  { top: 8%;  left: 55%; width: 9px;  height: 9px;  background: #F59E0B; box-shadow: 0 0 11px rgba(245, 158, 11, 0.55); animation: dotFloat 7.5s ease-in-out infinite 0.9s;  }
.acc-dot.d10 { top: 78%; left: 6%;  width: 10px; height: 10px; background: #3B82F6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.55); animation: dotFloat 6.2s ease-in-out infinite 1.4s;  }
.acc-dot.d11 { top: 85%; left: 68%; width: 8px;  height: 8px;  background: #A855F7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.55); animation: dotFloat 5.9s ease-in-out infinite 0.3s;  }
.acc-dot.d12 { top: 46%; left: 90%; width: 8px;  height: 8px;  background: #EC4899; box-shadow: 0 0 10px rgba(236, 72, 153, 0.55); animation: dotFloat 6.9s ease-in-out infinite 1.8s;  }

@keyframes dotFloat {
  0%, 100% { transform: translateY(0);    opacity: 0.85; }
  50%      { transform: translateY(-9px); opacity: 1;    }
}

.hero-glow-sphere {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.accent-glow {
  background: linear-gradient(135deg, var(--rust) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px var(--rust-glow);
}
.hero-sub {
  font-size: 1.16rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 42px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Futuristic Buttons */
.btn-primary-futuristic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--rust), var(--rust-dark));
  color: #FFFFFF !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 100px;
  border: none;
  box-shadow: 0 8px 24px var(--rust-glow);
  overflow: hidden;
  transition: all 0.3s var(--ease-fluid);
}
.btn-primary-futuristic:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--rust-glow);
}
.btn-secondary-futuristic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-fluid);
}
.btn-secondary-futuristic:hover {
  border-color: var(--rust);
  color: var(--rust);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  position: relative;
  padding: 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: transform 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid);
  transform-style: preserve-3d;
}
.stat-card:hover {
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-glow);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rust-tint);
  color: var(--rust-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}
[data-theme="dark"] .stat-icon {
  background: rgba(222, 115, 86, 0.15);
  color: var(--rust);
}
.stat-card:hover .stat-icon {
  background: var(--rust);
  color: #fff;
  transform: scale(1.08);
}
.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text-primary);
}
.stat-badge-wrap {
  display: flex;
  align-items: center;
  height: 2.3rem;
}
.stat-num-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--rust) 0%, var(--gold) 50%, var(--rust) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerAnim 3s linear infinite;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes shimmerAnim {
  to { background-position: 200% center; }
}

/* ---------- Partners ---------- */
.section-partners { padding: 50px 0 80px; }
.partners-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 50px 0 0;
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--rust-tint);
  color: var(--rust-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
[data-theme="dark"] .badge-chip {
  background: rgba(222, 115, 86, 0.15);
  color: var(--rust);
}

.marquee-wrap {
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  border-top: 1px solid var(--surface-border);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  padding: 10px 22px 10px 10px;
  transition: all 0.3s var(--ease-fluid);
}
.marquee-item:hover {
  border-color: var(--rust);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--rust-glow);
}
.marquee-item img { width: 32px; height: 32px; border-radius: 8px; }
.marquee-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Applications Grid ---------- */
.section { padding: 90px 0; position: relative; }
.section-off { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
  display: block;
}
.section-title { font-size: clamp(2rem, 3.8vw, 2.8rem); margin-bottom: 14px; }
.section-sub { color: var(--text-secondary); max-width: 580px; font-size: 1.05rem; }

.app-card {
  position: relative;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid);
}
.app-card:hover {
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-glow);
}
.app-icon-box {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-fluid);
}
.app-card:hover .app-icon-box {
  transform: scale(1.08) rotate(-3deg);
}
.app-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.app-name { font-size: 1.22rem; font-weight: 700; margin-bottom: 6px; }
.app-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 10px; }
.app-stars .num { color: var(--text-muted); font-weight: 600; font-size: 0.84rem; margin-left: 4px; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--rust-tint);
  color: var(--rust-dark);
}
[data-theme="dark"] .badge-status {
  background: rgba(222, 115, 86, 0.15);
  color: var(--rust);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: beaconPulse 2s infinite;
}
@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.trending-ribbon {
  position: absolute;
  top: 18px;
  right: -35px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 38px;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.trending-ribbon.viral {
  background: linear-gradient(135deg, var(--rust), var(--gold));
}

.app-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-fluid);
}
.app-card:hover .app-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About & Protocol (Clean Border-Free Logo) ---------- */
.about-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

/* Rounded-Square About Logo */
.about-logo-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
[data-theme="dark"] .about-logo-box {
  background: transparent;
  border-color: transparent;
}
.about-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-heading-text {
  display: flex;
  flex-direction: column;
}
.about-heading-text .section-title {
  margin-bottom: 0;
}
.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.glass-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 38px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
}
.feature-card-heading { font-size: 1.3rem; }
.protocol-list { display: flex; flex-direction: column; gap: 20px; }
.protocol-item { display: flex; gap: 16px; font-size: 0.95rem; color: var(--text-secondary); }
.protocol-bullet {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: var(--rust);
  font-size: 1.1rem;
}

/* ---------- Contact Form ---------- */
.glass-form-container {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 42px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
}
.form-label-modern {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}
.form-control-modern {
  width: 100%;
  background: var(--bg-body);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.98rem;
  transition: all 0.25s ease;
}
.form-control-modern:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 4px var(--rust-tint);
}
[data-theme="dark"] .form-control-modern:focus {
  box-shadow: 0 0 0 4px rgba(222, 115, 86, 0.2);
}
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #10B981; }
.form-status.err { color: #EF4444; }

/* ---------- Modal ---------- */
.modal-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.modal-check-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px var(--rust-glow);
}
.modal-title-modern { font-size: 1.4rem; margin-bottom: 8px; }
.modal-text-modern { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 24px; }

/* ---------- Footer (Professional Redesign) ---------- */
.footer-moix {
  background: #08080A;
  color: #9E9EA8;
  padding: 70px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.footer-moix::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(222, 115, 86, 0.06), transparent 70%);
  pointer-events: none;
}
.footer-moix .container { position: relative; z-index: 1; }
.footer-moix .brand-name { color: #fff; }

/* CTA Banner */
.footer-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(222, 115, 86, 0.10), rgba(240, 169, 61, 0.06));
  border: 1px solid rgba(222, 115, 86, 0.22);
  margin-bottom: 56px;
}
.footer-cta-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-cta-sub {
  font-size: 0.92rem;
  color: #A2A2B2;
  line-height: 1.5;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--rust);
  color: #fff !important;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s var(--ease-fluid);
  border: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(222, 115, 86, 0.3);
}
.footer-cta-btn:hover {
  background: var(--rust-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(222, 115, 86, 0.4);
}

/* 4-Column Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col-brand .footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
  color: #9E9EA8;
}

/* Column Titles */
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

/* Links List */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-links a {
  font-size: 0.92rem;
  color: #9E9EA8;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover {
  color: var(--rust);
  padding-left: 4px;
}

/* Contact List */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E6E7C;
}
.footer-contact-list a {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-word;
}
.footer-contact-list a:hover { color: var(--rust); }

/* Social Buttons */
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(222, 115, 86, 0.35);
}

/* Bottom Row */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-copy { color: #6E6E7C; }
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-legal a {
  color: #9E9EA8;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--rust); }
.footer-dot { color: #40404A; }
.footer-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
}

/* Footer Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }
  .footer-col-brand,
  .footer-col-contact { grid-column: 1 / -1; }
  .footer-cta-banner { padding: 22px 24px; }
  .footer-cta-title { font-size: 1.1rem; }
}
@media (max-width: 576px) {
  .footer-moix { padding: 50px 0 22px; }
  .footer-cta-banner { padding: 20px; }
  .footer-cta-btn { width: 100%; justify-content: center; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- Back To Top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 10px 26px var(--rust-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-fluid);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); background: var(--rust-dark); }

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid), filter 0.8s var(--ease-fluid);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 60px; }
  .about-header-card { gap: 16px; }
  .about-logo-box { width: 54px; height: 54px; padding: 8px; }
  .nav-shell { padding: 6px 8px 6px 12px; }
  .nav-shell .brand-name { font-size: 0.98rem; }
  .brand-logo-box { width: 36px; height: 36px; padding: 4px; }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { min-height: auto; padding: 22px 18px; }
  .app-card { flex-direction: column; align-items: flex-start; }
  .about-header-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .glass-form-container { padding: 24px; }
  .glass-feature-card { padding: 24px; }
  .acc-dot { transform: scale(0.75); }
  .hero-glow-sphere { width: 240px; height: 240px; }
}

/* ---------- Performance Optimizations ---------- */

/* Off-screen sections skip rendering until scrolled into view */
.section, .section-partners {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Kill expensive effects on mobile for a snappier feel */
@media (max-width: 768px) {
  .pointer-glow { display: none; }
  .stat-card,
  .app-card,
  .partners-panel,
  .marquee-item,
  .glass-feature-card,
  .glass-form-container,
  .modal-glass,
  .nav-shell {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero-glow-sphere { filter: blur(50px); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .acc-dot,
  .preloader-ring-pulse,
  .marquee-track,
  .live-dot,
  .stat-num-badge {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}