/* ==========================================================================
   Vibes-Plug Universal Web Showcase & Interactive Studio
   Design System: Sovereign Professional UI Craft (2026 Edition)
   Font Stack: Outfit (Headings), Inter (Body/UI), JetBrains Mono (Code/CLI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-canvas: #090b0e;
  --bg-surface: #10141a;
  --bg-card: #151a22;
  --bg-card-hover: #1c222c;
  --bg-elevated: #1f2632;
  --bg-terminal: #07090c;
  --bg-input: #12161f;

  --border-subtle: #1c222e;
  --border-medium: #273142;
  --border-focus: #3b82f6;
  --border-highlight: rgba(255, 255, 255, 0.12);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-code: #38bdf8;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.7);
  --shadow-glow-cyan: 0 0 24px -4px rgba(6, 182, 212, 0.25);
  --shadow-glow-purple: 0 0 24px -4px rgba(168, 85, 247, 0.25);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ==========================================================================
   Typography & Base Tokens
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

code, pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #38bdf8;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navbar (2026 Sovereign Floating Island Capsule Header Standard)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(9, 11, 17, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.75),
              0 0 35px -8px rgba(6, 182, 212, 0.15),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.95);
  border-color: rgba(6, 182, 212, 0.32);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85),
              0 0 30px rgba(6, 182, 212, 0.12),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.24);
}

.header-glow-line {
  display: none;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 1.25rem;
  max-width: 100%;
  padding: 0 1.25rem;
}

/* Brand Group (Left) */
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-3d {
  border-radius: 8px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.25));
}

.brand-group:hover .brand-logo-3d {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 6px 16px rgba(6, 182, 212, 0.45));
}

.brand-logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, transparent 70%);
  filter: blur(6px);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.brand-group:hover .brand-logo-glow {
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name-accent {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-version-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Center: Desktop Navigation Links */
.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.nav-link-dot.terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.nav-count-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.28);
  line-height: 1;
  white-space: nowrap;
}

.nav-subtle-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1;
  white-space: nowrap;
}

/* Right: Action Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Quick Search Button in Actions Group */
.nav-quick-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 0.38rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-quick-search-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.16);
}

.nav-search-svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.nav-quick-search-btn:hover .nav-search-svg {
  color: var(--accent-cyan);
}

.nav-search-placeholder {
  font-weight: 500;
  white-space: nowrap;
}

.nav-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.38rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--text-secondary);
  line-height: 1;
  white-space: nowrap;
}

/* Status Badge (One-Click Skills Directory Anchor) */
.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  height: 34px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-status-badge:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.25);
}

.nav-status-badge.active {
  background: rgba(16, 185, 129, 0.20);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseEmerald 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

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

.nav-studio-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
  padding: 0 0.85rem;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.nav-studio-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.studio-spark {
  display: inline-block;
  animation: sparkPulse 2.5s infinite;
  flex-shrink: 0;
}

.nav-gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
}

.gh-icon {
  flex-shrink: 0;
}

.gh-star-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Mobile Toggle Hamburger Button */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Drawer Navigation Overlay
   ========================================================================== */

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 85vw;
  background: #0b0e17;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.mobile-nav-search-wrap {
  margin-bottom: 1.25rem;
}

.mobile-nav-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-search-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 auto 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.mobile-nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
}

.mobile-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons (5-State Contract)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--text-primary);
  color: #090b0e;
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background: #d1d5db;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
  background: var(--bg-surface);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

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

.btn-accent {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
}

.btn-accent:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 7rem 0 3.5rem;
  position: relative;
  text-align: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  max-width: 950px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 780px;
  margin: 0 auto 2.25rem;
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.install-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-code);
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
}

.copy-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: #273142;
  color: #ffffff;
  border-color: var(--border-medium);
}

.copy-btn.copied {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
}

/* Hero Stat Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Terminal Simulator Section
   ========================================================================== */

.terminal-section {
  padding: 3rem 0 4rem;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #0d1016;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.terminal-badges {
  display: flex;
  gap: 0.5rem;
}

.terminal-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.terminal-preset-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #11151d;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.preset-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.preset-btn:hover {
  background: #1e2533;
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.preset-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.terminal-body {
  padding: 1.5rem;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 600;
  user-select: none;
}

.term-cmd {
  color: #ffffff;
  font-weight: 600;
}

.term-output {
  color: #cbd5e1;
  margin-left: 0.5rem;
  white-space: pre-wrap;
}

.term-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.term-badge-cyan { background: rgba(6, 182, 212, 0.2); color: #38bdf8; }
.term-badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.term-badge-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.term-badge-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #0a0d12;
  border-top: 1px solid var(--border-subtle);
}

.terminal-prompt-sym {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.925rem;
  outline: none;
}

.terminal-input::placeholder {
  color: #4b5563;
}

/* ==========================================================================
   Skill Explorer Section
   ========================================================================== */

.explorer-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-box-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  background: var(--bg-surface);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.category-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
}

.category-badge-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.skills-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.skill-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.skill-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.skill-domain-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.skill-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.skill-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.skill-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.skill-trigger-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Swarm Topologies Section
   ========================================================================== */

