:root {
    color-scheme: dark;
    --ink: #07090d;
    --panel: #0d1118;
    --panel-high: #131925;
    --line: rgba(149, 177, 205, 0.2);
    --text: #edf4fa;
    --muted: #90a0b2;
    --cyan: #5ee7f5;
    --violet: #9c7cff;
    --coral: #ff6d5a;
    --green: #76f5b3;
    --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", ui-monospace, monospace;
    --sans: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 18% -10%, rgba(94, 231, 245, 0.13), transparent 34rem),
        radial-gradient(circle at 100% 18%, rgba(156, 124, 255, 0.1), transparent 30rem),
        linear-gradient(180deg, #090c12 0%, var(--ink) 70%);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(116, 145, 172, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 145, 172, 0.055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.scanline {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0.05;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, #fff 4px);
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    border: 1px solid rgba(94, 231, 245, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 28px rgba(94, 231, 245, 0.14);
}

.brand span {
    display: grid;
    gap: 2px;
}

.brand strong {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.24em;
}

.brand em {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.69rem;
    font-style: normal;
    letter-spacing: 0.31em;
}

.access-state {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px var(--green);
}

main {
    min-height: calc(100vh - 190px);
}

.hero {
    position: relative;
    padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 108px);
}

.hero::after {
    position: absolute;
    top: 18%;
    right: -4%;
    width: clamp(190px, 28vw, 390px);
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgba(94, 231, 245, 0.14);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(94, 231, 245, 0.16) 50%, transparent 50.2%),
        linear-gradient(transparent 49.8%, rgba(94, 231, 245, 0.16) 50%, transparent 50.2%);
    box-shadow: inset 0 0 80px rgba(94, 231, 245, 0.025);
    opacity: 0.65;
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-bottom: 28px;
    font-size: clamp(3.3rem, 7.4vw, 7.3rem);
    font-weight: 540;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

h1 span {
    color: transparent;
    background: linear-gradient(100deg, var(--cyan), #b9f8ff 46%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
}

.lede {
    position: relative;
    z-index: 1;
    max-width: 690px;
    margin-bottom: 0;
    color: #aab8c7;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.7;
}

.hero-authenticated {
    padding-bottom: 76px;
}

.hero-authenticated h1 {
    font-size: clamp(3rem, 6vw, 6rem);
}

.hero-authenticated form {
    position: absolute;
    right: 0;
    bottom: 76px;
}

.text-button {
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 109, 90, 0.5);
    color: var(--coral);
    background: transparent;
    font: 600 0.69rem/1 var(--mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: clamp(48px, 8vw, 112px);
    align-items: center;
    min-height: calc(100vh - 194px);
    padding-block: 54px;
}

.login-copy {
    padding: 40px 0;
}

.login-copy h1 {
    font-size: clamp(3.4rem, 7vw, 6.7rem);
}

.platform-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.platform-line span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel {
    position: relative;
    padding: clamp(30px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(94, 231, 245, 0.24);
    background: linear-gradient(150deg, rgba(19, 25, 37, 0.98), rgba(10, 14, 21, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.login-panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 3px;
    content: "";
    background: var(--cyan);
    box-shadow: 72px 0 var(--violet), 144px 0 var(--coral);
}

.login-panel > img {
    margin-bottom: 36px;
    border-radius: 21px;
    box-shadow: 0 0 42px rgba(94, 231, 245, 0.16);
}

.login-panel h2,
.section-heading h2,
.status-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 560;
    letter-spacing: -0.035em;
}

.login-panel > p:not(.eyebrow):not(.form-error):not(.privacy-note) {
    margin-bottom: 30px;
    color: var(--muted);
    line-height: 1.6;
}

.login-panel form {
    display: grid;
    gap: 10px;
}

.login-panel label {
    color: #bdc9d5;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.login-panel input {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid rgba(149, 177, 205, 0.3);
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: #080b10;
    font: 1rem var(--mono);
    transition: border-color 150ms, box-shadow 150ms;
}

.login-panel input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(94, 231, 245, 0.1);
}

.login-panel button,
.download-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px solid var(--cyan);
    color: #071116;
    background: var(--cyan);
    font: 700 0.73rem/1 var(--mono);
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 150ms, background 150ms, box-shadow 150ms;
}

.login-panel button:hover,
.download-button:hover {
    background: #b4f8ff;
    box-shadow: 0 8px 32px rgba(94, 231, 245, 0.18);
    transform: translateY(-2px);
}

.form-error {
    margin-bottom: 20px;
    padding: 10px 12px;
    border-left: 2px solid var(--coral);
    color: #ff9d91;
    background: rgba(255, 109, 90, 0.07);
    font-size: 0.83rem;
}

.privacy-note {
    margin: 22px 0 0;
    color: #6f7d8c;
    font-family: var(--mono);
    font-size: 0.62rem;
    line-height: 1.55;
}

.release-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 110px;
    border-block: 1px solid var(--line);
}

