/*
 * NEW REALITY — ultra-heavy display (institutional poster) + Inter body
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f5f3;
    --vignette: rgba(40, 40, 42, 0.055);
    --color-text: #28282a;
    --color-text-muted: rgba(40, 40, 42, 0.52);
    --color-rule: rgba(40, 40, 42, 0.12);
    --font-display: 'Unbounded', 'Arial Black', 'Helvetica Neue', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
    /* Editorial rhythm (8px grid) — institutional measure & spacing */
    --rhythm-unit: 0.5rem;
    --space-message-gap: calc(var(--rhythm-unit) * 4);
    --space-cta-caption: clamp(1.125rem, 2.75vw, 1.875rem);
    --measure-prose: min(36rem, 100%);
    --leading-prose: 1.65;
}

html {
    overflow-x: clip;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    position: relative;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Very subtle edge darkening — does not intercept clicks */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    background: radial-gradient(
        ellipse 92% 88% at 50% 48%,
        transparent 0%,
        transparent 58%,
        var(--vignette) 88%,
        rgba(40, 40, 42, 0.078) 100%
    );
}

.container {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1.5rem, 5vw, 4rem);
    overflow-x: clip;
}

.content {
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(3rem, 14vw, 7.25rem);
    font-weight: 900;
    font-style: normal;
    font-feature-settings: "kern" 1, "liga" 1;
    font-variant-ligatures: common-ligatures;
    letter-spacing: -0.055em;
    line-height: 0.78;
    text-transform: uppercase;
    color: var(--color-text);
    text-rendering: geometricPrecision;
    margin-bottom: 2.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--color-rule);
}

.title-line {
    display: block;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: var(--measure-prose);
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: calc(var(--rhythm-unit) * 5);
    padding-inline: clamp(var(--rhythm-unit), 3vw, calc(var(--rhythm-unit) * 3));
    text-align: left;
    text-wrap: pretty;
    gap: 0;
}

.message > p {
    margin: 0;
    max-width: none;
}

.lead {
    font-size: clamp(1rem, 2.15vw, 1.125rem);
    font-weight: 500;
    line-height: var(--leading-prose);
    letter-spacing: 0.005em;
    color: var(--color-text);
    padding-bottom: var(--space-message-gap);
    border-bottom: 1px solid var(--color-rule);
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--measure-prose);
    margin-inline: auto;
    padding-inline: clamp(var(--rhythm-unit), 3vw, calc(var(--rhythm-unit) * 3));
    gap: var(--space-cta-caption);
    overflow: visible;
}

.cta-button-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

/* Full-viewport foil strip — airbrushed edges (mask) + soft bleed into page */
.cta-foil-band {
    position: absolute;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    top: 50%;
    transform: translateY(-50%);
    height: var(--foil-band-height, 3.25rem);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 4px;
    -webkit-mask-image: radial-gradient(
        ellipse 108% 380% at 50% 50%,
        #000 0%,
        #000 32%,
        rgba(0, 0, 0, 0.7) 52%,
        rgba(0, 0, 0, 0.22) 74%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 108% 380% at 50% 50%,
        #000 0%,
        #000 32%,
        rgba(0, 0, 0, 0.7) 52%,
        rgba(0, 0, 0, 0.22) 74%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(0, 0, 0, 0.16),
        0 8px 28px rgba(40, 40, 42, 0.07),
        0 0 32px 20px rgba(245, 245, 243, 0.55),
        0 0 56px 36px rgba(245, 245, 243, 0.35);
}

.cta-foil-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 12%,
        transparent 88%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.cta-foil-metal {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        165deg,
        #e8e6e2 0%,
        #9a9894 22%,
        #d4d2ce 45%,
        #7a7874 68%,
        #c9c7c3 100%
    );
    opacity: 0.55;
}

