/* ==========================================================================
   NEDXCO Blog — design system matched to nedxco.com
   Dark navy, electric blue, violet, mint. RTL Persian.
   ========================================================================== */

@font-face {
  font-family: "Anjoman";
  src: url("../fonts/anjoman.woff2") format("woff2-variations"),
       url("../fonts/anjoman.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05060c;
  --bg-soft: #090b13;
  --panel: rgba(13, 16, 28, 0.86);
  --panel-solid: #0d101b;
  --text: #f4f8ff;
  --body: #cfd9ea;
  --muted: #97a7c3;
  --muted-2: #71809d;
  --line: rgba(100, 114, 148, 0.24);
  --line-strong: rgba(139, 124, 255, 0.42);
  --blue: #8b5cf6;
  --blue-2: #7c5cff;
  --purple: #e879f9;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #fb7185;
  --container: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
  --font: "Anjoman", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(124, 92, 255, 0.18), transparent 62%),
    radial-gradient(760px 520px at 6% 6%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  text-rendering: optimizeSpeed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 246, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

img, svg { max-width: 100%; }
img { height: auto; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: #7dd8ff; }

button, input { font: inherit; }
button { cursor: pointer; }

::selection {
  background: rgba(36, 168, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  right: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--blue);
  color: #04101f;
  border-radius: 10px;
  font-weight: 800;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #04101f; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 8, 23, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(5, 8, 23, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(36, 168, 255, 0.13), rgba(145, 91, 255, 0.08));
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(36, 168, 255, 0.16);
  overflow: hidden;
}
.brand-logo img { width: 38px; height: 38px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.brand-copy small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-links a.active { color: #fff; background: rgba(124, 92, 255, 0.12); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.nav-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: 0.2s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(124, 92, 255, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, #29b0ff, #1478f5);
  color: #fff;
  box-shadow: 0 10px 26px rgba(36, 168, 255, 0.28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(36, 168, 255, 0.38);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(36, 168, 255, 0.08);
  color: #fff;
}
.btn-soft {
  background: rgba(69, 255, 155, 0.09);
  border-color: rgba(69, 255, 155, 0.22);
  color: var(--green);
}
.btn-soft:hover { color: #8dffc2; background: rgba(69, 255, 155, 0.14); }

.menu-btn { display: none; }

/* ---------- Mobile drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 5, 14, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(340px, 88vw);
  padding: 22px;
  background: #070c1e;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-links a {
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.drawer-links a:hover, .drawer-links a.active { background: rgba(124, 92, 255, 0.12); color: #fff; }
.drawer-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 38px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: 18%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(36, 168, 255, 0.2), transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: 4%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(145, 91, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(36, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(36, 168, 255, 0.07);
  color: #9adcff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69, 255, 155, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.9vw, 60px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.8px;
}
.grad {
  background: linear-gradient(90deg, #a9e7ff 0%, #24a8ff 46%, #915bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 2.05;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 41, 0.66);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form:focus-within {
  border-color: rgba(36, 168, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 168, 255, 0.08);
}
.search-form svg { width: 19px; height: 19px; color: var(--muted-2); margin-inline-start: 9px; flex-shrink: 0; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 9px 4px;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form button {
  border: 0;
  border-radius: 11px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #29b0ff, #1478f5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 20px; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 11.5px; color: var(--muted-2); }

/* Server status card */

.server-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(126, 151, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(320px 160px at 88% -5%, rgba(145, 91, 255, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(13, 24, 52, 0.92), rgba(6, 11, 28, 0.96));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.035) 50%, transparent 70%);
  pointer-events: none;
}
.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.server-name { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.server-name .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69, 255, 155, 0.12);
  animation: pulse 2s infinite;
}
.server-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 7px;
}
.server-rows { display: grid; gap: 0; margin: 4px 0 14px; }
.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(126, 151, 255, 0.13);
  font-size: 12.5px;
}
.server-row:last-child { border-bottom: 0; }
.server-row span { color: var(--muted); }
.server-row strong { font-weight: 800; color: #fff; font-size: 12.5px; }
.server-row strong.ok { color: var(--green); }
.server-row strong.blue { color: #7dd8ff; }

.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  padding: 4px 2px 0;
  margin-bottom: 12px;
}
.wave i {
  flex: 1;
  min-width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #45ff9b, #24a8ff 60%, rgba(36, 168, 255, 0.18));
  opacity: 0.85;
  animation: wave 1.6s ease-in-out infinite alternate;
}
.server-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
}
.server-foot b { color: #9adcff; font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding: 26px 0 58px; }
.section-tight { padding: 10px 0 44px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
}
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; max-width: 620px; }
.section-head .head-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9adcff;
  padding-bottom: 5px;
}
.section-head .head-link svg { width: 15px; height: 15px; }
.section-head .head-link:hover { color: #fff; }

/* ---------- Featured post ---------- */

.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 355px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.featured:hover { border-color: rgba(36, 168, 255, 0.38); transform: translateY(-2px); }
.featured-media { position: relative; min-height: 300px; overflow: hidden; }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 23, 0.55), transparent 55%),
              linear-gradient(0deg, rgba(5, 8, 23, 0.25), transparent 40%);
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured:hover .featured-media img { transform: scale(1.035); }
.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 32px 30px;
}
.featured-body h3 {
  margin: 14px 0 10px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.3px;
}
.featured-body h3 a { color: var(--text); }
.featured-body h3 a:hover { color: #9adcff; }
.featured-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 11.5px;
}
.featured-meta span { display: inline-flex; align-items: center; gap: 5px; }
.featured-meta svg { width: 14px; height: 14px; }

