/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #0A0E1A;
  --bg-card:     #111827;
  --bg-dark:     #080C18;
  --border:      #1E2A3A;
  --border-glow: #C89B3C44;

  --gold:        #C89B3C;
  --gold-light:  #E8B84B;
  --gold-dim:    #8A6A20;

  --text:        #E8E8E8;
  --text-muted:  #8A9BB0;
  --text-dim:    #4A5A70;

  --discord:     #5865F2;
  --github:      #30363D;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  --transition:  0.25s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 32px rgba(200,155,60,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--border);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: -32px auto 48px;
  text-align: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(200,155,60,0.4));
}

.about-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(200,155,60,0.3));
}

.logo-icon {
  font-size: 1.4rem;
  filter: sepia(1) saturate(3) hue-rotate(5deg);
}

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  letter-spacing: 0.06em;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-icon { font-size: 0.95rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  padding: 9px 22px;
  font-size: 0.9rem;
}

.btn-sm  { font-size: 0.82rem; padding: 8px 22px; }
.btn-lg  { font-size: 1rem;    padding: 14px 28px; border-radius: var(--radius); }

.btn-primary {
  background: var(--gold);
  color: #0A0E1A;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,155,60,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../assets/banner.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,14,26,0.65) 0%,
    rgba(10,14,26,0.75) 50%,
    rgba(10,14,26,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,155,60,0.12);
  border: 1px solid rgba(200,155,60,0.3);
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(232,232,232,0.8);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.25);
  padding: 5px 14px;
  border-radius: 99px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  max-width: 340px;
}

.about-card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.about-card p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.2);
  border-radius: var(--radius-sm);
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   STATUS
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200,155,60,0.08);
  border: 1px solid rgba(200,155,60,0.25);
  border-radius: 99px;
  padding: 8px 20px 8px 14px;
  margin-bottom: 24px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: var(--gold);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.badge-version {
  background: var(--gold);
  color: #0A0E1A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.status-main p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.changelog-highlights {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.changelog-highlights h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.cl-dev-label {
  margin-top: 24px;
  color: #5b9bd5 !important;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cl-type {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 1px;
}

.cl-added   { background: rgba(34,197,94,0.15);  color: #22c55e; }
.cl-changed { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cl-fixed   { background: rgba(168,85,247,0.15); color: #c084fc; }

/* ============================================================
   OPEN SOURCE
   ============================================================ */
.opensource-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}

.opensource-text .section-title { margin-bottom: 20px; }

.opensource-text > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.oss-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.oss-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(200,155,60,0.15);
  border: 1px solid rgba(200,155,60,0.3);
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.oss-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.oss-card {
  background: #0D1117;
  border: 1px solid #30363D;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}

.oss-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #161B22;
  border-bottom: 1px solid #30363D;
  color: #58A6FF;
  font-weight: 600;
  font-size: 0.85rem;
}

.oss-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oss-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================================
   COMMUNITY
   ============================================================ */
#community .section-title,
#community .section-label {
  text-align: center;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.community-card:hover {
  transform: translateY(-6px);
}

.community-discord { border-top: 3px solid var(--discord); }
.community-discord:hover { box-shadow: 0 12px 40px rgba(88,101,242,0.2); border-color: var(--discord); }

.community-github  { border-top: 3px solid var(--gold); }
.community-github:hover  { box-shadow: var(--shadow-gold); border-color: var(--gold-dim); }

.community-card-icon {
  margin-bottom: 20px;
}

.community-discord .community-card-icon { color: var(--discord); }
.community-github  .community-card-icon { color: var(--text-muted); }

.community-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.community-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.community-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
}

.community-card:hover .community-link {
  text-decoration: underline;
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
#downloads .section-subtitle {
  text-align: center;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.download-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}

.download-card-header svg {
  flex-shrink: 0;
}

.download-card-header h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.download-card-body {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  text-decoration: none;
}

.download-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(200,155,60,0.05);
}

.dl-label {
  flex: 1;
}

