:root {
    color-scheme: dark;
    --bg: #020105;
    --fg: #fefefe;
    --muted: rgba(255, 255, 255, 0.6);
    --accent: #ff7a2f;
    --accent-soft: rgba(58, 110, 255, 0.45);
    --font-base: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

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

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-base);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.scene::before {
    content: '';
    position: absolute;
    top: -25vh;
    right: -8vw;
    bottom: -2vh;
    left: -8vw;
    background: radial-gradient(45% 60% at 30% 50%, rgba(58, 110, 255, 0.25), transparent),
        radial-gradient(45% 60% at 70% 30%, rgba(255, 122, 47, 0.35), transparent);
    filter: blur(60px);
    z-index: 0;
    opacity: 0.85;
    animation: aurora 18s ease-in-out infinite alternate;
}

.frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    background: rgba(2, 1, 5, 0.35);
    backdrop-filter: blur(28px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(2.5rem, 5vw, 4rem);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.35);
}

.spark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(96, 168, 255, 0.65), transparent 55%);
    transition: background 0.2s ease-in-out;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
}

.header .accent {
    color: var(--accent);
    margin: 0 0.6em;
}

.glyph {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 640px;
}

.brand > * + * {
    margin-top: clamp(1.9rem, 4.8vw, 3.2rem);
}

.brand > .status {
    margin-top: clamp(2.4rem, 5.5vw, 3.6rem);
}

.brand > .cta {
    margin-top: clamp(2.8rem, 6vw, 4.4rem);
}

.logotype {
    display: block;
    width: clamp(280px, 55vw, 520px);
    max-width: 100%;
    height: auto;
}

.message {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 1.7vw, 1rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 0.65rem 1.5rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(96, 168, 255, 0.15);
    min-width: clamp(18rem, 50vw, 30rem);
}

.status-text {
    margin-left: 5px;
}

.pulse {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #ff8238;
    box-shadow: 0 0 0 0 rgba(255, 130, 56, 0.8);
    animation: pulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .pulse {
        animation: none;
    }
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 1rem 2.25rem;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 47, 0.62);
    background: #ff7a2f;
    color: #0b070f;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 24px 48px rgba(255, 122, 47, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

@media not all and (hover: none) {
    .cta::before,
    .cta::after {
        display: none;
    }
}

.cta span {
    position: relative;
    z-index: 3;
    color: #0b070f;
}

.cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 62px rgba(255, 138, 55, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 153, 74, 0.82);
}

.cta:hover::after {
    background: rgba(255, 162, 85, 0.32);
    box-shadow: inset 0 0 16px rgba(255, 200, 150, 0.4);
}

.cta:active {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(255, 138, 55, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 8, 16, 0.65), 0 0 0 5px rgba(255, 122, 47, 0.48), 0 32px 64px rgba(255, 122, 47, 0.38);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(1.5rem, 4vw, 4rem);
    font-size: clamp(0.75rem, 1.6vw, 0.95rem);
    color: var(--muted);
    flex-wrap: wrap;
    margin-top: auto;
}

.timestamp {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.progress {
    display: inline-flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.progress-track {
    width: clamp(160px, 30vw, 320px);
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}

.progress-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(58, 110, 255, 0.85), rgba(255, 122, 47, 0.85));
    transform-origin: 0 50%;
    animation: progress 12s ease-in-out infinite;
}

.progress-label {
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

@keyframes aurora {
    0% {
        transform: translate(-4%, -6%) rotate(0deg) scale(1.05);
    }
    50% {
        transform: translate(3%, 4%) rotate(2deg) scale(1.15);
    }
    100% {
        transform: translate(-2%, -3%) rotate(-1deg) scale(1.08);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 130, 56, 0.35);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 130, 56, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 130, 56, 0);
    }
}

@keyframes progress {
    0% {
        transform: scaleX(0.12);
    }
    20% {
        transform: scaleX(0.35);
    }
    45% {
        transform: scaleX(0.6);
    }
    70% {
        transform: scaleX(0.82);
    }
    100% {
        transform: scaleX(0.96);
    }
}

@media (max-width: 768px) {
    .frame {
        padding: 2.5rem 1.8rem;
        gap: 2.2rem;
    }


    .header {
        font-size: 0.75rem;
    }

    .glyph {
        font-size: 1.75rem;
    }

    .progress {
        width: 100%;
        justify-content: space-between;
    }

    .progress-track {
        width: 60%;
    }
}

@media (max-width: 520px) {
    .frame {
        padding: 2.2rem 1.5rem;
    }

    .logotype {
        letter-spacing: 0.3rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .progress {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-track {
        width: 100%;
    }
}

