/* Auto Secret Routes — shared stylesheet
   Hand-rolled, no framework. Targets evergreen browsers. */

:root {
  --gold: #f5c842;
  --gold-dim: #c8992a;
  --gold-glow: rgba(245,200,66,0.15);
  --aqua: #00e5ff;
  --aqua-dim: rgba(0,229,255,0.12);
  --green: #00ff88;
  --green-dim: rgba(0,255,136,0.1);
  --red: #ff4d6d;
  --bg: #020508;
  --bg2: #050b12;
  --panel: rgba(8,18,32,0.9);
  --panel-border: rgba(0,229,255,0.08);
  --panel-hover: rgba(0,229,255,0.05);
  --border: rgba(0,229,255,0.12);
  --border-bright: rgba(0,229,255,0.3);
  --text: #c8d8e8;
  --text-bright: #eaf4ff;
  --text-muted: #4a6070;
  --radius: 16px;
  --radius-sm: 8px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* page-wide noise + grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,255,0.06) 0%, transparent 60%),
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--aqua); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: #020508; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #020508;
  padding: 0.6rem 1rem;
  z-index: 999;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── NAV ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: rgba(2,5,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo::before {
  content: '◆';
  font-size: 0.7rem;
  color: var(--aqua);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color .2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--aqua); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-switcher {
  position: relative;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.lang-switcher summary:hover { color: var(--aqua); border-color: var(--border-bright); }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher[open] summary { color: var(--aqua); border-color: var(--border-bright); }
.lang-switcher > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  min-width: 160px;
  display: grid;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lang-switcher a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}
.lang-switcher a:hover { background: var(--panel-hover); color: var(--aqua); }
.lang-switcher a span { color: var(--text-muted); font-size: 0.72rem; }

.nav-dl {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--gold);
  color: #020508;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, transform .15s;
  letter-spacing: 0.02em;
}
.nav-dl:hover { background: #fde68a; transform: translateY(-1px); }

/* breadcrumb bar */
.crumbs {
  position: relative;
  z-index: 1;
}
.crumbs > div {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.crumbs a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--aqua); }
.crumbs .sep { margin: 0 0.5rem; opacity: 0.4; }
.crumbs .here { color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  z-index: 1;
}
.hero.compact { min-height: auto; padding: 5rem 2rem 3rem; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,229,255,0.07), transparent 65%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,200,66,0.06), transparent 65%);
  bottom: 50px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,0.05), transparent 65%);
  bottom: 100px; left: -80px;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-30px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.2);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  letter-spacing: 0.06em;
  animation: fadeDown .6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.05;
  max-width: 880px;
  animation: fadeUp .7s .1s ease both;
  letter-spacing: -1.5px;
}
.hero.compact h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 .accent { color: var(--gold); }
.hero h1 .accent-blue { color: var(--aqua); }

.hero-sub {
  max-width: 640px;
  margin: 1.8rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  animation: fadeUp .7s .2s ease both;
  line-height: 1.8;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #001a0a;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: filter .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(0,230,118,0.25), 0 4px 16px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,230,118,0.35), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-secondary:hover {
  background: var(--aqua-dim);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

/* stat strip */
.hero-stats {
  display: flex;
  margin-top: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .4s ease both;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
  width: 100%;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 1.4rem 1rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SECTION ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section.narrow { max-width: 820px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--aqua);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--aqua);
  opacity: 0.5;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.section-title .accent { color: var(--gold); }
.section-title .accent-blue { color: var(--aqua); }
.section-desc {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.section-desc strong { color: var(--text); }

.prose {
  max-width: 740px;
  margin-top: 2rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}
.prose h3 {
  color: var(--text-bright);
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.prose h4 {
  color: var(--text-bright);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0.6rem 0 1.2rem 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text-bright); }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(0,229,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--aqua);
}
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.2rem 0;
}