@media (max-width: 768px) {
  .downloads-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* File size */
.dl-size {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Verified check */
.dl-verified {
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Most popular badge */
.download-btn.popular {
  position: relative;
  border-color: var(--gold-dim);
}
.popular-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* What's new accordion */
.whats-new {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: left;
}
.whats-new details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.whats-new summary {
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  list-style: none;
  user-select: none;
}
.whats-new summary::-webkit-details-marker { display: none; }
.whats-new summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform var(--transition);
}
.whats-new details[open] summary::before {
  transform: rotate(90deg);
}
.whats-new-content {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.whats-new-content h4 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.whats-new-content p {
  margin: 8px 0 4px;
}
.whats-new-content ul {
  margin: 4px 0 12px 20px;
  padding: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: flex;
  gap: 48px;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-powered {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.powered-link {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition);
}

.powered-link:hover {
  color: var(--gold-light);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.08s; }
.reveal:nth-child(5) { transition-delay: 0.16s; }
.reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid        { grid-template-columns: 1fr; }
  .about-visual      { display: none; }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .opensource-inner  { grid-template-columns: 1fr; }
  .oss-card-wrapper  { display: none; }
  .status-grid       { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr; }
  .footer-links      { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(8,12,24,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    height: 100vh;
    z-index: 99;
    font-size: 1.2rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text); font-size: 1.1rem; }

  .nav-burger { display: flex; z-index: 101; }

  .features-grid   { grid-template-columns: 1fr; }
  .community-grid  { grid-template-columns: 1fr; max-width: 440px; }
  .footer-links    { flex-wrap: wrap; gap: 32px; }

  .hero-title { font-size: 2.4rem; }

  .btn-lg { padding: 12px 22px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero-cta  { flex-direction: column; }
  .oss-cta   { flex-direction: column; }
  .hero-stats { gap: 16px; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 280px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(200,155,60,0.3));
}

.team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.team-handle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.team-role {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.25);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.team-links {
  display: flex;
  gap: 12px;
}

.team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.team-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(200,155,60,0.1);
}

/* ============================================================
   CONTRIBUTORS
   ============================================================ */
.contrib-block {
  margin-bottom: 48px;
}

.contrib-block:last-child { margin-bottom: 0; }

.contrib-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.contrib-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contrib-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  width: 120px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.contrib-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.contrib-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.contrib-card:hover img { border-color: var(--gold); }

.contrib-card-db {
  /* Same base as .contrib-card, but no link hover */
  cursor: default;
}
.contrib-card-db:not(a) {
  cursor: default;
}
.contrib-card-db:not(a):hover {
  transform: none;
  border-color: var(--border);
}
.contrib-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto 10px;
  display: block;
}
.contrib-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin: 0 auto 10px;
}

.contrib-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.contrib-count {
  font-size: 0.72rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .team-card { width: 100%; max-width: 320px; }
  .contrib-grid { justify-content: center; }
}

/* ============================================================
   HERO LAYOUT (text + mockup)
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1160px;
}
.hero-text {
  flex: 1 1 60%;
  min-width: 0;
  max-width: 720px;
}
.hero-mockup {
  flex: 0 1 40%;
  max-width: 420px;
  min-width: 280px;
  perspective: 1000px;
}

/* MOCKUP WINDOW */
.mockup-window {
  background: linear-gradient(160deg, #161a26 0%, #0f1218 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(200, 155, 60, 0.08),
              0 0 40px -10px rgba(200, 155, 60, 0.15);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-8px); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f4d;
}
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }
.mockup-title {
  margin-left: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mockup-body {
  padding: 20px 18px;
}
.mockup-section { margin-bottom: 4px; }
.mockup-section + .mockup-section { margin-top: 16px; }
.mockup-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mockup-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.mockup-stats {
  display: flex;
  gap: 6px;
}
.mockup-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: rgba(200, 155, 60, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mockup-stat-prio {
  background: rgba(200, 155, 60, 0.1);
  border-color: var(--gold-dim);
}
.ms-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.ms-val {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.mockup-stat-prio .ms-val { color: var(--gold); }

.mockup-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mockup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mockup-crest {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.mockup-crest-alt { background: #4a4f5d; color: var(--text); }
.mockup-vs {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.mockup-meta {
  margin-top: 8px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.mockup-form {
  display: flex;
  gap: 4px;
}
.form-pill {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
}
.form-w { background: #27c93f; }
.form-d { background: #ffbd2e; color: #1a1a1a; }
.form-l { background: #ff5f56; }

/* Hero mockup responsive */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; align-items: stretch; }
  .hero-mockup { max-width: 100%; margin-top: 24px; }
  .mockup-window { transform: none; animation: float-mobile 6s ease-in-out infinite; }
}
@keyframes float-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mockup-window { animation: none; }
}

/* ============================================================
   POPULAR BADGE PULSE
   ============================================================ */
@keyframes popular-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(200, 155, 60, 0); }
}
.popular-badge {
  animation: popular-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .popular-badge { animation: none; }
}
