: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;
    }
}

/* ── Email capture form ── */
.email-capture {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(176, 53, 68, 0.25);
}

.email-capture-card {
    background: rgba(20, 20, 22, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-capture-text {
    text-align: center;
}

.email-capture-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}

.email-capture-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.email-capture-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.email-capture-form input[type="text"],
.email-capture-form input[type="email"] {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 12, 14, 0.55);
    color: var(--text-main);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
}

.email-capture-form textarea {
    grid-column: 1 / -1;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 12, 14, 0.55);
    color: var(--text-main);
    font: inherit;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    resize: vertical;
    min-height: 90px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.email-capture-form input::placeholder,
.email-capture-form textarea::placeholder {
    color: rgba(248, 250, 252, 0.4);
}

.email-capture-form input:focus,
.email-capture-form textarea:focus {
    border-color: rgba(176, 53, 68, 0.7);
    background: rgba(10, 12, 14, 0.75);
}

.email-capture-form input:invalid:not(:placeholder-shown) {
    border-color: rgba(176, 53, 68, 0.55);
}

.email-capture-submit {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 200px;
    border: 1px solid var(--glass-border-strong);
    border-radius: 999px;
    padding: 12px 22px;
    background: rgba(176, 53, 68, 0.55);
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.email-capture-submit:hover {
    background: rgba(176, 53, 68, 0.75);
    border-color: rgba(176, 53, 68, 0.9);
}

.email-capture-submit:active {
    transform: translateY(1px);
}

.email-capture-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-capture-submit .chevron {
    font-size: 1rem;
}

.email-capture-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-capture-status {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 14px;
    line-height: 1.4;
}

.email-capture-status--success {
    background: rgba(64, 160, 90, 0.15);
    border: 1px solid rgba(64, 160, 90, 0.45);
    color: #c8f2d4;
}

.email-capture-status--error {
    background: rgba(176, 53, 68, 0.18);
    border: 1px solid rgba(176, 53, 68, 0.55);
    color: #f8d6db;
}

@media (max-width: 640px) {
    .email-capture-card {
        padding: 20px 16px;
    }
    .email-capture-form {
        grid-template-columns: 1fr;
    }
    .email-capture-submit {
        justify-self: stretch;
        min-width: 0;
    }
    .email-capture-title {
        font-size: 1.15rem;
    }
}
