:root {
    color-scheme: dark;
    --ink: #07040a;
    --ink-soft: #130817;
    --plum: #321033;
    --violet: #7e37ff;
    --blue: #1fb6ff;
    --magenta: #ff35a6;
    --cherry: #ff174f;
    --cherry-dark: #7b082c;
    --silver: #f7f8ff;
    --silver-dim: #aeb6ca;
    --acid: #c6ff3d;
    --line: rgba(247, 248, 255, 0.18);
    --glass: rgba(12, 6, 16, 0.68);
    --shadow: rgba(0, 0, 0, 0.58);
    --display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
    --body: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--silver);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 23, 79, 0.26), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(126, 55, 255, 0.3), transparent 26rem),
        radial-gradient(circle at 52% 88%, rgba(31, 182, 255, 0.18), transparent 28rem),
        linear-gradient(135deg, var(--ink) 0%, #120616 40%, #28091f 72%, #040306 100%);
    font-family: var(--body);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
}

body::before {
    z-index: -2;
    background-image:
        linear-gradient(rgba(247, 248, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 248, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black 0 72%, transparent);
}

body::after {
    z-index: -1;
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(247, 248, 255, 0.88) 0 1px, transparent 1.7px),
        radial-gradient(circle, rgba(255, 53, 166, 0.62) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(198, 255, 61, 0.46) 0 1px, transparent 1.5px);
    background-position: 0 0, 17px 29px, 41px 8px;
    background-size: 79px 79px, 113px 113px, 151px 151px;
    animation: star-drift 18s linear infinite;
}

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

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.site-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    display: grid;
    min-height: 94vh;
    padding: 24px clamp(18px, 4vw, 58px) 36px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: auto -12vw -18vh -12vw;
    z-index: -2;
    height: 48vh;
    content: "";
    background:
        linear-gradient(100deg, transparent 0 18%, rgba(247, 248, 255, 0.2) 19% 20%, transparent 21% 34%, rgba(255, 23, 79, 0.36) 35% 36%, transparent 37%),
        linear-gradient(180deg, rgba(56, 19, 55, 0), rgba(255, 23, 79, 0.28));
    transform: rotate(-2deg);
}

.matrix-rain {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    color: rgba(198, 255, 61, 0.34);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 0 16px rgba(198, 255, 61, 0.45);
}

.matrix-rain span {
    position: absolute;
    top: -10%;
    writing-mode: vertical-rl;
    animation: rain-fall 9s linear infinite;
}

.matrix-rain span:nth-child(1) { left: 8%; animation-duration: 10s; }
.matrix-rain span:nth-child(2) { left: 19%; animation-duration: 13s; animation-delay: -7s; }
.matrix-rain span:nth-child(3) { left: 33%; animation-duration: 8s; animation-delay: -3s; }
.matrix-rain span:nth-child(4) { left: 48%; animation-duration: 12s; animation-delay: -9s; }
.matrix-rain span:nth-child(5) { left: 62%; animation-duration: 9s; animation-delay: -5s; }
.matrix-rain span:nth-child(6) { left: 74%; animation-duration: 15s; animation-delay: -11s; }
.matrix-rain span:nth-child(7) { left: 86%; animation-duration: 11s; animation-delay: -4s; }
.matrix-rain span:nth-child(8) { left: 94%; animation-duration: 14s; animation-delay: -8s; }

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: start;
    position: relative;
    z-index: 2;
}

.brand-mark,
.nav-link,
.button,
.charm,
.signal-card,
.drawer-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.brand-mark::after,
.nav-link::after,
.button::after,
.charm::after,
.signal-card::after,
.drawer-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, transparent 0 35%, rgba(247, 248, 255, 0.36) 48%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 520ms ease;
}

.brand-mark:hover::after,
.nav-link:hover::after,
.button:hover::after,
.charm:hover::after,
.signal-card:hover::after,
.drawer-card:hover::after {
    transform: translateX(120%);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px 8px 8px;
    border-radius: 999px;
    background: rgba(7, 4, 10, 0.66);
    font-weight: 800;
}

