/* ═══════════════════════════════════════════
   THE COVENANT — Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@300;400;500;600;700&family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  /* Core */
  --black:        #080808;
  --deep:         #0e0b10;
  --surface:      #131018;

  /* Bloodlines */
  --crimson:      #c0152a;
  --crimson-dim:  #7a0d1a;
  --crimson-glow: rgba(192,21,42,0.15);
  --mystic:       #7b2d8b;
  --mystic-dim:   #4a1a55;
  --mystic-glow:  rgba(123,45,139,0.15);
  --spirit:       #1a4fa0;
  --spirit-dim:   #102d60;
  --spirit-glow:  rgba(26,79,160,0.15);
  --wild:         #1a7a2a;
  --wild-dim:     #0e4716;
  --wild-glow:    rgba(26,122,42,0.15);
  --cursed:       #1a1a1a;
  --cursed-border:#555;
  --cursed-glow:  rgba(80,80,80,0.15);

  /* Gold */
  --gold:         #c9a84c;
  --gold-light:   #e8cc7a;
  --gold-dim:     #7a6530;
  --gold-glow:    rgba(201,168,76,0.15);

  /* Text */
  --text:         #e8dcc8;
  --text-dim:     #9a8f7a;
  --text-muted:   #5a5248;
  --parchment:    #d4c49a;

  /* Borders */
  --border:       rgba(201,168,76,0.18);
  --border-mid:   rgba(201,168,76,0.35);
  --border-strong:rgba(201,168,76,0.6);

  /* Typography */
  --font-display: 'Cormorant SC', serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'IM Fell English', Georgia, serif;

  /* Spacing */
  --max-width: 1100px;
  --page-pad:  clamp(20px, 5vw, 60px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0) 100%);
  backdrop-filter: blur(2px);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Cormorant SC', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
  transition: text-shadow 0.3s;
}

.nav-brand:hover {
  text-shadow: 0 0 30px rgba(201,168,76,0.7);
}

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

.nav-links a {
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--gold-light);
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ── PAGE WRAPPER ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ── SECTION ── */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-title);
  font-size: 9px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-title {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-body {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.9;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 60px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-glyph {
  color: var(--gold);
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 6px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px rgba(201,168,76,0.35);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
  transform: translateY(-1px);
}

/* ── BLOODLINE ACCENT HELPERS ── */
.accent-crimson { color: #e84057; }
.accent-mystic  { color: #b06ac4; }
.accent-spirit  { color: #5b8fe0; }
.accent-wild    { color: #4db85e; }
.accent-cursed  { color: #999; }
.accent-gold    { color: var(--gold-light); }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Cormorant SC', serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-title);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-social a {
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 10px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%       { opacity: 1; }
  93%       { opacity: 0.7; }
  94%       { opacity: 1; }
  96%       { opacity: 0.85; }
  97%       { opacity: 1; }
}

.animate-fade-up  { animation: fadeUp 0.8s ease forwards; }
.animate-fade-in  { animation: fadeIn 1s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.98);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }

  .nav-links.open a { font-size: 14px; }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links, .footer-social { justify-content: center; }
}
