/* ============================================
   DYNAFLOW — Design System v2
   Stripe-inspired, enterprise-grade
   ============================================ */

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

:root {
  /* Brand */
  --primary: #338edc;
  --primary-hover: #2b7bc4;
  --primary-light: rgba(51, 142, 220, 0.06);
  --primary-border: rgba(51, 142, 220, 0.2);
  --primary-glow: rgba(51, 142, 220, 0.15);

  /* Accents */
  --accent-cyan: #22D3EE;
  --accent-indigo: #6366F1;
  --accent-purple: #8B5CF6;

  /* Backgrounds */
  --bg-page: #FAFBFF;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #0B1120;
  --bg-dark-subtle: #0f172a;
  --bg-dark-card: rgba(255, 255, 255, 0.04);
  --bg-dark-card-hover: rgba(255, 255, 255, 0.07);
  --bg-dark-card-border: rgba(255, 255, 255, 0.08);
  --bg-section-alt: #F0F4FF;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border-card: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: rgba(51, 142, 220, 0.3);

  /* Status */
  --status-green: #10B981;
  --status-amber: #F59E0B;
  --status-red: #EF4444;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h4 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.0625rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-lg {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 4px 12px rgba(51, 142, 220, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 24px rgba(51, 142, 220, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-card);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-white:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn svg,
.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.35s var(--ease-out);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s var(--ease-out);
}

.nav.nav--top {
  background: transparent;
}

.nav.nav--scrolled {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 16px;
}

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease-out);
  opacity: 0.5;
}

.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 560px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-label {
  grid-column: span 1;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 0 8px 8px;
  margin-bottom: 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
  border-radius: 10px;
  transition: all 0.15s;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: #F0F4FF;
  color: #1a1a2e;
}

.nav-dropdown-item .nav-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #338edc;
}

.nav-dropdown-item .nav-item-icon.indigo {
  color: #6366F1;
}

.nav-dropdown-item .nav-item-text {
  flex: 1;
  min-width: 0;
}

.nav-dropdown-item .nav-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a2e;
  display: block;
}

.nav-dropdown-item .nav-item-desc {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  display: block;
  margin-top: 1px;
  line-height: 1.4;
}

.nav-coming-soon {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10002;
  position: relative;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU — Full-screen overlay
   ============================================ */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    background: #0B1120;
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
  }
  .mobile-menu.is-open {
    transform: translateX(0);
  }

  /* Header */
  .mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mm-logo { height: 24px; }
  .mm-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.5); padding: 4px;
    transition: color 0.2s;
  }
  .mm-close:hover { color: #fff; }

  /* Nav items */
  .mm-nav {
    padding: 16px 0;
  }
  .mm-link {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
  }
  .mm-link:hover, .mm-link:active {
    background: rgba(255,255,255,0.04);
  }

  /* Accordion trigger */
  .mm-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }
  .mm-arrow {
    transition: transform 0.3s;
    flex-shrink: 0;
    opacity: 0.4;
  }

  /* Accordion content */
  .mm-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.02);
  }
  .mm-accordion-content.is-open {
    max-height: 800px;
  }

  /* Sub-items */
  .mm-sub-items {
    padding: 8px 0 12px 0;
    border-left: 2px solid rgba(51,142,220,0.3);
    margin-left: 24px;
  }
  .mm-sub-item {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }
  .mm-sub-item:hover, .mm-sub-item:active {
    color: #fff;
    background: rgba(255,255,255,0.04);
  }
  .mm-sub-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.25);
    padding: 4px 20px 8px;
  }

  /* Divider */
  .mm-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 12px 24px;
  }

  /* Language switcher — dropdown select */
  .mm-lang {
    padding: 8px 24px 16px;
  }
  .mm-lang-select {
    width: 100%;
    background: #1a2332;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
  }
  .mm-lang-select:focus {
    outline: none;
    border-color: #338edc;
  }
  .mm-lang-select option {
    background: #1a2332;
    color: #fff;
    padding: 8px;
  }

  /* CTA */
  .mm-cta {
    padding: 16px 24px 32px;
  }
  .mm-cta a {
    display: block;
    background: #338edc;
    color: #fff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
  }
  .mm-cta a:hover { background: #2b7bc4; }
}

/* ============================================
   HERO — Homepage (full-height)
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(165deg, #0B1120 0%, #0f1b35 40%, #131e3a 70%, #0e1a32 100%);
  padding: 180px 0 120px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 142, 220, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(51, 142, 220, 0.08);
  border: 1px solid rgba(51, 142, 220, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--status-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  color: #fff;
  margin-bottom: 28px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 50%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

/* Hero Dashboard Mockup */
.hero-mockup {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1200px;
}

