/* ============================================================
   ExoPanda — Light Theme Production Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens ---------------------------------------------- */
:root {
  --bg: #f5f5f4;
  --bg-elev: #ffffff;
  --bg-sunken: #ebebe8;
  --ink: #0e0e0d;
  --ink-2: #3a3a37;
  --ink-3: #6b6b66;
  --ink-4: #9a9a93;
  --line: rgba(14, 14, 13, 0.08);
  --line-strong: rgba(14, 14, 13, 0.14);
  --accent: #e0341c;
  --accent-hover: #c92a14;
  --accent-ink: #ffffff;
  --accent-soft: #fdecea;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14,14,13,.04), 0 1px 1px rgba(14,14,13,.03);
  --shadow-md: 0 6px 20px -8px rgba(14,14,13,.10), 0 2px 4px rgba(14,14,13,.04);
  --shadow-lg: 0 24px 60px -24px rgba(14,14,13,.18), 0 4px 12px rgba(14,14,13,.05);
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
}
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- Layout helpers -------------------------------------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }

/* ---- Type ------------------------------------------------ */
.display { font-size: 96px; line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; }
.h1 { font-size: 72px; line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }
.h2 { font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.h3 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.h4 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink-3); font-weight: 400; }
.body { font-size: 15px; line-height: 1.65; color: var(--ink-3); }
.caption { font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.red { color: var(--accent); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: rgba(14,14,13,0.04); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-xl { height: 56px; padding: 0 32px; font-size: 15px; }

/* ---- Kicker / Eyebrow ------------------------------------ */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.kicker-red { color: var(--accent); }
.kicker-center { justify-content: center; }

/* ---- Pill / chip ----------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.pill-badge {
  font-size: 11px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 3px 10px;
  border-radius: 999px; letter-spacing: 0.05em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }

/* ---- Header ---------------------------------------------- */
.ep-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(245, 245, 244, 0.78);
  border-bottom: 1px solid var(--line);
}
.ep-header .inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
}
.logo-icon {
  width: 28px; height: 28px; object-fit: contain;
}
.logo-exo { color: var(--accent); }
.logo-panda { color: var(--ink); }

.nav-pill {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-pill a {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3); border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-pill a:hover { color: var(--ink); }
.nav-pill a.active { color: var(--ink); background: var(--bg-sunken); }

.header-cta { display: flex; gap: 10px; }

/* ---- Hero ------------------------------------------------ */
.hero {
  padding: 140px 0 60px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(224,52,28,0.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 1100px; margin: 0 auto 32px; }
.hero .lead { max-width: 640px; margin: 0 auto 44px; }
.hero-actions {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex; gap: 24px; justify-content: center; align-items: center;
  font-size: 13px; color: var(--ink-4);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Window-framed product visual ------------------------ */
.window {
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}
.window-dot { width: 12px; height: 12px; border-radius: 50%; }
.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }
.window-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--ink-4); font-weight: 500;
}

/* ---- Stat band ------------------------------------------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 40px 0;
}
.stat-band > div {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}
.stat-band > div:last-child { border-right: 0; }
.stat-num {
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.stat-label {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500;
}

/* ---- Feature blocks -------------------------------------- */
.feature-block {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
}
.feature-block.reverse { grid-template-columns: 1.1fr 1fr; }

.feature-num {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 24px;
}

