/* ============================================================================
   LOGEN SOLUTIONS — 2026 "OBSIDIAN SPATIAL GLASS" FLAGSHIP DESIGN SYSTEM
   Dark-First Precision Engineering Aesthetic + Crisp Architectural Light Mode
   ============================================================================ */

:root,
html[data-theme="dark"] {
  --bg: #040812;
  --bg-elev: #080f20;
  --bg-subtle: #0a1328;
  --bg-muted: rgba(148, 163, 184, 0.08);
  --surface: rgba(13, 22, 42, 0.72);
  --surface-solid: #0c1528;
  --surface-hover: rgba(20, 34, 64, 0.85);

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-glow: rgba(56, 189, 248, 0.55);

  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;

  /* 4-Pillar Luminous Accents (Option A — Full 4-Product Hue Wheel) */
  --cm-color: #a78bfa;
  --cm-deep: #6d28d9;
  --cm-soft: rgba(139, 92, 246, 0.16);
  --cd-color: #fbbf24;
  --cd-deep: #ea580c;
  --cd-soft: rgba(245, 158, 11, 0.15);
  --wp-color: #34d399;
  --wp-deep: #059669;
  --wp-soft: rgba(16, 185, 129, 0.15);
  --rb-color: #60a5fa;
  --rb-deep: #2563eb;
  --rb-soft: rgba(59, 130, 246, 0.16);

  --brand: #3b82f6;
  --brand-bright: #60a5fa;
  --brand-hover: #2563eb;
  --brand-soft: rgba(59, 130, 246, 0.16);

  /* Dynamic Active Hero Aura (mutated by JS on pillar switch!) */
  --aura-rgb: 139, 92, 246;
  --aura-2-rgb: 109, 40, 217;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.68);

  --nav-h: 72px;
  --max-w: 1280px;

  --font-display: 'Plus Jakarta Sans', 'Pretendard Variable', 'Pretendard', 'Inter', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-bg: rgba(4, 8, 18, 0.78);
  --grid-line: rgba(148, 163, 184, 0.055);
  --logo-tile-bg: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: rgba(15, 23, 42, 0.05);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-hover: #ffffff;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);
  --border-glow: rgba(37, 99, 235, 0.45);

  --ink: #091326;
  --ink-secondary: #334155;
  --ink-muted: #64748b;

  --cm-color: #6d28d9;
  --cm-deep: #4338ca;
  --cm-soft: rgba(109, 40, 217, 0.11);
  --cd-color: #ea580c;
  --cd-deep: #c2410c;
  --cd-soft: rgba(234, 88, 12, 0.11);
  --wp-color: #059669;
  --wp-deep: #15803d;
  --wp-soft: rgba(5, 150, 105, 0.1);
  --rb-color: #2563eb;
  --rb-deep: #1d4ed8;
  --rb-soft: rgba(37, 99, 235, 0.1);

  --brand: #2563eb;
  --brand-bright: #1d4ed8;
  --brand-hover: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.1);

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);

  --header-bg: rgba(248, 250, 252, 0.82);
  --grid-line: rgba(15, 23, 42, 0.045);
  --logo-tile-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

html[lang="ko"] {
  --font-display: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Inter', sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Inter', sans-serif;
}
html[lang="ja"] {
  --font-display: 'Inter', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}
html[lang="zh"] {
  --font-display: 'Inter', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.2;
  color: var(--ink);
  word-break: keep-all;
}

p { margin: 0; }

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

