:root {
    --bg-deep: #060a18;
    --bg-blue: #0a1628;
    --bg-violet: #2a1d4a;
    --bg-teal: #1e5a6e;
    --bg-indigo: #15264a;
    --fg: #e8ecf5;
    --fg-dim: rgba(232, 236, 245, 0.55);
    --fg-faint: rgba(232, 236, 245, 0.28);
    --accent: #9bd5e0;
}

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

html,
body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg-deep);
    color: var(--fg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 200;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 20% 30%, var(--bg-violet) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, var(--bg-teal) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, var(--bg-indigo) 0%, transparent 70%),
        linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-blue) 100%);
    background-size: 200% 200%;
    animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }

    50% {
        background-position: 30% 20%, 70% 80%, 40% 60%, 0% 0%;
    }

    100% {
        background-position: 60% 40%, 40% 60%, 60% 40%, 0% 0%;
    }
}

.mist {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
}

.mist--a {
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, rgba(155, 213, 224, 0.5) 0%, transparent 65%);
    top: -20vmax;
    left: -15vmax;
    animation: float-a 32s ease-in-out infinite alternate;
}

.mist--b {
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(circle, rgba(124, 92, 196, 0.45) 0%, transparent 65%);
    bottom: -25vmax;
    right: -20vmax;
    animation: float-b 44s ease-in-out infinite alternate;
}

.mist--c {
    width: 45vmax;
    height: 45vmax;
    background: radial-gradient(circle, rgba(46, 138, 158, 0.4) 0%, transparent 70%);
    top: 30%;
    left: 40%;
    animation: float-c 56s ease-in-out infinite alternate;
}

@keyframes float-a {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(15vmin, 12vmin) scale(1.15);
    }
}

@keyframes float-b {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-18vmin, -10vmin) scale(1.2);
    }
}

@keyframes float-c {
    from {
        transform: translate(0, 0) scale(0.9);
    }

    to {
        transform: translate(-12vmin, 8vmin) scale(1.1);
    }
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

.content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 6vw 2vh;
    text-align: center;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: clamp(3rem, 8vh, 5rem);
    opacity: 0;
    animation: fade-in 2.4s ease-out 0.3s forwards;
}

.brand__mark {
    color: var(--accent);
    font-weight: 400;
}

.claim {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 7.5vw, 6.2rem);
    line-height: 1.12;
    letter-spacing: -0.005em;
    max-width: 18ch;
    color: rgba(232, 236, 245, 0.72);
    text-wrap: balance;
}

.claim::after {
    content: "";
    display: block;
    width: 1px;
    height: clamp(13rem, 9vh, 20rem);
    margin: clamp(2rem, 5vh, 3rem) auto 0;
    background: linear-gradient(to bottom, var(--fg-faint), transparent);
    opacity: 0;
    animation: fade-in 2s ease-out 2.6s forwards;
}

.claim__line {
    display: block;
    position: relative;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.3em);
    animation: reveal 2.2s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
    text-shadow: 0 0 40px rgba(155, 213, 224, 0.18);
}

.claim__line::before,
.claim__line::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.is-glitching .claim {
    animation: claim-jitter 0.42s steps(8) 1;
}

.is-glitching .claim__line::before {
    color: rgba(255, 95, 140, 0.85);
    mix-blend-mode: screen;
    animation: glitch-a 0.42s steps(6) 1;
}

.is-glitching .claim__line::after {
    color: rgba(95, 220, 240, 0.9);
    mix-blend-mode: screen;
    animation: glitch-b 0.42s steps(6) 1;
}

@keyframes claim-jitter {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(2px, 0);
    }

    55% {
        transform: translate(-2px, -1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    90% {
        transform: translate(0, -1px);
    }
}

@keyframes glitch-a {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 100% 0);
        opacity: 0;
    }

    18% {
        transform: translate(-3px, 1px);
        clip-path: inset(20% 0 55% 0);
        opacity: 0.85;
    }

    38% {
        transform: translate(3px, -1px);
        clip-path: inset(55% 0 20% 0);
        opacity: 0.85;
    }

    58% {
        transform: translate(-2px, 0);
        clip-path: inset(70% 0 8% 0);
        opacity: 0.85;
    }

    78% {
        transform: translate(2px, 1px);
        clip-path: inset(10% 0 75% 0);
        opacity: 0.85;
    }

    100% {
        transform: translate(0);
        clip-path: inset(0 0 100% 0);
        opacity: 0;
    }
}

@keyframes glitch-b {
    0% {
        transform: translate(0);
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }

    18% {
        transform: translate(3px, -1px);
        clip-path: inset(60% 0 12% 0);
        opacity: 0.9;
    }

    38% {
        transform: translate(-3px, 1px);
        clip-path: inset(15% 0 60% 0);
        opacity: 0.9;
    }

    58% {
        transform: translate(2px, 0);
        clip-path: inset(40% 0 30% 0);
        opacity: 0.9;
    }

    78% {
        transform: translate(-2px, -1px);
        clip-path: inset(80% 0 5% 0);
        opacity: 0.9;
    }

    100% {
        transform: translate(0);
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }
}

.claim__line:first-child {
    animation-delay: 0.6s;
}

.claim__line--accent {
    background: linear-gradient(120deg, rgba(232, 236, 245, 0.7) 0%, rgba(155, 213, 224, 0.85) 50%, rgba(232, 236, 245, 0.7) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 400;
    animation:
        reveal 2.4s cubic-bezier(0.2, 0.6, 0.2, 1) 1.2s forwards,
        shimmer 7s ease-in-out 3.6s infinite;
    will-change: transform, filter, background-position;
}

@keyframes reveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.foot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 0 6vw clamp(1.5rem, 3.5vh, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.2vh, 1.6rem);
    text-align: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--fg-dim);
    opacity: 0;
    animation: fade-in 2s ease-out 3s forwards;
}

.status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
    animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.copy {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg-faint);
    opacity: 0;
    animation: fade-in 2s ease-out 3.4s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .brand {
        letter-spacing: 0.35em;
    }

    .claim {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .status {
        font-size: 0.72rem;
        letter-spacing: 0.28em;
    }
}

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

    .stage,
    .mist,
    .claim__line,
    .claim__line--accent,
    .status__dot {
        animation: none;
    }

    .claim__line {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .brand,
    .status,
    .copy,
    .claim::after {
        opacity: 1;
        animation: none;
    }

    .is-glitching .claim,
    .is-glitching .claim__line::before,
    .is-glitching .claim__line::after {
        animation: none;
    }
}