/* ---- Three-up cards -------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-card-num {
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 32px; letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Security card --------------------------------------- */
.security-card {
  padding: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.security-list { display: grid; gap: 12px; }
.security-item {
  display: flex; gap: 14px;
  padding: 16px;
  background: var(--bg-sunken);
  border-radius: 12px;
}
.security-icon {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.security-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.security-item p { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ---- CTA section ----------------------------------------- */
.cta-banner {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-lg);
  padding: 88px 56px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 20px; }
.cta-banner p {
  font-size: 18px; color: rgba(255,255,255,0.85);
  margin: 0 auto 40px; max-width: 540px; line-height: 1.5;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; }
.cta-banner .btn-on-red {
  background: #fff; color: var(--accent); font-weight: 600;
}
.cta-banner .btn-on-red:hover { background: rgba(255,255,255,0.92); }
.cta-banner .btn-on-red-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.cta-banner .btn-on-red-outline:hover { background: rgba(255,255,255,0.08); }

/* ---- Footer ---------------------------------------------- */
.ep-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg);
}
.footer-row1 {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
}
.ep-footer h5 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-4);
  font-weight: 500; margin-bottom: 16px;
}
.ep-footer ul li { margin-bottom: 10px; }
.ep-footer ul a { font-size: 14px; color: var(--ink-2); }
.ep-footer ul a:hover { color: var(--accent); }
.footer-row2 {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-4);
}
.footer-row2 .links { display: flex; gap: 24px; }
.footer-tagline { margin-top: 12px; max-width: 280px; font-size: 13px; color: var(--ink-4); line-height: 1.5; }

/* ---- Inner-page hero ------------------------------------- */
.page-hero {
  padding: 96px 0 56px;
  text-align: center;
}
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 600px; margin: 0 auto 0; }

/* ---- Prose / Legal content ------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: 22px; font-weight: 600;
  margin: 36px 0 10px; letter-spacing: -0.015em;
  color: var(--ink);
}
.prose h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.prose p { font-size: 15px; line-height: 1.7; color: var(--ink-3); margin-bottom: 12px; }
.prose ul, .prose ol { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.prose ol { list-style: decimal; }
.prose li { font-size: 15px; line-height: 1.7; color: var(--ink-3); margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }

.legal-meta {
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 32px; padding: 14px 18px;
  background: var(--bg-sunken); border-radius: 10px;
  line-height: 1.8;
}
.legal-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 16px;
}
.legal-card h3 {
  font-size: 16px; font-weight: 600;
  margin-bottom: 14px; color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-card h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: var(--ink); }
.legal-card p, .legal-card li { font-size: 14px; line-height: 1.7; color: var(--ink-3); margin-bottom: 8px; }
.legal-card ul { list-style: disc; padding-left: 18px; margin-bottom: 12px; }
.legal-card ol { list-style: decimal; padding-left: 18px; margin-bottom: 12px; }
.legal-card a { color: var(--accent); }
.legal-card strong { color: var(--ink); font-weight: 600; }
.disclaimer-text {
  background: var(--bg-sunken); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 8px;
}

/* ---- Sidebar layout -------------------------------------- */
.sidebar-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 32px; align-items: start;
}
.page-sidebar {
  position: sticky; top: 80px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.page-sidebar h2 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 4px;
}
.page-sidebar .sidebar-sub {
  font-size: 13px; color: var(--ink-4); margin-bottom: 20px;
}
.toc-list { list-style: decimal; padding-left: 16px; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { font-size: 13px; color: var(--ink-3); transition: color .15s; }
.toc-list a:hover { color: var(--accent); }

/* ---- Category buttons ------------------------------------ */
.cat-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  border: 1px solid var(--line); background: transparent;
  width: 100%; text-align: left;
  transition: color .15s, background .15s, border-color .15s;
}
.cat-btn:hover { color: var(--ink); background: var(--bg-sunken); }
.cat-btn.active {
  color: var(--accent); background: var(--accent-soft);
  border-color: rgba(224,52,28,0.2);
}

/* ---- Search input ---------------------------------------- */
.search-input {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev); color: var(--ink);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s; box-sizing: border-box; height: 44px;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--ink-4); }

/* ---- Support box in sidebar ----------------------------- */
.sidebar-support-box {
  margin-top: 20px; padding: 16px;
  background: var(--accent-soft); border: 1px solid rgba(224,52,28,0.15);
  border-radius: 12px; text-align: center;
}
.sidebar-support-box p { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }

/* ---- FAQ grid -------------------------------------------- */
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.faq-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .15s, box-shadow .15s;
}
.faq-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.faq-question { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; color: var(--ink); }
.faq-answer { font-size: 14px; line-height: 1.65; color: var(--ink-3); }
.faq-answer a { color: var(--accent); }
.search-highlight { background: rgba(224,52,28,0.15); border-radius: 3px; padding: 0 2px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--ink-4); }

/* ---- Game guide cards ------------------------------------ */
.guide-game-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 24px 16px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-align: center;
}
.guide-game-card:hover:not(.disabled) {
  border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.guide-game-card.disabled { opacity: 0.55; cursor: default; }
.guide-game-icon { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; }
.guide-game-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.guide-game-status {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.guide-game-status.ready { background: rgba(34,197,94,0.1); color: #22c55e; }
.guide-game-status.coming-soon { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ---- Guide / Tutorial card ------------------------------- */
.guide-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
  text-decoration: none; display: block;
  transition: border-color .15s, box-shadow .15s;
}
.guide-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* ---- Download page --------------------------------------- */
.download-card {
  background: var(--bg-elev); border: 2px solid rgba(224,52,28,0.25);
  border-radius: var(--radius-lg); padding: 48px;
  margin-bottom: 32px; box-shadow: var(--shadow-md);
}
.download-feature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  background: var(--bg-sunken); color: var(--ink-3);
  border: 1px solid var(--line);
}
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.download-info-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
}
.download-info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.download-info-card ul, .download-info-card ol {
  font-size: 14px; line-height: 2; color: var(--ink-3);
  padding-left: 20px;
}
.download-info-card ul { list-style: disc; }
.download-info-card ol { list-style: decimal; }

.step-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(224,52,28,0.2);
  color: var(--accent); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-num.final {
  background: var(--accent); color: #fff;
  border-color: var(--accent); box-shadow: 0 0 12px rgba(224,52,28,0.3);
}
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--ink-3); }