.mockup-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: rotateX(4deg);
  transition: transform 0.8s var(--ease-out);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

.mockup-wrapper:hover {
  transform: rotateX(0deg);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-dot:nth-child(1) { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #10B981; }

.mockup-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', monospace;
}

.mockup-body {
  min-height: 420px;
  background: linear-gradient(180deg, #111827 0%, #0B1222 100%);
  padding: 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

/* Mockup sidebar */
.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.mockup-sidebar-item.active {
  background: rgba(51, 142, 220, 0.15);
  color: var(--accent-cyan);
}

.mockup-sidebar-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.mockup-sidebar-item.active .mockup-sidebar-icon {
  opacity: 1;
}

/* Mockup content area */
.mockup-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.mockup-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mockup-stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.mockup-stat-change {
  font-size: 0.6875rem;
  color: var(--status-green);
  margin-top: 4px;
}

.mockup-chart {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mockup-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mockup-chart-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.mockup-chart-legend {
  display: flex;
  gap: 16px;
}

.mockup-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}

.mockup-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-chart-area {
  flex: 1;
  position: relative;
  min-height: 160px;
}

.mockup-chart-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ============================================
   BROWSER FRAME (for feature mockups)
   ============================================ */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  background: #fff;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.browser-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.04);
}

.browser-frame-dark {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.browser-frame-dark:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-card);
}

.browser-frame-dark .browser-topbar {
  background: rgba(0,0,0,0.3);
  border-bottom-color: rgba(255,255,255,0.06);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #EF4444; }
.browser-dot:nth-child(2) { background: #F59E0B; }
.browser-dot:nth-child(3) { background: #10B981; }

.browser-url {
  flex: 1;
  margin-left: 12px;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.browser-frame-dark .browser-url {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}

.browser-content {
  padding: 24px;
  min-height: 280px;
}

/* ============================================
   INLINE MOCKUP COMPONENTS
   ============================================ */
.mock-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mock-kpi {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mock-kpi-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.mock-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mock-kpi-change {
  font-size: 0.6875rem;
  margin-top: 4px;
  font-weight: 600;
}

.mock-kpi-change.up { color: var(--status-green); }
.mock-kpi-change.down { color: var(--status-red); }

/* Mini chart SVG */
.mock-chart {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
}

.mock-chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Workflow diagram */
.mock-workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.mock-workflow-step {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mock-workflow-step.trigger {
  border-color: var(--primary-border);
  background: var(--primary-light);
  color: var(--primary);
}

.mock-workflow-step.action {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
  color: var(--status-green);
}

.mock-workflow-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Table mockup */
.mock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.mock-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-page);
}

.mock-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.mock-table tr:last-child td {
  border-bottom: none;
}

.mock-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}

.mock-badge.green { background: rgba(16,185,129,0.1); color: var(--status-green); }
.mock-badge.amber { background: rgba(245,158,11,0.1); color: var(--status-amber); }
.mock-badge.red { background: rgba(239,68,68,0.1); color: var(--status-red); }
.mock-badge.blue { background: var(--primary-light); color: var(--primary); }

/* ============================================
   CHAT MOCKUP
   ============================================ */
.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.mock-chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mock-chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mock-chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
}

.mock-chat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.mock-chat-label.user-label { text-align: right; }

.mock-chat-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mock-chat-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--text-primary);
}

.mock-chat-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   TRACKING TIMELINE MOCKUP
   ============================================ */
.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}

.mock-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.mock-timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.mock-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-card);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.mock-timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(51,142,220,0.15);
}

.mock-timeline-dot.done {
  background: var(--status-green);
}

.mock-timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border-card);
  min-height: 20px;
}

.mock-timeline-info {
  flex: 1;
}

.mock-timeline-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mock-timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   FORM MOCKUP
   ============================================ */
.mock-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.mock-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-form-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-form-input {
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: var(--bg-page);
}

.mock-form-input.error {
  border-color: var(--status-red);
  background: rgba(239,68,68,0.04);
}

.mock-form-input.corrected {
  border-color: var(--status-green);
  background: rgba(16,185,129,0.04);
}

.mock-form-hint {
  font-size: 0.6875rem;
  color: var(--status-red);
}

.mock-form-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  align-self: flex-start;
  margin-top: 4px;
}

/* ============================================
   EMAIL PREVIEW MOCKUP
   ============================================ */
.mock-email {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-email-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
}

.mock-email-row {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
}

.mock-email-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 56px;
}

.mock-email-value {
  color: var(--text-secondary);
}

