/* ============================================================
   VIKINGS OF YGGDRASIL — Cinematic Norse Landing
   ============================================================ */

:root {
    --bg-0: #07070a;
    --bg-1: #0c0c11;
    --bg-2: #14141c;
    --bg-3: #1c1c26;
    --ink-0: #e9e3d4;
    --ink-1: #c8bfa8;
    --ink-2: #8a8273;
    --ink-3: #4a4438;
    --gold: #c9a96e;
    --gold-bright: #e8c87a;
    --gold-deep: #8a6a2a;
    --blood: #8b1a1a;
    --blood-bright: #c43030;
    --frost: #5d7a96;
    --iron: #7a7a82;

    --font-display: "Cinzel", "Times New Roman", serif;
    --font-body: "Cormorant Garamond", Georgia, serif;
    --font-rune: "UnifrakturMaguntia", serif;

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 40px rgba(201, 169, 110, 0.25);

    --max: 1240px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--ink-1);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(139, 26, 26, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.05), transparent 50%),
        linear-gradient(180deg, #07070a 0%, #0a0a10 50%, #07070a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(255, 255, 255, 0.012) 2px, rgba(255, 255, 255, 0.012) 4px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

::selection { background: var(--gold); color: var(--bg-0); }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-0);
    z-index: 200;
    display: grid;
    place-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-rune {
    font-family: var(--font-rune);
    font-size: 6rem;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold);
    animation: pulse 1.6s ease-in-out infinite;
}
.loader-text {
    font-family: var(--font-display);
    color: var(--ink-2);
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 1rem;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.1); text-shadow: 0 0 60px var(--gold-bright); }
}

/* ============================================================
   EMBERS / PARTICLES
   ============================================================ */
.embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

/* ============================================================
   FLOATING RUNES BG
   ============================================================ */
.runes-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.runes-bg span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-family: var(--font-rune);
    font-size: var(--s);
    color: var(--gold);
    opacity: 0.1;
    animation: floatRune 14s ease-in-out infinite, runeFlicker 4.5s ease-in-out infinite;
    animation-delay: var(--d);
    text-shadow: 0 0 20px var(--gold);
    filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.35));
}
@keyframes floatRune {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.06; }
    25% { transform: translate3d(8px, -16px, 0) rotate(-5deg) scale(1.04); opacity: 0.13; }
    50% { transform: translate3d(-6px, -28px, 0) rotate(7deg) scale(1.08); opacity: 0.18; }
    75% { transform: translate3d(10px, -14px, 0) rotate(-3deg) scale(1.03); opacity: 0.11; }
}
@keyframes runeFlicker {
    0%, 100% { text-shadow: 0 0 12px rgba(201, 169, 110, 0.25); }
    50% { text-shadow: 0 0 26px rgba(232, 200, 122, 0.5); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 2rem;
    transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.7rem 2rem;
    border-color: rgba(201, 169, 110, 0.18);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    color: var(--ink-0);
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 12px rgba(201, 169, 110, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.nav-brand:hover img {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.8);
}
.nav-brand span em {
    color: var(--gold);
    font-style: italic;
    margin: 0 0.25em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-2);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease, left 0.4s ease;
}
.nav-links a:hover {
    color: var(--gold-bright);
}
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-cta {
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    padding: 0.55rem 1.2rem !important;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--bg-0) !important;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.5);
}
.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(201, 169, 110, 0.35);
    padding: 0.2rem;
    border-radius: 2px;
    background: rgba(10, 10, 15, 0.55);
}
.lang-switch button {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid transparent;
    padding: 0.35rem 0.55rem 0.35rem 0.7rem;
    transition: all 0.25s ease;
}
.lang-switch button:hover {
    color: var(--gold-bright);
}
.lang-switch button.active {
    color: var(--bg-0);
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    border-color: rgba(232, 200, 122, 0.5);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 3;
    padding: 7rem 2rem 5rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero-fog {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(201, 169, 110, 0.08), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 26, 26, 0.10), transparent 60%);
    filter: blur(40px);
    animation: fogDrift 30s ease-in-out infinite;
}
.fog-2 {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(93, 122, 150, 0.06), transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(201, 169, 110, 0.04), transparent 60%);
    animation-duration: 45s;
    animation-direction: reverse;
}
@keyframes fogDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 2%) scale(1.05); }
}

