/* ==========================================================================
   SADEMP — Design System v2
   Dark cinematic "Los Santos sunset" theme
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-dark: #07080b;
  --bg-elev: #0c0e13;
  --bg-card: #101319;
  --bg-card-hover: #141821;
  --bg-card-alt: #0b0d12;
  --bg-input: #0a0c10;

  /* Lines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-glow: rgba(255, 138, 36, 0.45);
  --border-green: rgba(43, 212, 106, 0.4);

  /* Brand */
  --orange-sunset: #ff7a1a;
  --orange-deep: #f2541b;
  --amber-gold: #ffb020;
  --yellow-vagos: #f5c518;
  --green-grove: #2bd46a;
  --green-grove-dark: #15803d;
  --purple-ballas: #a660ff;
  --pink-vice: #ff4d7e;

  --grad-sunset: linear-gradient(100deg, #ffc23a 0%, #ff7a1a 45%, #ff4d7e 100%);
  --grad-sunset-soft: linear-gradient(135deg, rgba(255, 176, 32, 0.16), rgba(255, 77, 126, 0.12));
  --grad-gangs: linear-gradient(90deg, #2bd46a, #ffb020 40%, #ff7a1a 65%, #a660ff);

  /* Text */
  --text-main: #f4f5f7;
  --text-body: #c3c8d2;
  --text-muted: #8b93a3;
  --text-dim: #5d6574;
  --text-gold: #ffd77a;

  /* Type */
  --font-heading: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 10px 40px -8px rgba(255, 122, 26, 0.55);
  --shadow-green: 0 10px 40px -10px rgba(43, 212, 106, 0.45);

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient sunset glow + film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 26, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(166, 96, 255, 0.08), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(43, 212, 106, 0.05), transparent 60%),
    var(--bg-dark);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(255, 122, 26, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }
strong { color: var(--text-main); font-weight: 700; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; color: var(--text-main); }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.18);
  color: var(--text-gold);
  white-space: nowrap;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1d212b; border-radius: 10px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: #2a303d; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 8, 11, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.site-header.scrolled {
  background: rgba(7, 8, 11, 0.85);
  border-bottom-color: var(--border-subtle);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-strong), 0 8px 20px -6px rgba(255, 122, 26, 0.5);
  transition: transform var(--transition-smooth);
}
.brand-logo:hover .brand-icon { transform: rotate(-6deg) scale(1.05); }
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}
.nav-link {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.nav-link.nav-donate { color: #ff8fab; }
.nav-link.nav-donate:hover, .nav-link.nav-donate.active { color: #fff; background: rgba(255, 77, 126, 0.16); }

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

.header-social-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}
.header-social-icon.vk:hover { color: #fff; background: #0077ff; border-color: #0077ff; }
.header-social-icon.tg:hover { color: #fff; background: #229ed9; border-color: #229ed9; }

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  margin-left: 4px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #160a02 !important;
  background: var(--grad-sunset) !important;
  box-shadow: 0 6px 22px -6px rgba(255, 122, 26, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -6px rgba(255, 122, 26, 0.85); }

.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  isolation: isolate;
}
.btn-primary {
  color: #160a02;
  background: var(--grad-sunset);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position 0.8s ease;
  z-index: -1;
  mix-blend-mode: overlay;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(255, 122, 26, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover::after { background-position: -20% 0; }

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }

.btn-secondary.btn-dev {
  opacity: 0.8;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  user-select: none;
}
.btn-secondary.btn-dev:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.btn-secondary.btn-dev .btn-meta-sub {
  color: var(--amber-gold);
  font-weight: 700;
  opacity: 1;
}

.btn-meta { display: flex; flex-direction: column; text-align: left; }
.btn-meta-title { font-size: 1rem; font-weight: 800; }
.btn-meta-sub { font-size: 0.74rem; font-weight: 600; opacity: 0.7; font-family: var(--font-mono); margin-top: 2px; }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 65px;
  overflow: hidden;
}
.hero-backdrop-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 75% 40%, rgba(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(400px 300px at 90% 80%, rgba(166, 96, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-backdrop-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  transition: transform var(--transition-fast), color var(--transition-fast);
  z-index: 2;
  cursor: pointer;
}
.hero-scroll-indicator:hover {
  color: var(--amber-gold);
  transform: translateX(-50%) translateY(3px);
}
.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  position: relative;
  transition: border-color var(--transition-fast);
}
.hero-scroll-indicator:hover .scroll-mouse {
  border-color: var(--amber-gold);
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--amber-gold);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelPulse 1.8s ease-in-out infinite;
}
@keyframes scrollWheelPulse {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 9px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}
.scroll-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.hero-scroll-indicator:hover .scroll-text {
  opacity: 1;
  color: var(--amber-gold);
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 26px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-body);
  background: rgba(43, 212, 106, 0.08);
  border: 1px solid rgba(43, 212, 106, 0.25);
}
.release-pill b { color: var(--green-grove); font-weight: 800; }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-grove);
  box-shadow: 0 0 0 0 rgba(43, 212, 106, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 212, 106, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(43, 212, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 212, 106, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title .title-kicker {
  display: block;
  font-size: 0.36em;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.title-accent {
  display: block;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 122, 26, 0.35));
}
.title-outline {
  display: block;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-badges-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.art-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid;
}
.art-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-badge.green { color: var(--green-grove); background: rgba(43, 212, 106, 0.08); border-color: rgba(43, 212, 106, 0.25); }
.art-badge.orange { color: var(--amber-gold); background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.25); }
.art-badge.purple { color: #c39bff; background: rgba(166, 96, 255, 0.1); border-color: rgba(166, 96, 255, 0.3); }

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-cta-group .btn-primary, .hero-cta-group .btn-secondary { padding: 16px 26px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Art card */
.hero-visual { position: relative; perspective: 1200px; }
.art-card-wrapper {
  position: relative;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 194, 58, 0.7), rgba(255, 77, 126, 0.3) 40%, rgba(166, 96, 255, 0.5));
  box-shadow: 0 40px 100px -30px rgba(255, 122, 26, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.5);
  transform: rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-card-wrapper:hover { transform: rotateY(0) rotateX(0); }
.art-card-wrapper::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  z-index: -1;
  border-radius: 40px;
  background: var(--grad-sunset);
  filter: blur(70px);
  opacity: 0.35;
}
.art-card-inner {
  position: relative;
  border-radius: 27px;
  overflow: hidden;
  background: var(--bg-card);
}
.hero-art-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-card-wrapper:hover .hero-art-img { transform: scale(1.04); }
.art-float-tag {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 8, 11, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.art-float-title { font-weight: 800; font-size: 0.95rem; }
.art-float-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.art-engine-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--amber-gold);
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.3);
}
.art-online-chip {
  position: absolute;
  top: 18px;
  left: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 14, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.art-online-chip small { display: block; color: var(--text-muted); font-weight: 600; font-size: 0.7rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   Stats ribbon
   ========================================================================== */
.stats-ribbon { padding: 0 0 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  padding: 0;
}
.stat-item {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.stat-item + .stat-item { border-left: 1px solid var(--border-subtle); }
.stat-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #b9bfcc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.86rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber-gold);
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunset);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--text-muted); font-size: 1.04rem; }

