/* ══════════════════════════════════════════════
   DARKDIR — ONION DIRECTORY
   style.css
   ══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:      #080b0f;
  --bg-surface:   #0d1117;
  --bg-card:      #111820;
  --bg-card-hover:#141c28;
  --bg-elevated:  #161f2d;
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(57,255,20,0.25);

  --accent:       #39ff14;
  --accent-dim:   rgba(57,255,20,0.12);
  --accent-glow:  rgba(57,255,20,0.35);

  --text-primary:   #e8edf3;
  --text-secondary: #8b95a3;
  --text-muted:     #4a5568;
  --text-accent:    #39ff14;

  --online:  #22c55e;
  --offline: #ef4444;
  --warn:    #f59e0b;

  --cat-marketplace: #f97316;
  --cat-forum:       #8b5cf6;
  --cat-crypto:      #f59e0b;
  --cat-privacy:     #06b6d4;
  --cat-news:        #3b82f6;
  --cat-hosting:     #10b981;
  --cat-email:       #ec4899;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(57,255,20,0.15);

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-icon svg { filter: drop-shadow(0 0 8px rgba(57,255,20,0.6)); }
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo:hover { opacity: 1; }
.accent { color: var(--accent); }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  opacity: 1;
}
.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(57,255,20,0.2);
  margin-left: 8px;
}
.nav-cta:hover {
  background: rgba(57,255,20,0.2) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(57,255,20,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(57,255,20,0.04) 0%, transparent 70%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}

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

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
  animation: fadeInDown 0.6s 0.2s ease both;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 40px;
  animation: fadeInDown 0.6s 0.3s ease both;
}

.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-accent);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 32px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   TOR BANNER
   ══════════════════════════════════════════════ */
.tor-banner {
  background: rgba(245, 158, 11, 0.08);
  border-top: 1px solid rgba(245,158,11,0.15);
  border-bottom: 1px solid rgba(245,158,11,0.15);
  padding: 12px 0;
}
.tor-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.tor-icon { flex-shrink: 0; }
.tor-banner-inner strong { color: var(--warn); }
.tor-banner-inner a { color: var(--warn); text-decoration: underline; }
.banner-close {
  margin-left: auto;
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  transition: all var(--transition);
}
.banner-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ══════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════ */
.main-content { padding: 56px 0; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-pill {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}
.filter-pill.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(57,255,20,0.3);
}

/* ══════════════════════════════════════════════
   CATEGORY SECTIONS
   ══════════════════════════════════════════════ */
.cat-section { margin-bottom: 64px; }

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-icon { font-size: 1.4rem; }
.cat-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.cat-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}
.cat-view-all {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.cat-view-all:hover { color: var(--accent); opacity: 1; }

/* ══════════════════════════════════════════════
   CARDS GRID
   ══════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ── SITE CARD ── */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.site-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border: 1px solid var(--border-hover);
}
.site-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(57,255,20,0.08);
}
.site-card:hover::after { opacity: 1; }

/* Thumbnail */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.site-card:hover .card-thumb img { transform: scale(1.04); }

.card-thumb--placeholder { display: flex; align-items: center; justify-content: center; }
.thumb-placeholder {
  font-size: 3rem;
  opacity: 0.3;
  user-select: none;
}