.hero-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 60%, var(--bg-0) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath fill='%23080810' d='M0,400 L0,250 L80,180 L160,220 L240,140 L340,200 L440,120 L540,180 L640,90 L740,160 L840,80 L940,150 L1040,70 L1140,140 L1240,100 L1340,170 L1440,130 L1440,400 Z'/%3E%3Cpath fill='%23050508' opacity='0.7' d='M0,400 L0,300 L120,260 L220,290 L320,240 L420,280 L520,230 L620,270 L720,220 L820,260 L920,210 L1020,250 L1120,200 L1220,240 L1320,200 L1440,240 L1440,400 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.hero-logo-wrap {
    position: relative;
    width: clamp(180px, 28vw, 280px);
    margin: 0 auto 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: visible;
}
.logo-aura {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.35) 0%, rgba(201, 169, 110, 0.1) 30%, transparent 70%);
    filter: blur(20px);
    animation: auraPulse 4s ease-in-out infinite;
}
@keyframes auraPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.hero-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 0 30px rgba(201, 169, 110, 0.4)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
    animation: logoFloat 6s ease-in-out infinite;
    z-index: 2;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.logo-ring {
    position: absolute;
    inset: -5%;
    border: 1px dashed rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    animation: ringSpin 40s linear infinite;
}
.logo-ring::before {
    content: "ᚠ ᚱ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛊ ᛏ ᛒ ᛖ ᛗ ᛚ ᛝ ᛟ ᛞ";
    position: absolute;
    inset: 0;
    font-family: var(--font-rune);
    color: rgba(201, 169, 110, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    display: flex;
    justify-content: center;
    line-height: 1;
}
@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.hero-eyebrow {
    font-family: var(--font-display);
    color: var(--gold);
    letter-spacing: 0.45em;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}
.hero-eyebrow span {
    color: var(--ink-3);
    margin: 0 0.8rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: var(--ink-0);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 0 40px rgba(201, 169, 110, 0.3), 0 4px 20px rgba(0, 0, 0, 0.8);
}
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    background: linear-gradient(180deg, var(--ink-0) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0.15em;
}
.hero-title .word.small {
    font-size: 0.5em;
    font-weight: 400;
    font-style: italic;
    color: var(--ink-2);
    -webkit-text-fill-color: var(--ink-2);
    margin: 0 0.3em;
    vertical-align: middle;
}
.hero-title .word:nth-child(1) { animation-delay: 0.7s; }
.hero-title .word:nth-child(2) { animation-delay: 0.9s; }
.hero-title .word:nth-child(3) { animation-delay: 1.1s; }
@keyframes wordIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    min-height: 2em;
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--ink-1);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s 1.6s forwards;
}
.cursor-bar {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--gold);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 2s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1.05rem 2rem;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s ease; }
.btn:hover svg { transform: translateX(6px); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-bright) 100%);
    color: var(--bg-0);
    border: 1px solid var(--gold-bright);
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 169, 110, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
    background: transparent;
    color: var(--ink-0);
    border: 1px solid rgba(201, 169, 110, 0.4);
}
.btn-ghost:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold-bright);
    transform: translateY(-3px);
}

.btn-large { padding: 1.2rem 2.5rem; font-size: 0.95rem; }

.hero-scroll {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s 2.5s forwards;
}
.hero-scroll span {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--ink-3);
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, var(--gold-bright));
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    to { top: 200%; }
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
.section {
    position: relative;
    z-index: 3;
    padding: 8rem 2rem;
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.kicker {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 2px;
    background: rgba(201, 169, 110, 0.04);
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--ink-0);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-head h2 em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    color: var(--gold);
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
}
.section-sub {
    margin-top: 1rem;
    color: var(--ink-2);
    font-size: 1.1rem;
    font-style: italic;
}

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 3;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    max-width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}
.divider span {
    font-family: var(--font-rune);
    color: var(--gold);
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(201, 169, 110, 0.5);
}
.divider span:nth-child(2) {
    font-size: 1.8rem;
    animation: pulse 3s ease-in-out infinite;
}

/* ============================================================
   SAGA
   ============================================================ */
.saga-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start;
}

.saga-text .lead { font-size: 1.25rem; color: var(--ink-0); margin-bottom: 1.5rem; }
.dropcap {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.15em 0 0;
    color: var(--gold);
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}
.saga-text p { margin-bottom: 1.3rem; color: var(--ink-1); }
.saga-text strong { color: var(--gold-bright); font-weight: 600; }

blockquote {
    border-left: 2px solid var(--gold);
    padding: 1rem 0 1rem 1.8rem;
    margin: 2rem 0;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--ink-0);
    line-height: 1.5;
    position: relative;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.06), transparent);
}
blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.4;
    font-family: serif;
    line-height: 1;
}

.saga-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.stat {
    background: linear-gradient(180deg, rgba(28, 28, 38, 0.7), rgba(12, 12, 17, 0.7));
    border: 1px solid rgba(201, 169, 110, 0.18);
    padding: 2rem 1.2rem;
    text-align: center;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stat:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.3);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--ink-0), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* ============================================================
   REALMS
   ============================================================ */
.realms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.realm-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(165deg, rgba(28, 28, 38, 0.85), rgba(12, 12, 17, 0.85));
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 2px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}
.realm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(201, 169, 110, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.realm-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 110, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.25);
}
.realm-card:hover::before { opacity: 1; }

.realm-rune {
    font-family: var(--font-rune);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 25px rgba(201, 169, 110, 0.5);
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}
.realm-card:hover .realm-rune {
    transform: scale(1.1) rotate(-5deg);
    text-shadow: 0 0 40px var(--gold-bright);
}
.realm-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-0);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}
.realm-card p {
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.realm-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
}

/* ============================================================
   CODE OF HONOR
   ============================================================ */
