:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #5c6472;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --border: rgba(17, 24, 39, 0.08);
    --radius: 20px;
    --shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
    font-size: 16px;
}

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

html,
body,
.minimal {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 60%, #edf2ff 100%);
    display: flex;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px);
    width: 100%;
    overflow-x: hidden;
}

.minimal {
    width: 100%;
}

.page {
    width: min(960px, 100%);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero {
    background: var(--surface);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__brand {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero__brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--accent-soft);
    padding: 10px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.hero p {
    color: var(--muted);
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 120ms ease, box-shadow 120ms ease;
    text-align: center;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

.btn:hover {
    transform: translateY(-1px);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

pre {
    background: #f4f6fb;
    border-radius: 16px;
    padding: 16px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #0f172a;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.card p,
.footer p {
    color: var(--muted);
    font-size: 0.95rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer {
    text-align: center;
    padding: 32px 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer img {
    width: 160px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.floating-ad {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.35);
    animation: float 2.5s ease-in-out infinite;
    z-index: 50;
}

.floating-ad.hidden {
    display: none;
}

.floating-ad a {
    display: block;
    line-height: 0;
}

.floating-ad img {
    width: auto;
    height: auto;
    max-width: min(320px, 48vw);
    max-height: 320px;
    border-radius: 18px;
    display: block;
}

.floating-ad__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.floating-ad__close:hover {
    opacity: 0.85;
}

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

@media (max-width: 640px) {
    body,
    .minimal {
        padding: 24px 16px;
    }

    .hero__brand {
        flex-direction: column;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    pre {
        font-size: 0.85rem;
    }

    .floating-ad {
        bottom: 16px;
        right: 16px;
        padding: 12px;
    }

    .floating-ad img {
        max-width: min(260px, 75vw);
        max-height: 220px;
    }
}
