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

:root {
  --gold: #F5C518;
  --gold-dim: rgba(245,197,24,0.5);
  --gold-faint: rgba(245,197,24,0.12);
  --gold-border: rgba(245,197,24,0.25);
  --bg: #09090b;
  --bg2: #0d0d10;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(245,197,24,0.07);
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(245,197,24,0.3);
  --text: rgba(255,255,255,0.92);
  --text-dim: rgba(255,255,255,0.38);
  --text-mid: rgba(255,255,255,0.62);
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── BACKGROUND ──────────────────────────────── */
/* Pure CSS — zero JS, zero GPU shader overhead.
   Layered: dark base → Minecraft block grid → slow gold orb drift → vignette */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Minecraft-style block grid overlay */
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Slowly drifting gold glow orb */
body::after {
  background:
    radial-gradient(ellipse 55% 45% at 50% 110%, rgba(245,197,24,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 20% 60%,  rgba(245,197,24,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 25% 20% at 80% 30%,  rgba(180,100,10,0.04) 0%, transparent 60%);
  animation: bgDrift 20s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0%   { opacity: 0.7; transform: scale(1)    translateY(0px); }
  50%  { opacity: 1.0; transform: scale(1.04) translateY(-12px); }
  100% { opacity: 0.8; transform: scale(0.98) translateY(6px); }
}

/* ─── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245,197,24,0.3); border-radius: 3px; }

/* ─── NAV ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 60px;
  transition: background 0.3s, border-color 0.3s;
}
#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(245,197,24,0.15);
}
#navbar.scrolled {
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(24px);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--gold);
  line-height: 1;
}
.nav-logo-version {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 1.5px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.btn-nav {
  background: var(--gold-faint) !important;
  border: 1px solid var(--gold-border) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.btn-nav:hover { background: rgba(245,197,24,0.18) !important; color: var(--gold) !important; }

/* ─── SECTION COMMON ──────────────────────────── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--text);
}
.section-title span { color: var(--gold); }
.divider {
  height: 1px;
  background: rgba(245,197,24,0.12);
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 80px 0 0;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
  top: 40%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}
.hero-title {
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 16px;
  color: var(--text);
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero-title .gold-text {
  color: var(--gold);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 440px;
  animation: fadeUp 0.5s 0.15s ease both;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.22s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--gold-border); color: var(--text); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.5s 0.3s ease both;
}
.stat {}
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── HERO MOCKUP (actual menu style) ────────── */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.5s 0.15s ease both;
}
.menu-mockup {
  width: 520px;
  background: rgba(9,9,11,0.85);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
}
.menu-mockup-header {
  padding: 22px 28px 20px;
  border-bottom: 1px solid rgba(245,197,24,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-brand { display: flex; align-items: center; gap: 14px; }
.mm-logo { width: 40px; height: 40px; object-fit: contain; }
.mm-brand-text { display: flex; flex-direction: column; gap: 2px; }
.mm-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--gold);
  line-height: 1;
}
.mm-version {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.mm-dots { display: flex; gap: 6px; align-items: center; }
.mm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.menu-mockup-body { padding: 24px 28px; }
.mm-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-dim);
  margin-bottom: 8px;
  padding-left: 12px;
}
.mm-buttons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.mm-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.mm-btn.active {
  background: var(--surface-hover);
  border-color: var(--border-gold);
}
.mm-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}
.mm-btn.active::before { height: 60%; }
.mm-icon {
  margin-left: 10px;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.mm-btn.active .mm-icon { background: var(--gold); }
.mm-btn-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.3px;
  flex: 1;
}
.mm-btn.active .mm-btn-label { color: var(--gold); }
.mm-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 14px;
}

/* ─── FEATURES ────────────────────────────────── */
#features {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(22px);
  transition: background 0.2s;
  overflow: hidden;
  animation: cardReveal 0.5s ease forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }
.feature-card:nth-child(5) { animation-delay: 0.33s; }
.feature-card:nth-child(6) { animation-delay: 0.40s; }
.feature-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}
/* .visible kept for JS compat but animation handles it */
.feature-card:hover { background: var(--surface-hover); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.feature-card:hover .feature-icon {
  background: var(--gold-faint);
  border-color: var(--gold-border);
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.feature-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.65; }

/* ─── MODULES ─────────────────────────────────── */
#modules {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}
.modules-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  letter-spacing: 0.3px;
}
.tab:hover { color: var(--text-mid); border-color: rgba(255,255,255,0.12); }
.tab.active {
  background: var(--gold-faint);
  border-color: var(--gold-border);
  color: var(--gold);
}
.modules-list { display: none; flex-wrap: wrap; gap: 8px; }
.modules-list.active { display: flex; animation: fadeIn 0.25s ease; }
.mod-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 15px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.15s;
  cursor: default;
  letter-spacing: 0.2px;
}
.mod-chip:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-faint); }
.mod-chip.highlight { border-color: var(--gold-border); color: var(--gold-dim); }

/* ─── SHOWCASE ────────────────────────────────── */
#showcase {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.showcase-card {
  background: var(--surface);
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(22px);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.5s ease forwards;
}
.showcase-card:nth-child(1) { animation-delay: 0.05s; }
.showcase-card:nth-child(2) { animation-delay: 0.15s; }
.showcase-card:nth-child(3) { animation-delay: 0.25s; }
.showcase-card:nth-child(4) { animation-delay: 0.35s; }
.showcase-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
/* .visible kept for JS compat but animation handles it */
.showcase-card:hover { background: var(--surface-hover); }
.showcase-card:hover::after { transform: scaleX(1); }
.showcase-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}
.showcase-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.showcase-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.showcase-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.showcase-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-fill.filled { width: var(--w); }
.showcase-label { font-size: 9px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; }

/* ─── DOWNLOAD ────────────────────────────────── */
#download {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  background: var(--bg2);
}
#download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245,197,24,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.download-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}
.download-card {
  background: var(--surface);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.download-info { display: flex; gap: 40px; flex-wrap: wrap; }
.dl-version { display: flex; flex-direction: column; gap: 5px; }
.dl-label { font-size: 9px; color: var(--text-dim); letter-spacing: 2.5px; text-transform: uppercase; }
.dl-val { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }

.install-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.step p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.step a { color: var(--gold); text-decoration: none; }
.step a:hover { text-decoration: underline; }
code, kbd {
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-mid);
}
kbd { border: 1px solid rgba(255,255,255,0.12); }
.step-arrow { color: var(--text-dim); font-size: 1rem; text-align: center; flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(245,197,24,0.12);
  padding: 36px 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img { width: 26px; height: 26px; object-fit: contain; }
.footer-logo-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
}
.footer-links { display: flex; gap: 6px; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.footer-links a:hover { color: var(--text); background: var(--surface); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #navbar { padding: 0 24px; }
  .hero-wrap { flex-direction: column; padding: 0 24px; gap: 48px; }
  .hero-visual { width: 100%; }
  .menu-mockup { width: 100%; }
  .section-inner { padding: 0 24px; }
  footer { padding: 32px 24px; }
  .install-steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -2px; }
}
