:root {
    --bg: #070b12;
    --bg2: #091522;

    --text: #f5f7fb;
    --muted: #8995a6;
    --faint: #586476;

    --line: rgba(255,255,255,.085);
    --line-hot: rgba(116,222,255,.25);

    --cyan: #64e2ff;
    --blue: #6c9dff;
    --violet: #9e79ff;
    --pink: #ed7bc5;

    --mx: 50vw;
    --my: 30vh;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;

    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            1000px 800px at -5% -5%,
            rgba(128,58,180,.19),
            transparent 65%
        ),
        radial-gradient(
            1100px 900px at 108% 9%,
            rgba(44,162,203,.17),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #070910,
            #07111c 52%,
            #091724
        );
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -5;

    pointer-events: none;

    background:
        radial-gradient(
            540px circle at var(--mx) var(--my),
            rgba(99,213,255,.075),
            transparent 66%
        );
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -4;

    pointer-events: none;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(255,255,255,.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.022) 1px,
            transparent 1px
        );

    background-size: 84px 84px;

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            transparent 80%
        );
}

.shell {
    width: min(1220px, calc(100% - 48px));
    margin-inline: auto;
}


/* AURORA */

.aurora {
    position: fixed;

    width: 700px;
    height: 700px;

    z-index: -6;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    opacity: .14;
}

.aurora-a {
    left: -240px;
    top: -220px;

    background: #d35dff;

    animation:
        drift-a 20s ease-in-out infinite alternate;
}

.aurora-b {
    right: -230px;
    top: 10vh;

    background: #42cfff;

    animation:
        drift-b 24s ease-in-out infinite alternate;
}

.aurora-c {
    left: 40%;
    top: 58vh;

    background: #775aff;

    opacity: .07;

    animation:
        drift-c 28s ease-in-out infinite alternate;
}

@keyframes drift-a {
    to {
        transform:
            translate(160px, 110px)
            scale(1.12);
    }
}

@keyframes drift-b {
    to {
        transform:
            translate(-150px, 130px)
            scale(.9);
    }
}

@keyframes drift-c {
    to {
        transform:
            translate(120px, -140px);
    }
}


/* TOP BAR */

.topbar {
    height: 88px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 720;
}

.brand-mark {
    position: relative;

    width: 23px;
    aspect-ratio: 1;

    border-radius: 7px;

    background:
        linear-gradient(
            140deg,
            var(--cyan),
            var(--violet)
        );

    box-shadow:
        0 0 30px rgba(103,214,255,.18);
}

.brand-mark::after {
    content: "";

    position: absolute;
    inset: 5px;

    border-radius: 4px;

    background: #09101a;
}

.top-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--muted);

    font-size: 12px;
}

.divider {
    opacity: .35;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6ef2ba;

    box-shadow:
        0 0 0 5px rgba(110,242,186,.06),
        0 0 18px rgba(110,242,186,.45);
}


/* HERO */

.hero {
    min-height: 670px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(360px, .8fr);

    align-items: center;

    gap: 70px;

    padding: 96px 0 80px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.kicker {
    color: var(--cyan);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .19em;

    text-transform: uppercase;
}

h1 {
    margin: 29px 0 0;

    font-size:
        clamp(78px, 10vw, 150px);

    line-height: .78;

    letter-spacing: -.085em;

    font-weight: 840;
}

.hero-accent {
    background:
        linear-gradient(
            100deg,
            #f7f7ff 0%,
            #b9c8ff 28%,
            #ac7dff 63%,
            #6ee1ff 100%
        );

    color: transparent;

    background-clip: text;
    -webkit-background-clip: text;

    background-size: 220% 100%;

    animation:
        title-flow 11s ease-in-out infinite alternate;
}

@keyframes title-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

.lead {
    max-width: 610px;

    margin: 40px 0 0;

    color: #9aa7b8;

    font-size: 19px;
    line-height: 1.6;

    letter-spacing: -.016em;
}

.hero-actions {
    display: flex;
    gap: 10px;

    margin-top: 34px;
}

.button {
    min-height: 46px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 999px;

    background:
        rgba(255,255,255,.04);

    color: var(--text);

    text-decoration: none;

    font-size: 13px;
    font-weight: 680;

    backdrop-filter: blur(18px);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.button img {
    width: 15px;
    height: 15px;

    filter: invert(1);

    opacity: .72;
}

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

    border-color:
        rgba(112,218,255,.25);

    background:
        rgba(255,255,255,.07);
}

.button.primary {
    border: 0;

    color: #09101a;

    background:
        linear-gradient(
            110deg,
            #6ee6ff,
            #9c81ff
        );

    box-shadow:
        0 10px 36px rgba(100,188,255,.1);
}

.button.primary img {
    filter: none;
}

.hero-signals {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 52px;

    color: #566275;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.hero-signals i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #667186;
}


/* HERO OBJECT */

.hero-stage {
    position: relative;

    min-height: 430px;

    display: grid;
    place-items: center;
}

.halo {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.075);
}