.mock-email-body {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mock-email-body .brand-logo {
  width: 100px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ============================================
   CASE MOCKUP
   ============================================ */
.mock-case {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.mock-case-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-case-linked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.mock-case-linked-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.mock-case-linked-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.mock-case-linked-icon svg {
  width: 14px;
  height: 14px;
}

.mock-case-linked-text {
  font-weight: 600;
  color: var(--primary);
}

.mock-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-thread-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mock-thread-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-thread-avatar.client {
  background: rgba(245,158,11,0.1);
  color: var(--status-amber);
}

.mock-thread-body {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.mock-thread-name {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mock-thread-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mock-thread-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   DISTRIBUTION DIAGRAM MOCKUP
   ============================================ */
.mock-distribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.mock-dist-source {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

.mock-dist-arrows {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.mock-dist-arrows::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--border-card);
}

.mock-dist-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mock-dist-arrow::before {
  content: '';
  width: 2px;
  height: 16px;
  background: var(--border-card);
}

.mock-dist-targets {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mock-dist-target {
  padding: 10px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: var(--section-padding) 0;
  background: var(--bg-page);
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   STOCK CHART MOCKUP
   ============================================ */
.mock-stock-chart {
  padding: 8px 0;
}

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

.mock-chart-legend {
  display: flex;
  gap: 16px;
}

.mock-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: var(--bg-page);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-content h2 {
  margin-bottom: 20px;
}

.problem-content p {
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.problem-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.problem-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--status-red);
  margin-top: 2px;
}

.problem-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.problem-visual {
  position: relative;
}

.problem-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.35s var(--ease-out);
}

.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.problem-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}

.problem-card-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--status-red); }
.problem-card-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--status-amber); }
.problem-card-icon.blue { background: var(--primary-light); color: var(--primary); }

.problem-card-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.problem-card-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */
.architecture {
  background: linear-gradient(165deg, var(--bg-dark) 0%, #131B2E 100%);
  position: relative;
  overflow: hidden;
}

.architecture::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(51, 142, 220, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.architecture .section-header h2 { color: #fff; }
.architecture .section-header p { color: var(--text-on-dark-muted); }
.architecture .section-label {
  background: rgba(51, 142, 220, 0.08);
  border-color: rgba(51, 142, 220, 0.2);
}

.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.arch-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
}

.arch-block:hover {
  border-color: rgba(51, 142, 220, 0.3);
  background: rgba(51, 142, 220, 0.06);
  transform: translateY(-4px);
}

.arch-block.center {
  border-color: rgba(51, 142, 220, 0.3);
  background: rgba(51, 142, 220, 0.08);
  padding: 36px;
}

.arch-block-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: rgba(51, 142, 220, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-block h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 10px; }
.arch-block p { color: var(--text-on-dark-muted); font-size: 0.8125rem; line-height: 1.5; }

.arch-block-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.arch-module-tag {
  padding: 4px 12px;
  background: rgba(51, 142, 220, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  font-weight: 500;
  white-space: nowrap;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}

.arch-connector-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(51, 142, 220, 0.1), rgba(51, 142, 220, 0.4), rgba(51, 142, 220, 0.1));
  position: relative;
}

.arch-connector-line::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  transform: rotate(45deg);
}

