/* ==========================================================================
   UnixCorn.org - Cyber-Nordic Terminal Design System
   Obsidian Canvas & Electric Emerald Accents
   Senior Systems Architecture & Open Source Infrastructure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-canvas: #090D16;
  --bg-surface: #0F172A;
  --bg-surface-elevated: #151F36;
  --bg-surface-glass: rgba(15, 23, 42, 0.75);
  --bg-terminal: #020617;
  --bg-terminal-header: #0B1120;
  
  /* Borders */
  --border-subtle: #1E293B;
  --border-focus: #334155;
  --border-accent: rgba(16, 185, 129, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);
  --border-purple: rgba(139, 92, 246, 0.35);

  /* Accents */
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --purple: #8B5CF6;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --amber: #F59E0B;
  --rose: #F43F5E;
  
  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sizing & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(6, 182, 212, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

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

a:hover {
  color: var(--emerald);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 1360px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-surface-glass);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-text .accent {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

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

.nav-item a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.nav-item a.active {
  color: var(--emerald);
  font-weight: 600;
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Sub-Domain Silo Pill Bar */
.silo-bar {
  background: var(--bg-terminal);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.silo-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.silo-list::-webkit-scrollbar { display: none; }

.silo-tag {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.silo-tag:hover {
  color: var(--emerald);
}

.silo-tag.active {
  color: var(--emerald);
  font-weight: 600;
}

.silo-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
}

.silo-tag.tor .silo-indicator { background: var(--purple); }
.silo-tag.paste .silo-indicator { background: var(--cyan); }
.silo-tag.cloud .silo-indicator { background: var(--amber); }

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

.btn-primary {
  background: var(--emerald);
  color: #041a11;
  box-shadow: 0 0 20px var(--emerald-glow);
}

.btn-primary:hover {
  background: var(--emerald-hover);
  color: #041a11;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #1a2744;
  border-color: var(--border-focus);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-glow);
}

.btn-purple {
  background: var(--purple);
  color: #ffffff;
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-purple:hover {
  background: #7c3aed;
  color: #fff;
}

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

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

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

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

.badge-slate {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1.25rem 0 0.5rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--emerald);
}

.breadcrumb-separator {
  color: var(--text-dim);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-tag {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #F8FAFC 20%, var(--emerald) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Cards & Surfaces */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-emerald:hover {
  border-color: var(--border-accent);
}

.card-cyan:hover {
  border-color: var(--border-cyan);
}

.card-purple:hover {
  border-color: var(--border-purple);
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cyber-Nordic Terminal Component
   ========================================================================== */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  margin: 1.5rem 0;
  position: relative;
}

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

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

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.copy-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
  color: var(--emerald);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald);
  color: var(--emerald);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #E2E8F0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-prompt {
  color: var(--emerald);
  user-select: none;
  margin-right: 0.6rem;
  font-weight: 700;
}

.terminal-cmd {
  color: #38BDF8;
}

.terminal-flag {
  color: #A78BFA;
}

.terminal-arg {
  color: #FBBF24;
}

.terminal-comment {
  color: #64748B;
  font-style: italic;
}

/* Forms, Inputs & Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-control::placeholder {
  color: var(--text-dim);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
  cursor: pointer;
}

/* Range Sliders */
.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  height: 6px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  outline: none;
  accent-color: var(--emerald);
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  min-width: 60px;
  text-align: center;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

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

.data-table th {
  background: var(--bg-terminal-header);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  background: var(--bg-surface);
}

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

.data-table tr:hover td {
  background: var(--bg-surface-elevated);
}

/* Tool Sections */
.tool-section {
  padding: 2.5rem 0;
}

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

.tool-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* Tor Circuit Visualizer */
.circuit-viz-canvas {
  background: var(--bg-terminal);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.circuit-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
  gap: 1rem;
}

.circuit-node-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  min-width: 140px;
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.circuit-node-box.active {
  border-color: var(--purple);
  box-shadow: 0 0 18px var(--purple-glow);
}

.circuit-node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.circuit-node-role {
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
}

.circuit-node-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.circuit-node-ip {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.circuit-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  position: relative;
  margin: 0 -0.5rem;
  z-index: 1;
}

.circuit-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: packet-travel 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes packet-travel {
  0% { left: 0; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Stat Counters */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Tabs */
.tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--emerald);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-terminal);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.authorities-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.authority-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .circuit-nodes {
    flex-direction: column;
    gap: 1.5rem;
  }
  .circuit-connector {
    width: 2px;
    height: 30px;
    margin: -0.5rem 0;
  }
}

/* ==========================================================================
   Direct Media Downloader Suite (yt-dl.unixcorn.org)
   ========================================================================== */

.downloader-container {
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

.downloader-input-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.downloader-input-card:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 12px 36px -8px rgba(16, 185, 129, 0.25);
}

.downloader-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-terminal);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  gap: 0.75rem;
  transition: border-color var(--transition-fast);
}

.downloader-input-group:focus-within {
  border-color: var(--emerald);
}

.downloader-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  padding: 0.6rem 0;
}

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