/* ==========================================================================
   Features
   ========================================================================== */
.features-section {
  position: relative;
  padding: 110px 0 95px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 60% 300px at 50% 0%, rgba(255, 122, 26, 0.08) 0%, transparent 70%),
    var(--bg-dark);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), background var(--transition-fast);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 26, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.feature-card:hover::before { opacity: 1; }

.feature-icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid;
}
.feature-icon-box svg { width: 24px; height: 24px; }
.feature-icon-box.orange { color: var(--orange-sunset); background: rgba(255, 122, 26, 0.1); border-color: rgba(255, 122, 26, 0.25); }
.feature-icon-box.green { color: var(--green-grove); background: rgba(43, 212, 106, 0.1); border-color: rgba(43, 212, 106, 0.25); }
.feature-icon-box.gold { color: var(--amber-gold); background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.25); }
.feature-icon-box.purple { color: #c39bff; background: rgba(166, 96, 255, 0.1); border-color: rgba(166, 96, 255, 0.3); }

.feature-title { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-desc { color: var(--text-muted); font-size: 0.94rem; }

/* ==========================================================================
   Code showcase (home)
   ========================================================================== */
.code-section { padding: 40px 0 90px; }
.code-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.code-split .section-header { text-align: left; margin: 0; }
.code-points { display: grid; gap: 12px; margin: 26px 0 30px; }
.code-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-body); font-size: 0.96rem; }
.code-points li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(43, 212, 106, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232bd46a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.code-window {
  border-radius: var(--radius-lg);
  background: #0a0c10;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3a; }
.code-dots i:nth-child(1) { background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.code-tab-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.code-tab-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.code-tab-btn.active { color: var(--text-main); background: rgba(255, 255, 255, 0.08); }
.code-copy-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.code-copy-btn:hover { color: var(--text-main); border-color: var(--border-strong); }
.code-window pre {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: #d6dbe4;
  overflow-x: auto;
  min-height: 360px;
  tab-size: 4;
}
.code-comment { color: #5f6b7d; font-style: italic; }
.code-kw { color: #ff7ab2; }
.code-str { color: #ffc96b; }
.code-fn { color: #6bd5ff; }
.code-dec { color: #2bd46a; }
.code-cls { color: #c39bff; }

/* ==========================================================================
   Promo banners (donate / community)
   ========================================================================== */
.promo-section { padding: 0 0 28px; }
.donate-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 40px 44px;
  border-radius: var(--radius-xl);
  background: var(--grad-sunset-soft), var(--bg-card);
  border: 1px solid rgba(255, 138, 36, 0.28);
  overflow: hidden;
}
.donate-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.35), transparent 70%);
  pointer-events: none;
}
.donate-banner h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.donate-banner p { color: var(--text-body); max-width: 640px; font-size: 0.97rem; }
.donate-banner .section-tag { margin-bottom: 10px; }
.donate-banner .btn-primary { position: relative; z-index: 1; }

.community-banner { padding: 0 0 28px; }
.community-box {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(166, 96, 255, 0.14), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.community-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--grad-gangs);
  opacity: 0.7;
}
.community-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 12px; }
.community-desc { color: var(--text-muted); max-width: 620px; margin: 0 auto 30px; }
.community-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}
.community-btn:hover { transform: translateY(-2px); }
.community-btn.vk:hover { background: #0077ff; border-color: #0077ff; box-shadow: 0 12px 30px -10px #0077ff; }
.community-btn.telegram:hover { background: #229ed9; border-color: #229ed9; box-shadow: 0 12px 30px -10px #229ed9; }
.community-btn.email:hover { background: #ea4335; border-color: #ea4335; box-shadow: 0 12px 30px -10px #ea4335; }
.community-btn.vk svg { color: #4a9bff; }
.community-btn.telegram svg { color: #3db4ec; }
.community-btn.email svg { color: #ff6b5e; }
.community-btn:hover svg { color: #fff; }

/* ==========================================================================
   Steps / quick links
   ========================================================================== */
.quicklinks-section { padding: 60px 0 100px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-number {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--transition-fast);
}
.step-card:hover .step-number { -webkit-text-stroke-color: rgba(255, 176, 32, 0.4); }
.step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--amber-gold);
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.25);
}
.step-title { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.step-desc { color: var(--text-muted); font-size: 0.94rem; }
.step-desc a { color: var(--amber-gold); }

.link-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
}
.link-card .step-desc { margin-bottom: 22px; }
.link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--amber-gold);
}
.link-arrow svg { transition: transform var(--transition-fast); }
.link-card:hover .link-arrow svg { transform: translateX(4px); }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(255, 122, 26, 0.16), transparent 70%),
    radial-gradient(500px 260px at 90% 100%, rgba(166, 96, 255, 0.1), transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}
.breadcrumbs a:hover { color: var(--text-main); }
.breadcrumbs span:not(:last-child) { color: var(--text-dim); }
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 900px;
}
.page-lead { font-size: 1.1rem; color: var(--text-body); max-width: 720px; }

/* ==========================================================================
   Downloads
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}
.download-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.download-card.highlight {
  border-color: rgba(255, 138, 36, 0.35);
  background: radial-gradient(500px 220px at 100% 0%, rgba(255, 122, 26, 0.12), transparent 70%), var(--bg-card);
}
.download-card:not(.highlight) {
  background: radial-gradient(500px 220px at 100% 0%, rgba(43, 212, 106, 0.08), transparent 70%), var(--bg-card);
}
.card-badge-top {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card-badge-top.client { color: var(--amber-gold); background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.3); }
.card-badge-top.server { color: var(--green-grove); background: rgba(43, 212, 106, 0.1); border: 1px solid rgba(43, 212, 106, 0.3); }

.dl-card-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-right: 120px; }
.dl-icon-circle {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
}
.dl-icon-circle.client-icon { color: #160a02; background: var(--grad-sunset); box-shadow: var(--shadow-glow); }
.dl-icon-circle.server-icon { color: #03140a; background: linear-gradient(135deg, #5df59a, #1fae55); box-shadow: var(--shadow-green); }
.dl-card-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; }
.dl-card-filename { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; }
.dl-card-desc { color: var(--text-body); font-size: 0.95rem; margin-bottom: 24px; }

.dl-specs-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}
.dl-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 0.88rem;
}
.dl-spec-row + .dl-spec-row { border-top: 1px solid var(--border-subtle); }
.spec-name { color: var(--text-muted); font-weight: 600; }
.spec-val { font-weight: 700; text-align: right; }
.hash-container { display: flex; align-items: center; gap: 10px; }
.hash-val { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-gold); }
.copy-hash-btn {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  transition: all var(--transition-fast);
}
.copy-hash-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }

.dl-action-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.dl-action-btn.client { color: #160a02; background: var(--grad-sunset); box-shadow: var(--shadow-glow); }
.dl-action-btn.server { color: #03140a; background: linear-gradient(135deg, #5df59a, #1fae55); box-shadow: var(--shadow-green); }
.dl-action-btn:hover { transform: translateY(-2px); }
.dl-action-btn.dl-btn-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--amber-gold);
  border: 1px solid rgba(255, 176, 32, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  user-select: none;
}
.dl-action-btn.dl-btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Tables */
.browser-table { width: 100%; border-collapse: collapse; }
.browser-table th {
  text-align: left;
  padding: 16px 22px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
}
.browser-table td {
  padding: 16px 22px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.browser-table tbody tr { transition: background var(--transition-fast); }
.browser-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.browser-table tbody tr:last-child td { border-bottom: none; }
.browser-table td:last-child { color: var(--text-main); }

/* Server browser (legacy, kept for compatibility) */
.server-row-name { display: flex; align-items: center; gap: 12px; }
.server-star { color: var(--text-dim); cursor: pointer; }
.server-star:hover { color: var(--amber-gold); }
.server-info-title { display: block; font-weight: 700; color: var(--text-main); }
.server-info-ip { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.server-mode-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: rgba(166, 96, 255, 0.12); color: #c39bff; }
.players-progress-cell { display: flex; align-items: center; gap: 10px; }
.progress-bar-bg { width: 90px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--grad-sunset); }
.players-count-text { font-family: var(--font-mono); font-size: 0.82rem; }
.ping-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.82rem; }
.ping-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-grove); }
.btn-server-connect { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 0.82rem; background: rgba(43, 212, 106, 0.12); color: var(--green-grove); }

