/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #8a6d24;
  --brown-dark: #1a0f04;
  --brown-mid:  #2e1b0a;
  --brown-warm: #3d2410;
  --brown-card: #251408;
  --tan:        #c4a882;
  --tan-light:  #ddc9a8;
  --cream:      #f5ead6;
  --red-west:   #8b1a1a;
  --text-main:  #e8d9c0;
  --text-muted: #a08060;
  --border:     rgba(201,168,76,0.25);
  --shadow:     0 8px 32px rgba(0,0,0,0.7);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--brown-dark);
  color: var(--text-main);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-ornament {
  color: var(--gold);
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  margin-bottom: 14px;
  opacity: 0.7;
}

.section-header h2 {
  font-family: 'Rye', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(201,168,76,0.3);
  margin-bottom: 16px;
}

.section-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-inline: auto;
  margin-top: 16px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--brown-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--brown-dark);
  box-shadow: 0 6px 28px rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 44px; font-size: 0.95rem; }
.btn-sm { padding: 9px 20px; font-size: 0.78rem; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(20, 10, 3, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  max-width: 1200px;
  margin-inline: auto;
}

.nav-logo {
  font-family: 'Rye', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover { color: var(--cream); }

.logo-star { color: var(--gold); font-size: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan-light);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.btn-discord {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--brown-dark) !important;
  padding: 9px 22px !important;
  border-radius: 3px !important;
  border-bottom: none !important;
}

.btn-discord:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('ATRPBackground.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,7,2,0.55) 0%,
    rgba(15,7,2,0.75) 60%,
    rgba(15,7,2,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 24px;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Rye', serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.1;
  color: var(--cream);
  text-shadow:
    0 0 40px rgba(201,168,76,0.4),
    0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--tan-light);
  margin-bottom: 40px;
  line-height: 1.6;
  font-style: italic;
}

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

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: inline-flex;
  padding: 0;
  overflow: hidden;
}

.badge {
  padding: 18px 36px;
  text-align: center;
}

.badge-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

/* ===== ABOUT ===== */
.about {
  background: var(--brown-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1.15rem;
}

.about-text strong {
  color: var(--gold-light);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--brown-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.stat-icon { font-size: 2rem; margin-bottom: 10px; }

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== FEATURES ===== */
.features {
  background: var(--brown-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--brown-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

.feature-card:hover::before { opacity: 1; }

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

.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

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

/* ===== RULES ===== */
.rules {
  background: var(--brown-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.rule-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  position: relative;
}

.rule-num {
  font-family: 'Rye', serif;
  font-size: 2.4rem;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.rule-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.rule-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.rules-footer {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== HOW TO JOIN ===== */
.join {
  background: var(--brown-dark);
}

.steps {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.step-body {
  padding-bottom: 8px;
}

.step-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

.step-body strong { color: var(--tan-light); }

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
  margin-left: 25px;
}

/* ===== STAFF ===== */
.staff {
  background: var(--brown-mid);
  border-top: 1px solid var(--border);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.staff-card {
  background: var(--brown-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 24px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}

.staff-avatar {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.staff-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.staff-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.staff-card--join {
  border-style: dashed;
  border-color: rgba(201,168,76,0.3);
  background: rgba(0,0,0,0.2);
}

/* ===== DISCORD CTA ===== */
.discord-cta {
  background: var(--brown-dark);
  border-top: 1px solid var(--border);
}

.cta-box {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  background: linear-gradient(135deg, var(--brown-card), var(--brown-warm));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 64px 48px;
  box-shadow: var(--shadow);
}

.cta-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.cta-box h2 {
  font-family: 'Rye', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold-light);
  margin-bottom: 16px;
}

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

.cta-note {
  margin-top: 16px !important;
  font-size: 0.8rem !important;
  color: rgba(160,128,96,0.5) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* ===== FOOTER ===== */
.footer {
  background: #100802;
  border-top: 1px solid var(--border);
  padding-block: 48px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  font-family: 'Rye', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
}

.footer-brand p {
  font-family: 'Crimson Text', serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 24px;
  text-align: center;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,7,2,0.98);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }

  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }

  .hero-badges { flex-direction: column; }
  .badge-divider { width: 50px; height: 1px; }

  .cta-box { padding: 40px 24px; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding-block: 64px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
}
