/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --bg-raised: #111114;
  --bg-card: #131316;
  --bg-card-hover: #1a1a1f;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.1);
  --accent: #e8553a;
  --accent-dim: #c4412a;
  --accent-subtle: rgba(232,85,58,0.07);
  --accent-border: rgba(232,85,58,0.12);
  --accent-glow: rgba(232,85,58,0.15);
  --warn: #f59e0b;
  --warn-bg: rgba(245,158,11,0.06);
  --warn-border: rgba(245,158,11,0.15);
  --text: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -2;
  background: url('site-backgrounds/kayle.jpg?v=2.1') center top/cover no-repeat;
  opacity: 0.15;
}

body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,9,11,0.3) 0%, rgba(9,9,11,0.6) 50%, rgba(9,9,11,0.7) 100%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(232,85,58,0.2); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }

/* ===== Topbar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(9,9,11,0.5);
  border-bottom: 1px solid rgba(232,85,58,0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar.scrolled {
  background: rgba(9,9,11,0.75);
  border-bottom-color: rgba(232,85,58,0.08);
}

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}

.logo-img {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text {
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 0%, #ffb09e 60%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); opacity: 0.8;
}

.nav-links { display: flex; list-style: none; gap: 0; }

.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.8rem; font-weight: 500; padding: 7px 14px;
  border-radius: 8px; transition: all 0.2s;
  position: relative;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }

.nav-links a.nav-active {
  color: #fff;
  background: rgba(232,85,58,0.08);
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Topbar Social Links */
.topbar-socials {
  display: flex; align-items: center; gap: 2px;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,0.06);
  margin-right: 2px;
}

.topbar-social {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--text-secondary); text-decoration: none;
  transition: all 0.15s;
}

.topbar-social:hover { color: #fff; background: rgba(232,85,58,0.12); }

/* Language Selector */
.lang-selector { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: rgba(232,85,58,0.08);
  border: 1px solid rgba(232,85,58,0.18); border-radius: 8px;
  color: #fff; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}

.lang-btn:hover { border-color: rgba(232,85,58,0.35); background: rgba(232,85,58,0.12); }

.lang-btn svg { opacity: 0.7; }

.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px; min-width: 140px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.15s ease; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.lang-selector.open .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-option {
  display: block; width: 100%; padding: 7px 12px;
  background: none; border: none; color: var(--text-secondary);
  font-size: 0.78rem; font-weight: 400; text-align: left;
  cursor: pointer; border-radius: 5px; font-family: inherit;
  transition: all 0.1s;
}

.lang-option:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.lang-option.active { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 500; font-size: 0.82rem;
  border-radius: 8px; transition: all 0.2s; cursor: pointer; border: none;
}

.btn-nav {
  padding: 7px 16px; font-size: 0.78rem;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  color: #fff; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(232,85,58,0.2);
}

.btn-nav:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #f06a4a 100%);
  box-shadow: 0 4px 20px rgba(232,85,58,0.3);
  transform: translateY(-1px);
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(232,85,58,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #f06a4a 100%);
  box-shadow: 0 4px 24px rgba(232,85,58,0.3);
  transform: translateY(-1px);
}

.btn-download { padding: 13px 28px; font-size: 0.88rem; border-radius: 10px; }

/* ===== Mobile ===== */
.mobile-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.mobile-toggle span {
  width: 18px; height: 1.5px; background: var(--text-secondary);
  border-radius: 2px; transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(9,9,11,0.97);
  border-bottom: 1px solid var(--border); z-index: 999; padding: 12px 24px;
}

.mobile-menu.active { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.mobile-menu a {
  text-decoration: none; color: var(--text-secondary); font-size: 0.85rem;
  padding: 10px 12px; border-radius: 6px; display: block; transition: all 0.15s;
}

.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.03); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding: 100px 0 40px;
  overflow: hidden;
}

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero-center { max-width: 600px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px;
  background: linear-gradient(135deg, rgba(232,85,58,0.08) 0%, rgba(34,197,94,0.06) 100%);
  border: 1px solid rgba(232,85,58,0.12);
  border-radius: 100px; font-size: 0.7rem; color: var(--text-secondary);
  font-weight: 500; margin-bottom: 24px;
  position: relative; overflow: hidden;
  animation: badgeShimmer 4s ease-in-out infinite;
}

.hero-badge::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,85,58,0.06), transparent);
  animation: badgeSweep 4s ease-in-out infinite;
}