/* short-answer callout for AI extraction */
.tldr {
  background: linear-gradient(135deg, rgba(0,229,255,0.05), rgba(245,200,66,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.96rem;
  line-height: 1.75;
  position: relative;
}
.tldr::before {
  content: 'TL;DR';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--aqua);
}
.tldr strong { color: var(--text-bright); }

/* skill cards / generic small cards */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  transition: border-color .25s, transform .2s, background .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.skill-card:hover {
  border-color: var(--border-bright);
  background: var(--panel-hover);
  transform: translateY(-2px);
}
.skill-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.skill-label {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.skill-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* trust + guide boxes */
.trust-box {
  background: linear-gradient(135deg, rgba(0,255,136,0.04), rgba(0,229,255,0.03));
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.trust-box-icon { font-size: 1.6rem; flex-shrink: 0; }
.trust-box h3 { font-family: var(--sans); color: var(--green); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.trust-box p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.trust-box strong { color: var(--text); }

.guide-box {
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(245,200,66,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.guide-box-text { flex: 1; }
.guide-box-text h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aqua);
  margin-bottom: 0.4rem;
}
.guide-box-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.guide-box-text strong { color: var(--text); }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .25s, transform .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--aqua-dim), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.feature-number {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  opacity: 0.5;
}
.feature-icon { font-size: 1.9rem; margin-bottom: 0.8rem; }
.feature-card h3 {
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}
.feature-card h3 a { color: inherit; text-decoration: none; }
.feature-card h3 a:hover { color: var(--aqua); }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── SHOWCASE ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  transition: border-color .3s, transform .3s;
  background: var(--panel);
}
.showcase-item:hover { border-color: var(--border-bright); transform: scale(1.02); }
.showcase-item img { width: 100%; display: block; }
.showcase-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(2,5,8,0.9));
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
details.faq {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
details.faq:hover { border-color: var(--border); }
details.faq[open] { border-color: var(--border); }
details.faq > summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-bright);
  transition: background .2s;
  gap: 1rem;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary:hover { background: rgba(255,255,255,0.02); }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
details.faq[open] .faq-icon {
  background: var(--gold-glow);
  border-color: rgba(245,200,66,0.4);
}
.plus { display: block; }
.minus { display: none; }
details.faq[open] .plus { display: none; }
details.faq[open] .minus { display: block; }
details.faq > .faq-body {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
details.faq > .faq-body strong { color: var(--text); }

/* ── COMPARISON TABLE ── */
.cmp-wrap {
  overflow-x: auto;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
table.cmp th, table.cmp td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
table.cmp th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,229,255,0.03);
  font-weight: 600;
}
table.cmp td:first-child {
  font-weight: 600;
  color: var(--text-bright);
}
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no  { color: var(--red);   font-weight: 700; }
table.cmp .partial { color: var(--gold); font-weight: 600; }

/* ── DOWNLOAD ── */
.download-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.download-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua), var(--gold), transparent);
  opacity: 0.4;
}
.download-box::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,230,118,0.07), transparent 65%);
  pointer-events: none;
}
.dl-meta { display: flex; flex-direction: column; gap: 0.5rem; position: relative; z-index: 1; }
.dl-version {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.dl-version .live-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.dl-version strong { color: var(--green); }
.dl-title {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}
.dl-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.3rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  background: var(--aqua-dim);
  border: 1px solid var(--border);
  color: var(--aqua);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* mirror list (for download page) */
.mirrors {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}
.mirror {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .2s, transform .15s;
}
.mirror:hover { border-color: var(--border-bright); transform: translateY(-1px); color: var(--aqua); }
.mirror small { color: var(--text-muted); font-family: var(--mono); font-size: 0.7rem; }

/* step-by-step install */
ol.steps {
  margin-top: 2rem;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}
ol.steps > li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.4rem 4.2rem;
  position: relative;
}
ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.2rem; top: 1.3rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(245,200,66,0.3);
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
ol.steps > li h3 {
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
ol.steps > li p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
ol.steps > li code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(0,229,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--aqua);
}