.arch-connector-label {
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   MODULES / BENTO GRID
   ============================================ */
.modules {
  background: var(--bg-page);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Bento variation */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.bento-grid .bento-tall {
  grid-row: span 2;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.35s;
}

.module-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.module-icon.workforce { background: rgba(99, 102, 241, 0.1); color: var(--accent-indigo); }
.module-icon.hr { background: rgba(16, 185, 129, 0.1); color: var(--status-green); }
.module-icon.controlling { background: rgba(245, 158, 11, 0.1); color: var(--status-amber); }
.module-icon.forecasting { background: rgba(51, 142, 220, 0.1); color: var(--primary); }
.module-icon.cases { background: rgba(239, 68, 68, 0.1); color: var(--status-red); }
.module-icon.process { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }

.module-card h3 { margin-bottom: 12px; }

.module-card > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  flex: 1;
}

.module-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.module-feature-tag {
  padding: 5px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: gap 0.25s var(--ease-out);
}

.module-link:hover { gap: 12px; }

.module-link svg { width: 16px; height: 16px; }

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: linear-gradient(165deg, var(--bg-dark) 0%, #131B2E 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 142, 220, 0.3), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-value {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-value .stat-highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

/* Tech Stack Bar */
.tech-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-stack-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.tech-tag svg { width: 16px; height: 16px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--bg-page);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #131B2E 50%, #0f1b35 100%);
  border-radius: var(--radius-2xl);
  padding: 96px 56px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(51, 142, 220, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta-box p {
  color: var(--text-on-dark-muted);
  font-size: 1.1875rem;
  max-width: 540px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand .footer-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #fff; }

/* ============================================
   SUBPAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  background: linear-gradient(165deg, #0B1120 0%, #0f1b35 40%, #131e3a 70%, #0e1a32 100%);
  padding: 160px 0 100px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(51, 142, 220, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 20s ease-in-out infinite;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
}

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

.page-hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.page-hero h1 span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 50%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.page-hero .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.feature-section {
  padding: var(--section-pad) 0;
}

.feature-section:nth-child(even) { background: var(--bg-page); }
.feature-section:nth-child(odd) { background: var(--bg-white); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }

.feature-content { max-width: 520px; }

.feature-content h2 { margin-bottom: 20px; }

.feature-content p {
  font-size: 1.0625rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.feature-list-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
}

.feature-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  opacity: 0.3;
}

/* ============================================
   FEATURE CARDS GRID (Bento)
   ============================================ */
.features-cards-section {
  padding: var(--section-pad) 0;
  background: var(--bg-page);
}

.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-section {
  padding: var(--section-pad) 0;
  background: var(--bg-section-alt);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
}

.testimonial-quote {
  font-size: 1.375rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info p { font-size: 1.0625rem; margin-bottom: 36px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.contact-detail p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-detail strong { color: var(--text-primary); }

/* ============================================
   COMPANY / VALUES
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.value-card h3 { margin-bottom: 12px; }
.value-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  flex: 1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}

.form-radio:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.form-radio input {
  accent-color: var(--primary);
}

.form-radio-label {
  pointer-events: none;
}

.form-checkbox {
  margin-bottom: 24px;
}

.form-checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-radio-group { flex-direction: column; }
  .contact-form { padding: 24px; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Counter Animation */
.stat-value[data-count] { font-variant-numeric: tabular-nums; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 88px; }

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

  .bento-grid .bento-wide { grid-column: span 1; }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .stat-item:nth-child(3)::after { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }

  .arch-diagram {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 400px;
  }

  .arch-connector {
    transform: rotate(90deg);
    padding: 8px 0;
  }

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

@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }

  /* Desktop nav links: HIDE on mobile (replaced by mobile-menu overlay) */
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none !important; }

  .hero {
    padding: 140px 0 80px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 56px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .modules-grid,
  .bento-grid,
  .features-cards-grid { grid-template-columns: 1fr; }

  .bento-grid .bento-wide { grid-column: span 1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:not(:last-child)::after { display: none; }

  .tech-stack { flex-wrap: wrap; gap: 12px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-box { padding: 64px 28px; }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero { padding: 140px 0 72px; }

  .page-hero .hero-actions {
    flex-direction: column;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-grid.reverse { direction: ltr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-grid { grid-template-columns: 1fr; }

  .mock-kpi-grid { grid-template-columns: 1fr; }
  .mock-workflow { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   AI-POWERED BANNER (Hero section)
   ============================================ */
.ai-banner {
  text-align: center;
  margin-top: 32px;
}
.ai-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(51,142,220,0.08), rgba(16,185,129,0.08));
  border: 1px solid rgba(51,142,220,0.15);
  border-radius: 100px;
  padding: 10px 24px;
  max-width: 100%;
}
.ai-pulse {
  width: 8px;
  height: 8px;
  background: #4fd1c5;
  border-radius: 50%;
  flex-shrink: 0;
  animation: aiPulse 2s infinite;
}
@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(79,209,197,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(79,209,197,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,209,197,0); }
}
.ai-text {
  font-size: 14px;
  font-weight: 700;
  color: #4fd1c5;
  white-space: nowrap;
}
.ai-separator {
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}
.ai-features {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .ai-banner-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 18px;
    gap: 6px;
  }
  .ai-text { font-size: 13px; }
  .ai-features { font-size: 11px; text-align: center; }
  .ai-separator { display: none; }
}

/* ============================================
   MOCKUP CONTAINER BORDERS — Remove outer frame borders
   Keep shadows, remove the 1px solid line around browser mockups and visuals
   ============================================ */

/* Outer mockup wrappers: inline-styled elements with box-shadow + border */
[style*="box-shadow"][style*="border:1px solid #e2e8f0"],
[style*="box-shadow"][style*="border: 1px solid #e2e8f0"],
[style*="box-shadow"][style*="border:1px solid #E5E7EB"],
[style*="box-shadow"][style*="border: 1px solid #E5E7EB"] {
  border-color: transparent !important;
}

/* Phone mockup frames */
.phone-frame,
.phone-mockup {
  border: none !important;
}

/* Tracking page phone mockup wrappers */
[style*="box-shadow"][style*="border-radius:16px"][style*="overflow:hidden"] {
  border-color: transparent !important;
}

/* ============================================
   FLOATING UI FRAGMENTS (Stripe-style mockups)
   ============================================ */

/* Floating fragment base */
.floating-fragment {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
  padding: 24px;
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.floating-fragment:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

.floating-fragment.tilted {
  transform: rotate(-1.5deg);
}

.floating-fragment.tilted:hover {
  transform: rotate(-1.5deg) translateY(-4px);
}

.floating-fragment.tilted-right {
  transform: rotate(1.5deg);
}

.floating-fragment.tilted-right:hover {
  transform: rotate(1.5deg) translateY(-4px);
}

/* Floating fragments container (replaces feature-image) */
.floating-fragments {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.floating-fragments-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.floating-fragments-row > * {
  flex: 1;
  min-width: 0;
}

/* Heatmap grid */
.heatmap-zone {
  margin-bottom: 12px;
}

.heatmap-zone:last-child { margin-bottom: 0; }

.heatmap-zone-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  transition: transform 0.2s;
  min-height: 18px;
}

.heatmap-cell:hover {
  transform: scale(1.15);
  z-index: 1;
}

.heatmap-cell.green { background: #10B981; }
.heatmap-cell.yellow { background: #FBBF24; }
.heatmap-cell.orange { background: #F97316; }
.heatmap-cell.red { background: #EF4444; }

.heatmap-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 10px;
  color: var(--text-muted);
}

.heatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heatmap-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Pick process steps */
.pick-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.pick-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pick-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}

.pick-step-circle.done {
  background: #ECFDF5;
  color: #059669;
  border: 2px solid #10B981;
}

.pick-step-circle.active {
  background: #EFF6FF;
  color: #338edc;
  border: 2px solid #338edc;
  animation: pick-pulse 2s ease-in-out infinite;
}

@keyframes pick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 142, 220, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(51, 142, 220, 0); }
}

.pick-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pick-step-line {
  flex: 1;
  height: 3px;
  background: #E5E7EB;
  min-width: 24px;
  margin-top: -20px;
}

.pick-step-line.done {
  background: #10B981;
}

.pick-step-line.active {
  background: linear-gradient(90deg, #10B981, #338edc);
}

/* Inventory spark chart */
.spark-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
}

.spark-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.spark-bar:last-child { opacity: 1; }

/* Multi-warehouse connection */
.warehouse-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
}

.warehouse-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.warehouse-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-page);
  border: 2px solid var(--border-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warehouse-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.warehouse-sync-line {
  flex: 1;
  max-width: 120px;
  min-width: 60px;
  height: 3px;
  background: var(--border-card);
  position: relative;
  margin: 0 -4px;
  margin-top: -20px;
}

.warehouse-sync-line::after {
  content: 'sync';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--primary-border);
  white-space: nowrap;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  top: -2.5px;
  animation: sync-move 2s ease-in-out infinite;
}

@keyframes sync-move {
  0% { left: 0; }
  50% { left: calc(100% - 8px); }
  100% { left: 0; }
}

/* Invoice fragment */
.invoice-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
}

.invoice-line:last-child { border-bottom: none; }

.invoice-line-label {
  color: var(--text-secondary);
}

.invoice-line-value {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  border-top: 2px solid var(--text-primary);
  margin-top: 4px;
}

.invoice-total-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.invoice-total-value {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Revenue bar chart */
.revenue-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 140px;
  padding: 0 4px;
}

.revenue-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.revenue-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #338edc 0%, #2b7bc4 100%);
  transition: height 1.2s var(--ease-out);
  min-height: 0;
}

.revenue-bar[data-animated="false"] {
  height: 0 !important;
}

.revenue-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.revenue-bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Rate card flow */
.rate-flow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.rate-flow-box {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.rate-flow-arrow {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Transparency cards */
.transparency-pair {
  display: flex;
  gap: 12px;
}

.transparency-card {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px;
  font-size: 12px;
}

.transparency-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.transparency-card .inv-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 11px;
}

.transparency-card .inv-line span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.event-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 11px;
  color: var(--text-secondary);
}

.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Forecast SVG chart */
.forecast-chart-wrap {
  position: relative;
  padding: 8px 0;
}

/* FTE calculator */
.fte-calc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', monospace;
}

.fte-calc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-out);
}

