:root {
    --navy: #07131d;
    --navy-light: #0d1d29;
    --panel: rgba(5, 15, 23, 0.94);
    --gold: #c99b46;
    --gold-light: #f1d083;
    --cream: #eee5d1;
    --muted: #aaa89f;
    --blue: #126eb5;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
    background-image:
        linear-gradient(rgba(3, 12, 20, .35), rgba(3, 12, 20, .75)),
        url("/static/images/elderhide-background.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ---------- Navigation ---------- */

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    background: rgba(3, 13, 21, .96);
    border-bottom: 1px solid rgba(201, 155, 70, .65);
}

.brand {
    color: var(--gold-light);
    font-size: 2rem;
    letter-spacing: .08em;
    text-decoration: none;
    text-shadow: 0 2px 8px #000;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 1.35rem;
}

nav {
    margin-left: auto;
}

nav a {
    display: inline-block;
    padding: 28px 22px;
    color: #c8c0ae;
    text-decoration: none;
}

nav a.active {
    color: var(--gold-light);
    background: rgba(255,255,255,.025);
    border-bottom: 2px solid var(--gold);
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 54px 20px 26px;
}

.hero h1 {
    margin: 0;
    color: var(--gold-light);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 500;
    letter-spacing: .06em;
    line-height: .9;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #65451d,
        0 8px 20px #000;
}

.tagline {
    margin: 22px 0 0;
    color: #eee4d2;
    font-size: 1rem;
    letter-spacing: .5em;
    text-transform: uppercase;
}

/* ---------- Main layout ---------- */

.content {
    width: min(1420px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(420px, 560px) 1fr;
    gap: 50px;
    align-items: center;
    padding: 15px 0 70px;
}

/* ---------- Feature list ---------- */

.features {
    display: grid;
    gap: 32px;
}

.feature {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    align-items: center;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 1.5rem;
    background: rgba(4, 14, 22, .72);
}

.feature h3 {
    margin: 0 0 5px;
    color: var(--gold-light);
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feature p {
    margin: 0;
    color: #c8c1b4;
    line-height: 1.45;
}

/* ---------- Registration panel ---------- */

.register-panel {
    position: relative;
    padding: 38px 40px;
    background:
        linear-gradient(145deg, rgba(15,29,39,.97), rgba(3,12,18,.98));
    border: 1px solid var(--gold);
    box-shadow:
        0 22px 70px rgba(0,0,0,.65),
        inset 0 0 35px rgba(201,155,70,.06);
}

.register-panel::before {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    border: 1px solid rgba(201,155,70,.22);
}

.register-panel h2 {
    position: relative;
    margin: 0;
    text-align: center;
    color: #f4ead5;
    font-size: 2rem;
    font-weight: 500;
}

.intro {
    position: relative;
    margin: 8px 0 28px;
    text-align: center;
    color: #bcb6aa;
}

.message {
    position: relative;
    padding: 12px 14px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(201,155,70,.45);
    background: rgba(201,155,70,.08);
}

.form-group {
    position: relative;
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #eee6d6;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #f3eee4;
    font: inherit;
    background: rgba(2,9,14,.68);
    border: 1px solid #35434c;
    border-radius: 4px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,155,70,.12);
}

.create-button {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 5px;
    color: white;
    font: 1.15rem Georgia, "Times New Roman", serif;
    cursor: pointer;
    background: linear-gradient(#147ac8, #07518e);
    border: 1px solid var(--gold-light);
    box-shadow:
        inset 0 0 0 2px rgba(0,0,0,.25),
        0 4px 12px rgba(0,0,0,.35);
}

.create-button:hover {
    filter: brightness(1.12);
}

/* ---------- Right quote ---------- */

.realm-quote {
    text-align: center;
    color: #d6cdbb;
}

.realm-quote blockquote {
    margin: 0 0 30px;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
}

.realm-quote strong {
    display: block;
    color: var(--gold);
    letter-spacing: .45em;
    font-weight: 400;
}

.realm-quote small {
    display: block;
    margin-top: 10px;
    color: #a77d3d;
    letter-spacing: .25em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */

footer {
    padding: 25px 4vw;
    color: #867f73;
    border-top: 1px solid rgba(201,155,70,.35);
    background: rgba(2,8,13,.88);
    letter-spacing: .1em;
}

/* ---------- Mobile ---------- */

@media (max-width: 1000px) {
    .site-header {
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 4vw 0;
    }

    .brand {
        margin-bottom: 8px;
    }

    nav {
        width: 100%;
        margin-left: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav a {
        padding: 14px 16px;
        text-align: center;
    }

    .content {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .features {
        order: 2;
    }

    .register-panel {
        order: 1;
    }

    .realm-quote {
        order: 3;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: auto;
        min-height: 64px;
        padding: 8px 12px 0;
    }

    nav a {
        padding: 11px 10px;
        font-size: .82rem;
    }

    .brand {
        font-size: 1.45rem;
    }

    .hero {
        padding-top: 38px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: .72rem;
        letter-spacing: .3em;
    }

    .content {
        width: calc(100% - 24px);
        gap: 36px;
    }

    .register-panel {
        padding: 30px 22px;
    }
}

/* ---------- Elderhide emblem ---------- */

.brand {
    display: flex;
    align-items: center;
}

.brand-emblem {
    width: 64px;
    height: 64px;
    margin-right: 12px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .75));
}

@media (max-width: 600px) {
    .brand-emblem {
        width: 50px;
        height: 50px;
        margin-right: 8px;
    }
}

/* ---------- How It Works ---------- */

.guide-hero {
    padding-bottom: 40px;
}

.guide-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

.guide-container {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 80px;
}

.guide-intro {
    margin-bottom: 35px;
    padding: 32px 40px;
    text-align: center;
    background: rgba(5, 15, 23, .92);
    border: 1px solid var(--gold);
    box-shadow: 0 15px 45px rgba(0,0,0,.45);
}

.guide-intro h2 {
    margin: 0 0 12px;
    color: var(--gold-light);
    font-size: 2rem;
}

.guide-intro p {
    max-width: 720px;
    margin: auto;
    color: #cbc3b4;
    line-height: 1.7;
}

.guide-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    margin-bottom: 24px;
    padding: 32px;
    background:
        linear-gradient(145deg,
        rgba(13, 29, 41, .96),
        rgba(3, 12, 18, .96));
    border: 1px solid rgba(201,155,70,.55);
    box-shadow: 0 12px 35px rgba(0,0,0,.4);
}

.step-number {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-size: 2rem;
    border: 2px solid var(--gold);
    transform: rotate(45deg);
    background: rgba(3,12,18,.9);
}

.step-number::first-line {
    transform: rotate(-45deg);
}

.step-content h2 {
    margin: 0 0 15px;
    color: var(--gold-light);
    font-size: 1.65rem;
}

.step-content h3 {
    margin: 28px 0 8px;
    color: #eee4cf;
}

.step-content p {
    color: #c7c0b3;
    line-height: 1.7;
}

.code-box {
    margin: 18px 0;
    padding: 17px 20px;
    overflow-x: auto;
    color: #f1d083;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    background: rgba(0,0,0,.5);
    border: 1px solid #48545c;
    border-left: 3px solid var(--gold);
    user-select: all;
}

.guide-note {
    margin-top: 20px;
    padding: 15px 18px;
    color: #d2c8b4;
    line-height: 1.55;
    background: rgba(201,155,70,.08);
    border: 1px solid rgba(201,155,70,.3);
}

.guide-button {
    display: inline-block;
    margin-top: 10px;
    padding: 13px 24px;
    color: white;
    text-decoration: none;
    background: linear-gradient(#147ac8, #07518e);
    border: 1px solid var(--gold-light);
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

.guide-button:hover {
    filter: brightness(1.12);
}

.realm-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 25px;
    border: 1px solid rgba(201,155,70,.4);
}

.realm-details div {
    padding: 18px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(201,155,70,.12);
}

.realm-details span {
    display: block;
    margin-bottom: 6px;
    color: #89867e;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.realm-details strong {
    color: var(--gold-light);
    font-weight: normal;
}

@media (max-width: 650px) {
    .guide-container {
        width: calc(100% - 24px);
    }

    .guide-intro {
        padding: 25px 20px;
    }

    .guide-step {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .realm-details {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   ELDERHIDE LANDING PAGE
   ========================================================== */

.landing {
    position: relative;
}

.landing-hero {
    min-height: calc(100vh - 78px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 24px 120px;
    text-align: center;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at center,
            rgba(9, 31, 47, .10) 0%,
            rgba(3, 12, 20, .20) 45%,
            rgba(3, 10, 16, .82) 100%
        );
}

.landing-crest {
    display: none;
}

.landing-eyebrow {
    margin: 0 0 18px;
    color: #e0b65e;
    font-size: .78rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    text-shadow: 0 2px 5px #000;
}

.landing-hero h1 {
    margin: 0;
    color: #f4e6c4;
    font-size: clamp(4rem, 9vw, 7.5rem);
    font-weight: normal;
    line-height: .9;
    letter-spacing: .08em;
    text-shadow:
        0 2px 0 #775624,
        0 5px 0 rgba(0,0,0,.5),
        0 12px 30px rgba(0,0,0,.95);
}

.landing-tagline {
    margin: 24px 0 0;
    color: #d9ad58;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    font-style: italic;
    letter-spacing: .08em;
    text-shadow: 0 3px 8px #000;
}

.landing-description {
    max-width: 610px;
    margin: 24px auto 0;
    color: #ddd5c6;
    font-size: 1.05rem;
    line-height: 1.75;
    text-shadow: 0 2px 5px #000;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
}

.landing-primary,
.landing-secondary {
    min-width: 190px;
    box-sizing: border-box;
    display: inline-block;
    padding: 15px 28px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .12em;
    transition:
        transform .15s ease,
        filter .15s ease;
}

.landing-primary {
    color: #fff;
    background: linear-gradient(#1683d4, #07518e);
    border: 1px solid #e0b65e;
    box-shadow:
        inset 0 0 12px rgba(255,255,255,.08),
        0 5px 18px rgba(0,0,0,.65);
}

.landing-secondary {
    color: #e7c578;
    background: rgba(3, 13, 21, .88);
    border: 1px solid #a67a35;
    box-shadow: 0 5px 18px rgba(0,0,0,.5);
}

.landing-primary:hover,
.landing-secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}


/* Realm highlights */

.landing-features {
    width: min(1100px, calc(100% - 40px));
    margin: -45px auto 90px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background:
        linear-gradient(
            145deg,
            rgba(12, 28, 40, .97),
            rgba(3, 11, 17, .97)
        );
    border-top: 1px solid #b78b42;
    border-bottom: 1px solid #70552c;
    box-shadow: 0 18px 50px rgba(0,0,0,.65);
}

.landing-features article {
    padding: 38px 34px;
    text-align: center;
    border-right: 1px solid rgba(201,155,70,.22);
}

.landing-features article:last-child {
    border-right: 0;
}

.landing-features article > span {
    display: block;
    margin-bottom: 14px;
    color: #80652f;
    font-size: .7rem;
    letter-spacing: .25em;
}

.landing-features h2 {
    margin: 0 0 13px;
    color: #e6c779;
    font-size: 1.35rem;
    font-weight: normal;
}

.landing-features p {
    max-width: 280px;
    margin: auto;
    color: #aaa59b;
    line-height: 1.65;
}


/* Journey section */

.landing-journey {
    width: min(850px, calc(100% - 40px));
    margin: 0 auto 100px;
    padding: 20px 20px 55px;
    text-align: center;
}

.landing-journey h2 {
    margin: 8px 0 45px;
    color: #eee1c2;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: normal;
}

.journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
}

.journey-steps > div:not(.journey-line) {
    width: 160px;
}

.journey-steps strong {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: #e5bd67;
    font-size: 1.2rem;
    font-weight: normal;
    background: rgba(3,12,18,.85);
    border: 1px solid #a77b36;
    transform: rotate(45deg);
}

.journey-steps strong::first-line {
    line-height: 52px;
}

.journey-steps span {
    display: block;
    margin-top: 20px;
    color: #c9c1b2;
    font-size: .88rem;
}

.journey-line {
    width: 100px;
    height: 1px;
    margin: 0 5px 34px;
    background:
        linear-gradient(
            90deg,
            transparent,
            #8c6b36,
            transparent
        );
}


/* Mobile */

@media (max-width: 750px) {

    .landing-hero {
        min-height: calc(100vh - 78px);
        padding: 70px 20px 100px;
    }

    .landing-hero h1 {
        font-size: clamp(3.3rem, 17vw, 5rem);
    }

    .landing-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .landing-primary,
    .landing-secondary {
        width: min(280px, 100%);
    }

    .landing-features {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .landing-features article {
        border-right: 0;
        border-bottom: 1px solid rgba(201,155,70,.2);
    }

    .landing-features article:last-child {
        border-bottom: 0;
    }

    .journey-steps {
        flex-direction: column;
        gap: 14px;
    }

    .journey-line {
        width: 1px;
        height: 30px;
        margin: 0;
    }
}

/* ---------- Phone refinements ---------- */
@media (max-width: 600px) {
    .landing-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.3rem);
        letter-spacing: .035em;
        line-height: 1;
        max-width: 100%;
    }

    .landing-hero {
        overflow: hidden;
    }
}
