/* ============================================================
   AARAN.CLOUD  ·  styles.css  ·  v3.1 — Light + Bold Accents
   ============================================================ */

:root {
  --bg: #f3f4f6;
  --bg-soft: #e5e7eb;
  --bg-card: #ffffff;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --primary-glow: rgba(124,58,237,0.12);
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --info: #0ea5e9;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --max: 1140px;
  --max-blog: 740px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}

::selection { background: var(--primary-glow); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 1000;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ambient-glow { display: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--primary); color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a, .site-nav .nav-group-toggle {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .15s;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible,
.site-nav .nav-group-toggle:hover, .site-nav .nav-group-toggle:focus-visible {
  color: var(--primary);
  background: var(--primary-glow);
}
.site-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-glow); }

.nav-group { position: relative; }
.nav-group-toggle { display: flex; align-items: center; gap: 6px; }
.nav-group-toggle::after { content: "▼"; font-size: 0.55rem; opacity: 0.5; transition: transform .2s; }
.nav-group.open .nav-group-toggle::after { transform: rotate(180deg); }

.nav-group-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  z-index: 200;
}
.nav-group.open .nav-group-menu { display: flex; }
.nav-group:last-child .nav-group-menu { right: 0; left: auto; }
.nav-group-menu a { padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; }
.nav-group-menu a:hover { background: var(--primary-glow); color: var(--primary); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 16px; position: relative; padding-bottom: 10px; }
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: 8px; color: var(--primary-dark); }

p { margin-bottom: 12px; color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-dark); }

.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(124,58,237,0.25);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: var(--primary); }

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: rgba(124,58,237,0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--primary-dark);
  font-weight: 500;
}

pre {
  background: #1f2937;
  border-radius: var(--radius-md);
  padding: 18px;
  overflow: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #e5e7eb;
}
pre code { background: none; padding: 0; color: #e5e7eb; }

/* ============================================================
   LAYOUT
   ============================================================ */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 50px; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.7;
}
.panel:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 80px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--primary-glow);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 { max-width: 16ch; margin-bottom: 16px; }

.typed-hero {
  display: block;
  margin-top: 6px;
  min-height: 1.2em;
  color: var(--primary);
  white-space: nowrap;
}

.lede { max-width: 58ch; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.65; margin-bottom: 22px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); color: #fff; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: var(--primary-light); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .15s;
}
.tags span:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

/* ============================================================
   STATS
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; }
.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.stat-chip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.stat-chip:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.stat-chip:hover::after { opacity: 1; }
.stat-chip strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-chip span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   COMMAND BLOCKS
   ============================================================ */
.cmd-block {
  background: #1f2937;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  overflow-x: auto;
}
.cmd-block code { background: none; padding: 0; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; color: #a5b4fc; }
.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e5e7eb;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.copy-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }

.copy-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.copy-status { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   STEP LIST
   ============================================================ */
.step-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.step-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.contact-grid a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.contact-grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .2s;
}
.contact-grid a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.contact-grid a:hover::before { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 32px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.site-footer a { color: #d1d5db; font-weight: 600; }
.site-footer a:hover { color: var(--primary-light); }
.heart-icon { width: 13px; height: 13px; vertical-align: -2px; margin: 0 3px; filter: brightness(0) saturate(100%) invert(48%) sepia(75%) saturate(5268%) hue-rotate(248deg) brightness(95%) contrast(95%); }
.visit-counter { color: #6b7280; font-size: 0.8rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HOMEPAGE SPECIFIC
   ============================================================ */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }

.terminal-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.terminal-chip .prompt { color: var(--success); font-weight: 700; }
.typed-role { color: var(--text-secondary); font-weight: 600; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.hero-stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.hero-stat:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.hero-stat:hover::after { opacity: 1; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.hero-stat span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.meta-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.meta-list li {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  padding-left: 18px;
}
.meta-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.timeline li {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 36px;
}
.timeline li::before {
  content: "›";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.tool-links a {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: all .15s;
}
.tool-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

.command-card {
  background: #1f2937;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
}
.command-label { font-size: 0.8rem; color: #9ca3af; margin-bottom: 8px; font-weight: 600; }
.command-line { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: #e5e7eb; word-break: break-all; line-height: 1.6; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
}
.project-card:hover { border-color: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.project-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.project-card .impact { color: var(--text-secondary); font-style: italic; }
.project-card a { font-size: 0.85rem; color: var(--primary); }
.project-card a:hover { color: var(--primary-dark); }

/* ============================================================
   COMMUNITY REPUTATION
   ============================================================ */
.rep-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.rep-stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.rep-stat-chip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s;
}
.rep-stat-chip:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.rep-stat-chip:hover::after { opacity: 1; }
.rep-stat-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.rep-stat-chip strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.rep-stat-chip span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.rep-checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rep-checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); position: relative; overflow: hidden; }
.rep-checklist li::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.rep-checklist li span[aria-hidden] { font-size: 1.2rem; flex-shrink: 0; }

.rep-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.rep-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; transition: all .2s; position: relative; overflow: hidden; }
.rep-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s; }
.rep-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.rep-card:hover::before { opacity: 1; }
.rep-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.rep-card p { font-size: 0.84rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

.rep-attack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.rep-attack-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: all .2s; position: relative; overflow: hidden; }
.rep-attack-item::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--accent), var(--danger)); opacity: 0; transition: opacity .3s; }
.rep-attack-item:hover { border-color: var(--accent); }
.rep-attack-item:hover::before { opacity: 1; }
.rep-attack-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.rep-attack-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.rep-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.rep-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; text-align: center; position: relative; overflow: hidden; }
.rep-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0.5; }
.rep-step span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.rep-step p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.rep-note { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin: 16px 0; position: relative; overflow: hidden; }
.rep-note::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.rep-note ul { padding-left: 20px; margin: 8px 0 0; }
.rep-note li { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }

.rep-live-panel { position: relative; }
.rep-live-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rep-live-controls h2 { margin: 0; padding: 0; }
.rep-live-controls h2::after { display: none; }
.rep-live-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rep-live-status, .rep-live-updated { font-size: 0.78rem; color: var(--text-muted); }
.rep-live-status { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font-weight: 600; }
.rep-live-status.ok { border-color: rgba(16,185,129,0.4); color: var(--success); background: rgba(16,185,129,0.06); }
.rep-live-status.error { border-color: rgba(239,68,68,0.4); color: var(--danger); background: rgba(239,68,68,0.06); }
.rep-live-status.warn { border-color: rgba(245,158,11,0.4); color: #b45309; background: rgba(245,158,11,0.06); }
.rep-live-status.loading { border-color: rgba(124,58,237,0.4); color: var(--primary); background: var(--primary-glow); }

.rep-live-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.rep-live-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; text-align: center; position: relative; overflow: hidden; }
.rep-live-kpi::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s; }
.rep-live-kpi:hover::after { opacity: 1; }
.rep-live-kpi h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.rep-live-kpi p { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0; }

.rep-live-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rep-live-list-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.rep-live-list-block h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.rep-live-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-live-list li { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-weight: 500; }
.rep-live-list li strong { color: var(--primary); font-weight: 700; }
.rep-live-empty { color: var(--text-muted); font-style: italic; text-align: center; }

.abuseipdb-panel { text-align: center; }
.abuseipdb-panel p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.abuseipdb-badge-link { display: inline-block; margin-top: 16px; }
.abuseipdb-badge-link img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }

/* ============================================================
   TOOLS HUB
   ============================================================ */
.tools-hub-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.tools-hub-meta strong { color: var(--primary); font-weight: 700; }

.tools-search-wrap { margin-bottom: 16px; }
.tools-search-wrap label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.tools-search-wrap input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all .15s;
}
.tools-search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.tools-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tool-filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tool-filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.tool-filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124,58,237,0.25);
}

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.5;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 30px rgba(124,58,237,0.1);
}
.tool-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.tool-card-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 12px; }
.tool-card-cat.network { color: var(--primary); }
.tool-card-cat.security { color: var(--success); }
.tool-card-cat.data { color: var(--accent); }
.tool-card-cat.ops { color: var(--danger); }

