:root {
    --mw-bg: #020617;
    --mw-bg-soft: #020617;
    --mw-card-bg: #020617;
    --mw-ink: #e5f0ff;
    --mw-ink-soft: #94a3b8;
    --mw-accent: #38bdf8;
    /* cyan accent */
    --mw-accent-soft: rgba(56, 189, 248, 0.35);
    --mw-gold-soft: rgba(252, 211, 77, 0.24);
    --mw-border-soft: rgba(148, 163, 184, 0.55);
    --mw-glow: rgba(148, 215, 255, 0.85);
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mw-ink);
    background:
        radial-gradient(circle at 10% 0, #1f2937 0, #020617 55%),
        radial-gradient(circle at 110% 120%, #0b1830 0, #020617 60%);
}

/* Optional background overlay element */
#mw-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0, rgba(56, 189, 248, 0.3), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.55), transparent 50%);
    opacity: 0.75;
    z-index: -1;
}

/* Page frame */
.mw-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero area */
.mw-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 32px;
}

/* Hero card */
.mw-hero-card {
    position: relative;
    width: 100%;
    max-width: 1120px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.06), transparent 55%),
        linear-gradient(145deg, #020617, #020617);
    border-radius: 36px;
    padding: 40px 44px 30px;
    border: 1px solid rgba(15, 23, 42, 0.85);
    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.6);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
    gap: 44px;
    overflow: hidden;
}

/* Subtle top highlight line */
.mw-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 40% auto 0;
    height: 1px;
    background: linear-gradient(to right, rgba(56, 189, 248, 0.75), transparent);
    opacity: 0.6;
    pointer-events: none;
}

/* Columns */
.mw-logo-column,
.mw-copy-column {
    position: relative;
    z-index: 1;
}

.mw-logo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo label above the signature box */
.mw-logo-label {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mw-ink-soft);
    margin-bottom: 14px;
}

.mw-logo-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

/* SIGNATURE BOX */
#container {
    border-radius: 32px;
    padding: 64px 28px;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 18px 0;
    background:
        radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.35), transparent 70%),
        radial-gradient(circle at 120% 120%, rgba(15, 23, 42, 0.9), #020617 65%);
    box-shadow:
        0 0 80px rgba(56, 189, 248, 0.55),
        0 18px 50px rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mw-wordmark {
    font-family: "Pinyon Script", cursive;
    font-size: clamp(3.0rem, 5.2vw, 4.4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--mw-ink);
    text-shadow:
        0 0 28px rgba(148, 215, 255, 0.35),
        0 0 80px rgba(56, 189, 248, 0.18);
}

/* Inner vignette */
#container::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.3), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.9), transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

/* SVG inside signature box: keep aspect ratio, don't stretch */
/* Caption under signature */
.mw-logo-caption {
    margin-top: 16px;
    font-size: 0.86rem;
    color: var(--mw-ink-soft);
    text-align: center;
}

/* RIGHT COLUMN – copy */
.mw-copy-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mw-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--mw-ink-soft);
    margin: 0 0 12px;
}

.mw-title {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #e5f0ff;
}

.mw-highlight {
    color: #38bdf8;
}

.mw-subtitle {
    margin: 0 0 24px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--mw-ink-soft);
    max-width: 34rem;
}

/* Actions */
.mw-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #eff6ff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.6),
        0 0 0 1px rgba(56, 189, 248, 0.4);
    transition:
        transform 0.16s ease-out,
        box-shadow 0.16s ease-out,
        background 0.16s ease-out,
        filter 0.16s ease-out;
}

.mw-btn-primary,
.mw-btn-ghost,
.mw-modal__close {
    cursor: pointer;
}

.mw-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow:
        0 22px 52px rgba(37, 99, 235, 0.7),
        0 0 0 1px rgba(56, 189, 248, 0.55);
}

/* Cancel button: match primary sizing + dark blue neon */
.mw-btn-ghost {
    -webkit-appearance: none;
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 24px;
    /* match primary */
    border-radius: 999px;

    background: rgba(2, 6, 23, .55);
    border: 1px solid rgba(56, 189, 248, .34);

    color: #dbeafe;
    /* closer to primary text */
    font-size: 0.92rem;
    /* match primary */
    font-weight: 600;
    /* match primary */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;

    box-shadow:
        0 0 0 1px rgba(56, 189, 248, .14),
        0 0 22px rgba(56, 189, 248, .12);

    transition:
        transform 0.16s ease-out,
        box-shadow 0.16s ease-out,
        filter 0.16s ease-out,
        background 0.16s ease-out;
}

.mw-btn-ghost:hover,
.mw-btn-ghost:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.07);
    border-color: rgba(56, 189, 248, .58);
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, .16),
        0 0 34px rgba(56, 189, 248, .18);
    outline: none;
}