.halo-1 {
    width: 360px;
    height: 360px;
}

.halo-2 {
    width: 278px;
    height: 278px;
}

.halo-3 {
    width: 194px;
    height: 194px;

    border-color:
        rgba(103,219,255,.16);
}

.core {
    position: relative;

    width: 128px;
    height: 128px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.25),
            transparent 20%
        ),
        linear-gradient(
            145deg,
            rgba(89,222,255,.55),
            rgba(138,94,255,.52)
        );

    box-shadow:
        0 0 80px rgba(82,199,255,.22),
        0 0 150px rgba(143,92,255,.10);

    animation:
        core-float 7s ease-in-out infinite;
}

.core::before {
    content: "";

    position: absolute;
    inset: -80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(94,210,255,.10),
            transparent 66%
        );
}

.core-inner {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #9eeeff,
            #a67cff
        );

    box-shadow:
        0 0 36px rgba(127,209,255,.55);
}

@keyframes core-float {
    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-11px)
            scale(1.025);
    }
}

.stage-tag {
    position: absolute;

    padding: 9px 12px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 11px;

    background:
        rgba(9,14,23,.68);

    backdrop-filter: blur(18px);

    color: var(--muted);

    font-size: 10px;
}

.stage-tag-a {
    top: 60px;
    right: 15px;
}

.stage-tag-b {
    bottom: 55px;
    left: 10px;
}


/* FIELD */

.field {
    padding: 50px 0 120px;
}

.field-head {
    margin-bottom: 36px;

    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 50px;
}

.field-head h2 {
    margin: 17px 0 0;

    font-size:
        clamp(38px, 5vw, 61px);

    line-height: .96;

    letter-spacing: -.055em;
}

.field-head > p {
    max-width: 390px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}


/* BENTO */

.bento {
    display: grid;

    grid-template-columns:
        1.15fr .85fr .85fr;

    grid-template-rows:
        290px 290px;

    gap: 14px;
}

.panel {
    position: relative;

    overflow: hidden;

    padding: 25px;

    border:
        1px solid var(--line);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055);

    backdrop-filter:
        blur(22px)
        saturate(125%);

    transition:
        transform .28s ease,
        border-color .28s ease,
        background .28s ease;
}

.panel::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: var(--px, 50%);
    top: var(--py, 50%);

    transform:
        translate(-50%, -50%);

    pointer-events: none;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(114,216,255,.09),
            transparent 68%
        );

    opacity: 0;

    transition:
        opacity .28s ease;
}

.panel:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(120,213,255,.18);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.072),
            rgba(255,255,255,.021)
        );
}

.panel:hover::before {
    opacity: 1;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #5e697b;

    font-size: 10px;

    letter-spacing: .12em;
}

.panel-icon {
    width: 20px;
    height: 20px;

    opacity: .7;

    filter:
        brightness(0)
        invert(1);
}

.panel h3 {
    margin: 18px 0 8px;

    font-size: 24px;

    letter-spacing: -.04em;
}

.panel p {
    max-width: 420px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.55;
}

.panel-compose {
    grid-row: span 2;
}

.panel-motion {
    grid-column: 2 / 4;
}

.panel-material {
    display: none;
}


/* COMPOSITION SCENE */

.layout-scene {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    height: 290px;
}

.layout-scene span {
    position: absolute;

    display: block;

    border:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.035);

    border-radius: 15px;
}

.layout-a {
    left: 0;
    top: 10px;

    width: 58%;
    height: 72px;
}

.layout-b {
    right: 0;
    top: 10px;

    width: 37%;
    height: 150px;

    background:
        linear-gradient(
            145deg,
            rgba(99,214,255,.13),
            rgba(142,97,255,.08)
        ) !important;
}

.layout-c {
    left: 0;
    top: 95px;

    width: 58%;
    height: 150px;
}

.layout-d {
    right: 0;
    bottom: 0;

    width: 37%;
    height: 92px;
}

.layout-e {
    left: 18px;
    bottom: 18px;

    width: 32%;
    height: 40px;

    border-radius: 999px !important;

    background:
        linear-gradient(
            100deg,
            rgba(102,225,255,.42),
            rgba(160,103,255,.32)
        ) !important;
}


/* COLOR */

.color-scene {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    display: flex;
    gap: 8px;
}

.color-scene span {
    flex: 1;

    height: 76px;

    border-radius: 17px;

    border:
        1px solid rgba(255,255,255,.09);
}

.color-scene span:nth-child(1) {
    background: #0c121d;
}

.color-scene span:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #66e3ff,
            #378bb6
        );
}

