/* ==========================================================================
   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
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   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: 4.5rem 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: 960px) {
  .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) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .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;
}