/* ---------- Category badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cat-server { color: #7dd8ff; background: rgba(36, 168, 255, 0.1); border-color: rgba(36, 168, 255, 0.22); }
.cat-bots { color: #c4a7ff; background: rgba(145, 91, 255, 0.1); border-color: rgba(145, 91, 255, 0.24); }
.cat-setup { color: #8dffc2; background: rgba(69, 255, 155, 0.08); border-color: rgba(69, 255, 155, 0.22); }
.cat-buy { color: #ffdf9a; background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.22); }

/* ---------- Filter chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.18s ease;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.active {
  color: #04101f;
  background: linear-gradient(135deg, #7dd8ff, #24a8ff);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(36, 168, 255, 0.25);
}
.chip .count { opacity: 0.6; font-size: 10.5px; margin-inline-start: 4px; }

/* ---------- Post grid ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.043), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 168, 255, 0.38);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070d22;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.045); }
.post-thumb .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  backdrop-filter: blur(10px);
  background-color: rgba(6, 11, 28, 0.72);
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 18px 18px 16px;
}
.post-body h3 {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: -0.2px;
}
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: #9adcff; }
.post-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 151, 255, 0.1);
  color: var(--muted-2);
  font-size: 10.5px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { width: 13px; height: 13px; }
.post-meta .read { margin-inline-start: auto; color: #8fb6d8; }

.empty-state {
  display: none;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty-state.show { display: block; }

/* ---------- Trust strip ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
}
.trust-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(36, 168, 255, 0.2);
  color: #7dd8ff;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.trust-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 30px 0 0;
  padding: 30px 34px;
  border: 1px solid rgba(36, 168, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(420px 200px at 90% 0%, rgba(145, 91, 255, 0.18), transparent 70%),
    linear-gradient(120deg, rgba(36, 168, 255, 0.12), rgba(10, 17, 41, 0.86));
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 255, 155, 0.15), transparent 65%);
}
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { margin: 0 0 8px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; }
.cta-copy p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* ---------- Article ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  box-shadow: 0 0 12px rgba(36, 168, 255, 0.55);
  transition: width 0.1s linear;
}

.article-hero { padding: 30px 0 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 11.5px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }
.breadcrumb .current { color: #9adcff; }

.article-header { max-width: 880px; margin: 20px 0 26px; }
.article-header h1 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.9vw, 44px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.article-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2.05;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }
.article-meta .author-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}
.author-dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #24a8ff, #915bff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.article-cover {
  position: relative;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption {
  padding: 9px 16px;
  color: var(--muted-2);
  font-size: 10.5px;
  background: rgba(6, 11, 28, 0.6);
  border-top: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-bottom: 20px;
}
.article-main { min-width: 0; }

.prose {
  color: var(--body);
  font-size: 16px;
  line-height: 2.1;
}
.prose > p { margin: 0 0 20px; }
.prose > p:first-of-type { font-size: 16.5px; color: #dbe5f5; }
.prose .tutorial-figure {
  margin: 30px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #070d22;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}
.prose .tutorial-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050817;
}
.prose .tutorial-figure figcaption {
  padding: 11px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.prose .tutorial-figure figcaption strong { color: #dbe5f5; }
.prose .tutorial-figure + .tutorial-figure { margin-top: -10px; }
.prose strong { color: #fff; font-weight: 800; }
.prose em { color: #dbe5f5; }
.prose a {
  color: #7dd8ff;
  border-bottom: 1px dashed rgba(125, 216, 255, 0.4);
  padding-bottom: 1px;
}
.prose a:hover { color: #fff; border-bottom-color: #fff; }

.prose h2 {
  position: relative;
  margin: 46px 0 16px;
  padding-inline-start: 15px;
  color: #fff;
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.4px;
  scroll-margin-top: 100px;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7dd8ff, #24a8ff 55%, #915bff);
}
.prose h3 {
  margin: 32px 0 12px;
  color: #fff;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.7;
  scroll-margin-top: 100px;
}
.prose h4 { margin: 24px 0 10px; color: #fff; font-size: 16.5px; font-weight: 800; }

.prose ul, .prose ol { margin: 0 0 22px; padding-inline-start: 22px; }
.prose li { margin: 8px 0; padding-inline-start: 4px; }
.prose li::marker { color: var(--blue); }
.prose ol li::marker { color: #7dd8ff; font-weight: 800; }

.prose table {
  width: 100%;
  margin: 26px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.85;
}
.prose thead th {
  padding: 12px 13px;
  background: rgba(36, 168, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prose tbody td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(126, 151, 255, 0.1);
  color: #c6d3e7;
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: 14px; }
.table-wrap table { margin: 0; min-width: 560px; }

.prose code {
  direction: ltr;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(36, 168, 255, 0.16);
  color: #8edbff;
  font-family: var(--mono);
  font-size: 0.84em;
  unicode-bidi: embed;
}
.prose pre {
  position: relative;
  direction: ltr;
  text-align: left;
  margin: 24px 0;
  padding: 18px 18px;
  border: 1px solid rgba(126, 151, 255, 0.2);
  border-radius: 14px;
  background: #060b1c;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.85;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.prose pre code {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a9c7e8;
  font-size: inherit;
  white-space: pre;
}
.prose pre .copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font);
  font-size: 10px;
  opacity: 0;
  transition: 0.2s ease;
}
.prose pre:hover .copy-code { opacity: 1; }
.prose pre .copy-code:hover { color: #fff; border-color: var(--line-strong); }

.callout {
  position: relative;
  margin: 26px 0;
  padding: 16px 18px 16px 18px;
  padding-inline-start: 18px;
  border: 1px solid rgba(69, 255, 155, 0.2);
  border-inline-start: 3px solid var(--green);
  border-radius: 14px;
  background: rgba(69, 255, 155, 0.055);
  color: #cfe9db;
  font-size: 13.5px;
  line-height: 2;
}
.callout strong { color: var(--green); }
.callout::after { content: none; }

blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--purple);
  border-radius: 0 14px 14px 0;
  background: rgba(145, 91, 255, 0.07);
  color: #dcd2f7;
  font-size: 14px;
}
blockquote p:last-child { margin-bottom: 0; }

.prose hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }

/* FAQ */