.tool-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.tool-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; flex: 1; }
.tool-card-arrow {
  align-self: flex-end;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .15s;
}
.tool-card:hover .tool-card-arrow { color: var(--primary); transform: translateX(3px); }

/* ============================================================
   TOOL APP PAGES
   ============================================================ */
.app-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); margin: 24px 0 16px; font-weight: 500; }
.app-breadcrumb a { color: var(--text-muted); }
.app-breadcrumb a:hover { color: var(--primary); }
.app-breadcrumb .sep { opacity: 0.4; }
.app-breadcrumb .cur { color: var(--text-secondary); }

.app-panel { max-width: 900px; }
.app-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.app-cat-badge.network { color: var(--primary); border: 1px solid rgba(124,58,237,0.2); background: var(--primary-glow); }
.app-cat-badge.security { color: var(--success); border: 1px solid rgba(16,185,129,0.2); background: rgba(16,185,129,0.06); }
.app-cat-badge.data { color: var(--accent); border: 1px solid rgba(245,158,11,0.2); background: rgba(245,158,11,0.06); }
.app-cat-badge.ops { color: var(--danger); border: 1px solid rgba(239,68,68,0.2); background: rgba(239,68,68,0.06); }

.app-form { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.app-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.app-form input[type="text"], .app-form input[type="number"], .app-form textarea, .app-form select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all .15s;
}
.app-form input:focus, .app-form textarea:focus, .app-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.app-form textarea { resize: vertical; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; }
.app-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }

.app-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
  min-height: 60px;
  margin: 0;
  overflow: auto;
}

.vpnlt-result, .hha-result { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-top: 16px; }
.vpnlt-result h3, .hha-result h3 { font-size: 1rem; margin-bottom: 10px; }
.vpnlt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.vpnlt-row:last-child { border-bottom: none; }
.vpnlt-row .label { color: var(--text-muted); }
.vpnlt-row .value { color: var(--text); font-weight: 600; }

.hha-grade { font-size: 1.6rem; font-weight: 800; }
.hha-grade.grade-Aplus, .hha-grade.grade-A, .hha-grade.grade-B { color: var(--success); }
.hha-grade.grade-C { color: var(--accent); }
.hha-grade.grade-D, .hha-grade.grade-F { color: var(--danger); }
.hha-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.85rem; }
.hha-check.pass { color: var(--success); }
.hha-check.fail { color: var(--danger); }
.hha-check.warn { color: var(--accent); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.blog-main { min-width: 0; }

.post-preview {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.post-preview::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s; }
.post-preview:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.post-preview:hover::before { opacity: 1; }
.post-preview h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.post-preview p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 12px; }
.post-meta { font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

.blog-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.blog-sidebar h3 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text); }
.blog-sidebar ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blog-sidebar ul li a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; display: block; padding: 6px 0; border-bottom: 1px solid var(--border); transition: all .15s; }
.blog-sidebar ul li a:hover { color: var(--primary); }
.blog-sidebar ul li:last-child a { border-bottom: none; }

.blog-post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.blog-post-header .post-meta { margin-bottom: 12px; }
.blog-post h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin-bottom: 0; max-width: none; color: var(--text); }
.blog-post h2 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); margin-top: 40px; margin-bottom: 14px; padding-left: 14px; border-left: 3px solid var(--primary); line-height: 1.3; }
.blog-post h2::after { display: none; }
.blog-post h3 { font-size: 0.9rem; margin-top: 28px; margin-bottom: 10px; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.blog-post p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.85; margin-bottom: 18px; }
.blog-post strong { color: var(--text); font-weight: 700; }
.blog-post a:not(.text-link):not([class]) { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(124,58,237,0.25); text-underline-offset: 3px; transition: all .15s; }
.blog-post a:not(.text-link):not([class]):hover { text-decoration-color: var(--primary); }
.blog-post ul, .blog-post ol { padding-left: 24px; margin-bottom: 18px; }
.blog-post ul li, .blog-post ol li { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; margin-bottom: 6px; }
.blog-post ul li::marker { color: var(--primary); }
.blog-post ol li::marker { color: var(--primary); font-weight: 700; }
.blog-post blockquote { border-left: 3px solid var(--primary); padding-left: 18px; margin: 20px 0; color: var(--text-muted); font-style: italic; }