.mw-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--mw-ink-soft);
    text-decoration: none;
}

.mw-link-secondary::after {
    content: "↗";
    font-size: 0.9em;
    transform: translateY(1px);
}

.mw-meta {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Footer */
.mw-footer {
    padding: 10px 28px 22px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #6b7280;
    text-align: center;
}

.mw-footer span {
    color: #e5f0ff;
}

/* =========================
   Modal
========================= */
body.mw-modal-open {
    overflow: hidden;
}

.mw-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.mw-modal[aria-hidden="false"] {
    display: flex;
}

.mw-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(10px) saturate(130%);
}

/* Modal card */
.mw-modal__dialog {
    position: relative;
    width: min(680px, 100%);
    border-radius: 28px;
    padding: 26px 24px 22px;
    background: linear-gradient(180deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .78));
    color: var(--mw-ink);

    /* bold neon edge */
    border: 1px solid rgba(56, 189, 248, .48);

    /* depth + diffused glow */
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(56, 189, 248, .26),
        0 0 90px rgba(56, 189, 248, .28),
        inset 0 0 0 1px rgba(56, 189, 248, .14);
}

/* Diffused bloom ring (soft + on-brand) */
.mw-modal__dialog::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;

    background: radial-gradient(1100px 360px at 50% -10%,
            rgba(56, 189, 248, .20),
            rgba(56, 189, 248, .08) 32%,
            rgba(0, 0, 0, 0) 70%);

    filter: blur(16px);
    opacity: .65;
}

/* subtle dark veil behind header area to prevent washout */
.mw-modal__dialog::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(2, 6, 23, .55),
            rgba(2, 6, 23, .15) 55%,
            rgba(2, 6, 23, 0));
}

/* Close button */
.mw-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;

    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(56, 189, 248, .44);
    color: #e5e7eb;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;

    box-shadow:
        0 0 0 1px rgba(56, 189, 248, .10),
        0 0 34px rgba(56, 189, 248, .22);
}

.mw-modal__close:hover,
.mw-modal__close:focus-visible {
    border-color: rgba(56, 189, 248, .62);
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, .18),
        0 0 44px rgba(56, 189, 248, .26);
    outline: none;
    filter: brightness(1.06);
}

.mw-modal__title {
    margin: 6px 0 6px;
    font-size: 1.35rem;
    letter-spacing: .02em;
}

.mw-modal__subtitle {
    margin: 0 0 16px;
    color: var(--mw-ink-soft);
    line-height: 1.6;
}

/* Form grid */
.mw-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .mw-form__grid {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.mw-field label {
    display: block;
    margin: 10px 0 8px;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, .95);
}

/* Neon inputs (default + focus pop) */
.mw-field input,
.mw-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;

    background: rgba(2, 6, 23, .55);
    border: 1px solid rgba(56, 189, 248, .22);
    color: var(--mw-ink);
    outline: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 0 0 1px rgba(56, 189, 248, .06),
        0 0 18px rgba(56, 189, 248, .08);
}

.mw-field textarea {
    resize: vertical;
    min-height: 120px;
}

.mw-field input:focus,
.mw-field textarea:focus {
    border-color: rgba(56, 189, 248, .60);
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, .16),
        0 0 30px rgba(56, 189, 248, .18),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Invalid styling ONLY after submit attempt (mw-submitted set in JS) */
.mw-form.mw-submitted .mw-field input:invalid,
.mw-form.mw-submitted .mw-field textarea:invalid {
    border-color: rgba(251, 113, 133, .55);
    box-shadow:
        0 0 0 3px rgba(251, 113, 133, .12),
        0 0 26px rgba(251, 113, 133, .14);
}

.mw-form.mw-submitted .mw-field input:focus:invalid,
.mw-form.mw-submitted .mw-field textarea:focus:invalid {
    border-color: rgba(251, 113, 133, .65);
    box-shadow:
        0 0 0 3px rgba(251, 113, 133, .16),
        0 0 34px rgba(251, 113, 133, .18);
}

/* Styled validation bubble (used by JS to replace native tooltip) */
.mw-validate-tip {
    position: fixed;
    z-index: 2000;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .78));
    border: 1px solid rgba(56, 189, 248, .34);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(56, 189, 248, .18),
        0 0 40px rgba(56, 189, 248, .18);
    color: #e8f3ff;
    font-size: .92rem;
    line-height: 1.35;
    backdrop-filter: blur(10px) saturate(130%);
}

.mw-validate-tip::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: .55rem;
    background: rgba(251, 113, 133, .95);
    box-shadow: 0 0 18px rgba(251, 113, 133, .35);
    vertical-align: middle;
}

