:root {
    --bg: #0b0f0f;
    --surface: #111717;
    --surface-hover: #151c1c;
    --text: #e6eeee;
    --muted: #8a9999;
    --border: #263131;
    --accent: #39d0b0;
    --accent-hover: #50e0c2;
    --accent-soft: rgba(57, 208, 176, 0.09);
    --code: #78e6cf;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.certificate-page {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
}

.certificate-card {
    width: 100%;
    max-width: 680px;
    padding: 46px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.certificate-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(57, 208, 176, 0.2);
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.certificate-label::before {
    content: "$";
    margin-right: 7px;
    color: var(--code);
}

.certificate-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.certificate-card h1::before {
    content: "> ";
    color: var(--accent);
}

.certificate-message {
    max-width: 580px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.certificate-message strong {
    color: var(--code);
    font-weight: 600;
}

.certificate-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.button-primary {
    background: var(--accent);
    color: #07110f;
    border: 1px solid var(--accent);
}

.button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--surface-hover);
    border-color: #394747;
    transform: translateY(-1px);
}

.certificate-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #687777;
    font-size: 12px;
    line-height: 1.6;
}

.certificate-note::before {
    content: "// ";
    color: #4d6161;
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .certificate-page {
        min-height: 65vh;
        padding: 48px 16px;
    }

    .certificate-card {
        padding: 36px 24px;
        border-radius: 10px;
    }

    .certificate-card h1 {
        font-size: 27px;
    }

    .certificate-message {
        font-size: 13px;
        line-height: 1.75;
    }

    .certificate-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}
