/* ==========================================================================
   MYLINKS.VN B2B ENTERPRISE PORTAL — MASTER DESIGN SYSTEM v3.2 (LUXURY UI/UX)
   Google Fonts Be Vietnam Pro & JetBrains Mono • Metallic Gradients • Ambient 3D
   ========================================================================== */

:root {
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Rule 44: 4-Tier Border-Radius Tokens */
  --radius-2xl: 20px;      /* Tier 1: Outer Containers / Cockpit Shells */
  --radius-xl: 16px;       /* Tier 2: Cards / Feature Pods / Pricing / Simulator */
  --radius-md: 10px;       /* Tier 3: Form Inputs / Metric Boxes */
  --radius-pill: 9999px;   /* Tier 4: Pill Tags / Badges / Buttons */
}

/* Default Theme: Luxury Dark Obsidian 2.0 (WCAG AA/AAA High-Contrast Tuned) */
:root,
html[data-theme="dark"],
body[data-theme="dark"] {
  --bg-canvas: #070A10;
  --bg-surface: #0E131F;
  --bg-elevated: #161D2F;
  --bg-card: rgba(17, 23, 37, 0.90);
  --bg-card-hover: rgba(24, 32, 50, 0.98);
  --bg-input: rgba(10, 14, 24, 0.96);
  --text-primary: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-highlight: rgba(251, 191, 36, 0.45);
  --specular-top: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(7, 10, 16, 0.90);
  --accent-gold: #FBBF24;
  --accent-gold-soft: rgba(251, 191, 36, 0.14);
  --accent-emerald: #34D399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.14);
  --accent-blue: #60A5FA;
  --accent-blue-soft: rgba(96, 165, 250, 0.15);
  --accent-crimson: #F87171;
  --accent-crimson-soft: rgba(248, 113, 113, 0.15);
  --gradient-gold-text: linear-gradient(135deg, #FDE68A 0%, #FBBF24 55%, #F59E0B 100%);
  --gradient-emerald-text: linear-gradient(135deg, #A7F3D0 0%, #34D399 55%, #10B981 100%);
  --ambient-hero-bg:
    radial-gradient(ellipse 65% 55% at 18% 12%, rgba(245, 158, 11, 0.13), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(16, 185, 129, 0.11), transparent 70%);
  --shadow-card: 0 16px 38px -6px rgba(0, 0, 0, 0.48), 0 4px 14px -2px rgba(0, 0, 0, 0.32);
  --table-win-bg: rgba(52, 211, 153, 0.07);
}

/* Light Theme: Luxury Light Enterprise (Warm Ivory & WCAG AA/AAA High Contrast) */
html[data-theme="light"],
body[data-theme="light"] {
  --bg-canvas: #F4F6FA;
  --bg-surface: #EAEFF6;
  --bg-elevated: #DCE4F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FBFDFF;
  --bg-input: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #1E293B;
  --text-muted: #475569;
  --border-subtle: rgba(15, 23, 42, 0.11);
  --border-highlight: rgba(146, 64, 14, 0.40);
  --specular-top: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --nav-bg: rgba(244, 246, 250, 0.94);
  --accent-gold: #92400E;
  --accent-gold-soft: rgba(180, 83, 9, 0.11);
  --accent-emerald: #065F46;
  --accent-emerald-soft: rgba(6, 95, 70, 0.10);
  --accent-blue: #1E40AF;
  --accent-blue-soft: rgba(30, 64, 175, 0.10);
  --accent-crimson: #991B1B;
  --accent-crimson-soft: rgba(153, 27, 27, 0.10);
  --gradient-gold-text: linear-gradient(135deg, #B45309 0%, #92400E 55%, #78350F 100%);
  --gradient-emerald-text: linear-gradient(135deg, #047857 0%, #065F46 55%, #064E3B 100%);
  --ambient-hero-bg:
    radial-gradient(ellipse 65% 55% at 18% 12%, rgba(217, 119, 6, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(5, 150, 105, 0.07), transparent 70%);
  --shadow-card: 0 12px 32px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --table-win-bg: rgba(6, 95, 70, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

ul {
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
}

.is-hidden {
  display: none !important;
}

.font-mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-right-num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Vector Icons & Feature Icon Boxes */
.icon-xs {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-md {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-brand {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

.icon-emerald {
  color: var(--accent-emerald);
}

.icon-gold {
  color: var(--accent-gold);
}

.icon-blue {
  color: var(--accent-blue);
}

.icon-crimson {
  color: var(--accent-crimson);
}

.card-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--specular-top);
}

.icon-box-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-highlight);
}

.icon-box-emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.icon-box-blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.icon-box-crimson {
  background: var(--accent-crimson-soft);
  color: var(--accent-crimson);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Rule 22 & Rule 44: Buttons & Badges Zero-Wrap */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  color: #090D16;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38);
}

.btn-secondary {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.btn-secondary:hover {
  background: var(--accent-emerald);
  color: #FFFFFF;
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--specular-top);
}

.btn-ghost:hover {
  border-color: var(--border-highlight);
  background: var(--bg-elevated);
}

.btn-danger {
  background: var(--accent-crimson-soft);
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.btn-danger:hover {
  background: var(--accent-crimson);
  color: #FFFFFF;
}

.btn-full {
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.badge-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-highlight);
}

.badge-emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-crimson {
  background: var(--accent-crimson-soft);
  color: var(--accent-crimson);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Announcement Bar */
.top-announcement-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announcement-text {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.quick-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.quick-pill-link:hover {
  border-color: var(--border-highlight);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-emerald {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-dot-gold {
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--specular-top);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-dot {
  color: var(--accent-gold);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.nav-link-showcase {
  color: var(--accent-gold);
  font-weight: 700;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 390px;
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.dropdown-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  padding: 4px 12px 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--bg-elevated);
  border-color: var(--border-highlight);
}

.dropdown-item-highlight {
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 12px;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dropdown-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Header Actions & Theme Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn-theme-toggle:hover {
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.icon-sun,
.icon-moon {
  width: 19px;
  height: 19px;
}

html[data-theme="dark"] .icon-moon,
body[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun,
body[data-theme="light"] .icon-sun {
  display: none;
}

/* Mobile Toggle & Panel */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-menu,
.icon-close {
  width: 22px;
  height: 22px;
}

.mobile-toggle .icon-close {
  display: none;
}

.mobile-toggle.is-active .icon-menu {
  display: none;
}

.mobile-toggle.is-active .icon-close {
  display: block;
}

.mobile-nav-panel {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0 24px;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.92rem;
}

.mobile-nav-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-quick-pills {
  display: flex;
  gap: 10px;
}

/* Hero Section with Architectural Grid & Split Executive Cockpit */
.hero-section {
  padding: 56px 0 60px;
  background-image:
    var(--ambient-hero-bg),
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-cockpit-shell {
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 44px;
  position: relative;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-col-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--specular-top);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero-title {
  font-size: clamp(1.88rem, 2.85vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.024em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* Metallic Multi-Stop Gradient Typography */
.text-gradient-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-gold);
}

.text-gradient-emerald {
  background: var(--gradient-emerald-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-emerald);
}

.hero-lead {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust-check {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Right Column: Live Executive Command Preview Window */
.hero-col-visual {
  width: 100%;
}

.hero-preview-window {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-card), var(--specular-top);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.win-dot-red {
  background: var(--accent-crimson);
}

.win-dot-amber {
  background: var(--accent-gold);
}

.win-dot-green {
  background: var(--accent-emerald);
}

.preview-window-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.preview-window-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-svg-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0B111E;
  line-height: 0;
}

.preview-svg-img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-module-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-module-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-module-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.preview-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-mini-stat {
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-mini-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.preview-mini-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-metric-box {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.stat-metric-box:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.48rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Section Layout */
.section-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 860px;
  margin-bottom: 38px;
}

.section-title {
  font-size: clamp(1.52rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.018em;
  margin: 12px 0;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Grids & Cards (Tier 2 Radius: 16px + Top Accent Borders) */
.grid-2col,
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
}

.card-accent-gold {
  border-top: 3px solid var(--accent-gold);
}

.card-accent-emerald {
  border-top: 3px solid var(--accent-emerald);
}

.card-accent-blue {
  border-top: 3px solid var(--accent-blue);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.feature-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.feature-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-bullet-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.72rem;
  color: var(--accent-gold);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Card KPI Strip (2-Second C-Level Visual Scanning) */
.card-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0;
}

.kpi-chip {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-chip-val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.kpi-chip-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Bento Grid for Trust & Legal Compliance Proof */
.bento-grid-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

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

/* Bottom High-Conversion Executive CTA Banner */
.cta-final-shell {
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  background-image: var(--ambient-hero-bg);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 42px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-final-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-final-title {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.cta-final-desc {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cta-final-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cta-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cta-final-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* 4-Pillar Canvas Banner */
.canvas-4pillar-shell {
  border-radius: var(--radius-2xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 32px;
  margin-bottom: 38px;
}

.canvas-pillar-box {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.canvas-pillar-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.canvas-pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.canvas-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.canvas-pillar-text {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* Interactive Cockpit Simulators (Tier 1 Shell: 20px, Tier 2 Window: 16px) */
.simulator-cockpit {
  border-radius: var(--radius-2xl);
  background: var(--bg-surface);
  background-image: var(--ambient-hero-bg);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-card), var(--specular-top);
  padding: 32px;
}

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

.sim-pod {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.sim-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-log-box {
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  min-height: 96px;
}

.sim-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Data Table (Rule 22 & Rule 43 — High Contrast Executive Comparison) */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card), var(--specular-top);
}

.enterprise-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.enterprise-table th,
.enterprise-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  line-height: 1.55;
}

.enterprise-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.enterprise-table td:nth-child(3) {
  background: var(--table-win-bg);
  font-weight: 600;
  color: var(--text-primary);
}

.enterprise-table td.text-right-num {
  font-weight: 700;
  color: var(--accent-emerald);
}

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

.enterprise-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.enterprise-table tbody tr:hover {
  background: var(--bg-elevated);
}

/* FAQ Accordion with Smooth Chevron */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--specular-top);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item.is-open {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

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

.faq-item.is-open .faq-answer {
  display: block;
}

/* Slide-Over Consultation Drawer (Rule 37 & Rule 43) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
}

.slide-over-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 620px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  z-index: 210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  padding: 14px 22px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

.drawer-subtitle {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.btn-drawer-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.drawer-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

#consult-form.is-submitted .drawer-step-section {
  display: none;
}

.drawer-step-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-card.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.choice-checkbox {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent-gold);
  flex-shrink: 0;
}

.choice-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.choice-title {
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
}

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

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.req-star {
  color: var(--accent-crimson);
}

.field-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.field-error {
  font-size: 0.73rem;
  color: var(--accent-crimson);
  font-weight: 600;
  line-height: 1.25;
}

.hp-trap-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consult-direct-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.consult-success-box {
  border-radius: var(--radius-md);
  background: var(--accent-emerald-soft);
  border: 1px solid var(--accent-emerald);
  padding: 16px;
}

.success-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.success-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drawer-footer {
  padding: 12px 22px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 14px 0;
}

.footer-legal-shield {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--specular-top);
  padding: 14px;
}

.footer-legal-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-heading {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link,
.footer-list-static li,
.footer-list-check li,
.footer-contact-list li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-list-check li {
  position: relative;
  padding-left: 18px;
}

.footer-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--accent-emerald);
}

.footer-cta-box {
  margin-top: 14px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints (Tablet & Mobile <= 768px) */
@media (max-width: 1024px) {
  .hero-split-grid,
  .grid-3col,
  .grid-3,
  .bento-grid-trust,
  .simulator-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid-4,
  .grid-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 768px) {
  .mobile-hide,
  .announcement-links,
  .primary-nav,
  .header-portal-link,
  .header-actions .btn-open-consult,
  .brand-sub {
    display: none !important;
  }

  .container {
    padding: 0 14px;
    max-width: 100vw;
  }

  .top-announcement-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }

  .header-inner {
    height: 60px;
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .btn-theme-toggle,
  .mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 150;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  }

  /* Smart Mobile Content Compaction (Executive Mobile Mode) */
  .section-block {
    padding: 36px 0;
  }

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

  .hero-cockpit-shell,
  .simulator-cockpit,
  .canvas-4pillar-shell,
  .cta-final-shell {
    padding: 18px 16px;
  }

  .hero-split-grid,
  .grid-2col,
  .grid-2,
  .grid-3col,
  .grid-3,
  .stats-grid-4,
  .grid-4col,
  .bento-grid-trust,
  .preview-metric-row,
  .form-grid-2col,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

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

  .feature-card,
  .bento-card,
  .sim-pod,
  .stat-metric-box {
    padding: 18px 16px;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .card-top,
  .card-icon-row {
    min-width: 0;
    max-width: 100%;
  }

  .card-icon-box {
    width: 36px;
    height: 36px;
  }

  .pill-badge {
    font-size: 0.65rem;
    padding: 4px 9px;
    letter-spacing: 0.03em;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1 !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Compact long paragraphs & bullet lists on Mobile for 2-second C-level scanning */
  .hero-lead,
  .section-desc,
  .card-text {
    font-size: 0.88rem;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .feature-bullet-list {
    gap: 6px;
  }

  .feature-bullet-list li {
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Keep 3 KPI chips in a sleek 1-row bar on Mobile instead of tall vertical stack */
  .card-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .kpi-chip {
    padding: 8px 6px;
    min-width: 0;
  }

  .kpi-chip-val {
    font-size: 0.8rem;
  }

  .kpi-chip-lbl {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Compact 4-column enterprise tables into 3 fit-to-screen columns on Mobile */
  .enterprise-table {
    min-width: 0;
    width: 100%;
  }

  .enterprise-table th:nth-child(2),
  .enterprise-table td:nth-child(2) {
    display: none;
  }

  .enterprise-table th,
  .enterprise-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  /* Consultation Drawer Mobile Ergonomics: Compact + Smooth Touch Scrolling */
  .slide-over-drawer {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
  }

  .drawer-header {
    padding: 10px 16px;
  }

  .drawer-title {
    font-size: 0.98rem;
  }

  .drawer-subtitle,
  .choice-desc,
  .kbd-hint {
    display: none;
  }

  .drawer-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px;
    gap: 10px;
  }

  .choice-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .choice-card {
    padding: 7px 8px;
    min-width: 0;
  }

  .choice-title {
    font-size: 0.76rem;
  }

  .drawer-footer {
    padding: 10px 16px;
  }
}