.color-scene span:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #af80ff,
            #6743b7
        );
}

.color-scene span:nth-child(4) {
    background:
        linear-gradient(
            145deg,
            #f27ec7,
            #8b4bb6
        );
}


/* TYPE */

.type-scene {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 23px;
}

.type-big {
    display: block;

    font-size: 66px;
    line-height: .9;

    font-weight: 830;

    letter-spacing: -.08em;
}

.type-line {
    width: 100%;
    height: 6px;

    display: block;

    margin-top: 18px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.17),
            rgba(255,255,255,.03)
        );
}

.type-line.short {
    width: 55%;

    margin-top: 9px;
}


/* MOTION */

.panel-motion {
    display: grid;

    grid-template-columns:
        .7fr 1.3fr;

    align-items: center;

    gap: 30px;
}

.motion-copy h3 {
    margin-top: 20px;
}

.motion-scene {
    position: relative;

    height: 150px;
}

.motion-scene span {
    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            var(--violet),
            transparent
        );

    background-size:
        220% 100%;

    opacity: .25;

    animation:
        wave 4s linear infinite;
}

.motion-scene span:nth-child(1) {
    top: 20px;
}

.motion-scene span:nth-child(2) {
    top: 48px;

    animation-delay: -.7s;
}

.motion-scene span:nth-child(3) {
    top: 76px;

    animation-delay: -1.4s;
}

.motion-scene span:nth-child(4) {
    top: 104px;

    animation-delay: -2.1s;
}

.motion-scene span:nth-child(5) {
    top: 132px;

    animation-delay: -2.8s;
}

@keyframes wave {
    to {
        background-position:
            -220% 0;
    }
}


/* JOURNAL */

.journal {
    padding: 30px 0 130px;
}

.journal-head {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 28px;
}

.journal h2 {
    margin: 16px 0 0;

    font-size: 40px;

    letter-spacing: -.05em;
}

.journal-icon {
    width: 25px;
    height: 25px;

    opacity: .35;

    filter:
        brightness(0)
        invert(1);
}

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

.log-row {
    min-height: 98px;

    display: grid;

    grid-template-columns:
        90px 1fr auto;

    align-items: center;

    gap: 20px;

    border-bottom:
        1px solid var(--line);

    transition:
        padding .2s ease,
        background .2s ease;
}

.log-row:hover {
    padding-left: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(102,222,255,.035),
            transparent 58%
        );
}

.log-version {
    color: #647084;

    font-size: 12px;
}

.log-row strong {
    font-size: 15px;
}

.log-row p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.log-state {
    color: #667286;

    font-size: 11px;
}

.log-row.current .log-state {
    color: var(--cyan);
}

.log-row.future {
    opacity: .52;
}


/* FOOTER */

.footer {
    min-height: 115px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top:
        1px solid var(--line);

    color: #536073;

    font-size: 10px;
}


/* DOCK */

.mode-dock {
    position: fixed;

    left: 50%;
    bottom: 18px;

    z-index: 40;

    transform:
        translateX(-50%);

    padding: 4px;

    display: flex;
    gap: 2px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 999px;

    background:
        rgba(8,12,19,.74);

    box-shadow:
        0 14px 50px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.05);

    backdrop-filter: blur(22px);
}

.mode-dock button {
    border: 0;

    padding: 7px 11px;

    border-radius: 999px;

    background: transparent;

    color: #677286;

    font: inherit;
    font-size: 10px;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.mode-dock button.active {
    color: #e8edf5;

    background:
        rgba(255,255,255,.075);
}


/* MODES */

body[data-mode="cold"] {
    --cyan: #6aeaff;
    --blue: #58b7ff;
    --violet: #6e8fff;
    --pink: #72dcff;
}

body[data-mode="violet"] {
    --cyan: #b6dcff;
    --blue: #8589ff;
    --violet: #bf76ff;
    --pink: #fb79ca;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .shell {
        width:
            min(100% - 30px, 720px);
    }

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 74px;
    }

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

    .field-head {
        display: block;
    }

    .field-head > p {
        margin-top: 18px;
    }

    .bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .panel {
        min-height: 270px;
    }

    .panel-compose,
    .panel-motion {
        grid-row: auto;
        grid-column: auto;
    }

    .panel-motion {
        display: block;
    }

    .motion-scene {
        margin-top: 25px;
    }

}

@media (max-width: 600px) {

    .top-meta {
        display: none;
    }

    h1 {
        font-size:
            clamp(68px, 23vw, 100px);
    }

    .lead {
        font-size: 17px;
    }

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

    .button {
        justify-content: center;
    }

    .log-row {
        grid-template-columns:
            50px 1fr;

        padding: 18px 0;
    }

    .log-state {
        display: none;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

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

}
