/* ==========================================================================
   luongvietcuong.com — Dark Luxury Bento Grid Design System
   Zero-dependency CSS · Obsidian Gold / Cyber Cyan / Crimson Amber Themes
   ========================================================================== */

:root,
[data-theme="obsidian"] {
  --bg: #05070b;
  --bg-alt: #080c14;
  --surface: #0b101b;
  --surface-elevated: #111927;
  --surface-glass: rgba(11, 16, 27, 0.78);
  --surface-card: linear-gradient(180deg, rgba(17, 25, 39, 0.72) 0%, rgba(11, 16, 27, 0.92) 100%);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-deep: #d97706;
  --accent-rgb: 245, 158, 11;

  --accent-2: #10b981;
  --accent-2-rgb: 16, 185, 129;

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(245, 158, 11, 0.36);
  --border-hover: rgba(245, 158, 11, 0.52);

  --gradient-text: linear-gradient(125deg, #fde68a 0%, #f59e0b 48%, #10b981 100%);
  --gradient-btn: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  --btn-primary-text: #05070b;

  --glow-1: rgba(245, 158, 11, 0.14);
  --glow-2: rgba(16, 185, 129, 0.11);
  --glow-3: rgba(59, 130, 246, 0.08);
  --shadow-card: 0 18px 45px -24px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.28), 0 20px 50px -20px rgba(var(--accent-rgb), 0.25);
}

