@font-face {
    font-family: "WireFrame";
    src: url("./assets/fonts/wireframe-regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "WireFrame";
    src: url("./assets/fonts/wireframe-italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0c0e11;
    --bg-2: #12161b;
    --plate: linear-gradient(180deg, rgba(30, 34, 40, 0.9) 0%, rgba(14, 17, 22, 0.96) 100%);
    --plate-strong: linear-gradient(180deg, rgba(38, 42, 49, 0.94) 0%, rgba(16, 19, 24, 0.98) 100%);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --text: #f2f4f6;
    --text-muted: rgba(242, 244, 246, 0.74);
    --accent: #ffffff;
    --cut: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 30%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    color: var(--text);
    overflow-x: hidden;
}

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

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

.page-shell {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    isolation: isolate;
}

[id] {
    scroll-margin-top: 1.5rem;
}

.hero-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 12, 16, 0.28) 0%, rgba(8, 11, 15, 0.9) 100%),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, #151a21 0%, #090c11 100%);
    background-size:
        auto,
        auto,
        96px 96px,
        96px 96px,
        auto;
    background-position:
        center,
        center,
        center,
        center,
        center;
    transform: scale(1.01);
}

.projection-sweep {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    --band-left: -50vw;
    transition: opacity 280ms ease;
}

.projection-sweep::after {
    content: none;
}

.projection-sweep.is-running {
    opacity: 1;
}

.projection-window {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--band-left);
    width: 50vw;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 10%,
        rgba(255, 255, 255, 0.92) 31%,
        rgba(255, 255, 255, 0.92) 69%,
        rgba(255, 255, 255, 0.12) 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 10%,
        rgba(255, 255, 255, 0.92) 31%,
        rgba(255, 255, 255, 0.92) 69%,
        rgba(255, 255, 255, 0.12) 90%,
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.projection-layer {
    position: absolute;
    top: -4%;
    bottom: -4%;
    left: calc(-1 * var(--band-left));
    width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    transition: opacity 900ms ease;
}

.projection-layer.is-active {
    opacity: 0.64;
}

.topbar,
main,
.footer {
    position: relative;
    z-index: 1;
}

.topbar {
    width: min(1220px, calc(100vw - 3.2rem));
    margin: 0 auto;
    padding: 1.25rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-shadow:
        0 0 12px rgba(197, 244, 255, 0.18),
        0 0 28px rgba(144, 232, 255, 0.08);
}

.brand-mark,
.button,
.metal-surface,
.section-band,
.screens,
.faq-strip,
.lightbox {
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.topnav {
    display: inline-flex;
    gap: 1.2rem;
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 0.84rem;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--text);
}

main,
.footer {
    width: min(1220px, calc(100vw - 3.2rem));
    margin: 0 auto;
}

main {
    padding: 1.9rem 0 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.metal-surface,
.section-band,
.screens,
.faq-strip {
    position: relative;
    background: var(--plate);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-band,
.screens,
.faq-strip,
.about-dev {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.metal-surface::before,
.section-band::before,
.screens::before,
.faq-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%);
}

.hero-copy {
    padding: clamp(1.45rem, 4vw, 2.5rem);
}

.hero-rail {
    padding: 1.35rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--plate-strong);
}

.eyebrow,
.rail-kicker {
    margin: 0 0 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    color: var(--accent);
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    text-shadow: 0 0 12px rgba(163, 236, 255, 0.12);
}

