@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --steel: #8a9aaa;
  --parchment: #d8d4cc;
  --parchment-dark: #b8b4aa;
  --dark: #0c0e12;
  --dark-blue: #0e1218;
  --charcoal: #151a22;
  --slate: #1c232e;
  --gold: #c8a45a;
  --gold-dim: #9a7e40;
  --text: #a8aab0;
  --text-light: #d0d2d8;

  --border-subtle: var(--border-subtle);
  --border: var(--border);
  --border-hover: var(--border-hover);
  --card-bg: var(--card-bg);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.96) 0%, rgba(12, 14, 18, 0.88) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(138, 154, 170, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav .nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2.5rem;
  min-height: 130px;
}

nav .brand {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

nav .brand span {
  color: var(--steel);
  font-weight: 400;
  font-size: 0.9em;
}

.nav-logo {
  height: 120px;
  width: auto;
  margin: -10px 0;
  filter: brightness(1.3) contrast(1.15) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease, filter 0.4s ease;
}

nav .brand:hover .nav-logo {
  transform: rotate(-3deg) scale(1.05);
  filter: brightness(1.5) contrast(1.2) drop-shadow(0 0 12px rgba(200, 164, 90, 0.3));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  color: var(--steel);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav ul li a:hover { color: var(--parchment); }
nav ul li a:hover::after { width: 100%; }

nav ul li a.nav-active { color: var(--gold); }
nav ul li a.nav-active::after { width: 100%; background: var(--gold); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

/* Fog / mist layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(42, 53, 64, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(42, 53, 64, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(28, 35, 46, 0.6) 0%, transparent 40%);
  animation: fog-drift 12s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  0% { opacity: 0.6; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(10px); }
}

/* Ink splatter texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(42,53,64,0.4) 0%, transparent 8%),
    radial-gradient(circle at 85% 20%, rgba(42,53,64,0.3) 0%, transparent 6%),
    radial-gradient(circle at 10% 75%, rgba(42,53,64,0.35) 0%, transparent 10%),
    radial-gradient(circle at 90% 80%, rgba(42,53,64,0.25) 0%, transparent 7%),
    radial-gradient(circle at 50% 10%, rgba(42,53,64,0.2) 0%, transparent 12%),
    radial-gradient(circle at 25% 90%, rgba(42,53,64,0.3) 0%, transparent 5%),
    radial-gradient(circle at 75% 60%, rgba(42,53,64,0.15) 0%, transparent 9%);
  pointer-events: none;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
}

.hero-waves svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}

.wave-back  { animation: wave-drift 8s linear infinite; opacity: 0.25; }
.wave-mid   { animation: wave-drift 6s linear infinite reverse; opacity: 0.4; }
.wave-front { animation: wave-drift 4s linear infinite; opacity: 0.15; }

@keyframes wave-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-logo {
  width: clamp(220px, 35vw, 400px);
  margin-bottom: 1rem;
  display: inline-block;
  filter:
    drop-shadow(0 0 40px rgba(42, 53, 64, 0.8))
    drop-shadow(0 0 80px rgba(200, 164, 90, 0.08))
    brightness(1.15);
  animation: float 5s ease-in-out infinite;
}

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

.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--parchment);
  text-shadow:
    0 2px 20px rgba(0,0,0,0.6),
    0 0 60px var(--border);
  letter-spacing: 8px;
  line-height: 1.1;
}

.hero h1 .sub {
  display: block;
  font-size: 0.28em;
  color: var(--steel);
  letter-spacing: 10px;
  margin-top: 0.6rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--steel);
  margin: 1.5rem auto 2.5rem;
  max-width: 500px;
  opacity: 0.8;
}

.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid var(--steel);
  color: var(--parchment);
  background: transparent;
  transition: all 0.4s;
  cursor: pointer;
}

.btn:hover {
  background: rgba(200, 164, 90, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.15);
}

.btn-solid {
  background: rgba(200, 164, 90, 0.15);
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-solid:hover {
  background: rgba(200, 164, 90, 0.25);
  border-color: var(--gold);
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 11rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(42, 53, 64, 0.4) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--charcoal) 100%);
  border-bottom: 1px solid rgba(138, 154, 170, 0.15);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.4;
}

.page-header-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  color: var(--parchment);
  letter-spacing: 6px;
  line-height: 1.2;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(200, 164, 90, 0.15);
}

.page-header-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--steel);
  margin-top: 1rem;
  opacity: 0.85;
}

.tool-disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--steel);
  opacity: 0.5;
  margin-top: 1.5rem;
}

#alliance-tracker {
  background: var(--dark-blue);
  border-top: 1px solid var(--border-subtle);
}

#tracker-features {
  background: var(--charcoal);
  border-top: 1px solid var(--border-subtle);
}

#tracker-cta {
  background: var(--dark-blue);
  border-top: 1px solid var(--border-subtle);
}

.features-more {
  text-align: center;
  font-style: italic;
  color: var(--steel);
  opacity: 0.7;
  margin-top: 3rem;
  font-size: 0.95rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cashtag {
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.9em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--gold-dim);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.cashtag:hover {
  color: var(--parchment);
  border-bottom-color: var(--parchment);
}

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

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

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--parchment);
  text-align: center;
  margin-bottom: 0.8rem;
  letter-spacing: 4px;
}

.section-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--steel);
  opacity: 0.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
  margin: 0 auto 3rem;
}

/* Section watermark using logo */
.watermark-section {
  position: relative;
}

.watermark-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: url('logo/logo.png') center/contain no-repeat;
  opacity: 0.02;
  pointer-events: none;
  filter: grayscale(1);
}

/* ── MOTTO BANNER ── */
.motto {
  padding: 5rem 2rem;
  background:
    radial-gradient(ellipse at center, rgba(42, 53, 64, 0.4) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--charcoal) 50%, var(--dark) 100%);
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(138, 154, 170, 0.15);
  border-bottom: 1px solid rgba(138, 154, 170, 0.15);
  overflow: hidden;
}

.motto::before,
.motto::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.4;
}