[data-theme="cyber"] {
  --bg: #040812;
  --bg-alt: #070e1c;
  --surface: #091322;
  --surface-elevated: #0f1d32;
  --surface-glass: rgba(9, 19, 34, 0.8);
  --surface-card: linear-gradient(180deg, rgba(15, 29, 50, 0.74) 0%, rgba(9, 19, 34, 0.94) 100%);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #06b6d4;
  --accent-bright: #22d3ee;
  --accent-deep: #0891b2;
  --accent-rgb: 6, 182, 212;

  --accent-2: #8b5cf6;
  --accent-2-rgb: 139, 92, 246;

  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(6, 182, 212, 0.38);
  --border-hover: rgba(34, 211, 238, 0.56);

  --gradient-text: linear-gradient(125deg, #a5f3fc 0%, #06b6d4 46%, #8b5cf6 100%);
  --gradient-btn: linear-gradient(135deg, #22d3ee 0%, #06b6d4 52%, #0891b2 100%);
  --btn-primary-text: #041019;

  --glow-1: rgba(6, 182, 212, 0.16);
  --glow-2: rgba(139, 92, 246, 0.14);
  --glow-3: rgba(16, 185, 129, 0.08);
}

[data-theme="crimson"] {
  --bg: #080507;
  --bg-alt: #0e080c;
  --surface: #130b0f;
  --surface-elevated: #1d1016;
  --surface-glass: rgba(19, 11, 15, 0.82);
  --surface-card: linear-gradient(180deg, rgba(29, 16, 22, 0.76) 0%, rgba(19, 11, 15, 0.94) 100%);

  --text: #fff1f2;
  --text-secondary: #e2cfd4;
  --text-muted: #ad949d;
  --text-dim: #7c646d;

  --accent: #f43f5e;
  --accent-bright: #fb7185;
  --accent-deep: #e11d48;
  --accent-rgb: 244, 63, 94;

  --accent-2: #fbbf24;
  --accent-2-rgb: 251, 191, 36;

  --border: rgba(244, 190, 200, 0.14);
  --border-strong: rgba(244, 63, 94, 0.4);
  --border-hover: rgba(251, 113, 133, 0.58);

  --gradient-text: linear-gradient(125deg, #fecdd3 0%, #f43f5e 48%, #fbbf24 100%);
  --gradient-btn: linear-gradient(135deg, #fb7185 0%, #f43f5e 52%, #e11d48 100%);
  --btn-primary-text: #ffffff;

  --glow-1: rgba(244, 63, 94, 0.16);
  --glow-2: rgba(251, 191, 36, 0.11);
  --glow-3: rgba(168, 85, 247, 0.08);
}

:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1240px;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

pre,
code,
kbd {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: var(--text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.55);
}

/* ==========================================================================
   Ambient Background & Architectural Grid
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.9;
  transition: background 0.5s var(--ease);
}

.orb-1 {
  width: 620px;
  height: 620px;
  top: -210px;
  left: -120px;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
}

.orb-2 {
  width: 560px;
  height: 560px;
  top: 120px;
  right: -160px;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
}

.orb-3 {
  width: 680px;
  height: 520px;
  bottom: -220px;
  left: 35%;
  background: radial-gradient(circle, var(--glow-3) 0%, transparent 72%);
}

/* ==========================================================================
   Layout Helpers & Icons
   ========================================================================== */

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

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.text-accent {
  color: var(--accent-bright);
}

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

.icon-xs {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0.65);
  animation: pulse-ring 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(var(--accent-2-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0);
  }
}

/* ==========================================================================
   Buttons & KBD
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--btn-primary-text);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(var(--accent-rgb), 0.72);
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.16);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(var(--accent-rgb), 0.36);
  color: var(--text);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12.5px;
  border-radius: 8px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 5px;
}

/* ==========================================================================
   Top Telemetry Bar
   ========================================================================== */

.telemetry-bar {
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  position: relative;
  z-index: 40;
}

.telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.telemetry-left,
.telemetry-right,
.telemetry-domains,
.telemetry-metrics,
.telemetry-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.telemetry-domains {
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.domain-chip:hover {
  border-color: var(--border-hover);
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.08);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.mono-metric {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.telemetry-sep {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.telemetry-controls {
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.control-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 2px;
}

.theme-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.theme-dot[data-set-theme="obsidian"] {
  background: linear-gradient(135deg, #fbbf24, #10b981);
}
.theme-dot[data-set-theme="cyber"] {
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}
.theme-dot[data-set-theme="crimson"] {
  background: linear-gradient(135deg, #f43f5e, #fbbf24);
}

.theme-dot:hover {
  transform: scale(1.16);
}

.theme-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.45);
  transform: scale(1.12);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 2px 8px;
  border: none;
  border-radius: 5px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--btn-primary-text);
}

/* ==========================================================================
   Sticky Glassmorphic Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.1));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-monogram-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

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

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.cmd-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.07);
}

/* ==========================================================================
   Hero Section & Ecosystem Control Deck
   ========================================================================== */

.hero-section {
  padding: 64px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: start;
}

.hero-content {
  min-width: 0;
  padding-top: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
}

.hero-greeting {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

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

.stat-card {
  padding: 15px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-width: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Ecosystem Control Deck */
.control-deck {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.control-deck::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.75;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.deck-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.deck-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.deck-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.12);
  border: 1px solid rgba(var(--accent-2-rgb), 0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}

.deck-systems-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.deck-sys-item {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), background 0.22s var(--ease);
}

.deck-sys-item:hover {
  border-color: var(--border-strong);
  background: rgba(var(--accent-rgb), 0.05);
  transform: translateX(2px);
}

.deck-sys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.deck-sys-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.deck-sys-domain::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(var(--accent-2-rgb), 0.7);
}

.deck-sys-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.deck-sys-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Deck Live Activity Stream */
.deck-log-box {
  border-radius: var(--radius-md);
  background: rgba(3, 5, 9, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.deck-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.terminal-dots span:nth-child(1) {
  background: #f43f5e;
}
.terminal-dots span:nth-child(2) {
  background: #f59e0b;
}
.terminal-dots span:nth-child(3) {
  background: #10b981;
}

.deck-log-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.deck-log-stream {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 124px;
  max-height: 164px;
  overflow: hidden;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  animation: log-fade-in 0.3s var(--ease);
}

@keyframes log-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-time {
  color: var(--text-dim);
  flex-shrink: 0;
}

.log-sys {
  color: var(--accent-bright);
  font-weight: 700;
  flex-shrink: 0;
}

.log-msg {
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Section 01: Asymmetric Bento Grid & Career Timeline
   ========================================================================== */

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

.bento-card {
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

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

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

.bento-highlight::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.bento-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.bento-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
}

.bento-body {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-muted);
}

.bento-body:last-child {
  margin-bottom: 0;
}

.bento-mini-diagram {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-bright);
}

.bento-mini-diagram svg {
  width: 100%;
  height: auto;
}

/* Career Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 15px 16px 15px 20px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-left: 3px solid var(--accent);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.timeline-item:hover {
  border-color: var(--border-strong);
  border-left-color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.05);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-bright);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(var(--accent-2-rgb), 0.25);
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 02: Flagship Product Ecosystem Showcase
   ========================================================================== */

.eco-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.eco-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.65);
}

.eco-search-wrap {
  position: relative;
  width: 310px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.eco-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.eco-search-input::placeholder {
  color: var(--text-dim);
}

.eco-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

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

.eco-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.eco-card-featured {
  border-color: rgba(var(--accent-rgb), 0.24);
}

.eco-card-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.eco-card-lab {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.26);
}

.eco-visual {
  width: 100%;
  height: 156px;
  border-radius: var(--radius-md);
  background: rgba(3, 5, 9, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-header-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eco-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(var(--accent-2-rgb), 0.28);
}

.eco-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.eco-domain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 6px;
  word-break: break-all;
}

.eco-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.eco-tagline {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.eco-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-muted);
}

.eco-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.eco-metric {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  min-width: 0;
}

.eco-metric-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-metric-lbl {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.3;
}

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.eco-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.eco-empty,
.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================================
   Section 03: Architecture Topology Inspector & Capacity Lab
   ========================================================================== */

.arch-workspace {
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 26px;
  margin-bottom: 28px;
}

.arch-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.arch-sys-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.arch-sys-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.arch-sys-btn.active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.22);
}

.arch-stages-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.arch-stage-node {
  min-width: 0;
  text-align: left;
  padding: 15px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  transition: all 0.22s var(--ease);
}

.arch-stage-node:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.arch-stage-node.active {
  background: linear-gradient(155deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(11, 16, 27, 0.92) 100%);
  border-color: var(--accent);
  box-shadow: 0 10px 26px -14px rgba(var(--accent-rgb), 0.65);
}

.stage-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
}