.mw-validate-tip::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    left: 16px;
    top: -5px;
    background: rgba(2, 6, 23, .90);
    border-left: 1px solid rgba(56, 189, 248, .22);
    border-top: 1px solid rgba(56, 189, 248, .22);
}

/* Actions */
.mw-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.mw-form__status {
    min-height: 1.2em;
    margin: 10px 0 0;
    color: rgba(203, 213, 225, .95);
    font-size: .92rem;
}

.mw-form__status.is-success {
    color: rgba(134, 239, 172, .98);
}

.mw-form__status.is-error {
    color: rgba(253, 164, 175, .98);
}

.mw-form__fineprint {
    margin: 10px 0 0;
    color: rgba(148, 163, 184, .85);
    font-size: .82rem;
    line-height: 1.5;
}

.mw-fineprint-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.mw-success__dialog {
    width: min(520px, 100%);
}

/* Success/Error state styling for pop-up */
.mw-success__dialog.is-error {
    border-color: rgba(251, 113, 133, .55);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(251, 113, 133, .24),
        0 0 70px rgba(251, 113, 133, .18),
        inset 0 0 0 1px rgba(251, 113, 133, .12);
}

/* Honeypot */
.mw-botcheck {
    display: none !important;
}

/* --------- RESPONSIVE --------- */

@media (max-width: 1200px) {
    .mw-hero-card {
        padding: 32px 28px 26px;
        gap: 32px;
    }

    #container {
        border-radius: 32px;
        padding: 64px 28px;
        width: 100%;
        max-width: 640px;
        height: auto;
        margin: 18px 0;
        background:
            radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.35), transparent 70%),
            radial-gradient(circle at 120% 120%, rgba(15, 23, 42, 0.9), #020617 65%);
        box-shadow:
            0 0 80px rgba(56, 189, 248, 0.55),
            0 18px 50px rgba(15, 23, 42, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .mw-wordmark {
        font-family: "Pinyon Script", cursive;
        font-size: clamp(3.0rem, 5.2vw, 4.4rem);
        line-height: 1;
        letter-spacing: 0.02em;
        color: var(--mw-ink);
        text-shadow:
            0 0 28px rgba(148, 215, 255, 0.35),
            0 0 80px rgba(56, 189, 248, 0.18);
    }

}

@media (max-width: 900px) {
    .mw-hero {
        padding: 32px 12px 24px;
    }

    .mw-hero-card {
        grid-template-columns: 1fr;
        border-radius: 28px;
        padding: 28px 22px 24px;
        gap: 26px;
    }

    .mw-logo-column {
        order: 1;
        align-items: center;
    }

    .mw-copy-column {
        order: 2;
    }

    .mw-logo-label {
        align-self: center;
    }

    #container {
        border-radius: 32px;
        padding: 64px 28px;
        width: 100%;
        max-width: 640px;
        height: auto;
        margin: 18px 0;
        background:
            radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.35), transparent 70%),
            radial-gradient(circle at 120% 120%, rgba(15, 23, 42, 0.9), #020617 65%);
        box-shadow:
            0 0 80px rgba(56, 189, 248, 0.55),
            0 18px 50px rgba(15, 23, 42, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .mw-wordmark {
        font-family: "Pinyon Script", cursive;
        font-size: clamp(3.0rem, 5.2vw, 4.4rem);
        line-height: 1;
        letter-spacing: 0.02em;
        color: var(--mw-ink);
        text-shadow:
            0 0 28px rgba(148, 215, 255, 0.35),
            0 0 80px rgba(56, 189, 248, 0.18);
    }

    .mw-title {
        font-size: 2rem;
    }

    .mw-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .mw-hero-card {
        padding: 24px 16px 22px;
        border-radius: 24px;
    }

    #container {
        border-radius: 32px;
        padding: 64px 28px;
        width: 100%;
        max-width: 640px;
        height: auto;
        margin: 18px 0;
        background:
            radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.35), transparent 70%),
            radial-gradient(circle at 120% 120%, rgba(15, 23, 42, 0.9), #020617 65%);
        box-shadow:
            0 0 80px rgba(56, 189, 248, 0.55),
            0 18px 50px rgba(15, 23, 42, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .mw-wordmark {
        font-family: "Pinyon Script", cursive;
        font-size: clamp(3.0rem, 5.2vw, 4.4rem);
        line-height: 1;
        letter-spacing: 0.02em;
        color: var(--mw-ink);
        text-shadow:
            0 0 28px rgba(148, 215, 255, 0.35),
            0 0 80px rgba(56, 189, 248, 0.18);
    }

    .mw-title {
        font-size: 1.8rem;
    }

    .mw-subtitle {
        font-size: 0.94rem;
    }
}