.btn-paste-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-paste-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-extract-main {
  background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-extract-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-extract-main:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading Animation */
.downloader-loading-box {
  display: none;
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(6, 182, 212, 0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result Download Card */
.downloader-result-card {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.result-media-col {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-media-col img, .result-media-col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-badge-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.result-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.result-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.download-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-dl-hd {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.btn-dl-hd:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
  color: #FFFFFF;
}

.btn-dl-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dl-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Pro Developer CLI Accordion */
.pro-cli-details {
  margin-top: 1.75rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pro-cli-summary {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-terminal-header);
  transition: color var(--transition-fast);
}

.pro-cli-summary:hover {
  color: var(--emerald);
}

.pro-cli-content {
  padding: 1.25rem;
}

/* Feature 3-Steps Grid */
.steps-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: var(--emerald-glow);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--border-accent);
}

@media (max-width: 768px) {
  .downloader-input-group {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.65rem;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .steps-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026 Cyber-Nordic Modern Downloader Capsule Design */
.downloader-page-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem 1.25rem;
}
.downloader-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  margin-bottom: 1.25rem;
}
.glow-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.downloader-main-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}
.downloader-subtitle {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}
.platform-pills-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 2rem 0;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1E293B;
  text-decoration: none;
  transition: all 0.2s ease;
}
.platform-pill:hover {
  color: #FFFFFF;
  border-color: #334155;
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}
.platform-pill.active {
  color: #FFFFFF;
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.platform-pill.active .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.downloader-capsule-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(16, 185, 129, 0.2);
  margin-bottom: 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.downloader-capsule-card:focus-within {
  border-color: #10B981;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 45px -5px rgba(16, 185, 129, 0.35);
}
.input-capsule-row {
  display: flex;
  align-items: center;
  background: #020617;
  border: 1.5px solid #1E293B;
  border-radius: 14px;
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}
.input-capsule-row:focus-within {
  border-color: #10B981;
}
.capsule-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.75rem 0;
  min-width: 0;
}
.capsule-url-input::placeholder {
  color: #475569;
}
.capsule-paste-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.capsule-paste-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: #64748B;
}
.capsule-download-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.capsule-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
}
.capsule-download-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.live-loading-box {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: 18px;
  margin-bottom: 2rem;
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.15);
}
.cyber-spinner {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(6, 182, 212, 0.2);
  border-top-color: #06B6D4;
  border-right-color: #10B981;
  border-radius: 50%;
  animation: cyberSpin 0.75s linear infinite;
  margin: 0 auto 1.25rem auto;
}
.live-result-card {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.2);
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.result-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  align-items: center;
}
.preview-media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid #1E293B;
  aspect-ratio: 9/12;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 360px;
}
.preview-media-frame img, .preview-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stream-badge-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  color: #10B981;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.result-details-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.result-heading-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.35;
}
.result-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  color: #06B6D4;
}
.download-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.btn-download-primary-hd {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.btn-download-primary-hd:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5);
  color: #FFFFFF !important;
}
.btn-download-audio-mp3 {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4 !important;
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-download-audio-mp3:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06B6D4;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.cli-drawer {
  margin-top: 1.5rem;
  background: #020617;
  border: 1px solid #1E293B;
  border-radius: 14px;
  overflow: hidden;
}
.cli-drawer-summary {
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0B1120;
  transition: color 0.2s ease;
}
.cli-drawer-summary:hover {
  color: #10B981;
}
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3.5rem 0;
}
.process-step-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #1E293B;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
}
.process-step-item:hover {
  border-color: #334155;
}
.process-step-num {
  width: 42px;
  height: 42px;
  line-height: 40px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 1.2rem;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
}
@media (max-width: 860px) {
  .input-capsule-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .capsule-url-input {
    padding: 0.5rem 0;
  }
  .result-layout {
    grid-template-columns: 1fr;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Cyber-Nordic FAQ Accordion & Technical Knowledge Components
   ============================================================================= */
.faq-section {
  margin: 3.5rem 0 2rem 0;
}
.faq-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 0.5rem;
}
.faq-subtitle {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-card:hover {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.8);
}
.faq-card[open] {
  border-color: #10B981;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}
.faq-question {
  padding: 1.1rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: #10B981;
  transition: transform 0.2s ease;
}
.faq-card[open] .faq-question::after {
  content: "−";
  color: #34D399;
}
.faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
  margin-top: 0.25rem;
  padding-top: 1rem;
}
.faq-answer code {
  background: #020617;
  color: #38BDF8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}
.faq-answer a {
  color: #10B981;
  text-decoration: underline;
}

/* Comprehensive Knowledge & Truth Tables */
.tech-table-container {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 12px;
  border: 1px solid #1E293B;
  background: #020617;
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
.tech-table th {
  background: #0B1120;
  color: #F8FAFC;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #1E293B;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.tech-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #1E293B;
  color: #94A3B8;
}
.tech-table tr:last-child td {
  border-bottom: none;
}
.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.tech-table code {
  color: #10B981;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