/* ---- Changelog ------------------------------------------- */
.version-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
}
.version-card.is-latest { border-width: 2px; border-color: rgba(34,197,94,0.4); }
.version-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 28px; background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.version-tag { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.version-badge {
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; background: #22c55e; color: #fff;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.version-date { font-size: 13px; color: var(--ink-4); display: flex; align-items: center; gap: 6px; }
.version-content { padding: 24px 28px; }
.version-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.changelog-notes-wrapper { position: relative; }
.changelog-notes-text { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.changelog-notes-clamped {
  display: -webkit-box; -webkit-line-clamp: 10;
  -webkit-box-orient: vertical; overflow: hidden;
}
.changelog-notes-fade {
  display: none; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-elev)); pointer-events: none;
}
.changelog-read-more-btn {
  display: none; align-items: center; gap: 6px; margin-top: 12px;
  background: var(--accent-soft); border: 1px solid rgba(224,52,28,0.2);
  color: var(--accent); padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.changelog-read-more-btn:hover { background: rgba(224,52,28,0.15); }

/* ---- News ------------------------------------------------ */
.news-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.news-date {
  font-size: 13px; color: var(--ink-4); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.news-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; margin-right: 8px;
}
.news-title { font-size: 22px; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.015em; }
.news-content { font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.news-content p { margin-bottom: 12px; }
.news-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.news-content a { color: var(--accent); }

/* ---- Contact cards --------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.contact-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px 36px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.contact-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--bg-sunken); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 24px;
}

/* ---- Sitemap --------------------------------------------- */
.sitemap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.sitemap-section {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.sitemap-section h3 {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-4); margin-bottom: 16px;
}
.sitemap-section ul li { margin-bottom: 10px; }
.sitemap-section ul a {
  font-size: 14px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.sitemap-section ul a:hover { color: var(--accent); }

/* ---- Error pages ----------------------------------------- */
.error-page {
  min-height: 70vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px;
}
.error-code {
  font-size: 120px; font-weight: 600;
  line-height: 1; letter-spacing: -0.05em;
  color: var(--accent); margin-bottom: 24px;
}
.error-title {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.error-desc {
  font-size: 17px; color: var(--ink-3);
  max-width: 480px; margin: 0 auto 40px; line-height: 1.6;
}

/* ---- Construction popup ---------------------------------- */
.construction-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0); backdrop-filter: blur(0px);
  pointer-events: none; transition: all .4s ease;
}
.construction-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 9999; width: 380px; max-width: calc(100vw - 48px);
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px; text-align: center;
}
.construction-icon {
  width: 64px; height: 64px; background: rgba(245,158,11,0.1);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
  font-size: 1.8rem;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 960px) {
  .display { font-size: 64px; }
  .h1 { font-size: 56px; }
  .h2 { font-size: 40px; }
  .h3 { font-size: 32px; }
  section { padding: 72px 0; }

  .nav-pill { display: none; }
  .stat-band { grid-template-columns: repeat(2, 1fr); padding: 24px 0; }
  .stat-band > div:nth-child(2) { border-right: 0; }
  .stat-band > div { padding: 16px 0; }
  .stat-num { font-size: 36px; }

  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .security-card { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
  .cta-banner { padding: 56px 24px; }
  .footer-row1 { grid-template-columns: 1fr 1fr; gap: 32px; }

  .sidebar-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .download-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container, .container-tight { padding: 0 20px; }
  .display { font-size: 44px; letter-spacing: -0.04em; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .lead { font-size: 17px; }

  .hero { padding: 80px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta { flex-wrap: wrap; gap: 12px 20px; }

  .footer-row1 { grid-template-columns: 1fr; }
  .footer-row2 { flex-direction: column; gap: 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; }

  .page-hero { padding: 72px 0 40px; }
  .error-code { font-size: 80px; }
  .faq-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .download-card { padding: 28px 20px; }
}

/* ---- Changelog popup (fixed bottom-right notification) ---- */
.changelog-backdrop { display: none; }
.changelog-glow-orb { display: none; }
.changelog-popup {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 340px; max-width: calc(100vw - 48px);
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none; overflow: hidden;
}
.changelog-popup.changelog-visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.changelog-popup.changelog-hiding { opacity: 0; transform: translateY(8px); }
.changelog-popup-content { padding: 20px; }
.changelog-popup-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.changelog-popup-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.changelog-popup-icon svg { width: 18px; height: 18px; }
.changelog-popup-title-section { flex: 1; min-width: 0; }
.changelog-popup-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.changelog-popup-subtitle { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.changelog-popup-close {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); transition: background .15s, color .15s;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.changelog-popup-close:hover { background: var(--bg-sunken); color: var(--ink); }
.changelog-popup-body { margin-bottom: 14px; }
.changelog-version-item { margin-bottom: 8px; }
.changelog-version-item.latest { background: var(--bg-sunken); border-radius: 10px; padding: 10px 12px; }
.changelog-version-header { display: flex; justify-content: space-between; align-items: center; }
.changelog-version-info { display: flex; align-items: center; gap: 6px; }
.changelog-version-number { font-size: 13px; font-weight: 600; color: var(--ink); }
.changelog-new-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; background: var(--accent); color: #fff; letter-spacing: 0.05em;
}
.changelog-priority { font-size: 12px; }
.changelog-time { font-size: 12px; color: var(--ink-4); }
.changelog-release-notes {
  font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 6px;
  white-space: pre-wrap; max-height: 60px; overflow: hidden;
}
.changelog-popup-actions { display: flex; gap: 8px; }
.changelog-popup-link {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 36px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); background: var(--bg-sunken); border: 1px solid var(--line);
  transition: background .15s; text-decoration: none;
}
.changelog-popup-link:hover { background: var(--line); }
.changelog-popup-download {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--accent); transition: background .15s; text-decoration: none;
}
.changelog-popup-download:hover { background: var(--accent-hover); }

/* ---- Scroll reveal animations ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
