/* ==========================================
   HERMOD DESIGN SYSTEM & STYLESHEET
   ========================================== */

:root {
  --bg-main: #07090E;
  --bg-card: rgba(15, 20, 32, 0.7);
  --bg-card-hover: rgba(22, 30, 48, 0.85);
  --bg-input: rgba(10, 14, 24, 0.8);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-purple: rgba(168, 85, 247, 0.3);

  --color-primary: #6366F1;
  --color-secondary: #06B6D4;
  --color-accent: #A855F7;
  --color-pink: #EC4899;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --status-green: #10B981;
  --status-amber: #F59E0B;
  --status-red: #EF4444;
  --status-purple: #8B5CF6;
  --status-blue: #3B82F6;

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-ui);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Glowing & Pattern Elements */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.35;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366F1 0%, rgba(168, 85, 247, 0) 70%);
  top: -150px;
  left: -150px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #06B6D4 0%, rgba(59, 130, 246, 0) 70%);
  bottom: 50px;
  right: -100px;
}

.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

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

.brand-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 20, 32, 0.6);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--status-green);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chain-selector select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: #4F46E5;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-gradient {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-gradient:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

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

/* Main Container & Tabs */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.tab-page {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-page.active {
  display: block;
}

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

/* HERO SECTION */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 4rem 1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.badge-pill.amber {
  color: var(--status-amber);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

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

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.metric-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.metric-badge.green { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.metric-badge.blue { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.metric-badge.purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.metric-badge.amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Feature Showcase */
.section-container {
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header.center {
  text-align: center;
}

.section-header.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-purple { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.feature-cyan { background: rgba(6, 182, 212, 0.15); color: #22D3EE; }
.feature-amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.feature-emerald { background: rgba(16, 185, 129, 0.15); color: #34D399; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TERMINAL CONSOLE */
.console-wrapper {
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.console-header {
  background: rgba(15, 20, 32, 0.95);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.console-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.console-meta {
  display: flex;
  gap: 0.5rem;
}

.badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.tag-purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-green { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-red { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.prompt-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(12, 16, 26, 0.6);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.chips-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-main);
}

.console-output {
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.log-entry {
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.log-entry .timestamp {
  color: var(--text-dim);
  margin-right: 0.5rem;
}

.log-entry.user { color: #818CF8; }
.log-entry.system { color: #34D399; }
.log-entry.info { color: #9CA3AF; }
.log-entry.warning { color: #FBBF24; }
.log-entry.error { color: #F87171; }

.console-input-area {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 20, 32, 0.95);
  border-top: 1px solid var(--border-light);
  gap: 0.75rem;
}

.input-prefix {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.console-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Plan Preview Panel */
.plan-preview-panel {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease-out;
}

.plan-preview-panel.hidden { display: none; }

.panel-header {
  padding: 1rem 1.5rem;
  background: rgba(15, 20, 32, 0.8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.panel-body {
  padding: 1.5rem;
}

.plan-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.detail-item .value {
  font-size: 0.9rem;
  font-weight: 600;
}

.font-mono { font-family: var(--font-mono); }

.risk-checklist {
  margin-bottom: 1.5rem;
}

.risk-checklist h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.check-item.pass { color: var(--status-green); }
.check-item.warning { color: var(--status-amber); }

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* AGENT FLEET GRID */
.fleet-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fleet-filter-bar input {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  font-size: 0.875rem;
}

.filter-buttons {
  display: flex;
  gap: 0.4rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
  border-color: rgba(99, 102, 241, 0.4);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

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

.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agent-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFF;
}

.agent-name {
  font-size: 1rem;
  font-weight: 700;
}

.agent-mode {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.agent-policy-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.policy-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.policy-row:last-child { margin-bottom: 0; }
.policy-row .key { color: var(--text-dim); }
.policy-row .val { font-weight: 600; }

.agent-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 1.1rem;
  font-weight: 800;
}

.stat-item .lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.agent-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* RISK & CONTRACT ANALYZER */
.risk-tool-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contract-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contract-input-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.analysis-result-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  animation: fadeIn 0.3s ease-out;
}

.analysis-result-box.hidden { display: none; }

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.risk-score-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.risk-score-badge.green { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }

.result-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.res-metric {
  display: flex;
  flex-direction: column;
}

.res-label { font-size: 0.75rem; color: var(--text-dim); }
.res-val { font-size: 0.85rem; font-weight: 600; }
.res-val.green { color: var(--status-green); }
.res-val.blue { color: var(--status-blue); }
.res-val.amber { color: var(--status-amber); }

/* Approvals Table */
.approvals-table-wrapper {
  overflow-x: auto;
}

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

.table th {
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* ARCHITECTURE / WHITEPAPER */
.whitepaper-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
}

.wp-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.wp-sidebar-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.wp-nav {
  list-style: none;
}

.wp-nav-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
}

.wp-nav-link:hover, .wp-nav-link.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
}

.wp-section {
  margin-bottom: 3.5rem;
}

.wp-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.wp-section p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.comp-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.comp-card.negative { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.2); }
.comp-card.positive { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.2); }

.comp-card h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.comp-card ul { padding-left: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }
.comp-card li { margin-bottom: 0.4rem; }

.pipeline-diagram {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.pipe-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  min-width: 170px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-info h5 { font-size: 0.85rem; margin-bottom: 0.1rem; }
.step-info p { font-size: 0.7rem; color: var(--text-dim); margin: 0; }
.pipe-arrow { color: var(--text-dim); font-weight: 700; }

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

.arch-col {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.arch-col h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--color-secondary); }
.arch-col p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rm-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.rm-item.completed { border-left: 4px solid var(--status-green); }
.rm-item.active { border-left: 4px solid var(--color-primary); }
.rm-item.upcoming { border-left: 4px solid var(--color-accent); }

.rm-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--status-green);
  text-transform: uppercase;
}

.rm-badge.blue { color: var(--color-primary); }
.rm-badge.purple { color: var(--color-accent); }

.rm-item h4 { font-size: 1.1rem; margin: 0.4rem 0; }
.rm-item p { font-size: 0.85rem; margin: 0; }

/* BUG BOUNTY */
.bounty-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bounty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
}

.bounty-card.critical { border-color: rgba(239, 68, 68, 0.4); }
.bounty-card.high { border-color: rgba(245, 158, 11, 0.4); }
.bounty-card.medium { border-color: rgba(59, 130, 246, 0.4); }

.bounty-severity {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.critical .bounty-severity { color: #F87171; }
.high .bounty-severity { color: #FBBF24; }
.medium .bounty-severity { color: #60A5FA; }

.bounty-reward {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

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

.bounty-form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.bounty-form-container h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  background: rgba(15, 20, 32, 0.95);
  border: 1px solid var(--border-glow);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(20, 26, 42, 0.8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

.toast {
  background: rgba(15, 20, 32, 0.95);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.footer {
  background: rgba(5, 7, 12, 0.9);
  border-top: 1px solid var(--border-light);
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-col h5 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.link-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .whitepaper-layout {
    grid-template-columns: 1fr;
  }
  .wp-sidebar {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .pipeline-diagram {
    flex-direction: column;
  }
  .pipe-arrow {
    transform: rotate(90deg);
  }
  .arch-box {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
