:root {
    --green-main: #2ecc71;
    --green-soft: #e6f9ee;
    --green-text: #f8fafc;
    --bg-dark: #050607;
    --card-bg: #f7fdfa;
    --accent-orange: #ff7a2f;
    --text-main: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.65);
    --border-soft: rgba(176, 53, 68, 0.4);
    --shadow-main: 0 18px 40px rgba(0, 0, 0, 0.35);
    --radius-main: 28px;
    --accent-burgundy: #b03544;
    --glass-bg: rgba(20, 20, 22, 0.22);
    --glass-border: rgba(120, 20, 45, 0.55);
    --glass-border-strong: rgba(120, 20, 45, 0.75);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("/assets/visual-layer.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(14px, 2.2vw, 32px);
    position: relative;
    z-index: 1;
    width: 100%;
}

.page--center {
    align-items: center;
}

.shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    background: var(--glass-bg);
    border-radius: var(--radius-main);
    box-shadow:
        var(--shadow-main),
        0 0 60px rgba(140, 40, 50, 0.25),
        0 0 120px rgba(140, 40, 50, 0.12);
    border: 1px solid var(--glass-border);
    padding: clamp(16px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

main {
    max-width: 100%;
    min-width: 0;
}

.content {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

.cta-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .shell {
        border-radius: 22px;
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .cta-row,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row > *,
    .button-row > * {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .shell {
        border-radius: 18px;
        padding: 16px;
    }
}
