:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--roe-echo-void);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--roe-moonbone);
    background:
        radial-gradient(circle at 12% 0%, rgba(117, 84, 216, 0.24), transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(103, 221, 235, 0.12), transparent 30rem),
        linear-gradient(180deg, #111221 0%, var(--roe-echo-void) 44%, #06070c 100%);
    font-family: var(--roe-ui);
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(216, 170, 85, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 170, 85, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    content: '';
    pointer-events: none;
    mask-image: linear-gradient(180deg, black, transparent 82%);
}

a {
    color: var(--roe-echo-cyan);
}

a:focus-visible,
button:focus-visible {
    outline: 0;
    box-shadow: var(--roe-focus-ring);
}

.marketing-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(216, 170, 85, 0.18);
}

.brand-link {
    display: inline-flex;
    width: min(280px, 48vw);
    align-items: center;
    border-radius: 6px;
}

.brand-link img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.36));
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-nav a {
    padding: 7px 0;
    color: #b8b5c2;
    border-radius: 4px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
    color: var(--roe-moonbone);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 30px 0 0;
    color: #898797;
    font-size: 12px;
}

.breadcrumb a {
    color: #aaa7b5;
    text-decoration: none;
}

.breadcrumb span[aria-hidden='true'] {
    color: rgba(216, 170, 85, 0.54);
}

.marketing-hero {
    display: grid;
    min-height: 470px;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(44px, 8vw, 96px);
    align-items: center;
    padding: 56px 0 64px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--roe-echo-cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--roe-display);
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.lede {
    max-width: 700px;
    margin: 24px 0 0;
    color: #c8c4d0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
    text-wrap: balance;
}

.hero-mark {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    width: min(340px, 100%);
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(216, 170, 85, 0.3);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(117, 84, 216, 0.24), transparent 58%),
        rgba(8, 9, 16, 0.58);
    box-shadow: inset 0 0 56px rgba(103, 221, 235, 0.06), 0 28px 80px rgba(0, 0, 0, 0.32);
    color: var(--roe-ancient-gold);
    font: 600 clamp(76px, 13vw, 132px)/1 var(--roe-display);
}

.hero-mark::before,
.hero-mark::after {
    position: absolute;
    border: 1px solid rgba(103, 221, 235, 0.2);
    border-radius: 50%;
    content: '';
}

.hero-mark::before {
    inset: 9%;
}

.hero-mark::after {
    inset: 20%;
    border-color: rgba(216, 170, 85, 0.22);
}

body[data-accent='mage'] .hero-mark {
    color: var(--roe-echo-cyan);
}

.fact-grid,
.content-grid,
.region-grid,
.step-grid {
    display: grid;
    gap: 18px;
}

.fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 56px;
}

.fact,
.content-card,
.region-card,
.step-card,
.cta-panel {
    border: 1px solid rgba(216, 170, 85, 0.2);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(38, 29, 64, 0.34), transparent 48%),
        rgba(14, 14, 25, 0.84);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 18px 48px rgba(0, 0, 0, 0.18);
}

.fact {
    min-height: 140px;
    padding: 24px;
}

.fact strong {
    display: block;
    margin-bottom: 6px;
    color: var(--roe-ancient-gold);
    font: 700 24px/1.1 var(--roe-display);
}

.fact span {
    color: #aaa7b4;
    font-size: 14px;
}

.content-section {
    padding: 36px 0 72px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.05;
}

.section-heading p {
    margin: 14px 0 0;
    color: #aaa7b4;
}

.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.step-card {
    padding: clamp(25px, 4vw, 38px);
}

.content-card h2,
.content-card h3,
.step-card h2,
.step-card h3,
.region-card h2,
.region-card h3 {
    margin: 0 0 12px;
    color: var(--roe-moonbone);
    font-size: 27px;
    line-height: 1.15;
}

.content-card p,
.step-card p,
.region-card p {
    margin: 0;
    color: #aaa7b4;
}

.content-card ul {
    margin: 16px 0 0;
    padding-left: 20px;
    color: #bbb7c4;
}

.content-card li + li {
    margin-top: 8px;
}

.region-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.region-card {
    min-height: 190px;
    padding: 26px;
}

.region-card small,
.step-number {
    display: block;
    margin-bottom: 9px;
    color: var(--roe-echo-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    min-height: 235px;
}

.text-link {
    display: inline-block;
    margin-top: 17px;
    font-weight: 800;
    text-decoration: none;
}

.cta-panel {
    display: grid;
    margin: 10px 0 72px;
    padding: clamp(28px, 5vw, 46px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.1;
}

.cta-panel p {
    margin: 10px 0 0;
    color: #aaa7b4;
}

.cta-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.button {
    display: inline-flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
    color: #211506;
    border-color: #ffe6a0;
    background: linear-gradient(180deg, #ffe59a 0%, #d9aa55 52%, #9c6424 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 26px rgba(216, 170, 85, 0.14);
}

.button-primary:hover {
    filter: brightness(1.08);
}

.button-secondary {
    color: #d8d6e2;
    border-color: rgba(167, 174, 238, 0.42);
    background: rgba(51, 57, 117, 0.28);
}

.button-secondary:hover {
    border-color: rgba(185, 196, 255, 0.74);
    background: rgba(71, 79, 164, 0.44);
}

.site-footer {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #777584;
    border-top: 1px solid rgba(216, 170, 85, 0.15);
    font-size: 12px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer a {
    color: #9693a2;
    text-decoration: none;
}

.not-found-main {
    display: grid;
    min-height: calc(100vh - 201px);
    place-items: center;
    padding: 72px 0;
    text-align: center;
}

.not-found-main .eyebrow {
    margin-bottom: 10px;
}

.not-found-main h1 {
    margin-inline: auto;
}

.not-found-main .lede {
    margin-inline: auto;
}

.not-found-actions {
    display: grid;
    width: min(440px, 100%);
    margin: 34px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 820px) {
    .site-header {
        padding: 22px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .marketing-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 42px;
    }

    .hero-mark {
        width: min(260px, 76vw);
        justify-self: start;
    }

    .fact-grid,
    .region-grid,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .marketing-shell {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        min-height: 0;
    }

    .brand-link {
        width: min(245px, 76vw);
    }

    .site-nav {
        gap: 5px 14px;
        font-size: 10px;
    }

    .breadcrumb {
        margin-top: 22px;
    }

    .marketing-hero {
        padding: 38px 0 46px;
    }

    h1 {
        font-size: clamp(42px, 14vw, 62px);
    }

    .hero-mark {
        display: none;
    }

    .fact-grid,
    .content-grid,
    .region-grid,
    .step-grid,
    .cta-pair,
    .not-found-actions {
        grid-template-columns: 1fr;
    }

    .fact,
    .region-card,
    .step-card {
        min-height: 0;
    }

    .content-section {
        padding-bottom: 54px;
    }

    .cta-panel {
        margin-bottom: 54px;
        padding: 25px;
    }

    .site-footer {
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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