:root {
  --bg0: #0c0f0a;
  --bg1: #141a12;
  --card: rgba(28, 36, 24, 0.85);
  --border: rgba(124, 179, 66, 0.25);
  --accent: #7cb342;
  --accent2: #aed581;
  --gold: #c9a227;
  --text: #e8efe0;
  --muted: #9aab8c;
  --official: #5c9fd4;
  --tlauncher: #e67e22;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: linear-gradient(165deg, var(--bg0) 0%, #1a2418 40%, var(--bg0) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 179, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 179, 66, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 179, 66, 0.12), transparent 60%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent2), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0.75rem auto 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  min-width: 100px;
}

.stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent2);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.server-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.server-pill code {
  color: var(--accent2);
  font-weight: 700;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: var(--card);
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.tab:hover { color: var(--text); }

.tab.active[data-tab="tlauncher"] {
  background: rgba(230, 126, 34, 0.2);
  color: #f5b041;
}

.tab.active[data-tab="official"] {
  background: rgba(92, 159, 212, 0.2);
  color: #85c1e9;
}

.tab-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--tlauncher);
  color: #fff;
}

.tab-icon.mc { background: var(--official); }

.panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.3s ease;
}

.panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-head h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.panel-head p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.panel-head code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.btn-download {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--tlauncher), #d35400);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-download.official {
  background: linear-gradient(135deg, var(--official), #2874a6);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.file-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.file-list li {
  margin-bottom: 0.5rem;
}

.file-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.file-list a:hover {
  border-color: var(--border);
  background: rgba(124, 179, 66, 0.08);
}

.file-list .icon {
  font-size: 1.25rem;
  opacity: 0.8;
}

.file-list .name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}

.file-list .size {
  font-size: 0.8rem;
  color: var(--muted);
}

.steps {
  margin-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps li { margin-bottom: 0.4rem; }

.steps strong { color: var(--text); }

.note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.note h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--accent2);
}

.note ul {
  margin-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