/* ============================================================================
   SCROLL REVEAL CHOREOGRAPHY
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   FLOATING FROSTED NAVIGATION BAR + COMMAND PALETTE TRIGGER
   ============================================================================ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 950;
}

.site-header {
  position: relative;
  z-index: 950;
  height: var(--nav-h);
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1460px) {
  .nav-link { padding: 7px 10px; font-size: 0.84rem; }
  .nav-actions { gap: 6px; }
  .cmd-trigger { padding: 0 9px; font-size: 0.78rem; }
  .nav-actions .btn-sm { padding: 8px 11px; font-size: 0.79rem; }
}

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

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.nav-brand-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand-title span {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .nav-brand-title span {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-brand-sub {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.nav-link {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.16s ease, background-color 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--ink); background: rgba(148, 163, 184, 0.1); }
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

/* ---- Solutions Mega-Dropdown ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-drop-caret {
  font-size: 0.62rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown:hover .nav-drop-caret,
.nav-dropdown.open .nav-drop-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-mega-bridge {
  position: absolute;
  top: 100%;
  left: -16px;
  transform: translateY(6px);
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.18s ease;
  z-index: 995;
}

.nav-dropdown:hover .nav-mega-bridge,
.nav-dropdown.open .nav-mega-bridge {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mega-panel {
  width: 570px;
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(10, 17, 32, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.68), 0 0 0 1px rgba(56, 189, 248, 0.08) inset;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

html[data-theme="light"] .nav-mega-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mega-col-side {
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.nav-mega-heading {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 10px 6px;
}

.nav-mega-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.nav-mega-item:hover,
.nav-mega-item:focus-visible {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.24);
  transform: translateX(2px);
}

html[data-theme="light"] .nav-mega-item:hover,
html[data-theme="light"] .nav-mega-item:focus-visible {
  background: #f1f5f9;
  border-color: rgba(37, 99, 235, 0.22);
}

.nav-mega-item.is-current {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(59, 130, 246, 0.42);
}

html[data-theme="light"] .nav-mega-item.is-current {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.32);
}

.nav-mega-item img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-mega-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.24;
}

.nav-mega-item strong {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-mega-item span {
  font-size: 0.74rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.nav-mega-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0 !important;
}

.nav-mega-ic.ic-blue { background: rgba(37, 99, 235, 0.16); color: #60a5fa; }
.nav-mega-ic.ic-emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.nav-mega-ic.ic-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.nav-mega-ic.ic-purple { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.nav-mega-ic.ic-red { background: rgba(239, 68, 68, 0.16); color: #f87171; }

html[data-theme="light"] .nav-mega-ic.ic-blue { background: #eff6ff; color: #2563eb; }
html[data-theme="light"] .nav-mega-ic.ic-emerald { background: #ecfdf5; color: #059669; }
html[data-theme="light"] .nav-mega-ic.ic-amber { background: #fffbeb; color: #d97706; }
html[data-theme="light"] .nav-mega-ic.ic-purple { background: #f5f3ff; color: #7c3aed; }
html[data-theme="light"] .nav-mega-ic.ic-red { background: #fef2f2; color: #dc2626; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cmd-trigger {
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.cmd-trigger:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface-hover);
}
.cmd-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.lang-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.lang-select:focus { border-color: var(--brand); }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface-hover);
}

.mobile-menu-btn { display: none; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 880;
  padding: 20px 20px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-nav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mobile-drawer-nav a {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
}
.mobile-drawer-nav a.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

/* ============================================================================
   BUTTONS, PILLS & LUMINOUS BORDERS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 0.96rem; border-radius: 13px; }

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--brand);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.36);
}

/* High-Contrast Brand Service Buttons (AAA/AA contrast in both Dark & Light Modes) */
.btn-cm {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.32);
}
.btn-cm:hover { box-shadow: 0 10px 28px rgba(109, 40, 217, 0.45); }
.btn-cd {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.32);
}
.btn-cd:hover { box-shadow: 0 10px 28px rgba(234, 88, 12, 0.45); }
.btn-wp {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.32);
}
.btn-wp:hover { box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45); }
.btn-rb {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
}
.btn-rb:hover { box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45); }

select option {
  background: var(--surface-solid);
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(var(--aura-rgb), 0.11);
  color: var(--cm-color);
  border: 1px solid rgba(var(--aura-rgb), 0.26);
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulseDot 2.2s ease-in-out infinite;
}

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

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

/* Cursor-tracking Luminous Bento Card */
.spotlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--card-rgb, 56, 189, 248), 0.14),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight-card:hover::after { opacity: 1; }
.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--card-rgb, 56, 189, 248), 0.42);
  box-shadow: var(--shadow-md);
}
.spotlight-card > * { position: relative; z-index: 1; }

/* ============================================================================
   FLAGSHIP HERO — LIVE INTERACTIVE 3D SPATIAL ENGINE + DYNAMIC AURA
   ============================================================================ */
