:root {
    color-scheme: dark;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000;
    color: #fff;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(
            ellipse at 50% 12%,
            rgba(255, 255, 255, 0.05),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 80% 90%,
            rgba(255, 255, 255, 0.025),
            transparent 40%
        ),
        #000;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout ---------- */

.page {
    width: min(92vw, 680px);
    margin: 0 auto;
    padding: 40px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 4px;
}

.icon {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(255, 255, 255, 0.1));
}

/* ---------- Liquid glass (unchanged look) ---------- */

.glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.035) 48%,
        rgba(255, 255, 255, 0.075)
    );

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);

    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.glass::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;

    /* No resting shine: a spotlight shows only under the cursor.
       script.js sets --mx / --my and toggles .is-glowing. */
    background: radial-gradient(
        circle 220px at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.16),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 250ms ease;

    pointer-events: none;
}

.glass.is-glowing::before {
    opacity: 1;
}

.glass--pill {
    border-radius: 999px;
}

/* ---------- Hero ---------- */

.hero__card {
    width: min(100%, 390px);
    min-height: 118px;
    padding: 28px 32px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
}

.hero__card h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 18px rgba(255, 255, 255, 0.08);
}

.hero__tag {
    margin: 10px 0 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.link {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 180ms ease, border-color 180ms ease;
}

.link:hover,
.link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

/* ---------- Sections ---------- */

.block {
    padding: 28px 30px;
}

.block h2,
.section-title {
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.block p {
    margin: 0 0 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.block p:last-child {
    margin-bottom: 0;
}

.block-group {
    display: flex;
    flex-direction: column;
}

.section-title {
    padding-left: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 26px;
    transition: transform 200ms ease, border-color 200ms ease;
}

a.card:hover,
a.card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.card p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.card__label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.card__cta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card--soon {
    opacity: 0.6;
}

.specs.about__facts {
    margin-bottom: 22px;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips li {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.chips .chip--fav {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.specs {
    margin: 0;
    display: grid;
    gap: 0;
}

.specs div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.specs dt {
    color: rgba(255, 255, 255, 0.5);
}

.specs dd {
    margin: 0;
    text-align: right;
}

.footer {
    padding-top: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer p {
    margin: 0;
}

/* ---------- Noiz welcome banner ---------- */

.welcome {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 10;
    width: max-content;
    max-width: 92vw;
    transform: translateX(-50%);
    transition: opacity 300ms ease, transform 300ms ease;
}

.welcome .glass {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    font-size: 0.92rem;
}

.welcome__close {
    flex: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.welcome__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Make room for the fixed banner only while it's shown */
.has-welcome .page {
    padding-top: 92px;
}

.page {
    transition: padding-top 300ms ease;
}

.welcome--out {
    opacity: 0;
    transform: translate(-50%, -12px);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero__card,
    .block,
    .block-group,
    .hero__links {
        animation: glass-appear 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .block:nth-of-type(1) { animation-delay: 120ms; }
    .block-group { animation-delay: 200ms; }
    .block-group:nth-of-type(1) { animation-delay: 120ms; }
    .block-group .block { animation: none; }
    .block:nth-of-type(3) { animation-delay: 280ms; }
    .block:nth-of-type(4) { animation-delay: 360ms; }

    .icon {
        animation: icon-appear 800ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .welcome .glass {
        animation: glass-appear 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    @keyframes glass-appear {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.985);
        }

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

    @keyframes icon-appear {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

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

/* ---------- Home: info page ---------- */

html {
    scroll-behavior: smooth;
}

.mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.link--primary {
    border-color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.18)
    );
}

.link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    user-select: none;
}

.link--disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.45);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.steps li:first-child {
    padding-top: 0;
}

.steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.steps__num {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.steps h3 {
    margin: 4px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.block .steps p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.apply {
    scroll-margin-top: 24px;
    text-align: center;
}

.apply .link {
    display: inline-block;
}

/* ---------- 404 ---------- */

.page--center {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: 40px 0;
}

.notfound__code {
    margin: 0;
    font-size: clamp(4rem, 22vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 28px rgba(255, 255, 255, 0.12);
}

.notfound .hero__card {
    padding: 34px 32px 30px;
}

@media (prefers-reduced-motion: no-preference) {
    .block:nth-of-type(5) { animation-delay: 440ms; }
}

@media (max-width: 480px) {
    .page {
        padding-top: 32px;
    }

    .page--center {
        padding-top: 40px;
    }

    .block {
        padding: 24px 22px;
    }

    .specs div {
        flex-direction: column;
        gap: 2px;
    }

    .specs dd {
        text-align: left;
    }
}
