/* ── Variables ── */
:root {
  --yellow: #f5c200;
  --yellow-glow: #f5c20088;
  --yellow-dim: #b8911a;
  --dark: #0d0d00;
  --dark2: #141200;
  --card-bg: #1a1800cc;
  --card-border: #2e2a00;
  --discord: #5865F2;
  --text: #d4cfa0;
  --text-dim: #7a7450;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

/* ── Sections ── */
section, footer { position: relative; z-index: 1; }

/* ── HERO ── */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 70% 60% at 50% 10%, #2a220088 0%, transparent 70%);
}

.hero-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.badge {
  display: inline-block;
  border: 1px solid var(--yellow-dim);
  color: var(--yellow-dim);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 14px;
  border-radius: 999px;
  animation: fade-up 0.8s 0.1s ease both;
}

/* Logo */
.logo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 900;
  color: var(--yellow);
  text-shadow:
    0 0 20px var(--yellow-glow),
    0 0 60px var(--yellow-glow),
    0 0 120px #f5c20044;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fade-up 0.8s 0.15s ease both;
}

.logo-emoji {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0 0 12px var(--yellow-glow));
  animation: spin-bob 4s ease-in-out infinite;
}

@keyframes spin-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8dfa0;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  animation: fade-up 0.8s 0.25s ease both;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  animation: fade-up 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.btn-primary {
  background: var(--yellow);
  color: #1a1400;
  box-shadow: 0 0 20px var(--yellow-glow), 0 4px 18px #0006;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--yellow-glow), 0 8px 28px #0008;
  filter: brightness(1.1);
}

.btn-discord {
  background: #2a2d4a;
  color: #c9ccff;
  border: 1px solid #4a4e7a;
  box-shadow: 0 4px 18px #0005;
}

.btn-discord:hover {
  background: var(--discord);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px #5865f266, 0 8px 24px #0008;
}

/* Install box */
.install-box {
  margin-top: 10px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 28px;
  text-align: left;
  backdrop-filter: blur(8px);
  animation: fade-up 0.8s 0.38s ease both;
}

.install-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--yellow-dim);
  margin-bottom: 14px;
}

.install-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.install-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text);
}

.install-steps li::before {
  content: counter(step);
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2a2500;
  border: 1px solid var(--yellow-dim);
  color: var(--yellow);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── FEATURES ── */
.features {
  padding: 80px 24px 100px;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, #1e1b0022 0%, transparent 70%);
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--yellow-dim);
}

.features-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 30px var(--yellow-glow);
  margin-bottom: 10px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 22px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--yellow-dim);
  box-shadow: 0 0 24px #f5c20018, 0 8px 32px #00000066;
  transform: translateY(-4px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Wide card */
.card-wide {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.card-icon-inline {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-wide-content { flex: 1; }

.card-wide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-wide-header h3 { margin-bottom: 0; }

.tos-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #50e878;
  border: 1px solid #50e87866;
  background: #50e87811;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #1e1c00;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .card-wide { flex-direction: column; }
  .logo-title { font-size: 2rem; }
  .logo-emoji { width: 38px; height: 38px; }
  .install-box { padding: 18px; }
}

/* ── Download Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #000000bb;
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #161400;
  border: 1px solid var(--yellow-dim);
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 0 60px #f5c20022, 0 24px 80px #000000cc;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--yellow);
  background: #ffffff0d;
}

.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.modal h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 20px var(--yellow-glow);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
}

.modal-option:hover {
  border-color: var(--yellow-dim);
  box-shadow: 0 0 18px #f5c20014;
  transform: translateX(4px);
}

.modal-option-icon { font-size: 1.5rem; flex-shrink: 0; }

.modal-option-text strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-bottom: 2px;
}

.modal-option-text span { font-size: 0.8rem; color: var(--text-dim); }

.modal-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 1rem;
  transition: color 0.18s;
}

.modal-option:hover .modal-arrow { color: var(--yellow); }

.modal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}