/* ==========================================================================
   Content boxes (how-to-play, faq)
   ========================================================================== */
.panel {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.contact-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}
.contact-pill-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq-item {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open {
  border-color: rgba(255, 138, 36, 0.35);
  background: radial-gradient(500px 160px at 0% 0%, rgba(255, 122, 26, 0.08), transparent 70%), var(--bg-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}
.faq-icon-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: transform var(--transition-smooth), background var(--transition-fast), color var(--transition-fast);
}
.faq-item.open .faq-icon-arrow { transform: rotate(180deg); background: var(--grad-sunset); color: #160a02; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-smooth);
}
.faq-answer > * { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { padding: 0 26px 24px; color: var(--text-body); font-size: 0.96rem; }
.faq-answer a { color: var(--amber-gold); }

/* ==========================================================================
   Docs
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  padding: 48px 24px 90px;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding: 22px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.docs-sidebar h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin: 20px 10px 8px;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-nav-list { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}
.docs-nav-list a:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.docs-nav-list a.active {
  color: var(--amber-gold);
  background: rgba(255, 176, 32, 0.08);
  border-left-color: var(--amber-gold);
  border-radius: 0 8px 8px 0;
}

.docs-content {
  padding: 44px 52px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}
.docs-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.docs-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 52px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.docs-content p { color: var(--text-body); margin-bottom: 16px; line-height: 1.75; }
.docs-content ul { margin: 0 0 20px; display: grid; gap: 8px; }
.docs-content ul li { position: relative; padding-left: 20px; color: var(--text-body); }
.docs-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--amber-gold);
}
.docs-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 28px;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.docs-content thead, .docs-content tbody { display: table; width: 100%; border-collapse: collapse; }
.docs-content th, .docs-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.docs-content tbody tr:last-child td { border-bottom: none; }
.docs-content th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
}
.docs-content td { color: var(--text-body); }
.docs-content tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.docs-content pre {
  position: relative;
  margin: 16px 0 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: #0a0c10;
  border: 1px solid var(--border-strong);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d6dbe4;
}
.docs-content pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-grove);
  background: rgba(43, 212, 106, 0.1);
  border: 1px solid rgba(43, 212, 106, 0.3);
}

/* ==========================================================================
   Donate
   ========================================================================== */
.donate-goal-card {
  padding: 36px 40px;
  margin-bottom: 80px;
  border-radius: var(--radius-xl);
  background: var(--grad-sunset-soft), var(--bg-card);
  border: 1px solid rgba(255, 138, 36, 0.3);
  box-shadow: var(--shadow-card);
}
.goal-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.goal-title-group h3 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.goal-title-group p { color: var(--text-muted); font-size: 0.94rem; max-width: 560px; }
.goal-amounts { text-align: right; }
.goal-collected {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.goal-target { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }
.goal-progress-bar-wrap { height: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-subtle); overflow: hidden; margin-bottom: 16px; }
.goal-progress-fill {
  height: 100%;
  border-radius: 12px;
  background: var(--grad-sunset);
  background-size: 200% 100%;
  box-shadow: 0 0 20px rgba(255, 122, 26, 0.6);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }
.goal-stats-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.88rem; color: var(--text-muted); }

.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 80px; align-items: stretch; }
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}
.tier-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tier-card.featured {
  border-color: rgba(255, 138, 36, 0.5);
  background: radial-gradient(400px 260px at 50% 0%, rgba(255, 122, 26, 0.16), transparent 70%), var(--bg-card);
  box-shadow: 0 30px 70px -30px rgba(255, 122, 26, 0.5);
}
.tier-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.tier-badge.fan { color: var(--green-grove); background: rgba(43, 212, 106, 0.1); border: 1px solid rgba(43, 212, 106, 0.3); }
.tier-badge.popular { color: #160a02; background: var(--grad-sunset); }
.tier-badge.vip { color: #c39bff; background: rgba(166, 96, 255, 0.12); border: 1px solid rgba(166, 96, 255, 0.35); }
.tier-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.tier-price-val { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.tier-price-period { color: var(--text-muted); font-size: 0.88rem; }
.tier-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border-subtle); }
.tier-perks-list { display: grid; gap: 12px; margin-bottom: 28px; }
.tier-perks-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-body); }
.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.66rem;
  color: var(--green-grove);
  background: rgba(43, 212, 106, 0.12);
  margin-top: 1px;
}
.btn-tier-select {
  margin-top: auto;
  padding: 14px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}
