/* ============================================
   Reset & base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-1: #0a0e1a;
    --bg-2: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.55);
    --card-border: rgba(148, 163, 184, 0.15);

    --accent: #38bdf8;
    --accent-2: #818cf8;
    --accent-3: #c084fc;

    --text: #e2e8f0;
    --muted: #94a3b8;

    --radius: 24px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

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

html,
body {
    height: 100%;
    font-family: var(--font);
    color: var(--text);
    background: radial-gradient(circle at 20% 20%, var(--bg-2) 0%, var(--bg-1) 60%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ============================================
   Background — плавающие градиентные пятна
   ============================================ */
.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}

.bg__blob--one {
    width: 420px;
    height: 420px;
    background: var(--accent);
    top: -120px;
    left: -120px;
    animation: float-a 18s ease-in-out infinite;
}

.bg__blob--two {
    width: 520px;
    height: 520px;
    background: var(--accent-2);
    bottom: -180px;
    right: -180px;
    animation: float-b 22s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, 40px) scale(1.1); }
}

/* ============================================
   Card
   ============================================ */
.card {
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: 100%;
    padding: 56px 48px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow);
    text-align: center;
    animation: card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card__emoji {
    display: inline-block;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 24px;
    animation: bounce 2s ease-in-out infinite;
}

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

.card__title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card__text {
    font-size: clamp(15px, 2.5vw, 17px);
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 36px;
}

.card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--card-border);
    margin-bottom: 32px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.card__footer {
    font-size: 13px;
    color: var(--muted);
    opacity: 0.75;
}

.card__footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.card__footer a:hover {
    opacity: 0.75;
}

/* ============================================
   Progress bar
   ============================================ */
.progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
    margin-bottom: 28px;
}

.progress__bar {
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    transform: translateX(-100%);
    animation: slide 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .card {
        padding: 40px 26px;
        border-radius: 20px;
    }
    .card__emoji {
        font-size: 56px;
    }
    .card__text br {
        display: none;
    }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}