/* ============================================================
   GAMBLERIG — STYLESHEET
   Donut SMP inspired: dark background, orange accents
   ============================================================ */

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

:root {
  --orange: #ff6b00;
  --orange-bright: #ff8c2a;
  --orange-dim: #c45200;
  --orange-glow: rgba(255, 107, 0, 0.15);
  --bg: #0d0d0d;
  --bg2: #121212;
  --bg3: #181818;
  --border: rgba(255,255,255,0.07);
  --border-orange: rgba(255,107,0,0.2);
  --text: #e8e8e8;
  --muted: #888;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
body::after {
  content: '';
  position: fixed;
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
  box-shadow: 0 0 12px var(--orange), 0 0 24px rgba(255,107,0,0.4);
  left: var(--cx, -100px);
  top: var(--cy, -100px);
}

/* ---- Canvas ---- */
#star-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Spark container ---- */
#sparks {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  animation: spark-out 0.6s ease-out forwards;
}

@keyframes spark-out {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ---- Utility ---- */
.orange { color: var(--orange); }
.orange-link { color: var(--orange); text-decoration: none; }
.orange-link:hover { text-decoration: underline; }

section {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { font-size: 22px; }

.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 9px;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(255,107,0,0.3);
}
.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,107,0,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-outline {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--orange); background: rgba(255,107,0,0.05); }

.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,0,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,0,0.08);
  border: 1px solid var(--border-orange);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--orange);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1rem;
  color: #888;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255,107,0,0.05);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius);
  padding: 16px 28px;
  min-width: 120px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.stat-card:hover {
  border-color: var(--orange);
  background: rgba(255,107,0,0.1);
  transform: translateY(-3px);
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #444;
  letter-spacing: 1px;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { padding-top: 80px; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-orange);
  background: rgba(255,107,0,0.04);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase-section { padding-top: 80px; }

.video-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-orange);
  box-shadow: 0 0 60px rgba(255,107,0,0.12);
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
}
.video-wrapper:hover {
  box-shadow: 0 0 80px rgba(255,107,0,0.25);
  transform: translateY(-3px);
}

.video-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s;
}
.video-wrapper:hover .video-thumb { filter: brightness(0.9); }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 16px 18px 16px 22px;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-wrapper:hover .video-play-btn {
  background: rgba(255,0,0,0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-label {
  position: absolute;
  bottom: 16px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-section { padding-top: 80px; }

.free-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.4);
  border-radius: 10px;
  padding: 12px 24px;
  margin: 0 auto 24px;
  max-width: 420px;
  font-size: 15px;
  color: #fff;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,0,0); }
}

.free-fire { font-size: 18px; }

.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
}

.countdown-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-block {
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-block span:first-child {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 2px;
}

.cd-sep {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.5;
  animation: blink 1s infinite;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.price-free {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange);
}

.price-orig {
  font-size: 0.95rem;
  color: #555;
  text-decoration: line-through;
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .download-cards { grid-template-columns: 1fr; }
}

.download-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s;
}
.download-card:hover { border-color: rgba(255,255,255,0.15); }

.recommended-card {
  background: rgba(255,107,0,0.05);
  border-color: var(--border-orange);
}
.recommended-card:hover { border-color: var(--orange); }

.rec-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: rgba(255,107,0,0.12);
  border: 1px solid var(--border-orange);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.mc-version {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.download-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 20px;
}

.rec-note {
  text-align: center;
  font-size: 12px;
  color: var(--orange);
  margin-top: 12px;
  font-weight: 600;
}

.modrinth-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   SETUP
   ============================================================ */
.setup-section { padding-top: 80px; }

.setup-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.setup-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.setup-step:last-child { border-bottom: none; }

.step-circle {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(255,107,0,0.08);
  border: 2px solid rgba(255,107,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.launcher-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.launcher-tag {
  background: rgba(255,107,0,0.08);
  border: 1px solid var(--border-orange);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.path-boxes {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.path-os {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  min-width: 60px;
}

.path-box code {
  flex: 1;
  font-size: 12px;
  color: #ccc;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.95);
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

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

.footer-tagline {
  font-size: 13px;
  color: #555;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-copy {
  font-size: 12px;
  color: #333;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 70px 24px; }
  .hero { padding: 110px 24px 60px; }
  .hero-title { letter-spacing: -1px; }
  .nav-links { display: none; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ---- Selection ---- */
::selection { background: rgba(255,107,0,0.3); color: #fff; }
