/* Eltaris — strona główna */

:root {
    --gold: #d4af37;
    --gold-light: #e8c96a;
    --silver: #d0d8e4;
    --purple: #a855f7;
    --purple-light: #c084fc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Lato", sans-serif;
    background: #000;
    color: #f0ece4;
    overflow-x: hidden;
}

.homepage {
    position: relative;
    min-height: 100vh;
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Tło --- */

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.background__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

/* --- Pioruny po prawej --- */

.lightning {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 68%;
    pointer-events: none;
    z-index: 1;
}

.lightning__bolt {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
}

.lightning__bolt--1 {
    background:
        radial-gradient(ellipse 28% 38% at 72% 22%, rgba(220, 180, 255, 0.95) 0%, transparent 70%),
        radial-gradient(ellipse 18% 28% at 58% 35%, rgba(255, 255, 255, 0.7) 0%, transparent 65%);
    animation: bolt-flash-1 4.5s infinite;
}

.lightning__bolt--2 {
    background:
        radial-gradient(ellipse 22% 32% at 80% 28%, rgba(190, 130, 255, 0.9) 0%, transparent 68%),
        linear-gradient(155deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
    animation: bolt-flash-2 6.2s infinite 1.8s;
}

.lightning__bolt--3 {
    background:
        radial-gradient(ellipse 35% 42% at 65% 18%, rgba(160, 100, 255, 0.85) 0%, transparent 72%);
    animation: bolt-flash-3 5.8s infinite 3.4s;
}

@keyframes bolt-flash-1 {
    0%, 82%, 100% { opacity: 0; }
    83% { opacity: 1; }
    84% { opacity: 0.2; }
    85% { opacity: 0.95; }
    86% { opacity: 0.1; }
    87% { opacity: 0.6; }
    88% { opacity: 0; }
}

@keyframes bolt-flash-2 {
    0%, 76%, 100% { opacity: 0; }
    77% { opacity: 0.85; }
    78% { opacity: 0; }
    79% { opacity: 1; }
    80% { opacity: 0.15; }
    81% { opacity: 0.5; }
    82% { opacity: 0; }
}

@keyframes bolt-flash-3 {
    0%, 88%, 100% { opacity: 0; }
    89% { opacity: 0.7; }
    90% { opacity: 0; }
    91% { opacity: 1; }
    92% { opacity: 0.25; }
    93% { opacity: 0.8; }
    94% { opacity: 0; }
}

.background__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 42%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.8) 72%,
        #000 86%
    );
}

/* --- Nagłówek --- */

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 0.5rem 2.5rem 0;
}

.header__logo img {
    height: clamp(120px, 18vw, 190px);
    display: block;
    background: transparent;
}

.header__nav {
    display: flex;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: 0.75rem;
}

.header__link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
}

.header__link--active {
    color: var(--gold-light);
    box-shadow: 0 3px 0 var(--gold);
    padding-bottom: 3px;
}

.header__link:hover {
    color: var(--gold-light);
}

/* --- Chronicles dropdown (native <details> — works without JavaScript) --- */

.header__drop {
    position: relative;
}

.header__drop summary {
    list-style: none;
    cursor: pointer;
}

.header__drop summary::-webkit-details-marker {
    display: none;
}

.header__drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header__drop-btn.header__link--active,
.header__drop[open] .header__drop-btn {
    color: var(--gold-light);
    box-shadow: 0 3px 0 var(--gold);
    padding-bottom: 3px;
}

.header__drop-caret {
    font-size: 0.55rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.header__drop[open] .header__drop-caret {
    transform: rotate(180deg);
}

.header__drop-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 11rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    z-index: 20;
}

.header__drop-link {
    display: block;
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.header__drop-link:hover,
.header__drop-link--active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
}

.header__lang {
    justify-self: end;
    margin-top: 0.55rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Lato", sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- Hero --- */

.hero {
    text-align: center;
    padding: clamp(1rem, 3vh, 2rem) 1.5rem 0;
}

.hero__title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero__quote {
    margin: 0.6rem 0 0.85rem;
    font-family: "Cinzel", serif;
    font-style: italic;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero__cta {
    display: inline-block;
    margin-top: 0.1rem;
    text-decoration: none;
    line-height: 0;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.hero__cta-img {
    display: block;
    width: clamp(240px, 30vw, 440px);
    height: auto;
}

.hero__cta--text {
    line-height: 1.4;
    padding: 0.85rem 1.75rem;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 2px;
    color: #e8d9a8;
    font-family: "Cinzel", serif;
    font-size: clamp(0.72rem, 1.1vw, 0.9rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(42, 32, 18, 0.92), rgba(24, 18, 10, 0.92));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero__cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* --- Karty --- */

.cards-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(3rem, 14vh, 9rem) 2rem 0.5rem;
    margin-top: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    column-gap: clamp(1rem, 2.5vw, 2rem);
    row-gap: 0;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.cards__trio {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-height: clamp(280px, 32vw, 420px);
    object-fit: contain;
    object-position: center top;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.card {
    grid-row: 2;
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.card--bane { grid-column: 1; }
.card--luna { grid-column: 2; }
.card--darien { grid-column: 3; }

.card__path {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.card--bane .card__path { color: var(--gold); }
.card--luna .card__path { color: var(--silver); }
.card--darien .card__path { color: var(--purple-light); }

.card__desc {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    max-width: 250px;
}

.card__btn {
    display: inline-block;
    padding: 0.38rem 0.9rem;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
}

.card--bane .card__btn { border: 1px solid var(--gold); }
.card--luna .card__btn { border: 1px solid var(--silver); }
.card--darien .card__btn { border: 1px solid var(--purple); }

.card__meta {
    margin: 0.45rem 0 0;
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card--bane .card__meta { color: rgba(212, 175, 55, 0.55); }
.card--luna .card__meta { color: rgba(200, 210, 225, 0.5); }
.card--darien .card__meta { color: rgba(168, 85, 247, 0.55); }

/* --- Stopka --- */

.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 2.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__copy {
    margin: 0;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__social {
    display: flex;
    gap: 0.85rem;
}

.footer__social a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.footer__quote {
    margin: 0;
    font-family: "Cinzel", serif;
    font-style: italic;
    font-size: 0.65rem;
    line-height: 1.4;
    text-align: right;
    color: rgba(255, 255, 255, 0.38);
}

.footer__lang {
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-family: "Lato", sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- Mobile --- */

@media (max-width: 900px) {
    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header__nav {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 0;
    }

    .header__lang {
        justify-self: center;
        margin-top: 0;
    }

    .cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .cards__trio,
    .card {
        grid-column: 1;
        grid-row: auto;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .footer__right {
        align-items: center;
    }

    .footer__quote {
        text-align: center;
    }
}