/* changelog */
.changelog {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.changelog .entry {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.changelog .entry h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-bright);
}
.changelog .entry h3 .ver {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.changelog .entry h3 .date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: normal;
}
.changelog ul { list-style: none; display: grid; gap: 0.4rem; }
.changelog ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}
.changelog ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
}
.changelog ul li.fix::before  { content: '~'; color: var(--gold); }
.changelog ul li.rm::before   { content: '−'; color: var(--red);  }

/* blog list */
.blog-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.blog-entry {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .2s, transform .2s;
}
.blog-entry:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.blog-entry .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.blog-entry h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.45rem;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.blog-entry p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* footer */
footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 2.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer.site-footer .cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.4rem;
}
footer.site-footer h4 {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
footer.site-footer ul { list-style: none; display: grid; gap: 0.4rem; }
footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  font-size: 0.84rem;
}
footer.site-footer a:hover { color: var(--aqua); }
footer.site-footer .brand .nav-logo { font-size: 1rem; }
footer.site-footer .brand p { margin-top: 0.8rem; line-height: 1.7; font-size: 0.82rem; }
footer.site-footer .bottom {
  max-width: 1180px;
  margin: 2.4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── ARTICLE / GUIDE LONGFORM ── */
.article-hero {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 2rem 1rem;
}
.article-hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--aqua);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.article-hero h1 em { color: var(--gold); font-style: normal; }
.article-hero > p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.toc {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding: 1.6rem 2rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.toc h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.9rem;
}
.toc ol {
  list-style: none;
  counter-reset: tocnum;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.4rem 1.8rem;
}
.toc ol li { counter-increment: tocnum; }
.toc ol li::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 0.6rem;
}
.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color .15s;
}
.toc a:hover { color: var(--aqua); }

.article-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: 84px;
}
.article-section h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.4px;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.article-section h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 2rem 0 0.6rem;
}
.article-section p { color: var(--text); margin-bottom: 1rem; line-height: 1.85; font-size: 1rem; }
.article-section p strong { color: var(--text-bright); }
.article-section ul { margin: 0.5rem 0 1.2rem 1.4rem; }
.article-section ul li { margin-bottom: 0.35rem; color: var(--text); line-height: 1.7; font-size: 0.96rem; }

.info-box {
  background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,229,255,0.03));
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
}
.info-box strong { color: var(--text-bright); }

.mod-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 1.8rem 0;
  position: relative;
  overflow: hidden;
}
.mod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--aqua));
  opacity: 0.6;
}
.mod-rank {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.mod-card h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 0.5rem !important;
}
.mod-card h3 a { color: inherit; text-decoration: none; }
.mod-card h3 a:hover { color: var(--aqua); }
.mod-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.9rem 0; }
.mod-tags .tag-gold { background: var(--gold-glow); border-color: rgba(245,200,66,0.3); color: var(--gold); }
.mod-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #001a0a;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 0.4rem;
  transition: filter .2s, transform .15s;
  letter-spacing: 0.02em;
}
.mod-dl:hover { filter: brightness(1.1); transform: translateY(-1px); }

.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.9rem;
}
.feature-table th, .feature-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
.feature-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,229,255,0.03);
}
.feature-table tr:last-child td { border-bottom: 0; }
.feature-table .check { color: var(--green); font-weight: 700; }
.feature-table td:first-child { color: var(--text-bright); font-weight: 600; }

.back-top {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.back-top:hover { color: var(--aqua); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  footer.site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav.site-nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .section { padding: 4rem 1.4rem; }
  .hero-stats { max-width: 100%; }
  .stat-item { min-width: 90px; padding: 1rem 0.5rem; }
  .stat-num { font-size: 1.5rem; }
  .download-box { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
  .guide-box { flex-direction: column; }
  .hero h1 { letter-spacing: -0.5px; }
  .trust-box { flex-direction: column; }
  footer.site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 4rem 1.2rem 3rem; }
  .nav-right { gap: 0.5rem; }
  .lang-switcher { display: none; }
}