h1,
h2 {
    margin: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

h1 {
    font-family: "WireFrame", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 4.7vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.07em;
    max-width: 12ch;
    line-height: 0.93;
    color: #fbfeff;
    -webkit-text-stroke: 0.45px rgba(214, 247, 255, 0.44);
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(181, 241, 255, 0.42),
        0 0 10px rgba(96, 222, 255, 0.26),
        0 0 18px rgba(49, 146, 255, 0.16),
        0 0 28px rgba(68, 35, 255, 0.08);
}

h2 {
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(1.18rem, 2.35vw, 1.82rem);
    letter-spacing: 0.02em;
    max-width: 16ch;
    text-shadow:
        0 0 8px rgba(210, 242, 255, 0.12),
        0 0 18px rgba(106, 181, 255, 0.08);
}

.lede,
.hero-note,
.section-columns p,
.section-note,
.rail-note,
.about-copy p,
.footer,
details p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

.hero-note {
    max-width: 62ch;
}

.hero-actions,
.cta-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 1.55rem 0 1.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-weight: 650;
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button-primary {
    background: linear-gradient(180deg, #f4f6f8 0%, #dce1e6 100%);
    color: #111419;
}

.button-discord {
    background: linear-gradient(180deg, rgba(125, 143, 255, 0.26), rgba(70, 89, 210, 0.22));
    color: #eef2ff;
    border-color: rgba(153, 168, 255, 0.34);
    box-shadow:
        0 0 18px rgba(113, 137, 255, 0.16),
        inset 0 0 18px rgba(180, 195, 255, 0.04);
}

.button-discord:hover,
.button-discord:focus-visible {
    border-color: rgba(176, 189, 255, 0.5);
    background: linear-gradient(180deg, rgba(136, 154, 255, 0.34), rgba(79, 98, 222, 0.28));
}

.rail-list,
.step-strip {
    margin: 0;
    padding-left: 1.05rem;
}

.rail-list {
    color: var(--text);
    line-height: 1.7;
    display: grid;
    gap: 0.45rem;
}

.rail-note {
    margin: 1.4rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

.section-band,
.screens,
.faq-strip,
.about-dev {
    margin-top: 1rem;
    padding: 1.35rem;
}

.section-heading {
    margin-bottom: 1rem;
}

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

.section-columns p,
.section-note {
    margin: 0;
    max-width: 60ch;
}

.section-band-strong {
    background: var(--plate-strong);
}

.step-strip {
    list-style: decimal-leading-zero;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    color: var(--text);
}

.step-strip li {
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    line-height: 1.65;
}

.section-note {
    margin-top: 1rem;
}

.screens {
    background: linear-gradient(180deg, rgba(28, 31, 36, 0.92) 0%, rgba(12, 15, 20, 0.97) 100%);
}

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

.screen-card {
    appearance: none;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(36, 40, 46, 0.86), rgba(13, 16, 20, 0.94));
    color: inherit;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
    overflow: hidden;
    font-size: 0;
}

.screen-card:hover,
.screen-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
}

.screen-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.screen-card picture,
.about-dev picture {
    display: block;
    width: 100%;
}

.screen-card picture {
    background: #0a0d11;
}

.about-dev picture {
    justify-self: end;
}

.faq-strip {
    background: linear-gradient(180deg, rgba(24, 27, 32, 0.92), rgba(11, 13, 17, 0.97));
}

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

.faq-item {
    margin: 0;
    padding: 1rem 1.05rem 1.1rem;
    background: linear-gradient(180deg, rgba(31, 34, 39, 0.7), rgba(16, 18, 23, 0.82));
    border: 1px solid var(--line-soft);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.faq-item h3 {
    margin: 0 0 0.55rem;
    font-family: "Aptos Narrow", "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(174, 234, 255, 0.08);
}

.faq-item p {
    margin: 0;
}

.faq-item .button {
    margin-top: 0.95rem;
}

.about-dev {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1rem;
    align-items: start;
}

.about-art {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.footer {
    padding: 1.4rem 0 2.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-discord {
    flex: 0 0 auto;
}

.lightbox {
    width: min(92vw, 460px);
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 16, 21, 0.96);
    color: var(--text);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.76);
}

.lightbox img {
    width: 100%;
}

.lightbox-close {
    margin-left: auto;
    margin-bottom: 0.75rem;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0.65rem 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .hero,
    .section-columns,
    .faq-grid,
    .about-dev {
        grid-template-columns: 1fr;
    }

    .step-strip {
        grid-template-columns: 1fr;
    }

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

    .about-dev picture {
        max-width: 380px;
    }
}

@media (max-width: 720px) {
    .topbar,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    main,
    .footer,
    .topbar {
        width: min(100vw - 1.5rem, 100%);
    }

    main {
        padding-top: 1rem;
    }

    .hero-copy,
    .hero-rail,
    .section-band,
    .screens,
    .faq-strip,
    .about-dev {
        padding: 1rem;
    }

    .screen-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .about-dev picture {
        max-width: 100%;
    }
}

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

    .button,
    .screen-card {
        transition: none;
    }
}