.btn-tier-select:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.btn-tier-select.primary { color: #160a02; background: var(--grad-sunset); border-color: transparent; box-shadow: var(--shadow-glow); }

.donate-form-card {
  padding: 40px;
  margin-bottom: 80px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.donate-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text-body); margin-bottom: 10px; }
.amount-chips-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.amount-chip {
  padding: 12px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}
.amount-chip:hover { border-color: rgba(255, 176, 32, 0.5); }
.amount-chip.active { color: #160a02; background: var(--grad-sunset); border-color: transparent; }
.custom-amount-wrapper { position: relative; margin-bottom: 24px; }
.custom-amount-input, .form-control-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical;
}
.custom-amount-input { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; padding-right: 44px; }
.custom-amount-input:focus, .form-control-input:focus {
  outline: none;
  border-color: var(--amber-gold);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.15);
}
.form-control-input::placeholder { color: var(--text-dim); }
.currency-symbol { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 800; }
.form-group { margin-bottom: 18px; }
.btn-donate-submit {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  color: #160a02;
  background: var(--grad-sunset);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
}
.btn-donate-submit:hover { transform: translateY(-2px); }
.btn-donate-submit:disabled { opacity: 0.8; cursor: wait; }

.payment-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.payment-method-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}
.payment-method-btn:hover { border-color: rgba(255, 255, 255, 0.25); }
.payment-method-btn.active { border-color: var(--amber-gold); background: rgba(255, 176, 32, 0.08); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12); }
.payment-method-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
}