@keyframes badgeSweep {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes badgeShimmer {
  0%, 100% { border-color: rgba(232,85,58,0.12); }
  50% { border-color: rgba(34,197,94,0.2); }
}

.badge-dot {
  width: 7px; height: 7px; background: #22c55e;
  border-radius: 50%; position: relative;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: dotPulse 2s ease-in-out infinite;
}

.badge-dot::after {
  content: '';
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,0.3);
  animation: dotRing 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 12px rgba(34,197,94,0.7); }
}

@keyframes dotRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
  font-size: 3.6rem; font-weight: 700; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, #e8553a 60%, #ff8a65 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 28px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}

.btn-hero { padding: 12px 26px; font-size: 0.84rem; border-radius: 10px; }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: #fff; transform: translateY(-1px);
}

.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.72rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 40px;
}

.meta-sep { opacity: 0.3; }

/* Hero 3D Showcase */
.hero-showcase {
  width: 100%; max-width: 780px; margin: 0 auto 36px;
  perspective: 1200px;
}

.showcase-3d {
  transform: rotateX(4deg);
  transition: transform 0.4s ease;
}

.showcase-3d:hover {
  transform: rotateX(1deg);
}

.app-window-hero, .preview-window {
  background: var(--bg-card); border: 1px solid rgba(232,85,58,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,85,58,0.05);
}

.app-window-hero { width: 100%; }

/* Hero Stats Bar */
.hero-stats-bar {
  display: flex; align-items: stretch; justify-content: center;
  gap: 14px; max-width: 580px; margin: 0 auto;
}

.stat-card {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(145deg, rgba(19,19,22,0.9) 0%, rgba(17,17,20,0.7) 100%);
  border: 1px solid rgba(232,85,58,0.08);
  border-radius: 12px;
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,85,58,0.2), transparent);
}

.stat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(232,85,58,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(232,85,58,0.18);
}

.stat-icon-wrap {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,85,58,0.08);
  border: 1px solid rgba(232,85,58,0.12);
  border-radius: 10px;
  color: var(--accent);
}

.stat-content { display: flex; flex-direction: column; gap: 1px; position: relative; z-index: 1; }

.stat-value { display: flex; align-items: baseline; gap: 2px; }

.stat-num {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}

.stat-plus { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.stat-label {
  font-size: 0.62rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}

/* Hero App Window */

.app-window-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #0e0e11;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.window-dots { display: flex; gap: 6px; min-width: 50px; }

.window-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #1e1e22;
}

.window-bar-center {
  display: flex; align-items: center; gap: 6px;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.window-bar-icon { width: 14px; height: 14px; border-radius: 50%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }

.window-title { font-size: 0.68rem; color: var(--text-muted); font-weight: 400; }

.window-controls { display: flex; gap: 2px; min-width: 50px; justify-content: flex-end; }

.wc {
  width: 28px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-muted); border-radius: 4px;
  transition: background 0.1s;
}

.wc:hover { background: rgba(255,255,255,0.06); }
.wc-close:hover { background: #e81123; color: #fff; }

.app-screenshot { width: 100%; display: block; }

/* ===== Sections ===== */
.section-header { text-align: center; margin-bottom: 44px; }

.section-tag {
  display: inline-block; padding: 3px 10px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: 100px; font-size: 0.65rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.8px;
  margin-bottom: 8px; color: #fff;
}

.section-desc {
  font-size: 0.85rem; color: var(--text-secondary);
  max-width: 420px; margin: 0 auto;
}

/* ===== Features ===== */
.features {
  padding: 80px 0; position: relative;
}

.features > .container { position: relative; z-index: 1; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover); border-color: rgba(232,85,58,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,85,58,0.06);
}

.feature-icon {
  width: 36px; height: 36px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 18px; height: 18px; stroke: var(--accent); }

.feature-card h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.feature-card p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Preview ===== */
.preview {
  padding: 80px 0; position: relative;
}

.preview > .container { position: relative; z-index: 1; }

.preview-tabs {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 20px; flex-wrap: wrap;
}

.preview-tab {
  padding: 6px 14px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 0.75rem; font-weight: 500; border-radius: 6px;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}

.preview-tab:hover { border-color: var(--border-hover); color: var(--text-secondary); }

.preview-tab.active {
  background: var(--accent-subtle); border-color: var(--accent-border);
  color: var(--accent);
}

.preview-window { max-width: 860px; margin: 0 auto; }

.preview-screens { position: relative; }

.preview-screen {
  width: 100%; display: none;
  animation: fadeIn 0.25s ease;
}

.preview-screen.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Steps ===== */
.steps-section {
  padding: 80px 0; position: relative;
}

.steps-section > .container { position: relative; z-index: 1; }

.steps {
  display: flex; align-items: center; justify-content: center;
  max-width: 720px; margin: 0 auto;
}

.step { text-align: center; flex: 1; }

.step-num {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  margin: 0 auto 12px;
}

