:root {
    --ink: #090b0a;
    --ink-soft: #101311;
    --paper: #e9e4d8;
    --paper-muted: #aaa69b;
    --gold: #b69559;
    --gold-bright: #d5b878;
    --gold-dark: #6f5935;
    --line: rgba(213, 184, 120, 0.2);
    --content: 1240px;
    --side-padding: clamp(24px, 5vw, 80px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--paper);
    background: var(--ink);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

.noise {
    position: fixed;
    z-index: 20;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 96px;
    padding: 0 var(--side-padding);
    border-bottom: 1px solid transparent;
    transition: background 250ms ease, border-color 250ms ease, height 250ms ease;
}

.site-header.scrolled {
    height: 76px;
    border-color: var(--line);
    background: rgba(9, 11, 10, 0.92);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 12px;
    width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    color: var(--gold-bright);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 2;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    color: var(--paper);
    font-family: "Cinzel", serif;
    font-size: 15px;
    letter-spacing: 0.19em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.55em;
}

.main-nav {
    display: flex;
    gap: clamp(22px, 2.5vw, 42px);
}

.main-nav a,
.footer-links a {
    color: rgba(233, 228, 216, 0.72);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover {
    color: var(--gold-bright);
}

.header-cta {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gold);
    color: var(--paper);
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 140px var(--side-padding) 100px;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-backdrop,
.lore-background {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.hero-backdrop {
    transform: scale(1.03);
    background-image:
        linear-gradient(180deg, rgba(6, 8, 7, 0.42), rgba(6, 8, 7, 0.2) 40%, #090b0a 100%),
        linear-gradient(90deg, rgba(5, 7, 6, 0.7), transparent 35%, transparent 65%, rgba(5, 7, 6, 0.7)),
        url("https://images.unsplash.com/photo-1483347756197-71ef80e95f73?auto=format&fit=crop&w=2200&q=90");
    filter: saturate(0.45) contrast(1.12);
}

.hero::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background: radial-gradient(circle at center 40%, transparent 0, rgba(9, 11, 10, 0.15) 45%, rgba(9, 11, 10, 0.76) 100%);
}

.hero-content {
    width: min(970px, 100%);
    animation: hero-enter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    display: inline-block;
    width: 30px;
    height: 1px;
    margin: 0 14px 3px;
    content: "";
    background: var(--gold-dark);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Cinzel", serif;
    font-weight: 500;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(52px, 7.6vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}

h1 span,
h1 em {
    display: block;
}

h1 em,
h2 em {
    color: var(--gold-bright);
    font-weight: 400;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 38px;
    color: rgba(233, 228, 216, 0.78);
    font-family: "Cinzel", serif;
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-width: 220px;
    padding: 16px 24px;
    font-family: "Cinzel", serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border: 1px solid var(--gold);
    color: #11120f;
    background: var(--gold-bright);
}

.button-primary:hover {
    border-color: var(--paper);
    background: var(--paper);
}

.button-ghost {
    border: 1px solid rgba(233, 228, 216, 0.35);
    background: rgba(8, 10, 9, 0.35);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.realm-status {
    position: absolute;
    right: var(--side-padding);
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.realm-status > span:nth-child(2) {
    color: var(--paper-muted);
}

.realm-status strong {
    color: var(--gold-bright);
    font-weight: 500;
}

.status-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ba070;
    box-shadow: 0 0 12px #7ba070;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: var(--side-padding);
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--paper-muted);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.scroll-line {
    display: block;
    width: 58px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-rune {
    position: absolute;
    z-index: -1;
    color: rgba(213, 184, 120, 0.08);
    font-family: serif;
    font-size: 25vw;
    line-height: 1;
}

.rune-left {
    top: 15%;
    left: -7vw;
}

.rune-right {
    right: -6vw;
    bottom: 2%;
}

.section {
    position: relative;
    padding: clamp(100px, 11vw, 180px) var(--side-padding);
}

.intro {
    display: grid;
    grid-template-columns: 0.2fr 1fr 0.8fr;
    gap: clamp(30px, 5vw, 90px);
    align-items: start;
    max-width: calc(var(--content) + (var(--side-padding) * 2));
    margin: 0 auto;
}

.section-index {
    color: var(--gold-dark);
    font-family: "Cinzel", serif;
    font-size: 13px;
}

.section-index::after {
    display: block;
    width: 1px;
    height: 80px;
    margin: 18px 0 0 5px;
    content: "";
    background: var(--line);
}

h2 {
    margin-bottom: 34px;
    font-size: clamp(38px, 4.6vw, 68px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.intro-copy {
    padding-top: 56px;
    color: var(--paper-muted);
    font-size: 15px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.stat-row strong,
.stat-row span {
    display: block;
}

.stat-row strong {
    color: var(--paper);
    font-family: "Cinzel", serif;
    font-size: 13px;
    font-weight: 500;
}

.stat-row span {
    margin-top: 3px;
    color: #777970;
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.feature-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
    gap: clamp(60px, 8vw, 140px);
    align-items: center;
    background: var(--ink-soft);
}

.feature-visual {
    position: relative;
    max-width: 620px;
}

.feature-visual::before {
    position: absolute;
    z-index: 1;
    top: -24px;
    left: -24px;
    width: 80px;
    height: 80px;
    border-top: 1px solid var(--gold-dark);
    border-left: 1px solid var(--gold-dark);
    content: "";
}

.feature-image {
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(180deg, transparent 50%, rgba(8, 10, 9, 0.8)),
        url("https://images.unsplash.com/photo-1486911278844-a81c5267e227?auto=format&fit=crop&w=1200&q=88") center / cover;
    filter: saturate(0.5) contrast(1.08);
}

.image-caption {
    position: absolute;
    right: -30px;
    bottom: 30px;
    display: flex;
    gap: 20px;
    max-width: 330px;
    padding: 26px;
    border-left: 2px solid var(--gold);
    background: rgba(9, 11, 10, 0.94);
}

.image-caption span {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 11px;
}

.image-caption p {
    margin: 0;
    color: var(--paper-muted);
    font-family: "Cinzel", serif;
    font-size: 11px;
    line-height: 1.7;
}

.feature-content .eyebrow {
    width: max-content;
}

.feature-content .eyebrow::before {
    display: none;
}

.feature-list {
    margin-top: 50px;
}

.feature-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 22px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.feature-item:last-child {
    border-bottom: 1px solid var(--line);
}

.feature-number {
    padding-top: 4px;
    color: var(--gold-dark);
    font-family: "Cinzel", serif;
    font-size: 10px;
}

.feature-item h3 {
    margin-bottom: 7px;
    font-size: 17px;
    letter-spacing: 0.03em;
}

.feature-item p {
    max-width: 550px;
    margin-bottom: 0;
    color: var(--paper-muted);
    font-size: 13px;
}

.lore-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 850px;
    isolation: isolate;
}

.lore-background {
    background-image:
        linear-gradient(90deg, rgba(9, 11, 10, 0.88), rgba(9, 11, 10, 0.35), rgba(9, 11, 10, 0.88)),
        linear-gradient(0deg, #090b0a, transparent 25%, transparent 75%, #090b0a),
        url("https://images.unsplash.com/photo-1516569422536-02d5e1f735d4?auto=format&fit=crop&w=2200&q=90");
    filter: saturate(0.38);
}

.lore-card {
    width: min(660px, 100%);
    padding: clamp(45px, 7vw, 86px);
    border: 1px solid rgba(213, 184, 120, 0.35);
    text-align: center;
    background: rgba(8, 10, 9, 0.87);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.lore-card h2 {
    margin-bottom: 20px;
    font-size: clamp(39px, 5vw, 64px);
}

.ornament {
    margin: 22px 0;
    color: var(--gold);
    font-size: 9px;
}

.lore-lead {
    color: var(--paper-muted);
    font-family: "Cinzel", serif;
    font-size: 14px;
    line-height: 1.95;
}

.text-link {
    display: inline-flex;
    gap: 18px;
    margin-top: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold-bright);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.roadmap-section {
    max-width: calc(var(--content) + (var(--side-padding) * 2));
    margin: 0 auto;
}

.roadmap-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 70px;
}

.roadmap-header h2 {
    margin-bottom: 0;
}

.roadmap-header .eyebrow::before {
    display: none;
}

.roadmap-header > p {
    max-width: 370px;
    color: var(--paper-muted);
    font-size: 13px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.roadmap-column {
    position: relative;
    min-height: 430px;
    padding: 42px;
    border-right: 1px solid var(--line);
}

.roadmap-column:last-child {
    border-right: 0;
}

.roadmap-column::before {
    position: absolute;
    top: -4px;
    left: 42px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: #555850;
}

.roadmap-column.complete::before {
    background: #80926f;
    box-shadow: 0 0 12px #80926f;
}

.roadmap-column.progress::before {
    background: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold);
}

.roadmap-status {
    color: var(--gold);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.roadmap-column h3 {
    margin: 14px 0 34px;
    font-size: 23px;
}

.roadmap-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.roadmap-column li {
    position: relative;
    margin: 16px 0;
    padding-left: 20px;
    color: var(--paper-muted);
    font-size: 13px;
}

.roadmap-column li::before {
    position: absolute;
    top: 12px;
    left: 0;
    width: 7px;
    height: 1px;
    content: "";
    background: var(--gold-dark);
}

.faq-section {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: clamp(70px, 10vw, 160px);
    background: var(--ink-soft);
}

.faq-title {
    position: sticky;
    top: 130px;
    align-self: start;
}

.faq-title .eyebrow::before {
    display: none;
}

.faq-title > p:last-child {
    max-width: 330px;
    color: var(--paper-muted);
    font-size: 13px;
}

.faq-item {
    border-top: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    padding: 28px 0;
    border: 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.faq-question span:first-child {
    font-family: "Cinzel", serif;
    font-size: 16px;
}

.faq-icon {
    color: var(--gold);
    font-size: 22px;
    font-weight: 300;
    transition: transform 200ms ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    max-width: 630px;
    margin-bottom: 28px;
    color: var(--paper-muted);
    font-size: 13px;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.final-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 680px;
    padding: 100px var(--side-padding);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(112, 76, 35, 0.16), transparent 55%),
        linear-gradient(rgba(8, 10, 9, 0.6), rgba(8, 10, 9, 0.94)),
        url("https://images.unsplash.com/photo-1504893524553-b855bce32c67?auto=format&fit=crop&w=2200&q=85") center / cover;
}

.final-cta::before {
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(182, 149, 89, 0.15);
    border-radius: 50%;
    content: "";
}

.final-cta-content {
    position: relative;
}

.crown-glyph {
    display: block;
    margin-bottom: 24px;
    color: var(--gold-bright);
    font-size: 36px;
}

.final-cta h2 {
    font-size: clamp(42px, 5.5vw, 76px);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 50px;
    align-items: center;
    min-height: 150px;
    padding: 35px var(--side-padding);
    border-top: 1px solid var(--line);
    color: #666960;
    background: #070908;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(420px, 100%);
        height: 100vh;
        padding: 80px;
        background: rgba(9, 11, 10, 0.98);
        transform: translateX(100%);
        transition: transform 300ms ease;
    }

    .main-nav a {
        font-family: "Cinzel", serif;
        font-size: 20px;
    }

    .menu-open .main-nav {
        transform: translateX(0);
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
        width: 34px;
        padding: 8px 0;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        background: var(--paper);
        transition: transform 200ms ease;
    }

    .menu-open .menu-toggle span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-open .menu-toggle span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .intro {
        grid-template-columns: 40px 1fr;
    }

    .intro-copy {
        grid-column: 2;
        max-width: 650px;
        padding-top: 0;
    }

    .feature-section {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .roadmap-column {
        padding: 30px;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-header.scrolled {
        height: 72px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: 860px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: min(290px, 100%);
    }

    .realm-status {
        right: auto;
        bottom: 34px;
        left: var(--side-padding);
    }

    .scroll-cue {
        display: none;
    }

    .intro {
        display: block;
    }

    .section-index {
        display: none;
    }

    .intro-copy {
        padding-top: 0;
    }

    .stat-row {
        gap: 18px;
    }

    .feature-section {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        margin-right: 20px;
    }

    .image-caption {
        right: -20px;
    }

    .lore-section {
        min-height: 760px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .roadmap-header {
        display: block;
    }

    .roadmap-header > p {
        margin-top: 28px;
    }

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

    .roadmap-column {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .roadmap-column:last-child {
        border-bottom: 0;
    }

    .faq-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-title {
        position: static;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