.code-list {
    list-style: none;
    counter-reset: code;
    max-width: 900px;
    margin: 0 auto;
}
.code-list li {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    align-items: flex-start;
    transition: background 0.4s ease, padding 0.4s ease;
}
.code-list li:last-child { border-bottom: none; }
.code-list li:hover {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.04), transparent);
    padding-left: 1.5rem;
}
.code-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 70px;
    text-align: center;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
    flex-shrink: 0;
}
.code-list h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.code-list p { color: var(--ink-2); }

/* ============================================================
   WARRIORS
   ============================================================ */
.warriors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.warrior {
    background: linear-gradient(180deg, rgba(28, 28, 38, 0.7), rgba(12, 12, 17, 0.85));
    border: 1px solid rgba(201, 169, 110, 0.15);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 2px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.clickable-card {
    cursor: pointer;
}
.warrior:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.25);
}
.warrior-portrait {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.4rem;
    background: var(--bg);
    display: grid;
    place-items: center;
    border: 2px solid var(--gold-deep);
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 169, 110, 0.2);
    transition: border-color 0.4s ease, transform 0.5s ease;
}
.warrior:hover .warrior-portrait {
    border-color: var(--gold-bright);
    transform: scale(1.05);
}
.warrior-portrait::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    animation: ringSpin 30s linear infinite;
}
.warrior-glyph {
    font-family: var(--font-rune);
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 0 0 25px rgba(201, 169, 110, 0.7);
}
.warrior h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink-0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.warrior-role {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.warrior > p {
    font-style: italic;
    color: var(--ink-2);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    min-height: 3.6em;
}
.warrior-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}
.warrior-stats li {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.warrior-stats strong {
    font-size: 1.1rem;
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0;
}

/* ============================================================
   LEGENDS
   ============================================================ */
.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.legend-card {
    position: relative;
    padding: 2.5rem 2rem;
    background:
        linear-gradient(165deg, rgba(28, 28, 38, 0.9), rgba(12, 12, 17, 0.9)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 2px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}
.legend-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.legend-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.legend-card:hover::before { transform: scaleY(1); }
.legend-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding: 0.3rem 0.8rem;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
}
.legend-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink-0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.legend-card p {
    color: var(--ink-1);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.legend-card em { color: var(--gold-bright); font-style: italic; }
.legend-read {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.legend-card:hover .legend-read {
    color: var(--gold-bright);
    letter-spacing: 0.32em;
}

/* ============================================================
   JOIN
   ============================================================ */
.join {
    padding: 6rem 2rem;
}
.join-card {
    position: relative;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.15), transparent 60%),
        linear-gradient(180deg, rgba(28, 28, 38, 0.9), rgba(12, 12, 17, 0.95));
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 5rem 3rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(201, 169, 110, 0.08);
}
.join-card::before, .join-card::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 50%;
    pointer-events: none;
}
.join-card::before { top: -100px; left: -100px; }
.join-card::after { bottom: -100px; right: -100px; }

.join-rune {
    font-family: var(--font-rune);
    font-size: 5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px var(--gold);
    animation: pulse 3s ease-in-out infinite;
}
.join-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ink-0);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 1rem 0;
}
.join-card h2 em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    color: var(--gold-bright);
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.join-card > p {
    max-width: 600px;
    margin: 1rem auto 2.5rem;
    color: var(--ink-1);
    font-size: 1.15rem;
}

.join-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2.5rem 0;
    text-align: left;
}
.join-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 250px;
    max-width: 280px;
    color: var(--ink-1);
    font-family: var(--font-body);
    font-size: 1.05rem;
}
.join-steps span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-bright);
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.25);
}

.join-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 3;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
    margin-top: 4rem;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(201, 169, 110, 0.4);
}
.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink-0);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.footer-brand span {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--ink-3);
    text-transform: uppercase;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}
.footer-links a {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--ink-2);
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-runes {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    font-family: var(--font-rune);
    color: var(--gold);
    font-size: 1.4rem;
}
.footer-runes span {
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}
.footer-runes span:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.2);
    text-shadow: 0 0 15px var(--gold);
}
.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--ink-3);
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .saga-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand, .footer-runes { justify-content: center; }
}

@media (max-width: 1080px) {
    .nav { padding: 1rem 1.2rem; gap: 1rem; }
    .nav.scrolled { padding: 0.6rem 1.2rem; }
    .nav-brand span { font-size: 0.78rem; }
    .nav-brand img { width: 36px; height: 36px; }

    .nav-toggle { display: flex; }
    .lang-switch { margin-left: auto; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: min(80%, 320px);
        background: rgba(7, 7, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 4rem 2rem;
        border-left: 1px solid rgba(201, 169, 110, 0.2);
        transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .section { padding: 5rem 1.2rem; }
    .section-head { margin-bottom: 3rem; }
    .saga-stats { grid-template-columns: 1fr 1fr; }
    .code-list li { flex-direction: column; gap: 0.6rem; padding: 1.4rem 0; }
    .code-num { text-align: left; min-width: auto; font-size: 1.8rem; }
    .code-list li:hover { padding-left: 0.5rem; }
    .join-card { padding: 3rem 1.5rem; }
    .join-steps { flex-direction: column; align-items: stretch; gap: 1rem; }
    .join-steps li { max-width: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
