:root {
    --ink: #040b12;
    --panel: #07131e;
    --panel-soft: #0a1a27;
    --gold: #c99a46;
    --gold-light: #f0cf83;
    --cyan: #77bed1;
    --text: #e7dfce;
    --muted: #aaa390;
    --line: rgba(201, 154, 70, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top, #102638 0, var(--ink) 42rem),
        var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: inherit;
}

.site-header {
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 60px);
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 10, 17, 0.96);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-size: 23px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
}

.brand small {
    margin-top: 3px;
    font-size: 9px;
    color: var(--gold);
}

nav {
    margin-left: auto;
    display: flex;
    gap: clamp(16px, 3vw, 38px);
}

nav a {
    color: var(--gold-light);
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wallet-button,
.button {
    border: 1px solid var(--gold);
    background: rgba(4, 15, 25, 0.86);
    color: var(--gold-light);
    padding: 13px 21px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wallet-button:disabled {
    opacity: 0.65;
}

.hero {
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background-image:
        linear-gradient(
            90deg,
            rgba(2, 9, 15, 1) 0%,
            rgba(2, 9, 15, 0.96) 38%,
            rgba(2, 9, 15, 0.34) 72%,
            rgba(2, 9, 15, 0.50) 100%
        ),
        url("landing-concept.png");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 35%, transparent, rgba(1, 8, 13, 0.3)),
        linear-gradient(180deg, transparent 78%, var(--ink));
}

.hero-content {
    width: min(690px, 92%);
    margin-left: clamp(22px, 6vw, 96px);
    padding: 28px 0 96px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
}

h1 {
    margin: 18px 0;
    color: var(--gold-light);
    font-size: clamp(50px, 6.2vw, 90px);
    line-height: 0.92;
    font-weight: normal;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(201, 154, 70, 0.28);
}

h1 span {
    display: block;
    margin: 13px 0;
    font-size: 0.36em;
    letter-spacing: 0.2em;
}

.hero-copy {
    max-width: 530px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
    color: #d1d3d2;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    text-decoration: none;
}

.button-gold {
    box-shadow:
        0 0 18px rgba(201, 154, 70, 0.22),
        inset 0 0 15px rgba(201, 154, 70, 0.08);
}

.features {
    padding: 30px clamp(20px, 5vw, 80px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.features article {
    padding: 18px;
    text-align: center;
}

.features span {
    color: var(--gold);
    font-size: 28px;
}

.features h2 {
    color: var(--gold-light);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.features p {
    color: var(--muted);
    line-height: 1.5;
}

.collections {
    padding: 58px clamp(20px, 4vw, 65px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.collection-card {
    min-height: 490px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0c1b28, #06101a);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.card-image {
    min-height: 250px;
    background:
        linear-gradient(180deg, transparent, rgba(3, 11, 18, 0.82)),
        url("landing-concept.png");
    background-size: cover;
}

.gate-card .card-image {
    background-position: 9% 82%;
}

.leviathan-card .card-image {
    background-position: 30% 78%;
}

.southern-card .card-image {
    background-position: 51% 72%;
}

.polar-card .card-image {
    background-position: 70% 76%;
}

.kingdom-card .card-image {
    background-position: 91% 70%;
}

.card-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: center;
}

.card-body h2 {
    margin: 0;
    color: var(--gold-light);
    font-size: 22px;
    font-weight: normal;
    text-transform: uppercase;
}

.card-body p {
    color: var(--muted);
    line-height: 1.55;
}

.card-body a {
    margin-top: auto;
    color: var(--cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.legend {
    margin: 0 clamp(20px, 4vw, 65px) 55px;
    padding: 42px;
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 50px;
    background: rgba(5, 16, 26, 0.85);
}

.legend h2 {
    color: var(--gold-light);
    font-size: 35px;
    font-weight: normal;
}

.legend p {
    color: var(--muted);
    line-height: 1.65;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.legend-grid h3 {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 14px;
}

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 1100px) {
    .collections {
        grid-template-columns: repeat(2, 1fr);
    }

    .features,
    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
    }

    .wallet-button {
        margin-left: auto;
    }

    .hero {
        min-height: 650px;
        background-position: 64% center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .features,
    .collections,
    .legend-grid {
        grid-template-columns: 1fr;
    }

    .legend {
        padding: 25px;
    }
}

@media (min-width: 1101px) {
    .hero {
        align-items: flex-start;
    }

    .hero-content {
        margin-top: 68px;
    }

    .hero-copy {
        max-width: 500px;
    }
}

.wallet-control {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wallet-selector {
    max-width: 150px;
    padding: 12px 10px;
    border: 1px solid rgba(201, 154, 70, 0.55);
    color: var(--gold-light);
    background: rgba(4, 15, 25, 0.94);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.wallet-selector:disabled {
    opacity: 0.6;
}

.wallet-button[data-connected="true"] {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(119, 190, 209, 0.18);
}

.wallet-status-bar {
    min-height: 42px;
    padding: 9px clamp(18px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    z-index: 15;
    border-bottom: 1px solid rgba(201, 154, 70, 0.25);
    color: var(--muted);
    background: rgba(3, 10, 17, 0.96);
    font-size: 12px;
}

.wallet-status-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

#wallet-status[data-state="connected"] {
    color: var(--cyan);
}

#wallet-status[data-state="warning"] {
    color: var(--gold-light);
}

#wallet-status[data-state="error"] {
    color: #e5a2a2;
}

@media (max-width: 900px) {
    .wallet-control {
        width: 100%;
        order: 4;
    }

    .wallet-selector,
    .wallet-button {
        flex: 1;
    }

    .wallet-selector {
        max-width: none;
    }

    .wallet-status-bar {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.wallet-safety-badge {
    padding: 5px 9px;
    border: 1px solid rgba(119, 190, 209, 0.55);
    color: var(--cyan);
    background: rgba(119, 190, 209, 0.07);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 10px;
    white-space: nowrap;
}
