:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-synthesis: none;
    background: #050508;
    color: #c9c8d0;
}

* {
    box-sizing: border-box;
}

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

body {
    min-width: 20rem;
    min-height: 100svh;
    margin: 0;
    background:
        radial-gradient(circle at 50% -8rem, rgba(71, 92, 218, 0.14), transparent 34rem),
        #050508;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #9eb9ff;
    text-decoration-color: rgba(158, 185, 255, 0.35);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

a:hover {
    color: #c0d0ff;
    text-decoration-color: currentColor;
}

a:focus-visible {
    border-radius: 0.2rem;
    outline: 0.15rem solid #819eff;
    outline-offset: 0.2rem;
}

.site-header,
.content-main,
.site-footer {
    width: min(100% - 3rem, 52rem);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.65rem;
    padding-block: 2rem 1.75rem;
}

.site-header--links-only {
    justify-content: flex-end;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(236, 235, 241, 0.78);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    text-decoration: none;
}

.brand:hover {
    color: #f0eff4;
}

.brand-mark {
    width: 1.65rem;
    height: 1.65rem;
    filter: drop-shadow(0 0.35rem 0.8rem rgba(82, 99, 255, 0.2));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
}

.site-nav a {
    color: rgba(236, 235, 241, 0.68);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #f0eff4;
}

.content-main {
    padding: clamp(3.5rem, 6vw, 1rem) 0 5.5rem;
}

.page-header {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
}

.page-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, #3ab8ff, #756dff 42%, rgba(117, 109, 255, 0));
    content: "";
    opacity: 0.65;
}

h1 {
    margin: 0;
    color: #f0eff4;
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 1;
}

.introduction {
    max-width: none;
    margin: 1rem 0 0;
    color: #aaa9b3;
    font-size: clamp(1.02rem, 2.2vw, 1.14rem);
    line-height: 1.5;
}

section {
    margin-top: 3rem;
}

section:first-of-type {
    margin-top: 0;
}

h2 {
    margin: 0 0 0.9rem;
    color: #e1e0e6;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

h3 {
    margin: 2rem 0 0.8rem;
    color: #d5d4dc;
    font-size: 1.08rem;
    font-weight: 680;
    letter-spacing: -0.015em;
}

p {
    margin: 0.9rem 0 0;
}

p:first-child {
    margin-top: 0;
}

ul {
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
}

li {
    margin-top: 0.4rem;
    padding-left: 0.25rem;
}

li::marker {
    color: #778fe7;
}

.summary {
    margin-top: 0;
    padding: clamp(1.25rem, 3vw, 1.65rem);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(81, 100, 198, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.018);
    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.025);
}

.summary h2 {
    font-size: 1.15rem;
}

.summary ul {
    margin-top: 0.75rem;
    padding-left: 1.15rem;
}

.summary li {
    margin-top: 0.5rem;
}

.contact {
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
}

.contact p {
    margin-top: 0.45rem;
}

.download-main {
    text-align: center;
}

.download-main .page-header {
    text-align: left;
}

.package-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(2rem, 6svh, 5rem);
    color: #c9c8d0;
    font-size: clamp(1.02rem, 2.2vw, 1.14rem);
    font-weight: 600;
    text-decoration: none;
}

.package-download:hover {
    color: #f0eff4;
}

.package-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.package-version {
    color: #777680;
    font-size: 0.82em;
    font-weight: 500;
}

.package-artwork {
    position: relative;
    isolation: isolate;
}

.package-artwork::before {
    position: absolute;
    z-index: 0;
    inset: -8% -28% -14%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 46%, rgba(108, 123, 255, 0.42), rgba(80, 78, 205, 0.18) 38%, transparent 68%),
        radial-gradient(ellipse at 50% 60%, rgba(53, 134, 255, 0.2), transparent 72%);
    content: "";
    filter: blur(2.25rem);
}

.package-artwork img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(18rem, 70vw);
    height: auto;
    filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, 0.35));
}

.site-footer {
    padding: 0 0 3rem;
    color: #585761;
    font-size: 0.76rem;
}

.site-footer::before {
    display: block;
    width: 2.5rem;
    height: 1px;
    margin-bottom: 1.5rem;
    background: #2a2931;
    content: "";
}

.home {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background:
        radial-gradient(circle at 45% 42%, rgba(63, 79, 179, 0.1), transparent 34rem),
        #030305;
}

.home-main {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 2rem;
}

.wordmark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    margin: 0;
    transform: translateY(-16svh);
}

.mark-wrap {
    position: relative;
    width: clamp(10rem, 24vw, 20rem);
}

.mark {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 1rem 2.5rem rgba(72, 90, 255, 0.2));
}

.mark-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 34%,
        rgba(255, 255, 255, 0.7) 48%,
        rgba(207, 226, 255, 0.28) 54%,
        transparent 66%
    );
    background-position: 140% 0;
    background-size: 250% 100%;
    content: "";
    opacity: 0;
    pointer-events: none;
    -webkit-mask: url("favicon.svg") center / contain no-repeat;
    mask: url("favicon.svg") center / contain no-repeat;
}

.name {
    margin-inline: -0.08em;
    padding-inline: 0.08em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(182, 182, 189, 0.55));
    background-clip: text;
    color: transparent;
    font-size: clamp(4rem, 11vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 0.9;
    -webkit-background-clip: text;
}

.message {
    position: absolute;
    top: calc(100% + clamp(1.5rem, 3vw, 2.25rem));
    display: none;
    margin: 0;
    color: rgba(182, 182, 189, 0.48);
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 450;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.mark-wrap::after {
    animation: catch-light 1.65s 800ms ease-out both;
}

.in-surfer .message {
    display: block;
    animation: reveal-message 700ms 850ms ease-out both;
}

.home-intro-shown .mark-wrap::after,
.home-intro-shown.in-surfer .message {
    animation: none;
}

@keyframes catch-light {
    0% {
        background-position: 140% 0;
        opacity: 0;
    }

    18% {
        opacity: 0.72;
    }

    100% {
        background-position: -40% 0;
        opacity: 0;
    }
}

@keyframes reveal-message {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 38rem) {
    .site-header,
    .content-main,
    .site-footer {
        width: min(100% - 2.25rem, 52rem);
    }

    .site-header {
        min-height: 4.9rem;
        padding-block: 1.4rem 1.25rem;
    }

    .content-main {
        padding-top: 2.75rem;
        padding-bottom: 4.5rem;
    }

    .page-header {
        margin-bottom: 2.25rem;
    }

    section {
        margin-top: 2.75rem;
    }
}

@media (max-width: 34rem) {
    .wordmark {
        gap: 1rem;
    }

    .mark-wrap {
        width: clamp(8rem, 45vw, 11rem);
    }

    .name {
        font-size: clamp(3.5rem, 22vw, 6rem);
    }
}

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

    a {
        transition: none;
    }

    .mark-wrap::after,
    .in-surfer .message {
        animation: none;
    }
}
