/* Haven WoW - haven-wow.com (LSRP 2026-11-16). Night-blue and frost, with a gold edge. */
:root {
    --night: #0a111d;
    --deep: #0f1a2b;
    --panel: #132036;
    --line: #24365a;
    --frost: #9cd2ff;
    --frost-dim: #5f8fbf;
    --gold: #d8b25a;
    --gold-hi: #f0d48a;
    --text: #e4ebf5;
    --muted: #9aa9c2;
    --bad: #ff8f8f;
    --good: #8fe0a8;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font: 17px/1.6 "Alegreya Sans", "Segoe UI", Arial, sans-serif;
}
a { color: var(--frost); }
h1, h2, h3 { font-family: "Cinzel", Georgia, "Times New Roman", serif; line-height: 1.15; text-wrap: balance; margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 88px 72px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(156, 210, 255, .18), transparent 70%),
        linear-gradient(180deg, #0d1828 0%, var(--night) 100%);
    border-bottom: 1px solid var(--line);
}
.hero::after { /* a thin frost horizon */
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--frost-dim), var(--gold), var(--frost-dim), transparent);
    opacity: .7;
}
.hero h1 { line-height: 0; }
.logo { /* the crest art, its stone edges faded into the page */
    display: block; width: min(460px, 88vw); max-width: 100%; height: auto; margin: -40px auto 4px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent),
                        linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent),
                linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
    mask-composite: intersect;
}
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--frost); margin: 0 0 14px; }
.tagline { font-size: clamp(18px, 2.6vw, 22px); color: var(--text); max-width: 34em; margin: 18px auto 30px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 700;
    border: 1px solid var(--line); color: var(--text); background: var(--panel); font-size: 16px; cursor: pointer;
}
.btn:hover { border-color: var(--frost-dim); }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #2a1d05; border-color: #a5853c; }
.btn.gold:hover { filter: brightness(1.06); }

/* sections */
section.block { padding-block: 64px; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: 0; }
.block h2 { font-size: clamp(26px, 4vw, 34px); color: var(--gold-hi); margin-bottom: 8px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; min-width: 0; }
.card h3 { font-size: 19px; color: var(--frost); margin-bottom: 8px; }
.card p { margin: 0; color: var(--text); }

/* steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step::before {
    counter-increment: step; content: counter(step);
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 22px;
    color: #2a1d05; background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}
.step > div { min-width: 0; }
.step h3 { font-size: 20px; margin: 10px 0 6px; }
.step p { margin: 0 0 10px; }
.note { color: var(--muted); font-size: 15px; }
.code {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px;
}
.code code {
    font: 16px/1.4 Consolas, "Courier New", monospace; background: #07101c; color: var(--frost);
    border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; overflow-x: auto; max-width: 100%;
}
.code .btn { padding: 9px 16px; font-size: 15px; }

/* form */
form.signup { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; max-width: 520px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password] {
    font: inherit; color: var(--text); background: #07101c; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%;
}
input:focus { outline: 2px solid var(--frost-dim); outline-offset: 1px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.signup .btn { justify-self: start; }

/* result page */
.result { padding-block: 72px; }
.result .card { max-width: 620px; }
.result h2 { color: var(--gold-hi); margin-bottom: 12px; }
.result.ok h2 { color: var(--good); }
.result.err h2 { color: var(--bad); }
.result .btns { justify-content: flex-start; margin-top: 18px; }

footer { padding-block: 28px 40px; color: var(--muted); font-size: 14px; text-align: center; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }

@media (max-width: 520px) {
    .hero { padding-block: 64px 52px; }
    .step { grid-template-columns: 40px 1fr; gap: 12px; }
    .step::before { width: 40px; height: 40px; font-size: 19px; }
    form.signup { padding: 18px; }
}
