/* ===========================
   ADFU Chronicles – Site CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --bg:        #0b0e14;
  --bg2:       #111620;
  --bg3:       #181e2a;
  --border:    #1e2a40;
  --gold:      #c8922a;
  --gold-lite: #e8b84b;
  --cyan:      #3ab8d4;
  --text:      #cdd5e0;
  --text-dim:  #7a8a9e;
  --white:     #f0f4fa;
  --red:       #c03030;
  --radius:    6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- STARFIELD BACKGROUND ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 50%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 25%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

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

p { margin-bottom: 1rem; }
em { color: var(--text-dim); font-style: italic; }
strong { color: var(--white); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section { padding: 4rem 0; }

/* ---- NAV ---- */
nav {
  background: rgba(11,14,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo:hover { color: var(--gold-lite); }

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

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-lite); }

/* ---- HERO ---- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(200,146,42,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-lite) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: #0b0e14;
}
.btn-gold:hover {
  background: var(--gold-lite);
  color: #0b0e14;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200,146,42,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(200,146,42,0.12);
  color: var(--gold-lite);
  border-color: var(--gold-lite);
  transform: translateY(-2px);
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  border-radius: 2px;
}
.section-header p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 1rem auto 0;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  border-color: rgba(200,146,42,0.4);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
  opacity: 0.85;
}

.card h3 {
  color: var(--gold-lite);
  margin-bottom: 0.5rem;
}

/* ---- REQUIREMENTS ---- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.req-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.req-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  opacity: 0.8;
}

.req-item h3 {
  font-size: 1rem;
  color: var(--gold-lite);
  margin-bottom: 0.3rem;
}
.req-item p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(200,146,42,0.1), rgba(58,184,212,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--text-dim); margin-bottom: 1.75rem; }
.cta-discord-img {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 180px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

/* ---- PERSON CARDS ---- */
.person-list { display: flex; flex-direction: column; gap: 2.5rem; }

.person-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.person-card:hover { border-color: rgba(200,146,42,0.35); }

.person-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
  background: var(--bg3);
}

.person-info h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.person-info .role {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.person-info p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(200,146,42,0.05) 0%, transparent 100%);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-dim); }

/* ---- JOURNEY PROSE ---- */
.prose {
  max-width: 740px;
  margin: 0 auto;
}
.prose p { margin-bottom: 1.25rem; color: var(--text); }

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
footer a { color: var(--gold); }
footer a:hover { color: var(--gold-lite); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .person-card { flex-direction: column; }
  .person-photo { width: 80px; height: 80px; }
}