.sponsors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sponsor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), transform var(--transition-smooth);
}
.sponsor-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.sponsor-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-vice), var(--orange-deep));
}
.sponsor-name { font-weight: 800; font-size: 0.94rem; }
.sponsor-amount { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 70px 0 34px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-gangs);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 18px; max-width: 320px; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-links-list { display: grid; gap: 10px; }
.footer-links-list a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.footer-links-list a:hover { color: var(--text-main); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}
.disclaimer-text { color: var(--text-dim); line-height: 1.7; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(16, 19, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}
.toast-notice svg { flex-shrink: 0; }
.toast-notice.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-social-icon { display: none; }
  .nav-link { padding: 8px 12px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .art-card-wrapper { transform: none; }
  .art-online-chip { left: 14px; }
  .features-grid, .steps-grid, .tiers-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .code-split { grid-template-columns: 1fr; }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    max-height: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
  }
  .docs-sidebar h4 { display: none; }
  .docs-nav-list { flex-direction: row; gap: 6px; }
  .docs-nav-list a { white-space: nowrap; border-left: none; border-radius: 8px !important; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .mobile-nav-toggle { display: flex; }
  .btn-header-cta span { display: none; }
  .btn-header-cta { padding: 0 12px; }
  .btn-header-cta:not(:has(svg)) span { display: inline; }
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(12, 14, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-smooth);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 13px 16px; border-radius: 12px; font-size: 0.98rem; }
  .downloads-grid, .donate-form-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding: 50px 0 60px; }
  .hero-scroll-indicator { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .docs-layout { padding: 28px 16px 60px; }
  .brand-sub { display: none; }
  .hero-section { padding: 40px 0 60px; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group a { justify-content: flex-start; }
  .features-grid, .steps-grid, .tiers-grid, .sponsors-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 20px 18px; }
  .stat-val { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .donate-banner, .community-box, .panel, .donate-form-card, .donate-goal-card { padding: 28px 22px; }
  .download-card { padding: 26px 22px; }
  .dl-card-header { padding-right: 0; margin-top: 30px; }
  .card-badge-top { top: 18px; right: auto; left: 22px; }
  .dl-spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-val { text-align: left; }
  .docs-content { padding: 26px 20px; }
  .goal-amounts { text-align: left; }
  .payment-methods-grid { grid-template-columns: 1fr; }
  .amount-chips-group { grid-template-columns: repeat(2, 1fr); }
  .faq-question { padding: 18px 18px; font-size: 0.92rem; }
  .faq-answer p { padding: 0 18px 20px; }
  .code-window pre { font-size: 0.76rem; padding: 18px; min-height: 0; }
  .browser-table th, .browser-table td { padding: 12px 14px; }
}

/* ==========================================================================
   Home: community + donate row
   ========================================================================== */
.cta-section { padding: 0 0 100px; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.cta-grid .community-box {
  text-align: left;
  padding: 40px;
}
.cta-grid .community-desc { margin: 0 0 26px; }
.cta-grid .community-links { justify-content: flex-start; }
.cta-grid .donate-banner {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 40px;
}
.cta-grid .donate-banner p { margin-bottom: 24px; }
.code-section { padding-bottom: 100px; }

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cta-grid .community-box, .cta-grid .donate-banner { padding: 28px 22px; }
}

/* ==========================================================================
   Donate: crypto panel / empty state
   ========================================================================== */
[hidden] { display: none !important; }
.crypto-panel {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: rgba(255, 176, 32, 0.06);
}
.crypto-panel-title { font-weight: 800; font-size: 0.92rem; margin-bottom: 10px; }
.crypto-address-row { display: flex; align-items: center; gap: 10px; }
.crypto-address { flex: 1; min-width: 0; white-space: normal; word-break: break-all; font-size: 0.8rem; padding: 8px 10px; }
.crypto-note { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); }
.donate-empty-note {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.btn-donate-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
