:root {
    --bg: #eef0fb;
    --bg-2: #dfe3fa;
    --surface: #ffffff;
    --surface-border: rgba(15, 23, 42, 0.07);
    --text: #0f172a;
    --muted: #64748b;
    --tg: #229ed9;
    --tg-2: #2aabee;
    --tg-hover: #1d8cc0;
    --radius: 24px;
    --shadow: 0 24px 60px -22px rgba(15, 23, 42, 0.28);
}

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(800px 500px at 50% -10%, #ffffff 0%, transparent 60%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
    -webkit-font-smoothing: antialiased;
}

/* ---------- card ---------- */
.card {
    width: 100%;
    max-width: 410px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: rise 0.55s cubic-bezier(.21,.99,.43,1) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- top image ---------- */
.card__media {
    position: relative;
    width: 100%;
    background: #e8eef6;
    overflow: hidden;
}

.card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__media--fallback {
    background:
        radial-gradient(140px 140px at 30% 28%, rgba(255, 255, 255, .4), transparent 70%),
        linear-gradient(135deg, var(--tg-2), #5b8def);
}

.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.25);
}

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

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

/* ---------- body ---------- */
.card__body {
    padding: 26px 26px 28px;
    text-align: center;
}

.card__title {
    font-size: 25px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card__subtitle {
    margin: 10px auto 0;
    max-width: 320px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- button ---------- */
.btn {
    position: relative;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--tg-2), var(--tg));
    box-shadow: 0 12px 26px -10px rgba(34, 158, 217, 0.75);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -10px rgba(34, 158, 217, 0.9);
    filter: brightness(1.04);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

.btn:active {
    transform: translateY(0);
}

.btn__icon {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.btn__arrow {
    width: 20px;
    height: 20px;
    transition: transform .2s ease;
}

/* ---------- note ---------- */
.card__note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .card__body { padding: 22px 20px 24px; }
    .card__title { font-size: 22px; }
    .card__subtitle { font-size: 14px; }
}