/* Status badge */
.card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
}
.card-status.online {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
}
.card-status.offline {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.card-status.online .status-dot { animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Card Body */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Category badge */
.cat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat-badge.marketplace { background: rgba(249,115,22,0.15); color: #f97316; }
.cat-badge.forum       { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.cat-badge.crypto      { background: rgba(245,158,11,0.15); color: #f59e0b; }
.cat-badge.privacy     { background: rgba(6,182,212,0.15);  color: #06b6d4; }
.cat-badge.news        { background: rgba(59,130,246,0.15); color: #3b82f6; }
.cat-badge.hosting     { background: rgba(16,185,129,0.15); color: #10b981; }
.cat-badge.email       { background: rgba(236,72,153,0.15); color: #ec4899; }

.uptime-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}
.uptime-badge.low { color: var(--warn); }

/* Card title */
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}
.site-card:hover .tag { border-color: rgba(255,255,255,0.12); color: var(--text-secondary); }

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.onion-addr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.card-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.link-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

.onion-addr-full {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
  flex: 1;
  word-break: break-all;
  white-space: normal;
  line-height: 1.4;
  user-select: all;
  transition: color var(--transition);
}
.site-card:hover .onion-addr-full { color: var(--text-secondary); }

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.copy-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(57,255,20,0.3);
}
.copy-btn.copied {
  color: var(--online);
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
}

/* ── TRUST SCORE GAUGE ──────────────────────────────
   Colour tiers:
     .high   = 80–100  → green  #22c55e
     .medium = 50–79   → orange #f59e0b
     .low    = 0–49    → red    #ef4444
   ─────────────────────────────────────────────────── */
.trust-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 5px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  /* colour set by tier class below */
}

/* "Trust Score" label — small, muted, uppercase */
.trust-score .ts-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  /* inherits currentColor from tier class */
}

/* The percentage value — bold, full colour */
.trust-score .ts-value {
  font-size: 0.72rem;
  font-weight: 800;
  /* inherits currentColor from tier class */
}

/* The circular SVG gauge */
.trust-score svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: rotate(-90deg); /* start arc from top */
}
.trust-score svg path.bg {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 3.5;
}
.trust-score svg path.fill {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  /* stroke colour set by tier class */
}

/* ── Tier: HIGH (green) — score 80 and above */
.trust-score.high {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.07);
}
.trust-score.high svg path.fill { stroke: #22c55e; }

/* ── Tier: MEDIUM (orange) — score 50–79 */
.trust-score.medium {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.07);
}
.trust-score.medium svg path.fill { stroke: #f59e0b; }

/* ── Tier: LOW (red) — score below 50 */
.trust-score.low {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.07);
}
.trust-score.low svg path.fill { stroke: #ef4444; }

/* Static Pages */
.static-page { padding: 80px 0; min-height: calc(100vh - 240px); }
.static-header { text-align: center; margin-bottom: 52px; }
.static-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 14px; }
.static-content-wrap { max-width: 800px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.static-content-wrap h2 { margin-top: 32px; margin-bottom: 16px; font-size: 1.3rem; color: var(--text-primary); }
.static-content-wrap h3 { margin-top: 24px; margin-bottom: 12px; font-size: 1.1rem; color: var(--text-primary); }
.static-content-wrap p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; font-size: 0.95rem; }
.static-content-wrap ul { margin-left: 20px; color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.static-content-wrap li { margin-bottom: 8px; }
.static-content-wrap pre { background: var(--bg-surface); padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow-x: auto; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   HOW TO ACCESS SECTION
   ══════════════════════════════════════════════ */
.how-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-desc a { color: var(--accent); text-decoration: underline; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--text-primary); padding-left: 4px; opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(57,255,20,0.08);
  color: var(--accent);
  border: 1px solid rgba(57,255,20,0.15);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--online);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   HIDDEN (filter)
   ══════════════════════════════════════════════ */
.cat-section.hidden { display: none; }
.site-card.hidden    { display: none; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-base); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px 24px; gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .menu-toggle { display: flex; }

  .hero { padding: 64px 0 56px; }
  .hero-stats { flex-direction: column; padding: 20px 32px; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; margin: 0; }

  .filter-bar { gap: 6px; }
  .filter-pill { padding: 6px 14px; font-size: 0.8rem; }

  .cards-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { letter-spacing: -1px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-divider { width: 1px; height: 32px; margin: 0; }
  .hero-stats { flex-direction: row; flex-wrap: nowrap; padding: 16px 24px; }
  .stat-num { font-size: 1.4rem; }
  .toast { bottom: 16px; right: 16px; left: 16px; }
}