.brand-mark__sigil {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: linear-gradient(135deg, var(--silver), #ffc4dc 42%, var(--cherry));
    font-family: var(--display);
    font-size: 22px;
    line-height: 1;
}

.top-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nav-link {
    min-width: 76px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(19, 8, 23, 0.72);
    color: rgba(247, 248, 255, 0.84);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.hero__content {
    width: min(990px, 100%);
    align-self: center;
    position: relative;
    z-index: 1;
    padding: clamp(54px, 10vw, 116px) 0 clamp(38px, 8vw, 76px);
}

.kicker {
    margin: 0 0 14px;
    color: var(--acid);
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 9ch;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(68px, 17vw, 206px);
    font-weight: 900;
    line-height: 0.82;
    text-shadow:
        0 0 2px var(--silver),
        0 9px 0 rgba(255, 53, 166, 0.3),
        0 21px 0 rgba(31, 182, 255, 0.16),
        0 30px 70px rgba(255, 23, 79, 0.42);
}

.hero__lede {
    width: min(770px, 100%);
    margin: 28px 0 0;
    color: rgba(247, 248, 255, 0.84);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 650;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button,
.charm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.charm:hover,
.charm:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.brand-mark:hover,
.brand-mark:focus-visible,
.signal-card:hover,
.drawer-card:hover {
    border-color: rgba(247, 248, 255, 0.62);
    box-shadow: 0 0 0 1px rgba(247, 248, 255, 0.24), 0 22px 54px rgba(255, 23, 79, 0.28);
    transform: translateY(-2px);
}

.button--primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--silver), #ffc4dc 42%, var(--cherry));
}

.button--ghost,
.charm {
    color: var(--silver);
    background: rgba(7, 4, 10, 0.58);
}

.mood-orbit {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    bottom: clamp(86px, 15vw, 170px);
    width: min(310px, 42vw);
    aspect-ratio: 1;
    border: 1px dashed rgba(247, 248, 255, 0.2);
    border-radius: 50%;
    animation: slow-spin 18s linear infinite;
}

.mood-orbit__item {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 4, 10, 0.72);
    color: rgba(247, 248, 255, 0.86);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(126, 55, 255, 0.32);
}

.mood-orbit__item--one { left: -14px; top: 16%; }
.mood-orbit__item--two { right: -16px; top: 48%; }
.mood-orbit__item--three { left: 24%; bottom: -12px; }

.hero__reveal {
    align-self: end;
    color: rgba(247, 248, 255, 0.6);
    font-size: 13px;
    font-weight: 800;
}

.signal-band,
.content-band,
.spellbook {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.signal-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    transform: translateY(-30px);
}

.signal-card,
.drawer-card,
.spellbook__panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(247, 248, 255, 0.1), rgba(247, 248, 255, 0.025)),
        var(--glass);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.signal-card {
    min-height: 132px;
    padding: 18px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.signal-card__label,
.drawer-card__number {
    display: block;
    margin-bottom: 12px;
    color: var(--cherry);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.signal-card strong {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.08;
}

.content-band,
.spellbook {
    padding: clamp(54px, 10vw, 112px) 0;
}

.section-heading {
    width: min(790px, 100%);
}

h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(38px, 6.6vw, 78px);
    line-height: 0.96;
}

.drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.drawer-card {
    min-height: 274px;
    padding: 22px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.drawer-card h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.drawer-card p,
.spellbook__copy p {
    color: rgba(247, 248, 255, 0.74);
    font-size: 17px;
}

.spellbook {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: clamp(22px, 5vw, 68px);
    align-items: center;
}

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

.charm {
    min-height: 86px;
    border-radius: 8px;
}

.site-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 42px;
    color: rgba(247, 248, 255, 0.6);
    font-size: 14px;
    font-weight: 800;
}

.silver-burst {
    position: fixed;
    z-index: 99;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    pointer-events: none;
    background: var(--silver);
    box-shadow:
        0 0 8px var(--silver),
        0 0 18px var(--silver),
        0 0 30px rgba(255, 53, 166, 0.85);
    animation: burst 680ms ease-out forwards;
}

@keyframes rain-fall {
    from { transform: translateY(-20vh); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 0.85; }
    to { transform: translateY(118vh); opacity: 0; }
}

@keyframes star-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-79px, 79px, 0); }
}

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes burst {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(var(--burst-x), var(--burst-y)) scale(0.2);
    }
}

@media (max-width: 860px) {
    .mood-orbit {
        display: none;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 92vh;
    }

    .top-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav__links {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-link {
        flex: 1 1 88px;
    }

    .signal-band,
    .drawer-grid,
    .spellbook {
        grid-template-columns: 1fr;
    }

    .signal-band {
        transform: none;
    }

    .content-band,
    .spellbook {
        padding: 54px 0;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