.faq-block { margin: 40px 0 10px; }
.faq-block > h2 { margin-top: 0; }
.faq-item {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: rgba(36, 168, 255, 0.3); background: rgba(36, 168, 255, 0.045); }
.faq-item summary {
  position: relative;
  padding: 14px 46px 14px 16px;
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #9adcff;
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: rgba(36, 168, 255, 0.12); }
.faq-item .faq-answer {
  padding: 0 16px 16px;
  color: var(--body);
  font-size: 13.5px;
  line-height: 2;
}
.faq-item .faq-answer p { margin: 0; }

.article-services {
  margin: 34px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(12, 20, 48, 0.82), rgba(6, 10, 26, 0.66));
}
.article-services h2 { margin: 0 0 14px; font-size: 17px; }
.article-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.article-service {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.18s ease;
}
.article-service strong { color: var(--text); font-size: 12.5px; }
.article-service span { color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.article-service:hover { border-color: var(--line-strong); background: rgba(36, 168, 255, 0.05); }
@media (max-width: 760px) { .article-services-grid { grid-template-columns: 1fr; } }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tag {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  transition: 0.18s ease;
}
.tag:hover { color: #fff; border-color: var(--line-strong); background: rgba(36, 168, 255, 0.07); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.share-row span { color: var(--muted-2); font-size: 11.5px; margin-inline-end: 2px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: 0.18s ease;
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(36, 168, 255, 0.08); }

/* Author box */

.author-box {
  display: flex;
  gap: 15px;
  margin: 32px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(36, 168, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.author-avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #24a8ff, #915bff);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(36, 168, 255, 0.22);
}
.author-box h3 { margin: 0 0 3px; font-size: 14px; font-weight: 800; }
.author-box .author-role { color: #9adcff; font-size: 10.5px; font-weight: 700; }
.author-box p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.author-box a { font-size: 11px; font-weight: 700; }

/* Aside */

.article-aside { position: sticky; top: 98px; display: grid; gap: 16px; }
.aside-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 41, 0.66);
  padding: 17px;
  backdrop-filter: blur(10px);
}
.aside-card h2, .aside-card h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1px;
}
.toc { max-height: 52vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(36, 168, 255, 0.3) transparent; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; }
.toc li.toc-sub { padding-inline-start: 12px; }
.toc a {
  display: block;
  padding: 5px 10px;
  border-inline-start: 2px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
  transition: 0.16s ease;
}
.toc a:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.toc a.active { color: #9adcff; border-inline-start-color: var(--blue); background: rgba(36, 168, 255, 0.06); }

.aside-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 168, 255, 0.28);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(200px 120px at 100% 0%, rgba(145, 91, 255, 0.22), transparent 70%),
    linear-gradient(150deg, rgba(124, 92, 255, 0.18), rgba(10, 17, 41, 0.9));
}
.aside-cta .mini-label { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 10px; font-weight: 800; }
.aside-cta .mini-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.aside-cta h3 { margin: 8px 0 7px; font-size: 15px; font-weight: 800; line-height: 1.6; }
.aside-cta p { margin: 0 0 13px; color: var(--muted); font-size: 11.5px; line-height: 1.85; }
.aside-cta .btn { width: 100%; min-height: 38px; font-size: 11.5px; padding: 8px 12px; }
.aside-cta .phone { display: block; margin-top: 9px; text-align: center; font-size: 10.5px; color: var(--muted-2); }
.aside-cta .phone b { color: #fff; direction: ltr; display: inline-block; }

.related-mini { display: grid; gap: 4px; }
.related-mini a {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(126, 151, 255, 0.12);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}
.related-mini a:last-child { border-bottom: 0; }
.related-mini a:hover { color: #fff; }
.related-mini svg { width: 13px; height: 13px; margin-top: 4px; flex-shrink: 0; color: var(--blue); }

/* Prev next */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 36px 0 0;
}
.post-nav a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: 0.18s ease;
}
.post-nav a:hover { border-color: var(--line-strong); background: rgba(36, 168, 255, 0.06); }
.post-nav small { display: block; color: var(--muted-2); font-size: 10px; margin-bottom: 4px; }
.post-nav strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.7; }
.post-nav .next { text-align: left; }