.step h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.step p { font-size: 0.75rem; color: var(--text-secondary); max-width: 170px; margin: 0 auto; }

.step-connector {
  width: 48px; height: 1px; background: var(--border);
  flex-shrink: 0; margin-bottom: 36px;
}

/* ===== System Requirements ===== */
.sysreq {
  padding: 80px 0; position: relative;
}

.sysreq > .container { position: relative; z-index: 1; }

.sysreq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 640px; margin: 0 auto;
}

.sysreq-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}

.sysreq-card h4 {
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

.sysreq-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.sysreq-card li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}

.sysreq-card li span:first-child { color: var(--text-muted); font-weight: 500; }
.sysreq-card li span:last-child { color: var(--text-secondary); }

/* ===== Download ===== */
.download {
  padding: 60px 0; position: relative;
}

.download > .container { position: relative; z-index: 1; }

.download-box {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  gap: 20px; flex-wrap: wrap;
}

.download-left { display: flex; align-items: center; gap: 16px; }

.download-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.1);
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.download-left h2 { font-size: 1.1rem; font-weight: 600; color: #fff; }

.download-version {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace; margin-top: 2px;
}

.download-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.download-note { font-size: 0.68rem; color: var(--text-muted); }

.download-warning {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 14px 18px;
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius); 
}

.download-warning svg { stroke: var(--warn); flex-shrink: 0; margin-top: 1px; }

.download-warning p {
  font-size: 0.75rem; color: #b89a3e; line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0; position: relative;
}

.faq > .container { position: relative; z-index: 1; }

.faq-list {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px;
}

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.15s;
}

.faq-item:hover { border-color: var(--border-hover); }
.faq-item.active { border-color: var(--accent-border); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: none; border: none;
  color: var(--text); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-align: left; font-family: inherit;
}

