:root {
    --pink: #e61955;
    --pink-soft: #ff5c8a;
    --ink: #231f20;
    --muted: #6b6466;
    --bg: #ffffff;
    --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Tło: dryfujące, rozmyte plamy w kolorze marki ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0;
    animation: blob-in 1.6s ease-out 1.2s forwards, drift 18s ease-in-out 1.2s infinite alternate;
}

.blob--1 {
    width: 42vmax;
    height: 42vmax;
    top: -14vmax;
    right: -12vmax;
    background: radial-gradient(circle, rgba(230, 25, 85, .28), transparent 70%);
}

.blob--2 {
    width: 36vmax;
    height: 36vmax;
    bottom: -16vmax;
    left: -10vmax;
    background: radial-gradient(circle, rgba(255, 92, 138, .22), transparent 70%);
    animation-duration: 1.6s, 22s;
    animation-direction: normal, alternate-reverse;
}

.blob--3 {
    width: 22vmax;
    height: 22vmax;
    top: 55%;
    right: 18%;
    background: radial-gradient(circle, rgba(35, 31, 32, .08), transparent 70%);
    animation-duration: 1.6s, 26s;
}

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

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-4vmax, 3vmax) scale(1.08); }
    100% { transform: translate(3vmax, -2vmax) scale(.95); }
}

/* ---------- Główna sekcja ---------- */
.stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
}

/* ---------- Logo (odtworzone w HTML, żeby animować elementy osobno) ---------- */
.logo {
    --h: clamp(96px, 22vw, 190px);
    display: flex;
    align-items: stretch;
    gap: calc(var(--h) * .07);
    height: var(--h);
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    animation: float 6s ease-in-out 2.4s infinite;
}

.logo__num {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: calc(var(--h) * 1.02);
    letter-spacing: -.06em;
    color: var(--ink);
    margin-top: calc(var(--h) * -.04);
}

.logo__digit {
    display: inline-block;
    opacity: 0;
    transform: translateY(40%) rotate(-8deg);
    animation: digit-in .7s cubic-bezier(.2, .9, .3, 1.3) forwards;
}

.logo__digit:nth-child(1) { animation-delay: .15s; }
.logo__digit:nth-child(2) { animation-delay: .3s; }

.logo__box {
    position: relative;
    width: calc(var(--h) * 1.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: calc(var(--h) * .13);
    background: var(--pink);
    color: #fff;
    font-weight: 800;
    font-size: calc(var(--h) * .40);
    line-height: .98;
    letter-spacing: -.01em;
    text-align: left;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: box-wipe .7s cubic-bezier(.7, 0, .2, 1) .65s forwards;
}

/* Połysk przesuwający się po różowym boksie */
.logo__box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shine 5s ease-in-out 2.2s infinite;
}

.logo__word {
    display: block;
    opacity: 0;
    transform: translateX(-30%);
    animation: word-in .5s ease-out forwards;
}

.logo__word:nth-child(1) { animation-delay: 1.15s; }
.logo__word:nth-child(2) { animation-delay: 1.3s; }

@keyframes digit-in {
    to { opacity: 1; transform: none; }
}

@keyframes box-wipe {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes word-in {
    to { opacity: 1; transform: none; }
}

@keyframes shine {
    0%, 60% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- Teksty ---------- */
.headline {
    margin: clamp(32px, 6vh, 56px) 0 0;
    font-weight: 800;
    font-size: clamp(22px, 4.2vw, 40px);
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up .8s ease-out 1.6s forwards;
}

.dots i {
    font-style: normal;
    color: var(--pink);
    animation: blink 1.4s infinite both;
}

.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

.sub {
    margin: 12px 0 0;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--muted);
    opacity: 0;
    animation: fade-up .8s ease-out 1.85s forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes blink {
    0%, 80%, 100% { opacity: .15; }
    40%           { opacity: 1; }
}

/* ---------- Pasek "ładowania" ---------- */
.progress {
    position: relative;
    width: min(240px, 60vw);
    height: 4px;
    margin-top: 32px;
    border-radius: 4px;
    background: rgba(35, 31, 32, .08);
    overflow: hidden;
    opacity: 0;
    animation: fade-up .8s ease-out 2.1s forwards;
}

.progress span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pink), var(--pink-soft));
    animation: loading 1.8s ease-in-out infinite;
}

@keyframes loading {
    0%   { left: -40%; }
    100% { left: 100%; }
}

/* ---------- Stopka ---------- */
.footer {
    position: relative;
    z-index: 1;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
    animation: fade-up .8s ease-out 2.3s forwards;
}

/* ---------- Dostępność: ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
    }

    .logo__box::after,
    .progress span {
        display: none;
    }
}