.hero-flagship {
  position: relative;
  padding: 54px 0 68px;
  background: #040812;
  color: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Crisp Architectural Pearl Light-Mode Hero (keeps dark 3D display floating like a studio monitor) */
html[data-theme="light"] .hero-flagship {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 55%, #f1f5f9 100%);
  color: #091326;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .hero-flagship h1 { color: #091326; }
html[data-theme="light"] .hero-flagship .hero-lead { color: #334155; }
html[data-theme="light"] .hero-flagship .btn-ghost-light {
  background: #ffffff;
  color: #091326;
  border-color: rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .hero-flagship .btn-ghost-light:hover {
  background: #f1f5f9;
  border-color: #2563eb;
}
html[data-theme="light"] .hero-flagship .dock-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .hero-flagship .dock-pill-name { color: #091326; }
html[data-theme="light"] .hero-flagship .dock-pill-meta { color: #64748b; }
html[data-theme="light"] .hero-flagship .dock-pill.active-dock {
  background: #ffffff;
  border-color: rgba(var(--aura-rgb), 0.75);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

.hero-aura {
  position: absolute;
  inset: -10% -10% 0 -10%;
  background:
    radial-gradient(640px 460px at 74% 34%, rgba(var(--aura-rgb), 0.24), transparent 70%),
    radial-gradient(520px 420px at 18% 72%, rgba(var(--aura-2-rgb), 0.18), transparent 70%);
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  gap: 38px;
  align-items: center;
}

.hero-flagship h1 {
  margin-top: 18px;
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.026em;
  line-height: 1.24;
}

html[lang="ko"] .hero-flagship h1,
html[lang="ja"] .hero-flagship h1,
html[lang="zh"] .hero-flagship h1 {
  font-size: clamp(1.65rem, 2.35vw, 2.28rem);
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.hero-flagship h1 .hero-line {
  display: block;
  white-space: nowrap;
}

.hero-flagship h1 .grad-text {
  background: linear-gradient(95deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero-flagship h1 .grad-text {
  background: linear-gradient(95deg, #2563eb 0%, #4f46e5 52%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: #cbd5e1;
  max-width: 520px;
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pillar-dock {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: all 0.2s ease;
  cursor: pointer;
}
.dock-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.36);
  transform: translateY(-2px);
}
.dock-pill.active-dock {
  background: rgba(var(--aura-rgb), 0.13);
  border-color: rgba(var(--aura-rgb), 0.55);
  box-shadow: 0 0 24px rgba(var(--aura-rgb), 0.16);
}
.dock-pill img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.dock-pill-info { min-width: 0; display: flex; flex-direction: column; }
.dock-pill-name {
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-pill-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Interactive 3D Spatial Viewport Deck */
.spatial-deck {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(8, 15, 32, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.spatial-deck-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(4, 9, 20, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.spatial-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
}

.spatial-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.spatial-tab img { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; }
.spatial-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.spatial-tab.active {
  color: #ffffff;
  background: rgba(var(--aura-rgb), 0.18);
  border-color: rgba(var(--aura-rgb), 0.45);
}

.deck-mode-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.deck-mode-btn {
  padding: 5px 9px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.deck-mode-btn.active {
  background: #ffffff;
  color: #061124;
}

.spatial-viewport {
  position: relative;
  height: 430px;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--aura-rgb), 0.12), rgba(4, 8, 18, 0.96) 72%);
  overflow: hidden;
  user-select: none;
}

.spatial-viewport.webgl-studio {
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #eef5fc 68%, #dfe9f5 100%);
}

.webgl-hero-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.spatial-viewport .hud-top-left,
.spatial-viewport .hud-top-right,
.spatial-viewport .hud-orbit-hint,
.spatial-viewport .hud-bottom-actions {
  z-index: 4;
}

.spatial-viewport.webgl-studio .hud-orbit-hint {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.hud-bottom-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 6px;
}

.spatial-viewport .hud-bottom-actions .hud-replay-btn {
  position: static;
}

.spatial-viewport.webgl-studio .hud-replay-btn {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.spatial-viewport.webgl-studio .hud-replay-btn:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.spatial-viewport.webgl-studio .hud-replay-btn.playing {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Dedicated Product Detail Page Live WebGL2 PBR Studio Stage */
.sol-hero-frame.mode-3d {
  cursor: default;
}
.wgl-stage-layer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #eef5fc 68%, #dfe9f5 100%);
  overflow: hidden;
  user-select: none;
}
.wgl-canvas-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.wgl-topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.wgl-scene-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}
.wgl-scene-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.wgl-scene-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
.wgl-scene-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}
.wgl-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: auto;
}
.wgl-act-btn {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.wgl-act-btn:hover { background: #ffffff; border-color: #2563eb; color: #1d4ed8; }
.wgl-act-btn.playing { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.wgl-orbit-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.71rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.wgl-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.wgl-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}
.wgl-mode-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}
.wgl-mode-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}
.wgl-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
}
html[data-theme="light"] .wgl-live-badge { color: #059669; }
@media (max-width: 680px) {
  .wgl-stage-layer { min-height: 280px; }
  .spatial-viewport { height: 360px; }
}

.spatial-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.spatial-canvas:active { cursor: grabbing; }

.spatial-ui-layer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: zoom-in;
}
.spatial-ui-layer.active { display: flex; }
.spatial-ui-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating Telemetry HUD inside the 3D Canvas */
.hud-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4, 9, 20, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #e2e8f0;
  width: fit-content;
}
.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hud-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}
.hud-kpi-pill {
  padding: 7px 11px;
  border-radius: 11px;
  background: rgba(4, 9, 20, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
  text-align: right;
  pointer-events: none;
}
.hud-kpi-pill strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.hud-kpi-pill span {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.hud-orbit-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(4, 9, 20, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
}

.hud-replay-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(4, 9, 20, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}
.hud-replay-btn:hover {
  border-color: rgba(var(--aura-rgb), 0.75);
  background: rgba(var(--aura-rgb), 0.22);
}

.spatial-deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: rgba(4, 9, 20, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.deck-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}
.deck-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ============================================================================
   TELEMETRY METRICS + DUAL-TRACK ENTERPRISE MARQUEE
   ============================================================================ */
.metrics-band {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

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

.metric-item {
  padding: 8px 16px;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

.metric-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Infinite Smooth Dual-Track Logo Marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeLeft 38s linear infinite;
}
.marquee-track.reverse {
  margin-top: 14px;
  animation: marqueeRight 42s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

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

.client-pill {
  flex-shrink: 0;
  width: 158px;
  height: 64px;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--logo-tile-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.client-pill img {
  max-height: 34px;
  max-width: 118px;
  object-fit: contain;
  filter: grayscale(25%);
  transition: filter 0.2s ease;
}
.client-pill:hover img { filter: grayscale(0%); }

/* ============================================================================
   SECTIONS & BENTO SHOWCASE
   ============================================================================ */
.section { padding: 78px 0; position: relative; }
.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: linear-gradient(165deg, #050b19 0%, #09152c 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark .section-desc { color: #cbd5e1; }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.05vw, 1.98rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.24;
}
.section-desc {
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Flagship 4-Pillar Bento Showcase */
.bento-pillars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}

.bento-card.cm { --card-rgb: 139, 92, 246; --accent: var(--cm-color); --accent-soft: var(--cm-soft); }
.bento-card.cd { --card-rgb: 245, 158, 11; --accent: var(--cd-color); --accent-soft: var(--cd-soft); }
.bento-card.wp { --card-rgb: 16, 185, 129; --accent: var(--wp-color); --accent-soft: var(--wp-soft); }
.bento-card.rb { --card-rgb: 59, 130, 246; --accent: var(--rb-color); --accent-soft: var(--rb-soft); }

.bento-card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pillar-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pillar-id img { width: 48px; height: 48px; border-radius: 13px; }
.pillar-id h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.018em; }
.pillar-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.pillar-badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.pillar-tagline {
  margin-top: 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.pillar-desc {
  margin-top: 8px;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

/* Inline Multi-Screenshot Browser Mockup inside Bento Card */
.bento-preview {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elev);
}
.bento-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.shot-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.shot-pill {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shot-pill:hover { color: var(--ink); }
.shot-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(var(--card-rgb), 0.35);
}
.bento-preview-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  cursor: zoom-in;
  overflow: hidden;
}
.bento-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.bento-preview-img:hover img { transform: scale(1.03); }

.pillar-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--ink-secondary);
}
.pillar-bullets i { color: var(--accent); margin-top: 4px; font-size: 0.78rem; }

.pillar-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-pillar {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(var(--card-rgb), 0.25);
}
.bento-card.cm .btn-pillar { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bento-card.cd .btn-pillar { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #ffffff; }
.bento-card.wp .btn-pillar { background: linear-gradient(135deg, #10b981, #059669); }
.bento-card.rb .btn-pillar { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* ============================================================================
   INTERACTIVE BEFORE / AFTER 3D REALITY CURTAIN
   ============================================================================ */
.curtain-shell {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #060d1d;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.curtain-stage {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.curtain-layer {
  position: absolute;
  inset: 0;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.curtain-after {
  background:
    radial-gradient(520px 320px at 78% 45%, rgba(16, 185, 129, 0.2), transparent 72%),
    linear-gradient(135deg, #071429 0%, #091f38 100%);
  color: #f8fafc;
}

.curtain-before {
  background:
    radial-gradient(480px 300px at 26% 50%, rgba(239, 68, 68, 0.16), transparent 70%),
    linear-gradient(135deg, #140c16 0%, #1d121f 100%);
  color: #f8fafc;
  clip-path: inset(0 50% 0 0);
}

.curtain-col-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
}

.curtain-tag-bad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.curtain-tag-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8, #34d399);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  z-index: 5;
  pointer-events: none;
}

.curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #061124;
  border: 3px solid #38bdf8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 6;
  pointer-events: none;
}

.curtain-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 7;
}

/* ============================================================================
   INTERACTIVE 3D ROI & CARBON SAVINGS SIMULATOR
   ============================================================================ */
.roi-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.roi-control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}
.roi-control label strong {
  font-family: var(--font-mono);
  color: var(--cm-color);
  font-size: 0.96rem;
}

.roi-range {
  width: 100%;
  accent-color: #38bdf8;
  height: 6px;
  cursor: pointer;
}

.roi-pillar-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.roi-check-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.roi-check-pill:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.roi-output {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(155deg, #071329 0%, #0d2244 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-big-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.roi-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.roi-mini-stat {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.roi-mini-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #ffffff;
}
.roi-mini-stat span {
  font-size: 0.76rem;
  color: #94a3b8;
}

.fill-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 6px;
}
.fill-meter-inner {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  transition: width 0.35s ease;
}

/* ============================================================================
   INTERACTIVE END-TO-END SUPPLY CHAIN TOPOLOGY MAP
   ============================================================================ */
.sc-map-shell {
  margin-bottom: 26px;
  border-radius: var(--radius-xl);
  background: rgba(6, 13, 28, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sc-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(4, 9, 20, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sc-map-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sc-filter-btn img { width: 15px; height: 15px; border-radius: 4px; }
.sc-filter-btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.sc-filter-btn.active {
  background: rgba(59, 130, 246, 0.24);
  border-color: rgba(96, 165, 250, 0.65);
  color: #ffffff;
}

.sc-svg-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 16px 18px 12px;
  background:
    radial-gradient(620px 280px at 50% 45%, rgba(37, 99, 235, 0.1), transparent 72%),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.sc-diagram-svg {
  display: block;
  width: 100%;
  min-width: 960px;
  height: auto;
  font-family: var(--font-body);
}
.sc-diagram-svg text {
  font-family: var(--font-body);
}

.sc-node {
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.sc-node:hover { filter: brightness(1.1); }
.sc-edge {
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}

.sc-flow-anim {
  stroke-dasharray: 6 6;
  animation: scDashFlow 18s linear infinite;
}
.sc-flow-rev {
  stroke-dasharray: 5 6;
  animation: scDashRev 22s linear infinite;
}
@keyframes scDashFlow {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}
@keyframes scDashRev {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 240; }
}

.sc-map-shell.has-focus .sc-node.dimmed,
.sc-map-shell.has-focus .sc-edge.dimmed {
  opacity: 0.16;
}
.sc-map-shell.has-focus .sc-node.active-node {
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.32));
}
.sc-map-shell.has-focus .sc-edge.highlighted {
  opacity: 1;
}
.sc-map-shell.has-focus .sc-edge.highlighted .sc-edge-path {
  stroke-width: 2.8;
}

.sc-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(6, 13, 28, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.74rem;
  color: #94a3b8;
}
.sc-legend-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.sc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sc-legend-swatch {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.sc-legend-line {
  width: 22px;
  height: 0;
  border-top: 2px dashed #38bdf8;
  display: inline-block;
}
.sc-legend-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

.sc-detail-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 20px;
  background: rgba(4, 9, 20, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.sc-detail-cell {
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.sc-detail-cell span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7dd3fc;
  margin-bottom: 4px;
}
.sc-detail-cell p {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .sc-detail-bar { grid-template-columns: 1fr; }
}

/* ============================================================================
   PIPELINE, INFO CARDS, TESTIMONIALS, SUBPAGES, FORMS, FOOTER
   ============================================================================ */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pipeline-step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pipeline-step:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}
.pipeline-num {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7dd3fc;
  text-transform: uppercase;
}
.pipeline-head { display: flex; align-items: center; gap: 11px; }
.pipeline-head img { width: 34px; height: 34px; border-radius: 9px; }
.pipeline-step h3 { font-size: 1.05rem; color: #ffffff; }
.pipeline-step p { font-size: 0.87rem; color: #cbd5e1; }
.pipeline-out {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.24);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #6ee7b7;
}

.engine-core-bar {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.engine-core-bar strong { font-family: var(--font-display); font-size: 1.02rem; color: #ffffff; }
.engine-core-bar span { font-size: 0.88rem; color: #cbd5e1; }

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

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.info-card h3 { font-size: 1.14rem; }
.info-card p { font-size: 0.91rem; color: var(--ink-muted); }

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-quote { font-size: 0.98rem; line-height: 1.75; color: var(--ink-secondary); }
.testimonial-author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.testimonial-author strong { display: block; font-size: 0.96rem; color: var(--ink); }
.testimonial-author span { font-size: 0.82rem; color: var(--ink-muted); }
.testimonial-stat {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--wp-color);
  background: var(--wp-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

.page-hero {
  position: relative;
  background:
    radial-gradient(600px 320px at 82% 20%, rgba(56, 189, 248, 0.16), transparent 70%),
    linear-gradient(160deg, #040812 0%, #09162e 65%, #0c2044 100%);
  color: #ffffff;
  padding: 52px 0 46px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.34);
}
.page-hero h1 { margin-top: 14px; font-size: clamp(1.65rem, 2.35vw, 2.18rem); font-weight: 700; line-height: 1.22; color: #ffffff; }
.page-hero p { margin-top: 12px; max-width: 720px; font-size: 0.96rem; line-height: 1.7; color: #cbd5e1; }

/* Crisp Pearl Light-Mode Subpage Hero (Fixes contrast on all subpages!) */
html[data-theme="light"] .page-hero {
  background:
    radial-gradient(560px 320px at 85% 20%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(160deg, #f8fafc 0%, #eff6ff 58%, #f1f5f9 100%);
  color: #091326;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .page-hero::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}
html[data-theme="light"] .page-hero .eyebrow {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}
html[data-theme="light"] .page-hero h1 { color: #091326; }
html[data-theme="light"] .page-hero p { color: #334155; }
html[data-theme="light"] .page-hero .btn-ghost-light {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .page-hero .btn-ghost-light:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* Sticky Solutions Quick-Jump Bar */
.solutions-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 600;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.solutions-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.solutions-subnav-inner::-webkit-scrollbar { display: none; }
.subnav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.16s ease;
}
.subnav-pill img { width: 17px; height: 17px; border-radius: 4px; }
.subnav-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.subnav-pill.subnav-accent {
  background: var(--brand-soft);
  color: var(--brand-bright);
  border-color: rgba(59, 130, 246, 0.32);
}

/* Elevated High-Visibility Solution Deep-Dive Panels */
.solutions-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.solution-panel {
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 74px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.14fr);
  gap: 36px;
  align-items: center;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.solution-panel:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.solution-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sol-grad, linear-gradient(90deg, #3b82f6, #06b6d4));
}
.solution-panel.cm { --sol-accent: var(--cm-color); --sol-soft: var(--cm-soft); --sol-grad: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.solution-panel.cd { --sol-accent: var(--cd-color); --sol-soft: var(--cd-soft); --sol-grad: linear-gradient(90deg, #f59e0b, #ea580c); }
.solution-panel.wp { --sol-accent: var(--wp-color); --sol-soft: var(--wp-soft); --sol-grad: linear-gradient(90deg, #10b981, #059669); }
.solution-panel.rb { --sol-accent: var(--rb-color); --sol-soft: var(--rb-soft); --sol-grad: linear-gradient(90deg, #3b82f6, #2563eb); }

.sol-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sol-header-row img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.sol-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--sol-soft);
  color: var(--sol-accent);
  margin-bottom: 4px;
}
.sol-title {
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.sol-domain-line {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sol-accent);
}

.sol-kpi-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sol-kpi-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}
.sol-kpi-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.sol-kpi-box span {
  display: block;
  margin-top: 2px;
  font-size: 0.73rem;
  color: var(--ink-muted);
}

/* Interactive High-Clarity Media Stage on Solutions Page */
.sol-media-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sol-hero-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}
.sol-hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}
.sol-hero-frame:hover img { transform: scale(1.02); }
.sol-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.sol-hero-bar .sol-zoom-hint {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sol-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sol-thumb-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sol-thumb-btn {
  padding: 0;
  border-radius: 11px;
  border: 2px solid var(--border);
  background: var(--surface-solid);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.sol-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.sol-thumb-btn.active {
  border-color: var(--sol-accent, var(--brand));
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22);
}
.sol-thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sol-thumb-btn span {
  display: block;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--border);
}
.sol-thumb-btn.active span {
  color: var(--ink);
}

.product-deep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.product-deep:last-child { border-bottom: none; }
.product-deep.reverse .product-deep-media { order: -1; }

.shot-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot-gallery-grid .shot-primary { grid-column: 1 / -1; }
.shot-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-solid);
  cursor: zoom-in;
}
.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}
.shot-card:hover img { transform: scale(1.03); }
.shot-cap {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.suite-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.suite-table th, .suite-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-secondary);
}
.suite-table td strong { color: var(--ink); }
.suite-table thead th {
  background: var(--bg-muted);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.suite-table tbody tr { transition: background-color 0.15s ease; }
.suite-table tbody tr:hover { background: var(--bg-muted); }
.suite-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================================
   DEDICATED PRODUCT DETAIL PAGES (cubemaster / cubedesigner / warehouseplanner / routebuilder)
   ============================================================================ */
.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 14px;
}
.breadcrumb-nav a { color: #cbd5e1; transition: color 0.15s ease; }
.breadcrumb-nav a:hover { color: #ffffff; text-decoration: underline; }
.breadcrumb-nav .bc-sep { opacity: 0.5; font-size: 0.72rem; }
.breadcrumb-nav .bc-cur { color: #7dd3fc; font-weight: 600; }

html[data-theme="light"] .breadcrumb-nav { color: #64748b; }
html[data-theme="light"] .breadcrumb-nav a { color: #475569; }
html[data-theme="light"] .breadcrumb-nav a:hover { color: #1d4ed8; }
html[data-theme="light"] .breadcrumb-nav .bc-cur { color: #1d4ed8; }

.pd-hero {
  padding: 46px 0 56px;
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.12fr);
  gap: 38px;
  align-items: center;
}
.pd-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pd-brand-row img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pd-domain-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #7dd3fc;
}
html[data-theme="light"] .pd-domain-chip { color: #1d4ed8; }

.pd-metrics-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pd-metric-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.pd-metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: #ffffff;
}
.pd-metric-card span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: #94a3b8;
}
html[data-theme="light"] .pd-metric-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .pd-metric-card strong { color: #091326; }
html[data-theme="light"] .pd-metric-card span { color: #64748b; }

.pd-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pd-spec-row {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pd-spec-row dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.pd-spec-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.pd-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pd-connect-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pd-connect-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pd-connect-card .pd-conn-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-connect-card .pd-conn-head img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}
.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary {
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-bright);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pd-spec-list, .pd-metrics-bar { grid-template-columns: 1fr; }
}

/* ============================================================================
   INDUSTRIES & CASE STUDIES SEO PAGES
   ============================================================================ */
[hidden] { display: none !important; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-pill img { width: 16px; height: 16px; border-radius: 4px; }
.filter-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.filter-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.industry-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ind-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ind-kpi-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}
html[data-theme="light"] .ind-kpi-badge {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}
.ind-thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.ind-thumb-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ind-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.ind-stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.ind-stack-chip:hover {
  border-color: var(--brand);
  color: var(--brand-bright);
}
.ind-stack-chip img { width: 16px; height: 16px; border-radius: 4px; }

.case-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.case-client-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.case-logo-pill {
  height: 36px;
  padding: 5px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: inline-flex;
  align-items: center;
}
.case-logo-pill img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
}
.case-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
html[data-theme="light"] .case-verified-tag {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.1);
}
.case-kpi-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.case-kpi {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}
.case-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.case-kpi span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.case-quote-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--bg-muted);
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.case-quote-box cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 1024px) {
  .industry-grid, .case-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .case-card, .industry-card { padding: 20px; }
  .case-kpi-row { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--brand));
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.price-amount small { font-size: 0.86rem; font-weight: 500; color: var(--ink-muted); }

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: var(--ink-secondary); }
.check-list i { color: var(--wp-color); margin-top: 4px; font-size: 0.78rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-secondary); }
.form-control {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 0.94rem;
  outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-status {
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-status[hidden] { display: none; }
.form-status i { margin-top: 3px; flex-shrink: 0; }
.form-status.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #10b981;
}
html[data-theme="light"] .form-status.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.form-status.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #f87171;
}
html[data-theme="light"] .form-status.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.form-status.info {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
html[data-theme="light"] .form-status.info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.cta-banner {
  position: relative;
  background:
    radial-gradient(500px 300px at 85% 20%, rgba(56, 189, 248, 0.25), transparent 70%),
    linear-gradient(145deg, #071429 0%, #102b58 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(1.35rem, 1.95vw, 1.78rem); font-weight: 700; color: #ffffff; }
.cta-banner p { margin-top: 10px; font-size: 0.95rem; color: #cbd5e1; max-width: 580px; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: #030710;
  color: #cbd5e1;
  padding: 66px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 36px; }
.footer-brand-desc { margin-top: 14px; font-size: 0.88rem; color: #94a3b8; max-width: 310px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f8fafc;
  margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-links a:hover { color: #ffffff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ============================================================================
   COMMAND PALETTE (Ctrl+K / Cmd+K) & LIGHTBOX MODAL
   ============================================================================ */
.cmd-backdrop,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cmd-backdrop.open,
.lightbox.open { display: flex; }

.cmd-box {
  width: min(620px, 100%);
  background: #0a1428;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
}
.cmd-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background-color 0.12s ease;
}
.cmd-item:hover, .cmd-item.selected { background: rgba(56, 189, 248, 0.16); color: #ffffff; }
.cmd-item-left { display: flex; align-items: center; gap: 11px; }
.cmd-item-left img { width: 24px; height: 24px; border-radius: 6px; }
.cmd-item-sub { font-size: 0.76rem; color: #94a3b8; display: block; }
.cmd-item-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.lightbox-box {
  width: min(1140px, 100%);
  max-height: 92vh;
  background: #0a1428;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.75);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
}
.lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}
.lightbox-body {
  overflow: auto;
  background: #040914;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.lightbox-body img { max-height: 78vh; width: auto; border-radius: 8px; }

.toast-msg {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1300;
  padding: 12px 18px;
  border-radius: 11px;
  background: #0b1830;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-msg.show { opacity: 1; transform: translateY(0); }

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1320px) {
  .cmd-trigger [data-i18n="cmd_btn"] { display: none; }
  .nav-link { padding: 7px 10px; font-size: 0.84rem; }
}

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .roi-shell { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-deep, .solution-panel { grid-template-columns: 1fr; padding: 26px; gap: 26px; }
  .product-deep.reverse .product-deep-media { order: 0; }
  .sol-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol-thumb-row.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .nav-links, .nav-desktop-cta, .cmd-trigger { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .bento-card { grid-column: span 12; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curtain-stage { height: 430px; }
  .curtain-layer { grid-template-columns: 1fr; padding: 24px 20px; align-content: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .nav-inner { gap: 8px; }
  .nav-brand { gap: 8px; min-width: 0; }
  .nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
  .nav-brand-title { font-size: 0.96rem; }
  .nav-brand-sub { display: none; }
  .nav-actions { gap: 6px; }
  .lang-select { width: 88px; padding: 0 6px; font-size: 0.72rem; height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .icon-btn { width: 32px; height: 32px; }
  .spatial-deck-top { flex-wrap: wrap; }
  .spatial-tabs { flex-wrap: wrap; }
  .hero-flagship { padding: 36px 0 46px; }
  .hero-flagship h1 .hero-line { white-space: normal; }
  .hero-pillar-dock { grid-template-columns: 1fr; }
  .spatial-viewport { height: 320px; }
  .hud-top-right { display: none; }
  .pipeline-grid, .cards-4, .footer-grid, .form-grid, .roi-pillar-checks { grid-template-columns: 1fr; }
  .roi-shell { padding: 20px; }
  .cta-banner { padding: 32px 22px; }
  .section { padding: 60px 0; }
}

/* ============================================================================
   YOUTUBE VIDEO SHOWCASE & LITE FACADE STUDIO
   ============================================================================ */
.yt-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.yt-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.yt-channel-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.yt-channel-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.yt-channel-meta {
  flex: 1;
  min-width: 0;
}

.yt-channel-meta h3 {
  font-size: 1.04rem;
  margin: 0 0 3px;
  color: var(--ink);
}

.yt-channel-meta p {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

.yt-channel-handle {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #f87171;
  font-weight: 600;
}

html[data-theme="light"] .yt-channel-handle {
  color: #dc2626;
}

.yt-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.yt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md);
}

.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
  opacity: 0.92;
}

.yt-facade:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.yt-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.42) 100%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.yt-facade.is-playing::after {
  display: none;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.94);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-facade:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ef4444;
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

.yt-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

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

.yt-cat-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
}

.yt-cat-flag { background: rgba(239, 68, 68, 0.14); color: #f87171; }
.yt-cat-com  { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.yt-cat-trn  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.yt-cat-cd   { background: rgba(234, 88, 12, 0.16); color: #fb923c; }
.yt-cat-win  { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

html[data-theme="light"] .yt-cat-flag { background: #fef2f2; color: #dc2626; }
html[data-theme="light"] .yt-cat-com  { background: #eff6ff; color: #1d4ed8; }
html[data-theme="light"] .yt-cat-trn  { background: #ecfdf5; color: #047857; }
html[data-theme="light"] .yt-cat-cd   { background: #fff7ed; color: #c2410c; }
html[data-theme="light"] .yt-cat-win  { background: #f5f3ff; color: #6d28d9; }

.yt-card-body h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

.yt-card-body p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.52;
  flex: 1;
}

.yt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.yt-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.yt-watch-ext {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.yt-watch-ext:hover {
  color: var(--brand);
}

@media (max-width: 920px) {
  .yt-channels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .yt-channel-card { flex-direction: column; align-items: flex-start; }
}

html[data-theme="light"] .page-hero .yt-channel-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .page-hero .yt-channel-meta h3 { color: #0f172a; }
html[data-theme="light"] .page-hero .yt-channel-meta p { color: #475569; }
html[data-theme="light"] .page-hero .yt-channel-handle { color: #dc2626; }