.faq-chevron { transition: transform 0.2s; stroke: var(--text-muted); flex-shrink: 0; }
.faq-item.active .faq-chevron { transform: rotate(180deg); stroke: var(--accent); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-a { max-height: 200px; }

.faq-a p {
  padding: 0 18px 14px; font-size: 0.78rem;
  color: var(--text-secondary); line-height: 1.7;
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 0 20px; }

.footer-inner {
  display: flex; justify-content: space-between;
  margin-bottom: 28px; gap: 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

.social-links { display: flex; gap: 8px; margin-top: 14px; }

.social-link {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(232,85,58,0.08); border: 1px solid rgba(232,85,58,0.15);
  color: var(--accent); transition: all 0.15s; text-decoration: none;
}

.social-link:hover {
  color: #fff; border-color: var(--accent);
  background: rgba(232,85,58,0.2);
}

.footer-cols { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h4 {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.78rem; transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.78rem; transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.68rem; color: var(--text-muted);
}

.footer-disclaimer { opacity: 0.5; }
.footer-dev { color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-showcase { max-width: 600px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .topbar-right { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-desc { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-hero { width: 100%; justify-content: center; }
  .hero-stats-bar { flex-direction: row; gap: 8px; max-width: 100%; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-icon-wrap { width: 32px; height: 32px; }
  .stat-icon-wrap svg { width: 14px; height: 14px; }
  .showcase-3d { transform: none; }
  .showcase-3d:hover { transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 12px; }
  .step-connector { width: 1px; height: 28px; margin-bottom: 0; }
  .sysreq-grid { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; text-align: center; padding: 24px 20px; }
  .download-left { flex-direction: column; }
  .download-right { align-items: center; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .preview-tabs { gap: 4px; }
  .preview-tab { font-size: 0.68rem; padding: 5px 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats-bar { flex-direction: column; gap: 8px; }
  .stat-card { padding: 14px 16px; }
  .stat-num { font-size: 1.2rem; }
  .stat-card { padding: 0 8px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Sparks Canvas ===== */
#sparks {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}



/* ===== Versions Section ===== */
.versions { padding: 80px 0; position: relative; }
.versions > .container { position: relative; z-index: 1; }

.versions-stats {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 32px;
}
.versions-stat { display: flex; flex-direction: column; align-items: center; }
.versions-stat-num {
  font-size: 1.4rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
}
.versions-stat-label {
  font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

.releases-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}

.release-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s, background 0.2s; position: relative;
}
.release-card:hover {
  border-color: rgba(232,85,58,0.15); background: var(--bg-card-hover);
}
.release-card.latest {
  border-color: rgba(232,85,58,0.25);
  box-shadow: 0 0 24px rgba(232,85,58,0.06);
}
.release-card::before {
  content: ''; position: absolute; left: 36px; top: -12px;
  width: 1px; height: 12px; background: var(--border);
}
.release-card:first-child::before { display: none; }

.release-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.release-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.release-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-version {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.release-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 100px;
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.release-badge.latest-badge {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #22c55e;
}
.release-badge.pre-badge {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.18); color: #f59e0b;
}
.release-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.release-meta svg { flex-shrink: 0; }
.release-meta-item { display: inline-flex; align-items: center; gap: 5px; }

.release-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.release-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  color: #fff; font-size: 0.78rem; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 2px 12px rgba(232,85,58,0.2);
  white-space: nowrap;
}
.release-dl-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #f06a4a 100%);
  box-shadow: 0 4px 20px rgba(232,85,58,0.3); transform: translateY(-1px);
}
.release-dl-btn .win-icon { display: flex; align-items: center; }
.release-dl-size {
  font-size: 0.65rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Changelog */
.release-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.release-body-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text-secondary);
  font-size: 0.75rem; font-weight: 500; cursor: pointer;
  font-family: inherit; padding: 4px 0; transition: color 0.15s;
}
.release-body-toggle:hover { color: var(--accent); }
.release-body-toggle svg { transition: transform 0.2s; }
.release-body-toggle.open svg { transform: rotate(180deg); }

.release-changelog { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.release-changelog.open { max-height: 800px; }

.release-changelog-inner {
  padding-top: 12px; font-size: 0.78rem;
  color: var(--text-secondary); line-height: 1.8;
}
.release-changelog-inner h1,
.release-changelog-inner h2,
.release-changelog-inner h3 {
  font-size: 0.82rem; font-weight: 600; color: #fff; margin: 12px 0 6px;
}
.release-changelog-inner h1:first-child,
.release-changelog-inner h2:first-child,
.release-changelog-inner h3:first-child { margin-top: 0; }
.release-changelog-inner ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.release-changelog-inner li { padding-left: 16px; position: relative; }
.release-changelog-inner li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
}
.release-changelog-inner p { margin: 6px 0; }
.release-changelog-inner code {
  background: rgba(232,85,58,0.08); padding: 1px 5px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent);
}
.release-changelog-inner a { color: var(--accent); text-decoration: none; }
.release-changelog-inner a:hover { text-decoration: underline; }

/* Loading / Error */
.releases-loading { text-align: center; padding: 48px 0; }
.loading-spinner {
  width: 32px; height: 32px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: rlSpin 0.8s linear infinite; margin: 0 auto 14px;
}
@keyframes rlSpin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.8rem; color: var(--text-muted); }

.releases-error { text-align: center; padding: 48px 0; }
.releases-error p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }
.retry-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: var(--accent-subtle);
  border: 1px solid var(--accent-border); border-radius: 8px;
  color: var(--accent); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.retry-btn:hover { background: rgba(232,85,58,0.12); border-color: rgba(232,85,58,0.3); }

.releases-empty { text-align: center; padding: 48px 0; color: var(--text-muted); font-size: 0.85rem; }

.releases-all-btn-wrap { text-align: center; margin-top: 24px; }
.releases-all-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--accent-subtle);
  border: 1px solid rgba(232,85,58,0.15); border-radius: 12px;
  color: var(--accent); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.releases-all-btn:hover { background: rgba(232,85,58,0.12); border-color: rgba(232,85,58,0.3); transform: translateY(-1px); }

@media (max-width: 768px) {
  .release-header { flex-direction: column; }
  .release-actions { align-items: flex-start; width: 100%; }
  .release-dl-btn { width: 100%; justify-content: center; }
  .versions-stats { gap: 20px; }
}

/* ===== Download Progress Modal ===== */
.dl-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.dl-modal-overlay.active { display: flex; opacity: 1; }

.dl-modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; width: 420px; max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}

.dl-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.dl-modal-icon { color: var(--accent); display: flex; }
.dl-modal-title { flex: 1; font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.dl-modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; padding: 0 4px;
  transition: color 0.15s;
}
.dl-modal-close:hover { color: var(--text); }

.dl-modal-body { padding: 20px 24px 24px; }

.dl-filename {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px; word-break: break-all;
}

.dl-progress-wrap { display: flex; flex-direction: column; gap: 8px; }

.dl-progress-bar {
  width: 100%; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.dl-progress-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #f97316);
  transition: width 0.3s ease;
}

.dl-progress-info {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; font-weight: 600;
}
.dl-progress-info span:first-child { color: var(--text); }
.dl-progress-info span:last-child { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }

.dl-progress-detail {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.dl-status {
  margin-top: 14px; font-size: 0.78rem; color: var(--text-secondary);
  min-height: 20px;
}
.dl-status.success { color: #22c55e; }
.dl-status.error { color: #ef4444; }
