@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:        #060c18;
  --bg2:       #0d1a2e;
  --blue:      #4ab8e8;
  --blue-glow: #5cc8ff;
  --blue-dim:  #1a4a6e;
  --text:      #d4eaf7;
  --text-dim:  #7aafc8;
  --card:      #0d1e33;
  --border:    #1e3a55;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--blue));
}

.nav-logo span {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-glow);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px var(--blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-glow);
  text-shadow: 0 0 10px var(--blue);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(74, 184, 232, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 20%, rgba(74, 184, 232, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-logo {
  width: min(320px, 70vw);
  filter: drop-shadow(0 0 40px rgba(74, 184, 232, 0.6));
  animation: float 4s ease-in-out infinite;
  margin-bottom: 2rem;
}

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

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 30px var(--blue), 0 0 60px rgba(74, 184, 232, 0.4);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(74, 184, 232, 0.4);
}

.btn-primary:hover {
  background: var(--blue-glow);
  box-shadow: 0 0 35px rgba(74, 184, 232, 0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-glow);
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 12px rgba(74, 184, 232, 0.15);
}

.btn-outline:hover {
  background: rgba(74, 184, 232, 0.08);
  box-shadow: 0 0 25px rgba(74, 184, 232, 0.4);
  transform: translateY(-2px);
}

/* ─── SECTIONS ─── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--blue);
}

.section-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin: 0 auto 3rem;
}

/* ─── JOIN CARDS ─── */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.join-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.join-card:hover {
  border-color: var(--blue-dim);
  box-shadow: 0 0 30px rgba(74, 184, 232, 0.1);
}

.join-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.join-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--blue-glow);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.join-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #fff;
  gap: 0.5rem;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--blue-glow); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.badge-java    { background: rgba(74, 184, 232, 0.15); color: var(--blue-glow); border: 1px solid var(--blue-dim); }
.badge-bedrock { background: rgba(100, 220, 100, 0.1); color: #7de87a; border: 1px solid #2a5c2a; }

/* ─── DISCORD ─── */
.discord-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.discord-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.discord-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.discord-inner p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── RULES PAGE ─── */
.rules-hero {
  padding: 7rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(74, 184, 232, 0.1) 0%, transparent 70%);
}

.rules-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px var(--blue);
  margin-bottom: 0.5rem;
}

.rules-hero p {
  color: var(--text-dim);
  font-size: 1rem;
}

.rules-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.rule-category {
  margin-bottom: 2.5rem;
}

.rule-category h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--blue-glow);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rule-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.rule-list li::before {
  content: '▸';
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-note {
  background: rgba(74, 184, 232, 0.07);
  border: 1px solid var(--blue-dim);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 2rem;
  line-height: 1.7;
  text-align: center;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-shadow: 0 0 8px var(--blue); }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
}