.motto::before { top: 30px; }
.motto::after  { bottom: 30px; }

.motto-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.motto-ornament {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 1rem;
  letter-spacing: 8px;
}

.motto-ornament-bottom {
  margin-bottom: 0;
  margin-top: 1rem;
}

.motto-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--parchment);
  letter-spacing: 6px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(200, 164, 90, 0.15);
}

.motto-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-light);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.92;
}

.motto-text-wide {
  max-width: none;
  white-space: nowrap;
}

.motto-text strong {
  color: var(--gold);
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.9em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 0.4rem;
}

/* ── ABOUT ── */
#about {
  background: var(--dark-blue);
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.about-text strong {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.9em;
  text-transform: uppercase;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 1.8rem;
  text-align: center;
  transition: border-color 0.4s, transform 0.3s;
}

.stat-card:hover {
  border-color: rgba(138, 154, 170, 0.4);
  transform: translateY(-4px);
}

.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 0.5rem; opacity: 0.6; }

.stat-card .stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--parchment);
  font-weight: 700;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.45;
  margin-top: 0.25rem;
}

/* ── PILLARS ── */
#pillars {
  background: var(--charcoal);
  border-top: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.4s, transform 0.3s;
  position: relative;
}

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width 0.4s;
}

.pillar:hover::after { width: 60%; }

.pillar:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
}

.pillar-icon {
  margin-bottom: 1rem;
  color: var(--gold);
  opacity: 0.85;
  display: flex;
  justify-content: center;
}

.pillar-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.pillar h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--parchment);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.pillar p { font-size: 0.95rem; opacity: 0.7; }

/* ── RANKS ── */
#ranks {
  background: var(--dark-blue);
  border-top: 1px solid var(--border-subtle);
}

.ranks-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(42, 53, 64, 0.35);
  padding: 1.2rem 1.8rem;
  transition: border-color 0.4s, background 0.4s;
}

.rank-item:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.025);
}

.rank-badge {
  font-size: 1.8rem;
  min-width: 50px;
  text-align: center;
  opacity: 0.7;
}

.rank-info h4 {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rank-info p {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 0.2rem;
}

/* ── RULES ── */
#rules {
  background: var(--charcoal);
  border-top: 1px solid var(--border-subtle);
}

.rules-scroll {
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
}

.rules-scroll::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(42, 53, 64, 0.2);
  pointer-events: none;
}

/* Logo watermark behind the rules */
.rules-scroll::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: url('logo/logo.png') center/contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  filter: grayscale(1);
}

.rules-scroll h3 {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  position: relative;
}

.rules-scroll ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.rules-scroll ol li {
  padding-left: 0.5rem;
  font-size: 0.95rem;
}

.rules-scroll ol li strong { color: var(--parchment); }

.rules-scroll ol li::marker {
  color: var(--steel);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

/* ── RECRUITMENT ── */
#recruit {
  background: var(--dark-blue);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.recruit-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.recruit-box p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.75;
}

.recruit-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.req-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.req-icon {
  color: var(--steel);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(42, 53, 64, 0.25);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  height: 60px;
  filter: brightness(1.1) grayscale(0.3);
  opacity: 0.5;
  margin-bottom: 1rem;
}

footer .footer-brand {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.6;
}

footer p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.3;
}

footer .footer-links {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

footer .footer-links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

footer .footer-links a:hover { opacity: 1; color: var(--parchment); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .recruit-requirements { grid-template-columns: 1fr; }
  nav .nav-inner { padding: 0.5rem 1.5rem; min-height: 95px; }
  nav .brand { font-size: 1.4rem; gap: 12px; }
  .nav-logo { height: 85px; }
  .motto-text-wide {
    white-space: normal;
    max-width: 650px;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }
}

@media (max-width: 650px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(12, 14, 18, 0.97);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .mobile-toggle { display: block; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .rules-scroll { padding: 2rem 1.5rem; }
  .hero-logo { width: clamp(180px, 50vw, 300px); }
  nav .nav-inner { padding: 0.5rem 1.2rem; min-height: 80px; }
  nav .brand { font-size: 1.2rem; letter-spacing: 2px; }
  .nav-logo { height: 70px; }
}