.stage-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.stage-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-inspector {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.arch-inspector-info {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
}

.inspector-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.inspector-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.inspector-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.inspector-meta-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inspector-meta-box {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.12);
  min-width: 0;
}

.inspector-meta-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.inspector-meta-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.arch-code-panel,
.sim-blueprint-panel {
  min-width: 0;
  border-radius: var(--radius-md);
  background: #04070d;
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.code-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-block {
  margin: 0;
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  flex: 1;
  tab-size: 2;
}

/* Capacity Simulator */
.sim-card {
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.sim-header {
  margin-bottom: 24px;
}

.sim-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.sim-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 720px;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sim-controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.sim-dau-readout {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-bright);
  padding: 3px 10px;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  outline: none;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.55);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}

.sim-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.55);
  cursor: pointer;
}

.sim-range-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.sim-metric-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
  min-width: 0;
}

.sim-metric-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.sim-metric-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.3;
}

.blueprint-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(var(--accent-2-rgb), 0.28);
}

/* ==========================================================================
   Section 04: Technical Arsenal
   ========================================================================== */

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

.arsenal-card {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease);
}

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

.arsenal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arsenal-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.arsenal-icon svg {
  width: 22px;
  height: 22px;
}

.arsenal-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.arsenal-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.skill-top span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
}

.skill-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease);
}

.arsenal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ==========================================================================
   Section 05: Direct Founder Connect & Brief Composer
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-panel-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.channel-card:hover {
  border-color: var(--border-strong);
  background: rgba(var(--accent-rgb), 0.05);
}

.channel-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* Brief Form */
.brief-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.72);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-select {
  background-color: #090e18;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

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

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

.brief-feedback {
  min-height: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.86);
  padding: 40px 0;
}

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

.footer-brand {
  max-width: 440px;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-rights {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   Modals (System Case Study & Ctrl+K Command Palette)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-height: calc(100vh - 40px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 90px -20px rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s var(--ease);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog-lg {
  max-width: 860px;
}

.modal-dialog-cmd {
  max-width: 620px;
  max-height: calc(100vh - 40px - min(10vh, 84px));
  align-self: flex-start;
  margin-top: min(10vh, 84px);
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
  min-width: 0;
}

/* Case Study Modal Content */
.case-header {
  margin-bottom: 22px;
}

.case-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.case-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.case-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.case-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 11, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  min-width: 0;
}

.case-box h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.case-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.case-arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
}

.case-flow-step {
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.case-highlights {
  margin: 12px 0 22px;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-highlights li {
  position: relative;
  padding: 11px 14px 11px 30px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.case-highlights li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Command Palette Modal */
.cmd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.cmd-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.cmd-input::placeholder {
  color: var(--text-dim);
}

.cmd-esc-btn {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cmd-esc-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.cmd-list {
  padding: 10px;
  flex: 1;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.34);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cmd-item-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-bright);
  border: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}

.cmd-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-item-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.cmd-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.cmd-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints (1080px, 768px, 520px)
   ========================================================================== */

@media (max-width: 1080px) {
  .hide-md {
    display: none;
  }

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

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

  .bento-wide,
  .bento-grid .bento-card:last-child {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: auto;
  }

  .arch-stages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arch-inspector,
  .sim-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hide-sm {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .telemetry-domains {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 40px 0 56px;
  }

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

  .bento-grid,
  .ecosystem-grid,
  .arsenal-grid,
  .case-grid,
  .case-highlights,
  .form-row {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-grid .bento-card:last-child {
    grid-column: auto;
  }

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

  .inspector-meta-grid {
    grid-template-columns: 1fr;
  }

  .eco-search-wrap {
    width: 100%;
  }

  .arch-workspace,
  .sim-card,
  .contact-panel {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .navbar-inner {
    height: 62px;
  }

  .cmd-trigger span,
  .cmd-trigger kbd {
    display: none;
  }

  .telemetry-inner {
    justify-content: space-between;
  }

  .telemetry-controls {
    padding-left: 0;
    border-left: none;
  }

  .telemetry-metrics {
    display: none;
  }

  .arch-stages-grid,
  .eco-metrics,
  .sim-metrics-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .form-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
