:root {
    --bg: #060814;
    --bg-soft: #0d1224;
    --panel: rgba(12, 18, 34, 0.82);
    --panel-strong: rgba(8, 12, 24, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f6fb;
    --muted: #a7b1c8;
    --gold: #f4c95d;
    --cyan: #79d7ff;
    --rose: #ff9ac3;
    --violet: #9588ff;
    --emerald: #64f2bf;
    --danger: #ff8275;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --font-heading: "Cinzel", serif;
    --font-body: "Instrument Sans", sans-serif;
    --page-accent: var(--gold);
    --page-accent-soft: rgba(244, 201, 93, 0.22);
    --page-glow: rgba(121, 215, 255, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(121, 215, 255, 0.12), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(149, 136, 255, 0.14), transparent 26%),
        radial-gradient(circle at 10% 30%, rgba(244, 201, 93, 0.1), transparent 22%),
        linear-gradient(180deg, #090d1a 0%, #060814 50%, #04060e 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, transparent 48%),
        linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0.55;
    mix-blend-mode: screen;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-shell {
    position: relative;
    /* Keep decorative layers from creating side-scroll without clipping pages. */
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.page-shell::before {
    top: 110px;
    left: -120px;
    background: var(--page-accent-soft);
}

.page-shell::after {
    right: -140px;
    bottom: 10vh;
    background: var(--page-glow);
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--page-accent), var(--cyan));
    z-index: 90;
    box-shadow: 0 0 18px rgba(121, 215, 255, 0.45);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 16, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    padding: 0.45rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.brand__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand__meta strong {
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
}

.brand__meta span {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 7px 0;
    background: currentColor;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav__links a {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.25s ease;
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--page-accent), #fff1bc);
    color: #1d1606;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(244, 201, 93, 0.24);
}

.hero {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    z-index: 1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--page-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: 0.95;
    margin: 0.9rem 0 1rem;
}

.hero__tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #e8edf9;
    max-width: 52ch;
    margin: 0 0 1rem;
}

.hero__intro {
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.75;
    margin: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--page-accent), #fff0aa);
    color: #171108;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(244, 201, 93, 0.18);
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.hero-stage {
    position: relative;
    min-height: 500px;
    perspective: 1400px;
}

.hero-stage__core {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.orbital-logo {
    position: relative;
    width: min(480px, 92%);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    animation: floatStage 9s ease-in-out infinite;
}

.orbital-logo__ring,
.orbital-logo__ring::before,
.orbital-logo__ring::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.orbital-logo__ring {
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotateX(66deg);
    box-shadow: 0 0 40px rgba(121, 215, 255, 0.12);
}

.orbital-logo__ring::before,
.orbital-logo__ring::after {
    content: "";
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.orbital-logo__ring::before {
    transform: rotateY(70deg);
}

.orbital-logo__ring::after {
    transform: rotateX(24deg) rotateY(20deg);
}

.orbital-logo__seal {
    position: absolute;
    inset: 16%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.22), transparent 40%),
        radial-gradient(circle at 50% 52%, rgba(121, 215, 255, 0.18), transparent 62%),
        linear-gradient(180deg, rgba(17, 26, 50, 0.92), rgba(8, 13, 26, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.orbital-logo__seal img {
    width: 42%;
    filter: drop-shadow(0 0 28px rgba(244, 201, 93, 0.35));
}

.stage-card {
    position: absolute;
    width: 180px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(16, 22, 39, 0.88), rgba(9, 13, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.stage-card strong {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
    color: var(--page-accent);
}

.stage-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.stage-card--a {
    top: 8%;
    left: 0;
    transform: rotateY(24deg) rotateX(7deg);
}

.stage-card--b {
    right: 2%;
    top: 22%;
    transform: rotateY(-20deg) rotateX(8deg);
}

.stage-card--c {
    left: 9%;
    bottom: 8%;
    transform: rotateY(18deg) rotateX(-8deg);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card,
.panel-card,
.journey-card,
.fact-card,
.cta-banner,
.sequence-nav,
.live-card,
.rule-card,
.store-card,
.boss-card,
.quote-panel {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 22, 38, 0.86), rgba(10, 14, 24, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.15rem;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.metric-card strong {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--page-accent);
}

.section {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.section__head {
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.section__head h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.panel-card,
.journey-card,
.fact-card,
.live-card,
.rule-card,
.store-card,
.boss-card,
.quote-panel {
    padding: 1.25rem;
}

.panel-card h3,
.journey-card h3,
.fact-card h3,
.live-card h3,
.rule-card h3,
.store-card h3,
.boss-card h3 {
    margin: 0 0 0.55rem;
    font-family: var(--font-heading);
    color: #fff4c7;
}

.panel-card p,
.journey-card p,
.fact-card p,
.live-card p,
.rule-card p,
.store-card p,
.boss-card p,
.quote-panel p,
.rule-card li,
.store-card li,
.boss-card li {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.journey-grid,
.facts-grid,
.live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--page-accent);
    font-weight: 700;
}

.fact-card ul,
.rule-card ul,
.boss-card ul {
    margin: 0;
    padding-left: 1rem;
}

.fact-card li + li,
.rule-card li + li,
.boss-card li + li {
    margin-top: 0.5rem;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem;
}

.cta-banner p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.sequence-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.sequence-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 48%;
}

.sequence-link small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sequence-link strong {
    font-family: var(--font-heading);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0 3rem;
}

.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    min-width: 240px;
    max-width: 360px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    color: var(--text);
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hidden {
    display: none !important;
}

@keyframes floatStage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
    .hero__grid,
    .cta-banner,
    .site-footer__grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .metrics,
    .panel-grid,
    .journey-grid,
    .facts-grid,
    .live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stage {
        min-height: 420px;
    }

    .stage-card {
        width: 150px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(8, 11, 20, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .site-nav__links.is-open {
        display: flex;
    }

    .metrics,
    .panel-grid,
    .journey-grid,
    .facts-grid,
    .live-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-stage {
        min-height: 360px;
    }

    .stage-card {
        position: static;
        width: auto;
        margin-top: 0.75rem;
        transform: none;
    }

    .orbital-logo {
        width: min(340px, 100%);
    }

    .cta-actions,
    .sequence-nav {
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }

    .sequence-link {
        max-width: 100%;
    }
}

/* Information pages are reading-first. The launch-scene composition belongs
   only to the portal front, not to every detail page. */
body:not(.portal-page) .hero {
    padding: 6.6rem 0 1.4rem;
}

body:not(.portal-page) .hero__grid {
    grid-template-columns: minmax(0, 780px);
    justify-content: start;
}

body:not(.portal-page) .hero h1 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
}

body:not(.portal-page) .hero__intro {
    max-width: 66ch;
}

body:not(.portal-page) .hero-stage {
    display: none;
}

body:not(.portal-page) .metrics {
    max-width: 780px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.6rem;
}

body:not(.portal-page) .metric-card {
    padding: .9rem;
    border-radius: 14px;
    box-shadow: none;
}

body:not(.portal-page) .section {
    padding: 1.35rem 0;
}

body:not(.portal-page) .section__head {
    margin-bottom: 1rem;
}

body:not(.portal-page) .panel-card,
body:not(.portal-page) .fact-card,
body:not(.portal-page) .live-card,
body:not(.portal-page) .rule-card,
body:not(.portal-page) .store-card,
body:not(.portal-page) .boss-card {
    border-radius: 16px;
    box-shadow: none;
}

@media (max-width: 760px) {
    body:not(.portal-page) .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.brief-hero { position: relative; z-index: 1; padding: 8.5rem 0 3.2rem; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(121,215,255,.08), transparent 48%), linear-gradient(180deg, rgba(8,13,27,.84), rgba(8,13,27,.15)); }
.brief-hero__inner { max-width: 820px; }.brief-hero h1 { max-width: 15ch; margin: .7rem 0; font: clamp(2.6rem, 5vw, 4.5rem)/1.04 var(--font-heading); letter-spacing: -.04em; }.brief-hero__tagline { max-width: 58ch; margin: 0; color: #d8e8fb; font-size: clamp(1.06rem, 2vw, 1.28rem); line-height: 1.55; }.brief-hero__intro { max-width: 66ch; margin: .8rem 0 0; color: var(--muted); line-height: 1.7; }.brief-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.editorial-main { position: relative; z-index: 1; }.editorial-section { padding: clamp(3rem, 7vw, 6.2rem) 0; }.editorial-section--tint { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.editorial-heading { max-width: 710px; margin-bottom: 2rem; }.editorial-heading h2 { margin: .45rem 0; font: clamp(1.9rem, 3.8vw, 3.3rem)/1.12 var(--font-heading); letter-spacing: -.035em; }.editorial-heading p:last-child { color: var(--muted); line-height: 1.7; }.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }.editorial-grid .panel-card, .editorial-grid .rule-card { min-height: 220px; padding: 1.35rem; border: 0; border-radius: 0; background: rgba(10,15,28,.94); box-shadow: none; }.editorial-grid .panel-card h3 { margin-top: 2rem; }.editorial-grid--rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }.editorial-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }.editorial-facts .fact-card { border-radius: 0; box-shadow: none; background: transparent; }.editorial-main .cta-banner { border-radius: 0; box-shadow: none; }
@media (max-width: 760px) { .brief-hero { padding: 6.4rem 0 2.5rem; }.editorial-grid, .editorial-grid--rules, .editorial-facts { grid-template-columns: 1fr; } }
