/* ============================================================
   TORZON MIRROR — Midnight Blue / Starry Sky Theme
   ============================================================ */


:root {
  /* Midnight blue palette */
  --bg-primary:       #020914;
  --bg-secondary:     #041126;
  --bg-card:          rgba(7, 26, 56, 0.88);
  --bg-card-solid:    #071a38;
  --bg-card-hover:    rgba(12, 36, 73, 0.75);
  --bg-nav:           rgba(2, 9, 20, 0.92);

  /* Blue scale */
  --blue-900:         #0c2449;
  --blue-800:         #1e3a5f;
  --blue-700:         #1d4ed8;
  --blue-600:         #2563eb;
  --blue-500:         #3b82f6;
  --blue-400:         #60a5fa;
  --blue-300:         #93c5fd;
  --blue-200:         #bfdbfe;
  --blue-100:         #eff6ff;

  /* Cyan accent */
  --accent:           #38bdf8;
  --accent-glow:      rgba(56, 189, 248, 0.28);
  --accent-light:     #7dd3fc;
  --accent-dim:       rgba(56, 189, 248, 0.12);

  /* Text */
  --text-primary:     #e8f4ff;
  --text-secondary:   #93c5fd;
  --text-muted:       #3d5a7a;

  /* Borders */
  --border:           rgba(56, 189, 248, 0.13);
  --border-strong:    rgba(56, 189, 248, 0.32);

  /* Status colors */
  --success:          #34d399;
  --warning:          #fbbf24;
  --danger:           #f87171;

  /* Gradients */
  --gradient-hero:    linear-gradient(160deg, #020914 0%, #04183a 50%, #020914 100%);
  --gradient-card:    linear-gradient(145deg, rgba(7,26,56,0.7), rgba(4,17,38,0.85));
  --gradient-accent:  linear-gradient(135deg, #0ea5e9, #38bdf8);
  --gradient-blue:    linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #38bdf8 100%);

  /* Shadows */
  --shadow-card:      0 4px 28px rgba(0,0,0,0.65), 0 0 0 1px rgba(56,189,248,0.1);
  --shadow-glow:      0 0 40px rgba(56, 189, 248, 0.15);
  --shadow-btn:       0 4px 24px rgba(14, 165, 233, 0.45);

  /* Spacing & shape */
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Star canvas (animated via JS) */
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Nebula glow overlays */
body::before {
  content: '';
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(30,58,95,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* All content above canvas */
.navbar, main, section, footer, .page-hero,
.skip-nav, .scroll-progress, .back-to-top {
  position: relative;
  z-index: 1;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--text-secondary); }
a  { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #bae6fd; }

::selection { background: rgba(56,189,248,0.3); color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--blue-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.nav-logo img.logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 14px var(--accent-glow));
  transition: filter var(--transition), transform var(--transition);
}

.nav-logo:hover img.logo-img {
  filter: drop-shadow(0 0 22px rgba(56,189,248,0.55));
  transform: scale(1.04);
}

.nav-logo .logo-icon-fallback {
  width: 62px;
  height: 62px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 24px var(--accent-glow);
  flex-shrink: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}

.nav-logo:hover .logo-icon-fallback {
  box-shadow: 0 0 36px rgba(56,189,248,0.5);
  transform: scale(1.04);
}

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

.nav-cta {
  background: var(--gradient-accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: var(--shadow-btn);
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  background: var(--gradient-accent) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.55);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-lg  { padding: 15px 36px; font-size: 1rem; }
.btn-sm  { padding: 8px 18px; font-size: 0.82rem; }
.btn-glass {
  background: rgba(56,189,248,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--accent-light);
}
.btn-glass:hover {
  background: rgba(56,189,248,0.16);
  color: var(--text-primary);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section {
  padding: 96px 40px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.section-desc {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 56px;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  margin: 0 auto;
  opacity: 0.5;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 40px 80px;
  text-align: center;
  overflow: hidden;
}

/* Ambient glow orbs */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%       { opacity: 0.6; box-shadow: 0 0 18px var(--accent); }
}

.hero-title {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title .line1 {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 30%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line2 {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
}

.hero-stat {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.hero-stat:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-3px);
}

.stat-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Premium feature card */
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Glowing gradient top strip */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fc-gradient, var(--gradient-accent));
  opacity: 0.55;
  transition: opacity var(--transition);
}

/* Faint background radial glow */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 150px;
  background: radial-gradient(ellipse, var(--fc-glow, rgba(56,189,248,0.08)) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 36px rgba(56,189,248,0.1);
  transform: translateY(-5px);
}

.feature-card:hover::before { opacity: 1; }

/* Icon banner area */
.feature-banner {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  background: var(--fc-icon-bg, rgba(56,189,248,0.1));
  border: 1px solid var(--fc-icon-border, rgba(56,189,248,0.2));
  box-shadow: 0 0 20px var(--fc-glow, rgba(56,189,248,0.12));
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  box-shadow: 0 0 32px var(--fc-glow, rgba(56,189,248,0.25));
  transform: scale(1.06);
}

.feature-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.55;
  text-transform: uppercase;
}

/* Text body */
.feature-body {
  padding: 20px 28px 28px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.feature-card p {
  font-size: 0.86rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

/* Per-card colour themes */
.feature-card.fc-blue   { --fc-gradient: linear-gradient(90deg,#0ea5e9,#38bdf8); --fc-glow: rgba(56,189,248,0.15); --fc-icon-bg: rgba(56,189,248,0.1);  --fc-icon-border: rgba(56,189,248,0.25); }
.feature-card.fc-indigo { --fc-gradient: linear-gradient(90deg,#4f46e5,#818cf8); --fc-glow: rgba(129,140,248,0.15); --fc-icon-bg: rgba(99,102,241,0.1);  --fc-icon-border: rgba(99,102,241,0.25); }
.feature-card.fc-cyan   { --fc-gradient: linear-gradient(90deg,#06b6d4,#67e8f9); --fc-glow: rgba(103,232,249,0.15); --fc-icon-bg: rgba(6,182,212,0.1);   --fc-icon-border: rgba(6,182,212,0.25); }
.feature-card.fc-violet { --fc-gradient: linear-gradient(90deg,#7c3aed,#c084fc); --fc-glow: rgba(167,139,250,0.15); --fc-icon-bg: rgba(124,58,237,0.1);  --fc-icon-border: rgba(124,58,237,0.25); }
.feature-card.fc-amber  { --fc-gradient: linear-gradient(90deg,#d97706,#fbbf24); --fc-glow: rgba(251,191,36,0.15);  --fc-icon-bg: rgba(217,119,6,0.1);   --fc-icon-border: rgba(217,119,6,0.25);  }
.feature-card.fc-green  { --fc-gradient: linear-gradient(90deg,#059669,#34d399); --fc-glow: rgba(52,211,153,0.15);  --fc-icon-bg: rgba(5,150,105,0.1);   --fc-icon-border: rgba(5,150,105,0.25);  }

/* Legacy .feature-icon class for inner-page use */
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

/* ============================================================
   CRYPTO SECTION
   ============================================================ */
.crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.crypto-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.crypto-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.crypto-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.crypto-icon.xmr { background: rgba(255,107,26,0.12); border: 1px solid rgba(255,107,26,0.2); }
.crypto-icon.btc { background: rgba(247,147,26,0.12); border: 1px solid rgba(247,147,26,0.2); }

.crypto-title { font-size: 1.15rem; font-weight: 700; }
.crypto-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.privacy-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 120px;
  flex-shrink: 0;
}

.privacy-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.privacy-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-bar-fill.high  { background: linear-gradient(90deg, #22c55e, #34d399); }
.privacy-bar-fill.med   { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.privacy-bar-fill.low   { background: linear-gradient(90deg, #f87171, #ef4444); }

/* ============================================================
   OPSEC GRID
   ============================================================ */
.opsec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.opsec-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.opsec-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.opsec-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.opsec-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.opsec-card p  { font-size: 0.82rem; line-height: 1.7; }

/* ============================================================
   HARM REDUCTION
   ============================================================ */
.harm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.harm-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.harm-card:hover {
  border-color: rgba(52,211,153,0.3);
  transform: translateY(-2px);
}

.harm-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.harm-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.harm-card p  { font-size: 0.82rem; line-height: 1.7; }

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.news-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.news-date {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 0.97rem;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-primary);
}

.news-card p {
  font-size: 0.83rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-card a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.news-card a:hover { gap: 8px; }

.news-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.badge-platform { background: rgba(56,189,248,0.1); color: var(--accent); border: 1px solid rgba(56,189,248,0.2); }
.badge-crypto   { background: rgba(251,191,36,0.08); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.badge-security { background: rgba(52,211,153,0.08); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.badge-harm     { background: rgba(248,113,113,0.08); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }
.badge-opsec    { background: rgba(139,92,246,0.08); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open,
.faq-item:hover { border-color: var(--border-strong); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-light); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 0 24px 22px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 40px;
}

.cta-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box .section-label  { justify-content: center; }
.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.cta-box p  { font-size: 1rem; line-height: 1.8; max-width: 540px; margin: 0 auto 36px; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: rgba(2, 9, 20, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 64px 40px 32px;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { font-size: 0.84rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.75rem !important;
  line-height: 1.6 !important;
  opacity: 0.65;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 128px 40px 56px;
  background: linear-gradient(180deg, #020914 0%, #041126 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span:last-child { color: var(--text-secondary); }

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ============================================================
   CONTENT LAYOUT (inner pages)
   ============================================================ */
.content-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.content-main > * + * { margin-top: 40px; }

.content-sidebar { position: sticky; top: 96px; }

.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
}

.content-block {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  transition: border-color var(--transition);
}

.content-block:hover { border-color: rgba(56,189,248,0.22); }

.content-block h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block h3 {
  font-size: 1rem;
  margin: 24px 0 10px;
  color: var(--accent-light);
  font-weight: 700;
}

.content-block p {
  font-size: 0.875rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.content-block ul,
.content-block ol {
  padding-left: 0;
  margin-bottom: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-block li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.content-block ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  top: 0;
  font-weight: 700;
}

.content-block ol { counter-reset: ol-counter; }
.content-block ol li { counter-increment: ol-counter; }
.content-block ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  top: 2px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.85rem;
}

thead tr { background: rgba(56,189,248,0.06); }

th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--accent-light);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(56,189,248,0.04); }

/* ============================================================
   LINK CARDS (enter marketplace)
   ============================================================ */
.link-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.link-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.link-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.link-card h3 { font-size: 1rem; }

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.status-online {
  background: rgba(52,211,153,0.1);
  color: var(--success);
  border: 1px solid rgba(52,211,153,0.25);
}

.status-online::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
}

.onion-link {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  word-break: break-all;
  background: rgba(0,0,0,0.35);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  color: var(--accent-light);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.copy-btn:hover { background: rgba(56,189,248,0.2); }

/* ============================================================
   LINKS GRID (homepage onion links)
   ============================================================ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.links-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .links-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .links-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ALERT BOX
   ============================================================ */
.alert {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(8px);
}

.alert-warning { background: rgba(251,191,36,0.05); border: 1px solid rgba(251,191,36,0.18); }
.alert-danger  { background: rgba(239,68,68,0.05);  border: 1px solid rgba(239,68,68,0.18); }
.alert-info    { background: rgba(56,189,248,0.05); border: 1px solid var(--border-strong); }

.alert-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.alert-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.alert-warning .alert-title { color: var(--warning); }
.alert-danger  .alert-title { color: var(--danger); }
.alert-info    .alert-title { color: var(--accent-light); }
.alert p { font-size: 0.84rem; }

/* ============================================================
   PHISHING STEPS
   ============================================================ */
.phishing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 8px;
}

.step-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.step-card p  { font-size: 0.82rem; line-height: 1.7; }

/* Danger list */
.danger-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.danger-item {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.danger-icon { color: var(--danger); flex-shrink: 0; }

/* ============================================================
   SKIP NAV
   ============================================================ */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s;
}
.skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(56,189,248,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 6px 28px rgba(56,189,248,0.6);
  transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Gradient border glow */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(56,189,248,0.1); }
  50%       { box-shadow: 0 0 40px rgba(56,189,248,0.25); }
}

/* ============================================================
   NEWS PAGE SPECIFIC
   ============================================================ */
.news-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .content-layout   { grid-template-columns: 1fr; }
  .content-sidebar  { position: static; order: -1; }
}

@media (max-width: 900px) {
  .hero-stats       { grid-template-columns: repeat(2, 1fr); }
  .crypto-grid      { grid-template-columns: 1fr; }
  .opsec-grid       { grid-template-columns: 1fr 1fr; }
  .harm-grid        { grid-template-columns: 1fr 1fr; }
  .phishing-steps   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section           { padding: 64px 20px; }
  .page-hero        { padding: 108px 20px 48px; }
  .content-layout   { padding: 40px 20px; }
  .cta-section      { padding: 60px 20px; }
  .cta-box          { padding: 40px 24px; }
  footer            { padding: 48px 20px 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open   { display: flex; }
  .nav-links a      { padding: 12px 16px; }
  .hamburger        { display: flex; }

  .features-grid    { grid-template-columns: 1fr; }
  .news-grid        { grid-template-columns: 1fr; }
  .news-full-grid   { grid-template-columns: 1fr; }
  .phishing-steps   { grid-template-columns: 1fr; }
  .opsec-grid       { grid-template-columns: 1fr; }
  .harm-grid        { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; }
  .danger-list      { grid-template-columns: 1fr; }
  .hero             { padding: 108px 20px 60px; }
}

@media (max-width: 480px) {
  .hero-stats       { grid-template-columns: 1fr 1fr; }
  .hero-actions     { flex-direction: column; align-items: stretch; }
  .cta-buttons      { flex-direction: column; }
  .back-to-top      { bottom: 20px; right: 16px; }
}

/* ============================================================
   PERFORMANCE OPTIMISATIONS
   Remove costly backdrop-filter from all card/block elements.
   Only the navbar retains a light blur (already set to 12px).
   Cards use the opaque --bg-card variable instead.
   ============================================================ */

/* GPU layer for the star canvas */
#star-canvas { transform: translateZ(0); }

/* Layout containment for heavy grid sections */
.features-grid, .opsec-grid, .harm-grid,
.news-grid, .news-full-grid, .crypto-grid,
.hero-stats, .phishing-steps, .danger-list,
.links-grid, .content-layout {
  contain: layout style;
}

/* Remove blur from all non-navbar elements */
.btn-glass,
.hero-badge,
.hero-stat,
.feature-card,
.crypto-card,
.opsec-card,
.harm-card,
.news-card,
.faq-item,
.cta-box,
footer,
.sidebar-card,
.content-block,
.link-card,
.alert,
.step-card,
.table-wrap table {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Slightly tighten hero-stat bg since blur is gone */
.hero-stat { background: rgba(7, 26, 56, 0.88); }

/* Mobile menu — keep a subtle blur since it overlays content */
@media (max-width: 768px) {
  .nav-links { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