/* Same spectrum as rainbow, softly blurred — glow only, no extra hue density */
.cta-foil-diffuse {
    position: absolute;
    inset: -22%;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #ff2d6b 0%,
        #ff8a3c 8%,
        #ffd039 16%,
        #c4f042 24%,
        #4ae3b5 32%,
        #3ddcff 40%,
        #6b7cff 48%,
        #c44dff 56%,
        #ff2d6b 64%,
        #ff8a3c 72%,
        #3ddcff 84%,
        #ff2d6b 100%
    );
    background-size: 350% 100%;
    filter: blur(14px);
    opacity: 0.38;
    mix-blend-mode: screen;
    animation: foil-diffuse 28s linear infinite;
}

.cta-foil-rainbow {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        #ff2d6b 0%,
        #ff8a3c 8%,
        #ffd039 16%,
        #c4f042 24%,
        #4ae3b5 32%,
        #3ddcff 40%,
        #6b7cff 48%,
        #c44dff 56%,
        #ff2d6b 64%,
        #ff8a3c 72%,
        #3ddcff 84%,
        #ff2d6b 100%
    );
    background-size: 350% 100%;
    mix-blend-mode: hard-light;
    opacity: 0.88;
    animation: foil-rainbow 28s linear infinite;
}

.cta-foil-sheen {
    position: absolute;
    inset: -35% -60%;
    z-index: 3;
    background: linear-gradient(
        118deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 38%,
        rgba(255, 255, 255, 0.75) 49.5%,
        rgba(255, 255, 255, 0.2) 52%,
        transparent 62%,
        transparent 100%
    );
    background-size: 180% 180%;
    mix-blend-mode: soft-light;
    animation: foil-sheen 13s ease-in-out infinite;
}

@keyframes foil-diffuse {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 350% 50%;
    }
}

@keyframes foil-rainbow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 350% 50%;
    }
}

@keyframes foil-sheen {
    0% {
        background-position: -30% 20%;
        transform: translateX(-8%) skewX(-2deg);
    }
    50% {
        background-position: 130% 80%;
        transform: translateX(6%) skewX(1deg);
    }
    100% {
        background-position: -30% 20%;
        transform: translateX(-8%) skewX(-2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-foil-diffuse,
    .cta-foil-rainbow,
    .cta-foil-sheen {
        animation: none;
    }

    .cta-foil-diffuse,
    .cta-foil-rainbow {
        background-position: 40% 50%;
    }

    .cta-foil-sheen {
        background-position: 0% 0%;
        transform: none;
    }
}

.support {
    font-size: clamp(0.65rem, 2.2vw, 0.875rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
    max-width: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.support::-webkit-scrollbar {
    display: none;
}

.button {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 1rem 2.75rem;
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 1.5vw, 0.78rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    background-color: rgba(245, 245, 243, 0.92);
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(40, 40, 42, 0.06);
}

.button:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.button:active {
    transform: scale(0.99);
}

@media (min-width: 769px) {
    .title {
        margin-bottom: 3rem;
        padding-bottom: 2.75rem;
    }

    .message {
        margin-bottom: calc(var(--rhythm-unit) * 6);
    }
}

@media (max-width: 768px) {
    .title {
        margin-bottom: 2rem;
        padding-bottom: 1.75rem;
    }

    .message {
        margin-bottom: calc(var(--rhythm-unit) * 5);
    }

    :root {
        --space-message-gap: calc(var(--rhythm-unit) * 3);
    }

    .button {
        padding: 0.9rem 2.25rem;
    }
}

@media (max-height: 600px) {
    .title {
        font-size: clamp(1.85rem, 9vw, 3.5rem);
        line-height: 0.8;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .message {
        margin-bottom: calc(var(--rhythm-unit) * 4);
    }

    :root {
        --space-message-gap: calc(var(--rhythm-unit) * 3);
        --space-cta-caption: clamp(0.875rem, 2.2vw, 1.25rem);
    }

    .lead {
        font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    }

    .support {
        font-size: clamp(0.625rem, 2vw, 0.8125rem);
    }

    .button {
        padding: 0.65rem 1.75rem;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}