.blog-post pre { position: relative; }
.blog-post pre .copy-btn-blog {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.blog-post pre:hover .copy-btn-blog, .blog-post pre:focus-within .copy-btn-blog { opacity: 1; }
.blog-post pre .copy-btn-blog:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ============================================================
   SCRIPTS LIBRARY
   ============================================================ */
.script-page .hero { padding-bottom: 30px; }
.script-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.script-filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.script-filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.script-filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124,58,237,0.25);
}

.script-search-wrap { margin-bottom: 16px; }
.script-search-wrap input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all .15s;
}
.script-search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.script-results { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 500; }
.script-results strong { color: var(--primary); font-weight: 700; }

.script-accordion { display: flex; flex-direction: column; gap: 12px; }
.script-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .2s;
  position: relative;
}
.script-item[open] {
  border-color: rgba(124,58,237,0.28);
  box-shadow: 0 18px 42px rgba(17,24,39,0.08);
}
.script-item::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s; }
.script-item:hover { border-color: var(--primary-light); }
.script-item:hover::before { opacity: 1; }
.script-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}
.script-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
  flex-shrink: 0;
  margin-left: auto;
}
.script-item[open] summary {
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(124,58,237,0));
}
.script-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--primary-dark);
}
.script-item summary::-webkit-details-marker { display: none; }
.script-title { font-size: 0.95rem; }
.script-desc { padding: 0 22px 14px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.script-item .cmd-block {
  margin: 0 22px 0;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.script-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 22px 22px;
}
.script-download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.18);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(245,158,11,0.08));
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.script-download-link::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.8);
}
.script-download-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124,58,237,0.32);
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(245,158,11,0.12));
  box-shadow: 0 10px 24px rgba(124,58,237,0.14);
}

/* ============================================================
   PASTE
   ============================================================ */
.paste-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.paste-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.paste-tab:hover { color: var(--primary); }
.paste-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.paste-form { display: flex; flex-direction: column; gap: 14px; }
.paste-form textarea {
  width: 100%;
  min-height: 280px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
  transition: all .15s;
}
.paste-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.paste-form input[type="text"], .paste-form input[type="password"], .paste-form select {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all .15s;
}
.paste-form input:focus, .paste-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.paste-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.paste-form .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.paste-form .form-row > * { flex: 1; min-width: 200px; }

.paste-view { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.paste-view pre { background: none; border: none; padding: 0; margin: 0; }

/* ============================================================
   SSH PAGE
   ============================================================ */
.only-if-asked {
  display: inline-block;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  color: #92400e;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}
.key-fingerprint {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}
.kf-label { color: var(--text-muted); font-weight: 500; }
.disclaimer-box {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.disclaimer-box::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.disc-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; text-align: center; padding: 40px 20px; }
.error-page h1 { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--primary); opacity: 0.2; line-height: 1; margin-bottom: 8px; }
.error-page h2 { color: var(--text); margin-bottom: 12px; }
.error-page p { color: var(--text-muted); max-width: 50ch; margin-bottom: 24px; }

/* ============================================================
   BYTE DRIFT CANVAS
   ============================================================ */
.bg-byte-fx { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(20px, 4vw, 40px);
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    z-index: 200;
  }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav .nav-group-toggle { padding: 10px 14px; width: 100%; text-align: left; }
  .nav-group-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.02); padding: 4px 8px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .stat-grid, .rep-stat-grid, .rep-live-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card-grid, .tools-grid, .rep-card-grid, .rep-attack-grid { grid-template-columns: 1fr; }
  .stat-grid, .rep-stat-grid, .rep-live-kpis { grid-template-columns: 1fr; }
  .cmd-block { flex-direction: column; align-items: flex-start; }
  .script-item summary { align-items: flex-start; }
  .script-item summary::after { margin-left: 0; margin-top: 4px; }
  .script-actions { padding-top: 12px; }
  .script-download-link { width: 100%; justify-content: center; }
  .hero h1 { max-width: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .tool-card, .post-preview, .rep-card, .rep-attack-item { transition: none; }
}