/* Related */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- Category page ---------- */

.page-hero {
  position: relative;
  padding: 44px 0 26px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: 30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.6px;
}
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }

.category-intro {
  max-width: 850px;
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--body);
  font-size: 13.5px;
  line-height: 2.05;
}
.category-intro p { margin: 0 0 12px; }
.category-intro p:last-child { margin-bottom: 0; }

/* ---------- About / contact ---------- */

.page-narrow { max-width: 900px; }
.page-content {
  padding: 34px 0 50px;
  color: var(--body);
  font-size: 15px;
  line-height: 2.05;
}
.page-content h2 {
  margin: 38px 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.page-content h3 { margin: 26px 0 8px; color: #fff; font-size: 18px; font-weight: 800; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 0 0 18px; padding-inline-start: 22px; }
.page-content li { margin: 7px 0; }
.page-content a { color: #7dd8ff; border-bottom: 1px dashed rgba(125, 216, 255, 0.35); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.info-card small { display: block; color: var(--muted-2); font-size: 10.5px; margin-bottom: 5px; }
.info-card strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.info-card a { font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 44px 0 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 7, 19, 0.3), rgba(4, 7, 19, 0.75));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 16px; font-weight: 800; }
.footer-brand small { display: block; color: var(--muted); font-size: 10.5px; }
.footer-about p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(36, 168, 255, 0.06);
  color: #9adcff;
  font-size: 13px;
  font-weight: 800;
}
.footer-phone svg { width: 15px; height: 15px; }
.footer-phone:hover { color: #fff; border-color: rgba(36, 168, 255, 0.4); }

.footer-col h3 {
  margin: 2px 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11.5px;
}
.footer-col a:hover { color: #fff; padding-inline-start: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}
.footer-bottom .sep { margin: 0 6px; opacity: 0.5; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-badges span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9.5px;
  color: var(--muted);
}

/* ---------- Search modal ---------- */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 80px 18px 18px;
  background: rgba(2, 5, 14, 0.78);
  backdrop-filter: blur(10px);
}
.search-modal.open { display: block; }
.search-panel {
  width: min(660px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #080e22;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.search-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.search-top svg { width: 19px; height: 19px; color: var(--muted-2); flex-shrink: 0; }
.search-top input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  padding: 4px 0;
}
.search-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 8px;
  font-size: 10px;
  padding: 4px 8px;
}
.search-results { max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.search-result:hover, .search-result:focus { background: rgba(36, 168, 255, 0.08); color: #fff; }
.search-result .sr-badge {
  flex-shrink: 0;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: #9adcff;
}
.search-result .sr-title { line-height: 1.6; }
.search-empty { padding: 24px 16px; text-align: center; color: var(--muted-2); font-size: 12px; }
.search-hint { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; display: flex; justify-content: space-between; }

/* ---------- Misc ---------- */

.back-top {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 17, 41, 0.9);
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: #fff; border-color: var(--blue); }
.back-top svg { width: 18px; height: 18px; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.not-found {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
}
.not-found .code {
  font-size: clamp(72px, 14vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(180deg, #7dd8ff, #24a8ff 55%, rgba(145, 91, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.not-found h1 { margin: 12px 0 8px; font-size: 26px; font-weight: 800; }
.not-found p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.not-found .btn { min-height: 44px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
@keyframes wave {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .server-card { max-width: 520px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: span 3; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero { padding: 40px 0 26px; }
  .hero h1 { font-size: clamp(30px, 7.4vw, 44px); }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 220px; aspect-ratio: 16 / 9; }
  .featured-body { padding: 24px 22px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .article-aside .aside-card:first-child { grid-column: span 2; }
  .toc { max-height: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: right; }
  .trust-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: span 2; }
  .footer-col:last-child { grid-column: auto; }
  .info-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .nav { min-height: 68px; gap: 10px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand-logo img { width: 33px; height: 33px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .nav-actions .btn-primary { display: none; }
  .hero-lead { font-size: 14px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 18px; }
  .search-form { border-radius: 14px; }
  .search-form button { padding: 9px 13px; font-size: 12px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-body h3 { font-size: 17px; }
  .article-aside { grid-template-columns: 1fr; }
  .article-aside .aside-card:first-child { grid-column: auto; }
  .article-header h1 { font-size: clamp(25px, 7vw, 34px); }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 18px; }
  .article-cover { border-radius: 18px; }
  .author-box { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand-col { grid-column: auto; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .back-top { bottom: 14px; left: 14px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .search-modal { padding-top: 40px; }
  .search-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; color: #111; }
  body::before, .site-header, .site-footer, .article-aside, .article-cover, .cta-band, .progress-bar, .back-top, .share-row, .post-nav, .related-grid, .author-box { display: none !important; }
  .article-layout { display: block; }
  .prose { color: #111; font-size: 11pt; }
  .prose h2, .prose h3, .prose h4, .prose strong { color: #000; }
  .prose a { color: #000; border-bottom: 0; }
  .article-header h1 { color: #000; }
  .article-lead { color: #333; }
  .article-header { margin-bottom: 12px; }
}
