/* Homepage-only styles (nav/header live in common.css) */

:root {
  --bg-deep: #0b1622;
  --bg-card: #111f30;
  --bg-card2: #0e1a27;
  --cyan: #00d4ff;
  --cyan-dim: #00a8cc;
  --orange: #f5a623;
  --orange-dim: #c97f10;
  --text: #e2eaf4;
  --text-muted: #7a96b0;
  --border: rgba(0, 212, 255, 0.15);
  --glow-cyan: 0 0 24px rgba(0, 212, 255, 0.35);
  --glow-orange: 0 0 24px rgba(245, 166, 35, 0.35);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-logo {
  width: min(580px, 90vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.4));
  animation: float 4s ease-in-out infinite;
  margin-bottom: 24px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ─── SERVER ADDRESS BOX ─── */
.ip-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
  margin-bottom: 16px;
}

.ip-label {
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-right: 1px solid var(--border);
  height: 54px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ip-address {
  padding: 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.ip-copy {
  border: none;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 22px;
  height: 54px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}

.ip-copy:hover { background: var(--cyan-dim); }
.ip-copy:active { transform: scale(0.97); }
.ip-copy.copied { background: #27ae60; }

.hero-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0;
}

.hero-shop-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.09);
  color: #ffe5bd;
  text-decoration: none;
  font-size: 0.93rem;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}

.hero-shop-cta::before {
  content: '🛒';
  font-size: 1rem;
}

.hero-shop-cta-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-shop-cta strong {
  color: #fff7eb;
  font-size: 0.96rem;
}

.hero-shop-cta:hover {
  background: rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.65);
  transform: translateY(-1px);
  box-shadow: var(--glow-orange);
}

.hero .online-players {
  margin-top: 18px;
  margin-bottom: 0;
  align-self: center;
  width: min(640px, 100%);
  box-sizing: border-box;
}

.hero .online-players-title {
  text-align: center;
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.accent { color: var(--cyan); }
.accent-o { color: var(--orange); }

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

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

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

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

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

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

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── HOW TO JOIN ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step {
  position: relative;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px 22px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.step p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.step code {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

/* ─── RULES SECTION ─── */
.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.rule-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rule-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* ─── COMMANDS SECTION ─── */
.commands-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: -28px auto 32px;
  line-height: 1.55;
}

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

.cmd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: left;
  transition: border-color .25s, box-shadow .25s;
}

.cmd-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--glow-cyan);
}

.cmd-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cmd-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.cmd-card p:last-child { margin-bottom: 0; }

.cmd-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.cmd-card li { margin-bottom: 8px; }
.cmd-card li:last-child { margin-bottom: 0; }

.cmd-card code {
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(245,166,35,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 32px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0,212,255,0.5);
}

/* ─── FOOTER (homepage extras) ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.8;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .ip-box { flex-wrap: wrap; border-radius: 10px; }
  .ip-label { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
  .ip-copy { width: 100%; }
  .hero-shop-cta {
    width: min(100%, 360px);
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
    text-align: center;
  }
}