.topologies-section {
  padding: 4.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.topology-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

.topology-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topo-tab-btn {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topo-tab-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.topo-tab-btn.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.topo-tab-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

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

.topology-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topo-diagram {
  background: #0c0f15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topo-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topo-meta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.topo-meta-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.topo-meta-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Benchmark & Comparison Section
   ========================================================================== */

.benchmark-section {
  padding: 4.5rem 0;
}

.benchmark-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 1080px;
  margin: 0 auto;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.bench-table th, .bench-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bench-table th {
  background: #11151c;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.bench-table th.highlight-col, .bench-table td.highlight-col {
  background: rgba(6, 182, 212, 0.04);
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

.bench-table td.highlight-col {
  font-weight: 600;
  color: #ffffff;
}

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

.check-pass {
  color: var(--accent-emerald);
  font-weight: 700;
}

.check-fail {
  color: var(--text-muted);
}

/* ==========================================================================
   IDE Universal Bridge Section
   ========================================================================== */

.bridge-section {
  padding: 4.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bridge-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bridge-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bridge-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.bridge-tab-btn.active {
  background: var(--text-primary);
  color: #090b0e;
  border-color: var(--text-primary);
}

.bridge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bridge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #11151c;
  border-bottom: 1px solid var(--border-subtle);
}

.bridge-file-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.bridge-card-body {
  padding: 1.5rem;
}

.bridge-pre {
  background: #090c10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Modal / Skill Drawer
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #11151d;
}

.modal-body {
  padding: 1.75rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-spec-row {
  margin-bottom: 1.25rem;
}

.modal-spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.modal-spec-value {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #111620;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 200ms ease-out;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #07090c;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1280px) {
  .nav-status-badge .nav-status-text {
    display: none;
  }
  .nav-status-badge {
    padding: 0 0.5rem;
  }
}

@media (max-width: 1140px) {
  .nav-quick-search-btn {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .nav-status-badge {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .topology-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
  }
  .hero-section {
    padding: 5.5rem 0 2.5rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .nav-desktop {
    display: none;
  }
  .nav-studio-btn {
    display: none;
  }
  .brand-tag {
    display: none;
  }
  .navbar {
    height: 52px;
    padding: 0 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* ==========================================================================
   3D Sovereign Emblem & Interactive 3D Swarm Core Stage
   ========================================================================== */

.brand-logo-3d {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(6, 182, 212, 0.22);
  object-fit: cover;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-group:hover .brand-logo-3d {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), 0 0 20px rgba(6, 182, 212, 0.4);
}

.hero-3d-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin: 0 auto 1.75rem;
  perspective: 1100px;
}

.hero-3d-emblem-card {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 45%, rgba(16, 24, 38, 0.95), rgba(9, 11, 16, 0.98));
  border: 1px solid rgba(6, 182, 212, 0.32);
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.85),
    0 0 32px -6px rgba(6, 182, 212, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease;
  cursor: grab;
  overflow: hidden;
}

.hero-3d-emblem-card:hover {
  border-color: rgba(6, 182, 212, 0.65);
}

.hero-3d-logo-img {
  width: 176px;
  height: 176px;
  border-radius: 22px;
  object-fit: cover;
  z-index: 2;
  transform: translateZ(28px);
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 220px;
  height: 220px;
  z-index: 3;
  pointer-events: none;
  transform: translateZ(42px);
}

.philosophy-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 920px;
}

.philo-pill {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(21, 26, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.7rem;
}

/* ==========================================================================
   Sovereign Professional UI Enhancements (v4.7.0 Showcase Upgrade)
   ========================================================================== */

/* Interactive Install Box with Package Manager Tabs */
.install-box-interactive {
  display: inline-flex;
  flex-direction: column;
  background: #0b0f15;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.install-box-interactive:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 35px -8px rgba(6, 182, 212, 0.15), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.pkg-manager-tabs {
  display: flex;
  background: #07090d;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem 0;
  gap: 0.25rem;
}

.pkg-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pkg-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.pkg-tab.active {
  color: var(--accent-cyan);
  background: #0b0f15;
  border-color: var(--border-subtle);
  border-bottom-color: #0b0f15;
}

.install-cmd-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.cmd-prefix {
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

.cmd-text {
  color: var(--text-code);
  font-weight: 500;
}

/* Stat Card Headers & Micro-Badges */
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.stat-icon-wrap {
  font-size: 1.1rem;
}

.stat-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Terminal Actions */
.terminal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-medium);
}

/* Filter Controls Row (Search + Language Switch) */
.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.lang-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lang-toggle-group {
  display: inline-flex;
  background: #0d1117;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.lang-btn.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Category Tab Dot Indicator */
.tab-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.category-tab.active .tab-indicator {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 6px currentColor;
}

.skills-view-hints {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hint-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.hint-pill kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* Enhanced Skill Card */
.skill-card {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 26, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-domain-color, var(--accent-cyan));
  opacity: 0;
  transition: opacity 200ms ease;
}

.skill-card:hover {
  border-color: var(--card-domain-color, rgba(6, 182, 212, 0.5));
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.75), 0 0 20px -8px var(--card-domain-color, rgba(6, 182, 212, 0.3));
}

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

.skill-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.skill-trigger-pill:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  color: #ffffff;
}

.skill-trigger-pill.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.trigger-copy-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

.skill-details-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.skill-card:hover .skill-details-link {
  color: var(--accent-cyan);
}

/* Modal Bilingual Tabs */
.modal-lang-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-lang-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-lang-tab.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

@media (max-width: 768px) {
  .filter-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lang-switch-wrap {
    justify-content: flex-end;
  }
  .skills-meta-bar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