.fte-calc-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.fte-calc-step .num {
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.fte-calc-step .op {
  font-weight: 600;
  color: var(--text-muted);
}

.fte-calc-result {
  background: linear-gradient(135deg, #338edc 0%, #2b7bc4 100%);
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s var(--ease-spring);
}

.fte-calc-result.visible {
  opacity: 1;
  transform: scale(1);
}

.fte-calc-result small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
}

/* Accuracy gauge */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.gauge-svg {
  width: 160px;
  height: 160px;
}

.gauge-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.gauge-text {
  font-size: 28px;
  font-weight: 800;
  fill: var(--text-primary);
  text-anchor: middle;
  dominant-baseline: middle;
}

.gauge-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Intraday bars */
.intraday-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 0 4px;
}

.intraday-pair {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.intraday-pair-bars {
  display: flex;
  gap: 2px;
  width: 100%;
  align-items: flex-end;
  height: 80px;
}

.intraday-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}

.intraday-bar.expected { background: #338edc; }
.intraday-bar.actual { background: #10B981; }

.intraday-time {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

.intraday-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 10px;
  color: var(--text-muted);
  justify-content: center;
}

.intraday-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.intraday-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Fragment label */
.fragment-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.fragment-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fragment-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green { background: #10B981; }
.status-dot.amber { background: #F59E0B; }
.status-dot.red { background: #EF4444; }

/* Responsive floating fragments */
@media (max-width: 768px) {
  .floating-fragments-row {
    flex-direction: column;
  }

  .warehouse-connection {
    flex-direction: column;
    gap: 0;
  }

  .warehouse-sync-line {
    width: 3px;
    height: 40px;
    min-width: 3px;
    max-width: 3px;
    margin: 0;
    margin-left: -8px;
  }

  .transparency-pair {
    flex-direction: column;
  }

  .pick-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ============================================
     MOBILE MOCKUP SIMPLIFICATION
     ============================================ */

  /* Floating fragments: stack vertically, remove rotation */
  .floating-mockup,
  .carrier-mockup,
  .integ-mockup,
  .analytics-scene,
  .tracking-scene,
  .carrier-map-scene {
    min-height: auto !important;
  }

  .frag,
  .float-card,
  .country-node,
  .carrier-node {
    position: static !important;
    transform: none !important;
    margin-bottom: 12px;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Warehouse maps: hide complex versions, show stats */
  .warehouse-floor,
  .wh-floor-plan,
  .warehouse-map-complex {
    display: none;
  }

  /* Feature image: show mockup first on mobile */
  .feature-image {
    order: -1;
  }

  /* Bento grid: single column */
  .ops-bento {
    grid-template-columns: 1fr !important;
  }
  .ops-bento-wide,
  .ops-bento-full {
    grid-column: span 1 !important;
  }

  /* Foundation split: single column */
  .foundation-split {
    grid-template-columns: 1fr !important;
  }

  /* Browser frames: hide titlebar on mobile */
  .browser-topbar,
  .browser-frame .browser-topbar {
    display: none;
  }

  /* Sidebar in mockups: hide on mobile */
  .wf-sidebar {
    display: none !important;
  }
  .wf-app-layout {
    flex-direction: column !important;
  }

  /* Hero float cards */
  .hero-float-cards {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
  }
  .hero-float-card {
    position: static !important;
    transform: none !important;
    animation: none !important;
  }

  /* Ecosystem hub */
  .eco-hub-top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .eco-hub-bottom {
    margin-top: 24px;
  }
  .eco-lines,
  .eco-badge {
    display: none !important;
  }

  /* Testimonial */
  .testi-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .testi-stats {
    justify-content: center;
  }

  /* Flow diagrams: simplify */
  .wf-flow,
  .flow-diagram {
    flex-direction: column !important;
    align-items: center !important;
  }
  .flow-arrow-h {
    transform: rotate(90deg);
    margin: 8px 0 !important;
  }

  /* KPI circles: smaller */
  .kpi-circle svg {
    width: 100px !important;
    height: 100px !important;
  }

  /* Phone mockups: scale down */
  .phone-frame {
    transform: scale(0.85) !important;
    margin: 0 auto;
  }

  /* Kanban boards: horizontal scroll */
  .kanban-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  /* Chat mockups: narrower */
  .chat-card,
  .chat-mockup {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Reduce shadows on mobile for performance */
  .frag,
  .float-card {
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
  }

  /* Reduce animations on mobile */
  .fade-up {
    transform: translateY(20px) !important;
  }

  /* Digital Twin section on mobile: simplify */
  [style*="picker1"],
  [style*="picker2"],
  [style*="picker3"],
  [style*="picker4"] {
    animation: none !important;
  }
}

/* ============================================
   MOBILE OVERHAUL v2 — Prompt #30
   Definitive fixes for all mobile issues
   ============================================ */
@media (max-width: 768px) {

  /* ---- GLOBAL: No horizontal overflow ---- */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  * { max-width: 100vw; }

  /* ---- SECTION PADDING ---- */
  section { padding: 40px 16px !important; }

  /* ---- TYPOGRAPHY ---- */
  h1 { font-size: 26px !important; line-height: 1.25 !important; word-break: break-word; }
  h2 { font-size: 22px !important; line-height: 1.3 !important; }
  h3 { font-size: 17px !important; }
  .page-hero h1, .hero h1 { font-size: 26px !important; line-height: 1.25 !important; }
  .page-hero p, .hero p { font-size: 15px !important; line-height: 1.6; }

  /* Old desktop nav: hidden on mobile (mobile-menu overlay handles navigation) */

  /* ---- GRIDS → 1 COLUMN ---- */
  /* Override inline grid styles on CONTENT containers (not inside mockups) */
  /* Content-level grids: direct children of .container or section */
  .container > [style*="grid-template-columns:repeat(3"],
  .container > [style*="grid-template-columns: repeat(3"],
  section > .container > div > [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: 2fr"],
  [style*="grid-template-columns:2fr"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap:32px"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:32px"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap:64px"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:64px"] {
    grid-template-columns: 1fr !important;
  }

  /* ---- CARD TEXT: NEVER truncated ---- */
  .ops-bento-card, .feature-card, .bento-card, .module-card, .value-card {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    overflow: visible !important;
  }
  .ops-bento-card h3, .ops-bento-card p, .ops-bento-card .obc-title, .ops-bento-card .obc-desc,
  .feature-card h3, .feature-card p, .bento-card h3, .bento-card p,
  .module-card h3, .module-card p, .value-card h3, .value-card p,
  .obc-title, .obc-desc {
    overflow: visible !important; text-overflow: unset !important;
    white-space: normal !important; word-break: break-word !important;
    font-size: revert !important;
  }
  /* Override the ops-bento-card overflow:hidden that clips content */
  .ops-bento-card { overflow: visible !important; }

  /* ---- HIDE COMPLEX MOCKUPS ON MOBILE ---- */
  /* Browser-frame mockups with sidebars — keep only the main content area */
  .wf-sidebar { display: none !important; }
  .wf-app-layout { min-height: 280px !important; }

  /* Inline-styled 6-column grids inside mockups — make them scroll or simplify */
  [style*="grid-template-columns:20px 1fr"],
  [style*="grid-template-columns: 20px 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    font-size: 9px !important;
  }

  /* Hide complex animated elements that don't render on mobile */
  [style*="animation:picker"],
  [style*="animation: picker"] {
    display: none !important;
  }

  /* ---- SVG FIX: No black triangles ---- */
  svg { max-width: 100% !important; height: auto; overflow: visible !important; }
  /* Prevent SVG markers from rendering as black blobs */
  svg marker polygon, svg marker path { fill: inherit !important; }
  /* Feature image SVGs */
  .feature-image svg, .floating-mockup svg, .ui-fragments svg, .hero-mockup svg {
    max-width: 100%; height: auto; overflow: visible;
  }

  /* ---- FLOATING FRAGMENTS → STACKED ---- */
  .ui-fragments {
    position: relative !important; height: auto !important; min-height: auto !important;
    display: flex; flex-direction: column; gap: 12px;
  }
  .ui-fragment {
    position: static !important; transform: none !important;
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
  }
  .floating-mockup { min-height: auto !important; height: auto !important; }
  .floating-mockup .frag, .floating-mockup .float-card, .floating-fragment {
    position: static !important; transform: none !important;
    width: 100% !important; max-width: 100% !important; margin-bottom: 12px;
  }
  .floating-fragment.tilted, .floating-fragment.tilted-right { transform: none !important; }

  /* Scene containers */
  .analytics-scene, .carrier-map-scene, .tracking-scene, .heatmap-scene,
  .absence-scene, .wh-scene, .cong-scene {
    min-height: auto !important; height: auto !important; overflow: visible !important;
  }
  .country-node, .carrier-node {
    position: static !important; transform: none !important; width: 100% !important; margin-bottom: 8px;
  }

  /* Workflow */
  .wf-flow { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .wf-connector-line { width: 2px !important; height: 24px !important; }
  .wf-node, .frag.wf-node { width: 100% !important; max-width: 100% !important; }

  /* ---- ECOSYSTEM ---- */
  .eco-hub-top { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  .eco-node { width: 100% !important; }
  .eco-node-tags { justify-content: flex-start !important; }
  .eco-hub-bottom { margin-top: 16px !important; }

  /* ---- STATS 2x2 ---- */
  .floating-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; margin-top: -30px !important; }
  .floating-stat-card { padding: 16px !important; }
  .floating-stat-card .stat-number, .stat-number { font-size: 1.75rem !important; }
  .stat-desc { font-size: 0.75rem !important; }

  /* ---- TWO COLUMN → ONE ---- */
  .feature-grid, .transparency-pair, .warehouse-connection, .split-section, .two-column {
    grid-template-columns: 1fr !important; flex-direction: column !important;
  }

  /* ---- VALUES/TIMELINE ---- */
  .values-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .timeline-content { padding: 16px 20px !important; }
  .timeline-year { font-size: 1.5rem !important; }
  .timeline-desc { font-size: 0.85rem !important; }

  /* ---- FOOTER ---- */
  .footer-brand { grid-column: 1 / -1; }

  /* ---- CTA ---- */
  .cta-box { padding: 48px 20px !important; border-radius: 16px !important; }
  .cta-box h2 { font-size: 1.5rem !important; }

  /* ---- MISC ---- */
  .contact-grid { gap: 32px !important; }
  .testimonial-card, [class*="testimonial"] { padding: 24px !important; }
  .testimonial-quote { font-size: 1.05rem !important; line-height: 1.65 !important; }
  .pick-steps { gap: 8px !important; }
  .pick-step { flex-direction: column; text-align: center; min-width: 0 !important; }
  .foundation-card { width: 100% !important; }
  .api-fragment-wrapper, .api-fragment { max-width: 100% !important; overflow-x: auto !important; }
  .ctrl-mockup-wrap { overflow-x: auto !important; max-width: 100% !important; }
  .kanban-board { -webkit-overflow-scrolling: touch; overflow-x: auto; }
  .hero-mockup { max-width: 100% !important; overflow: hidden; }
  .section-label { font-size: 0.7rem !important; }
  .problem-card { width: 100% !important; }

  /* ---- COMPLEX MOCKUPS: Hide on mobile ---- */
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  /* Warehouse floor plans: too complex for mobile */
  .wh-floor, .heatmap-floor, .reloc-floor, .route-floor, .cong-floor {
    height: 200px !important;
    overflow: hidden !important;
  }

  /* SVGs without viewBox that have position:absolute inside mockups */
  [style*="min-height:380px"] svg:not([viewBox]),
  [style*="min-height: 380px"] svg:not([viewBox]),
  [style*="min-height:480px"] svg:not([viewBox]) {
    display: none !important;
  }

  /* Animated picker dots — hide on mobile */
  [style*="animation:picker"], [style*="animation: picker"] {
    display: none !important;
  }

  /* ---- IMAGES: Never wider than viewport ---- */
  img, picture, video, canvas, iframe { max-width: 100% !important; height: auto !important; }

  /* ---- CTA BUTTONS: Full width, stacked ---- */
  .hero-actions, .cta-actions { flex-direction: column !important; gap: 10px !important; }
  .hero-actions .btn, .cta-actions .btn { width: 100% !important; justify-content: center !important; }

  /* ---- RTL (Arabic) ---- */
  [dir="rtl"] .nav-links { padding: 24px 20px !important; }
  [dir="rtl"] .nav-dropdown-item { padding: 12px 20px 12px 12px !important; }
}

/* Desktop-only / Mobile-only toggles */
.mobile-only { display: none; }
@media (min-width: 769px) {
  .desktop-only { display: block; }
  .mobile-only { display: none !important; }
}

/* ---- EXTRA SMALL (< 400px) ---- */
@media (max-width: 400px) {
  .floating-stats { grid-template-columns: 1fr !important; }
  .eco-node-tags span { font-size: 0.65rem !important; padding: 3px 8px !important; }
  .nav-cta { font-size: 0.875rem !important; }
  .cta-box { padding: 36px 16px !important; }
  h1 { font-size: 22px !important; }
  h2 { font-size: 19px !important; }
}

/* ============================================
   Language Switcher
   ============================================ */
.nav-lang { position: relative; }
.nav-lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
}
.nav-lang-trigger:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-lang-trigger svg:last-child { width: 10px; height: 10px; }
.nav-lang-flag { border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.nav-lang-menu {
  width: 180px !important;
  grid-template-columns: 1fr !important;
  padding: 8px !important;
}
.nav-lang-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a1a2e;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-lang-item:hover { background: #F0F4FF; }
.nav-lang-item.active { font-weight: 700; color: #338edc; }
.nav-lang-item svg { border-radius: 50%; overflow: hidden; flex-shrink: 0; }
