:root {
    --text: #1d1d1f;
    --muted: #6e6e73;
    --border: #d9d9df;
    --surface: #ffffff;
    --surface-soft: #f5f5f7;

    --purple: #7758d9;
    --purple-dark: #5d42bb;

    --ink: #090510;

    --shell: 1100px;
}


/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);
    background: var(--surface);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   Main layout
   ========================================================= */

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


/* =========================================================
   Accessibility
   ========================================================= */

.skip-link {
    position: absolute;

    left: 16px;
    top: -80px;

    z-index: 1000;

    padding: 10px 14px;

    border-radius: 10px;

    background: #ffffff;
    color: #000000;

    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 50;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);

    background: rgba(9, 5, 16, 0.82);

    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
    min-height: 72px;

    display: flex;

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

    gap: 24px;
}


/* Brand */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    letter-spacing: -0.02em;
}

.brand-avatar {
    width: 64px;
    height: 64px;

    display: block;

    flex: 0 0 64px;

    object-fit: cover;
    object-position: center 18%;

    border-radius: 50%;

    background: #2a153d;
}

.brand-name {
    font-size: 15px;
}


/* =========================================================
   Navigation
   ========================================================= */

.site-nav {
    display: flex;

    align-items: center;

    gap: 26px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.78);

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: color 180ms ease;
}

.site-nav a:hover {
    color: #ffffff;
}


/* Keyboard focus */

.site-nav a:focus-visible,
.brand:focus-visible,
.button:focus-visible,
.identity-link:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid #b9a3ff;

    outline-offset: 4px;

    border-radius: 6px;
}


/* =========================================================
   Mobile navigation button
   ========================================================= */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;

    width: 18px;
    height: 1.5px;

    margin: auto;

    background: currentColor;

    content: "";

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.nav-toggle-lines::before {
    transform: translateY(-6px);
}

.nav-toggle-lines::after {
    transform: translateY(4.5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    transform: translateY(-1.5px) rotate(-45deg);
}


/* =========================================================
   Shared typography
   ========================================================= */

.section-eyebrow,
.eyebrow {
    margin: 0 0 14px;

    color: var(--purple);

    font-size: 14px;

    line-height: 1.3;

    font-weight: 650;

    letter-spacing: 0.01em;
}


/* =========================================================
   Shared buttons
   ========================================================= */

.button {
    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: -0.01em;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

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

.button-dark {
    background: #1d1d1f;
    color: #ffffff;
}

.button-dark:hover {
    background: #000000;
}


/* =========================================================
   Simple content pages
   Privacy / Error / other basic pages
   ========================================================= */

.simple-page {
    min-height: 65vh;

    padding: 92px 0 110px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f7f9 100%
        );
}

.simple-page-shell {
    max-width: 780px;
}

.simple-page h1 {
    margin: 0;

    font-size: clamp(44px, 7vw, 72px);

    line-height: 1;

    letter-spacing: -0.045em;
}

.simple-lead {
    margin: 24px 0 0;

    color: var(--muted);

    font-size: 20px;
}

.prose {
    margin-top: 54px;
}

.prose h2 {
    margin: 36px 0 10px;

    font-size: 22px;

    letter-spacing: -0.02em;
}

.prose p {
    color: #4d4d52;

    font-size: 17px;

    line-height: 1.75;
}

.prose a {
    color: var(--purple-dark);
}

.request-id {
    margin-top: 28px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 64px 0 34px;

    border-top: 1px solid #d2d2d7;

    background: #f5f5f7;

    color: #6e6e73;
}

.footer-top {
    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 34px;
}

.footer-name {
    margin-bottom: 10px;

    color: #1d1d1f;

    font-size: 25px;

    font-weight: 650;

    letter-spacing: -0.025em;
}

.footer-top p {
    max-width: 430px;

    margin: 0;

    font-size: 15px;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    align-content: flex-start;

    gap: 14px 22px;
}

.footer-links a {
    color: #424245;

    text-decoration: none;

    font-size: 13px;

    transition: color 180ms ease;
}

.footer-links a:hover {
    color: #000000;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid #d2d2d7;

    color: #86868b;

    font-size: 12px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {

    .site-shell {
        width: min(calc(100% - 36px), var(--shell));
    }


    /* Header */

    .header-inner {
        min-height: 66px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-avatar {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    /* Navigation */

    .nav-toggle {
        display: inline-grid;

        place-items: center;

        flex: 0 0 auto;
    }

    .site-nav {
        display: none;

        position: absolute;

        left: 18px;
        right: 18px;
        top: 58px;

        padding: 12px;

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

        border-radius: 18px;

        background: rgba(16, 9, 26, 0.97);

        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.42);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        min-height: 46px;

        display: flex;

        align-items: center;

        padding: 0 12px;

        border-radius: 10px;
    }

    .site-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }


    /* Footer */

    .footer-top,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }


    /* Simple pages */

    .simple-page {
        padding: 72px 0 88px;
    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

}