/* ============================================================
   Muni / MunFar — Shared Norse Aesthetic
   Pure CSS, no frameworks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --void:       #03050d;
  --deep:       #06091a;
  --abyss:      #080d1f;
  --surface:    #0d1428;
  --surface2:   #111c35;
  --border:     #1a2545;
  --border2:    #243060;

  --midnight:   #1e3a5f;
  --ice:        #3b82f6;
  --ice-pale:   #93c5fd;
  --frost:      #bfdbfe;

  --amber:      #f59e0b;
  --amber-warm: #fbbf24;
  --amber-pale: #fde68a;
  --ember:      #d97706;

  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #475569;

  --success:    #22c55e;
  --radius:     12px;
  --radius-lg:  20px;

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber-warm) 0%, var(--amber) 40%, var(--frost) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--frost);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rune-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.8;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, var(--void) 0%, transparent 100%);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(3, 5, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.15em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: var(--font-heading);
}

.nav-links a:hover {
  color: var(--amber);
}

/* ============================================================
   RUNIC DIVIDER
   ============================================================ */

.rune-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto;
  max-width: 400px;
  justify-content: center;
}

.rune-divider::before,
.rune-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.4;
}

.rune-divider span {
  font-family: var(--font-heading);
  color: var(--amber);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  opacity: 0.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }

.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--ember) 100%);
  color: #0a0a00;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 4px 16px rgba(0,0,0,0.4);
}

.btn-amber:hover {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 4px 20px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--frost);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.card.featured {
  border-color: var(--amber);
  background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%);
}

.card.featured::before {
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--abyss);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

footer .nav-brand {
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 16px;
}

footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--amber);
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   STAR FIELD (hero background)
   ============================================================ */

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.starfield::before {
  content: '';
  position: absolute;
  width: 1px; height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    120px 30px 0 rgba(147, 197, 253, 0.6),
    240px 80px 0 rgba(147, 197, 253, 0.4),
    380px 20px 0 rgba(253, 230, 138, 0.5),
    480px 120px 0 rgba(147, 197, 253, 0.3),
    600px 50px 0 rgba(253, 230, 138, 0.6),
    720px 90px 0 rgba(147, 197, 253, 0.5),
    820px 35px 0 rgba(147, 197, 253, 0.4),
    950px 70px 0 rgba(253, 230, 138, 0.3),
    1050px 20px 0 rgba(147, 197, 253, 0.6),
    80px 200px 0 rgba(253, 230, 138, 0.4),
    200px 280px 0 rgba(147, 197, 253, 0.5),
    320px 180px 0 rgba(147, 197, 253, 0.3),
    440px 260px 0 rgba(253, 230, 138, 0.6),
    560px 220px 0 rgba(147, 197, 253, 0.4),
    680px 170px 0 rgba(147, 197, 253, 0.5),
    800px 250px 0 rgba(253, 230, 138, 0.3),
    920px 190px 0 rgba(147, 197, 253, 0.6),
    1040px 230px 0 rgba(147, 197, 253, 0.4),
    160px 350px 0 rgba(253, 230, 138, 0.5),
    280px 400px 0 rgba(147, 197, 253, 0.3),
    400px 370px 0 rgba(147, 197, 253, 0.6),
    520px 320px 0 rgba(253, 230, 138, 0.4),
    640px 380px 0 rgba(147, 197, 253, 0.5),
    760px 340px 0 rgba(147, 197, 253, 0.3),
    880px 390px 0 rgba(253, 230, 138, 0.6),
    1000px 360px 0 rgba(147, 197, 253, 0.4),
    40px 450px 0 rgba(147, 197, 253, 0.5),
    180px 500px 0 rgba(253, 230, 138, 0.3),
    300px 470px 0 rgba(147, 197, 253, 0.6),
    460px 530px 0 rgba(147, 197, 253, 0.4),
    580px 480px 0 rgba(253, 230, 138, 0.5),
    700px 520px 0 rgba(147, 197, 253, 0.3),
    840px 490px 0 rgba(147, 197, 253, 0.6),
    960px 540px 0 rgba(253, 230, 138, 0.4);
  animation: twinkle 8s ease-in-out infinite alternate;
}

.starfield::after {
  content: '';
  position: absolute;
  width: 1px; height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    150px 150px 0 rgba(253, 230, 138, 0.4),
    270px 60px 0 rgba(147, 197, 253, 0.5),
    390px 140px 0 rgba(147, 197, 253, 0.3),
    510px 80px 0 rgba(253, 230, 138, 0.6),
    630px 160px 0 rgba(147, 197, 253, 0.4),
    750px 100px 0 rgba(147, 197, 253, 0.5),
    870px 140px 0 rgba(253, 230, 138, 0.3),
    990px 60px 0 rgba(147, 197, 253, 0.6),
    110px 300px 0 rgba(147, 197, 253, 0.4),
    230px 240px 0 rgba(253, 230, 138, 0.5),
    350px 290px 0 rgba(147, 197, 253, 0.3),
    470px 210px 0 rgba(147, 197, 253, 0.6),
    590px 270px 0 rgba(253, 230, 138, 0.4),
    710px 300px 0 rgba(147, 197, 253, 0.5),
    830px 260px 0 rgba(147, 197, 253, 0.3),
    1060px 280px 0 rgba(253, 230, 138, 0.6);
  animation: twinkle 11s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  0%   { opacity: 0.4; }
  50%  { opacity: 1;   }
  100% { opacity: 0.5; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 70px 0; }
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
}
