@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --red:        #e03030;
  --red-dark:   #a01010;
  --red-deep:   #6b0000;
  --orange:     #ff6a00;
  --orange-light:#ffaa44;
  --bg:         #0d0000;
  --bg2:        #1a0505;
  --bg3:        #220a0a;
  --border:     #5c1010;
  --text:       #f5e0d0;
  --text-muted: #a07060;
  --gold:       #ffcc44;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ──────────────── PARTICLES BG ──────────────── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--orange);
  opacity: 0;
  animation: rise linear infinite;
  border-radius: 0;
}
@keyframes rise {
  0%   { transform: translateY(100vh) scale(1); opacity: .7; }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* ──────────────── NAV ──────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(13,0,0,.92);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: .85rem;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange-light); }

.nav-discord {
  background: #5865F2;
  color: #fff !important;
  padding: .4rem 1.1rem;
  border-radius: 4px;
  transition: filter .2s !important;
}
.nav-discord:hover { filter: brightness(1.2); color: #fff !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; transition: .3s; }

/* ──────────────── HERO ──────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 64px);
  padding: 4rem 1.5rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,106,0,.18) 0%, transparent 70%);
}

.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  color: var(--orange);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.3;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 40%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,106,0,.45));
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* IP BOX */
.ip-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 40px rgba(255,106,0,.12);
}
.ip-text {
  font-family: 'Press Start 2P', monospace;
  font-size: .75rem;
  padding: .9rem 1.5rem;
  color: var(--orange-light);
  letter-spacing: 2px;
  user-select: all;
}
.ip-copy-btn {
  background: linear-gradient(135deg, var(--orange), var(--red));
  border: none;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
  padding: 0 1.4rem;
  height: 100%;
  cursor: pointer;
  transition: filter .2s, transform .1s;
  white-space: nowrap;
}
.ip-copy-btn:hover { filter: brightness(1.18); }
.ip-copy-btn:active { transform: scale(.97); }
.ip-copy-btn.copied {
  background: linear-gradient(135deg, #2ecc71, #1a9e55);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ──────────────── BUTTONS ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Press Start 2P', monospace;
  font-size: .62rem;
  padding: .9rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  transition: filter .2s, transform .1s, box-shadow .2s;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,106,0,.35);
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 30px rgba(255,106,0,.55); }

.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,.35);
}
.btn-discord:hover { filter: brightness(1.15); }

.btn-outline {
  background: transparent;
  color: var(--orange-light);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-danger {
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(160,16,16,.35);
}
.btn-danger:hover { filter: brightness(1.15); }

/* ──────────────── SECTION BASE ──────────────── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ──────────────── DIVIDER ──────────────── */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}

/* ──────────────── FEATURES ──────────────── */
#features { background: var(--bg2); }

.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,106,0,.12);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: .65rem;
  color: var(--orange-light);
  margin-bottom: .7rem;
  line-height: 1.5;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.6;
}

/* ──────────────── STAFF RANKS ──────────────── */
#staff { background: var(--bg); }

.ranks-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.rank-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.rank-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(255,106,0,.1); }

.rank-badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.rank-owner   { background: #ff2200; color: #fff; }
.rank-admin   { background: #cc1100; color: #fff; }
.rank-mod     { background: #ff6a00; color: #fff; }
.rank-helper  { background: #ff9933; color: #111; }
.rank-builder { background: #ffcc44; color: #111; }

.rank-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
  color: var(--text);
  margin-bottom: .5rem;
}
.rank-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.apply-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ──────────────── DISCORD ──────────────── */
#discord {
  background: var(--bg2);
}
.discord-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.discord-card {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #23272a 0%, #2c2f33 100%);
  border: 1px solid #4a4d52;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 60px rgba(88,101,242,.15);
}
.discord-logo { font-size: 3.5rem; margin-bottom: 1rem; }
.discord-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: .75rem;
  color: #fff;
  margin-bottom: .8rem;
  line-height: 1.5;
}
.discord-card p {
  color: #b5babd;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.discord-count {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.8rem;
}
.dcount-item { text-align: center; }
.dcount-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-online  { background: #3ba55c; }
.dot-members { background: #747f8d; }
.dcount-item span {
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
  color: #b5babd;
}

/* ──────────────── APPEAL ──────────────── */
#appeal { background: var(--bg); }

.appeal-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.appeal-info h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: .7rem;
  color: var(--orange-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.appeal-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2rem;
}
.appeal-info li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.appeal-info li::before {
  content: '▸';
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ──────────────── FORM ──────────────── */
.mc-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--orange-light);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .7rem .9rem;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group select option { background: var(--bg2); }

/* ──────────────── RULES ──────────────── */
#rules { background: var(--bg2); }
.rules-list {
  margin-top: 2.5rem;
  counter-reset: rule;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  counter-increment: rule;
  transition: border-color .2s;
}
.rule-item:hover { border-color: var(--orange); }
.rule-num {
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
  color: var(--orange);
  min-width: 28px;
  margin-top: 3px;
}
.rule-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.rule-text strong { color: var(--text); }

/* ──────────────── FOOTER ──────────────── */
footer {
  position: relative;
  z-index: 1;
  background: #080000;
  border-top: 2px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: .8rem;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: block;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange-light); }
.footer-copy {
  color: #4a2a2a;
  font-size: .85rem;
}

/* ──────────────── TOAST ──────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  padding: .8rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(255,106,0,.4);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
  opacity: 0;
  z-index: 999;
  letter-spacing: 1px;
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(13,0,0,.97);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 2px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .appeal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ip-text { font-size: .55rem; padding: .75rem 1rem; }
  .ip-copy-btn { font-size: .5rem; padding: 0 .9rem; }
}
