﻿:root {
    color-scheme: dark;
    --page: #0c0d10;
    --text: #f3f1ea;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #c7bddb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

    body::before {
        position: fixed;
        z-index: -1;
        inset: -18px;
        background-image: url("https://d1l1gotk1xybsc.cloudfront.net/eyJrZXkiOiI0ODc5MTFcLzg4YWI4MzllLTkzYTMtNGM4YS04MTZlLTBjMGMxMGEzMTJkOCIsImJ1Y2tldCI6InJvdXRlbm90ZS1wdXNoIiwiZWRpdHMiOnsicmVzaXplIjp7ImZpdCI6ImNvbnRhaW4iLCJ3aWR0aCI6bnVsbCwiaGVpZ2h0Ijo1NDB9fX0=");
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto min(82vh, 660px);
        content: "";
        opacity: 0.96;
        pointer-events: none;
        transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) scale(1.08);
        transform-origin: center;
        transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
        will-change: transform;
        -webkit-mask-image: radial-gradient(ellipse 26% 43% at center, #000 34%, #000 58%, transparent 100%);
        mask-image: radial-gradient(ellipse 26% 43% at center, #000 34%, #000 58%, transparent 100%);
    }

    body::after {
        position: fixed;
        z-index: -1;
        inset: 0;
        background: radial-gradient(ellipse at center, transparent 10%, rgba(12, 13, 16, 0.12) 42%, rgba(12, 13, 16, 0.82) 100%), linear-gradient(to bottom, rgba(12, 13, 16, 0.42), transparent 26%, transparent 72%, rgba(12, 13, 16, 0.82));
        content: "";
        pointer-events: none;
    }

a {
    color: inherit;
}

.site-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-header,
.site-footer {
    width: min(100% - 64px, 1180px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    min-height: 88px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.19em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(199, 189, 219, 0.38);
    border-radius: 11px;
    background: rgba(199, 189, 219, 0.08);
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0;
}

.header-links a {
    color: #d3cedb;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-decoration: none;
    transition: color 150ms ease;
}

    .header-links a:hover {
        color: #fff;
    }

.main-content {
    display: grid;
    flex: 1;
    align-items: end;
    justify-items: center;
    padding: 32px 32px 7vh;
}

.hero {
    display: flex;
    width: min(100%, 760px);
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 0;
}

.hero-description {
    margin: 0;
    color: #e0dfe5;
    font-size: 0.9rem;
    font-weight: 550;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.shimmer-text {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

    .shimmer-text::after {
        position: absolute;
        inset: 0;
        color: #fff;
        content: attr(data-shimmer);
        opacity: 0;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(112deg, transparent 30%, #000 43%, #fff 50%, #000 57%, transparent 70%);
        mask-image: linear-gradient(112deg, transparent 30%, #000 43%, #fff 50%, #000 57%, transparent 70%);
        mask-size: 220% 100%;
        mask-position: 110% 0;
        animation: silver-sweep 3s linear infinite;
    }

.primary-link {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 32px;
    padding: 0 10px 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(24, 24, 29, 0.82);
    color: #f3f1f5;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

    .primary-link:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.68);
        background: rgba(48, 46, 55, 0.94);
        color: #fff;
    }

.link-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
}

.site-footer {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--line);
    color: #777a84;
    font-size: 0.68rem;
    font-weight: 620;
    letter-spacing: 0.13em;
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--accent);
    color: #171a11;
    font-weight: 650;
}

    .skip-link:focus {
        transform: translateY(0);
    }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .site-header,
    .site-footer {
        width: calc(100% - 40px);
    }

    .site-header {
        min-height: 72px;
    }

    .main-content {
        padding: 24px 20px 7vh;
    }

    .site-footer {
        min-height: 64px;
    }
}

@media (max-width: 390px) {
    .header-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding-inline: 23px;
    }
}

@keyframes silver-sweep {
    0%, 68% {
        mask-position: 110% 0;
        opacity: 0;
    }

    72% {
        opacity: 1;
    }

    97% {
        mask-position: -110% 0;
        opacity: 1;
    }

    100% {
        mask-position: -110% 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}