.release-strip > div {
    display: grid;
    gap: 8px;
    padding: 24px 28px;
    border-right: 1px solid var(--line);
}

.release-strip > div:last-child {
    border-right: 0;
}

.release-strip span,
.package-card dt {
    color: #718091;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.release-strip strong {
    color: #cedae4;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
}

.section-heading {
    margin-bottom: 36px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.package-card {
    position: relative;
    display: flex;
    grid-column: span 2;
    flex-direction: column;
    min-height: 470px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(155deg, rgba(19, 25, 37, 0.96), rgba(9, 12, 18, 0.96));
}

.package-card:nth-child(4),
.package-card:nth-child(5) {
    grid-column: span 3;
}

.package-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--cyan), transparent 64%);
}

.package-card:nth-child(2)::before,
.package-card:nth-child(5)::before {
    background: linear-gradient(90deg, var(--violet), transparent 64%);
}

.package-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--green), transparent 64%);
}

.card-index {
    position: absolute;
    top: 14px;
    right: -4px;
    color: rgba(223, 237, 248, 0.035);
    font-family: var(--mono);
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.package-card h3 {
    position: relative;
    margin: 16px 0 8px;
    font-size: 1.55rem;
    font-weight: 560;
}

.platform-detail {
    min-height: 42px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.package-card dl {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.package-card dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.package-card dd {
    margin: 0;
    overflow: hidden;
    color: #b5c1cc;
    font-family: var(--mono);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-card .download-button {
    margin-top: auto;
}

.package-card details {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.package-card summary {
    color: #aab7c4;
    font-family: var(--mono);
    font-size: 0.65rem;
    cursor: pointer;
}

.package-card details p {
    margin: 14px 0 0;
}

.checksum code {
    word-break: break-all;
    color: #8190a0;
    font-size: 0.62rem;
}

.status-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 96px;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(94, 231, 245, 0.2);
    background: rgba(13, 17, 24, 0.75);
}

.status-panel p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.status-glyph {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(94, 231, 245, 0.35);
    color: var(--cyan);
    font: 2rem var(--mono);
    box-shadow: inset 0 0 26px rgba(94, 231, 245, 0.08);
}

.field-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 112px 0;
    background: var(--line);
    border: 1px solid var(--line);
}

.field-notes article {
    min-height: 230px;
    padding: 30px;
    background: var(--ink);
}

.field-notes span {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.65rem;
}

.field-notes h2 {
    margin: 44px 0 12px;
    font-size: 1.04rem;
    font-weight: 560;
}

.field-notes p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 32px 0 42px;
    border-top: 1px solid var(--line);
    color: #556170;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.11em;
}

@media (max-width: 920px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 84px;
    }

    .login-copy {
        padding-bottom: 72px;
    }

    .login-panel {
        width: min(100%, 580px);
    }

    .package-card,
    .package-card:nth-child(4),
    .package-card:nth-child(5) {
        grid-column: span 3;
    }

    .field-notes {
        grid-template-columns: 1fr;
    }

    .field-notes article {
        min-height: auto;
    }

    .field-notes h2 {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .site-header,
    main,
    footer {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        min-height: 86px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .access-state {
        max-width: 104px;
        justify-content: flex-end;
        text-align: right;
    }

    .hero::after {
        right: -22%;
    }

    .hero-authenticated form {
        position: static;
        margin-top: 30px;
    }

    .release-strip {
        grid-template-columns: 1fr;
        margin-bottom: 76px;
    }

    .release-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .release-strip > div:last-child {
        border-bottom: 0;
    }

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

    .package-card,
    .package-card:nth-child(4),
    .package-card:nth-child(5) {
        grid-column: auto;
        min-height: 440px;
    }

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

    footer {
        gap: 16px;
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
