:root {
    --mb-bg: #090415;
    --mb-bg-soft: #140721;
    --mb-surface: rgba(18, 10, 34, 0.84);
    --mb-surface-strong: rgba(28, 12, 52, 0.96);
    --mb-surface-light: rgba(255, 255, 255, 0.06);
    --mb-border: rgba(255, 255, 255, 0.12);
    --mb-text: #f5f0ff;
    --mb-muted: rgba(245, 240, 255, 0.74);
    --mb-klein: #390099;
    --mb-bordeaux: #9e0059;
    --mb-coral: #ff0054;
    --mb-orange: #ff5400;
    --mb-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    --mb-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mb-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body.mybrain-page {
    margin: 0;
    min-height: 100vh;
    color: var(--mb-text);
    font-family: var(--mb-ui);
    background:
        radial-gradient(circle at top left, rgba(57, 0, 153, 0.62), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(255, 84, 0, 0.34), transparent 28%),
        radial-gradient(circle at 50% 72%, rgba(255, 0, 84, 0.18), transparent 28%),
        linear-gradient(180deg, #06010d 0%, #0a0613 48%, #090311 100%);
    -webkit-font-smoothing: antialiased;
}

body.mybrain-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px),
        radial-gradient(circle at 24% 60%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
        radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.4px),
        radial-gradient(circle at 52% 74%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
        radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
        radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.4px);
    opacity: 0.55;
}

.mb-shell {
    position: relative;
    overflow: clip;
}

.mb-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(7, 3, 16, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-brand,
.mb-headline,
.mb-section-title,
.mb-form-title,
.mb-step-index,
.mb-pillar h3,
.mb-value-card h3 {
    font-family: var(--mb-display);
}

.mb-brand {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 260px);
}

.mb-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.mb-top-cta,
.mb-primary-cta,
.mb-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff6fb;
    background: linear-gradient(135deg, var(--mb-bordeaux), var(--mb-coral) 56%, var(--mb-orange));
    box-shadow: 0 18px 36px rgba(255, 0, 84, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.mb-top-cta:hover,
.mb-primary-cta:hover,
.mb-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(255, 0, 84, 0.3);
    filter: brightness(1.02);
}

.mb-secondary-link {
    color: var(--mb-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.2rem;
}

.mb-hero,
.mb-section {
    position: relative;
    padding: 4.25rem 0;
}

.mb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.mb-eyebrow,
.mb-form-kicker {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.mb-headline {
    margin: 0;
    font-size: clamp(2.65rem, 6.5vw, 4.6rem);
    line-height: 0.93;
    letter-spacing: -0.05em;
}

.mb-subheadline,
.mb-section-copy,
.mb-pillar p,
.mb-manifesto-text,
.mb-form-copy,
.mb-proof span,
.mb-chat-message p,
.mb-chat-support,
.mb-step p,
.mb-value-card p {
    color: var(--mb-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.mb-subheadline {
    max-width: 38rem;
    margin-top: 1.4rem;
    font-size: 1rem;
}

.mb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
    align-items: center;
    margin-top: 1.8rem;
}

.mb-manifesto-card,
.mb-signup-card,
.mb-pillar,
.mb-chat-window,
.mb-step,
.mb-value-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mb-border);
    background: linear-gradient(180deg, var(--mb-surface), rgba(11, 6, 23, 0.9));
    box-shadow: var(--mb-shadow);
}

.mb-manifesto-card {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.4rem;
    border-radius: 40px;
}

.mb-manifesto-card::after,
.mb-signup-card::after,
.mb-chat-window::after,
.mb-value-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 84, 0, 0.2), transparent 70%);
    pointer-events: none;
}

.mb-manifesto-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-squircle {
    position: relative;
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 34%;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(57, 0, 153, 0.84), rgba(158, 0, 89, 0.86) 54%, rgba(255, 84, 0, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 24px 40px rgba(0, 0, 0, 0.34);
}

.mb-node,
.mb-link {
    position: absolute;
    display: block;
}

.mb-node {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.42);
}

.mb-link {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08));
    transform-origin: left center;
}

.mb-node-1 { top: 24px; left: 32px; }
.mb-node-2 { top: 34px; right: 28px; }
.mb-node-3 { top: 56px; left: 62px; }
.mb-node-4 { bottom: 36px; left: 26px; }
.mb-node-5 { bottom: 28px; right: 32px; }
.mb-node-6 { top: 78px; right: 50px; }
.mb-node-7 { bottom: 56px; left: 66px; }

.mb-link-1 { top: 29px; left: 40px; width: 56px; transform: rotate(12deg); }
.mb-link-2 { top: 59px; left: 34px; width: 42px; transform: rotate(38deg); }
.mb-link-3 { top: 61px; left: 68px; width: 42px; transform: rotate(-22deg); }
.mb-link-4 { top: 79px; left: 34px; width: 62px; transform: rotate(-12deg); }

.mb-manifesto-copy {
    min-width: 0;
}

.mb-manifesto-text {
    margin: 0;
}

.mb-signup-card {
    padding: 1.7rem;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(24, 11, 42, 0.96), rgba(11, 6, 23, 0.94)),
        linear-gradient(135deg, rgba(57, 0, 153, 0.18), rgba(255, 84, 0, 0.12));
}

.mb-form-kicker {
    margin-bottom: 0.75rem;
}

.mb-form-title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.mb-form-copy {
    margin: 0.9rem 0 1.4rem;
}

.mb-multistep-form {
    display: grid;
    gap: 1rem;
}

.mb-step-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
}

.mb-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 700;
}

.mb-step-pill.is-active,
.mb-step-pill.is-complete {
    color: #fff6fb;
    border-color: rgba(255, 84, 0, 0.38);
    background: linear-gradient(135deg, rgba(158, 0, 89, 0.38), rgba(255, 84, 0, 0.3));
}

.mb-form-step {
    display: none;
    gap: 1rem;
    transform-origin: top center;
}

.mb-form-step.is-active {
    display: grid;
}

.mb-multistep-form[data-direction="forward"] .mb-form-step.is-active {
    animation: mb-step-forward 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-multistep-form[data-direction="back"] .mb-form-step.is-active {
    animation: mb-step-back 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mb-step-forward {
    from {
        opacity: 0;
        transform: translateX(18px) translateY(6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes mb-step-back {
    from {
        opacity: 0;
        transform: translateX(-18px) translateY(6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.mb-form-step-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mb-captured-email {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.mb-captured-email-label,
.mb-captured-email-value {
    margin: 0;
}

.mb-captured-email-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mb-captured-email-value {
    margin-top: 0.35rem;
    color: var(--mb-text);
    font-size: 1rem;
    font-weight: 700;
}

.mb-success-state {
    min-height: 256px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mb-signup-card .form-label {
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.85rem;
    font-weight: 700;
}

.mb-signup-card .form-control,
.mb-signup-card .form-select {
    min-height: 3rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--mb-text);
    box-shadow: none;
}

.mb-signup-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.mb-signup-card .form-control:focus,
.mb-signup-card .form-select:focus {
    border-color: rgba(255, 84, 0, 0.46);
    box-shadow: 0 0 0 0.18rem rgba(255, 84, 0, 0.14);
}

.mb-signup-card .form-select {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.8) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.mb-signup-card .form-select option {
    color: #14091f;
}

.mb-choice-list {
    display: grid;
    gap: 0.75rem;
}

.mb-choice-group-label {
    margin-bottom: 0.2rem;
}

.mb-choice-card {
    position: relative;
    display: block;
    padding: 1rem 1rem 1rem 3.3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mb-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
}

.mb-choice-card:has(.mb-choice-input:checked) {
    border-color: rgba(255, 84, 0, 0.42);
    background: linear-gradient(135deg, rgba(57, 0, 153, 0.24), rgba(255, 84, 0, 0.16));
}

.mb-choice-input {
    position: absolute;
    top: 1.15rem;
    left: 1.15rem;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--mb-orange);
}

.mb-choice-copy {
    display: block;
    color: var(--mb-text);
    font-size: 0.98rem;
    line-height: 1.45;
}

.mb-step-actions {
    display: flex;
    gap: 0.8rem;
}

.mb-step-actions > * {
    flex: 1 1 0;
}

.mb-submit {
    width: 100%;
    font-size: 1rem;
}

.mb-step-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--mb-text);
    font-size: 0.95rem;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mb-step-back:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.mb-proof {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-proof p {
    margin: 0;
    color: var(--mb-text);
    font-weight: 700;
}

.mb-proof-copy span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.96rem;
}

.mb-proof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    margin-top: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 0, 84, 0.18), rgba(255, 84, 0, 0.18));
    color: #fff0f5;
    font-size: 1rem;
    line-height: 1;
    overflow: hidden;
}

.mb-section-intro {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.mb-section-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.2vw, 2.85rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.mb-section-copy {
    margin-top: 1rem;
}

.mb-pillars,
.mb-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mb-pillar,
.mb-value-card {
    padding: 1.35rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.mb-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 16px;
    color: #fff2f8;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(57, 0, 153, 0.74), rgba(255, 0, 84, 0.74) 60%, rgba(255, 84, 0, 0.7));
}

.mb-pillar h3,
.mb-step h3,
.mb-value-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.mb-pillar p,
.mb-value-card p,
.mb-step p {
    margin: 0;
}

.mb-chat-panel {
    padding: 2rem;
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(57, 0, 153, 0.12), rgba(255, 84, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-chat-window {
    border-radius: 34px;
}

.mb-chat-topbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-chat-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 0, 84, 0.95), rgba(255, 84, 0, 0.95));
}

.mb-chat-topbar p {
    margin: 0 0 0 0.4rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mb-chat-body {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.mb-chat-message {
    max-width: min(100%, 780px);
    padding: 1rem 1.1rem;
    border-radius: 24px;
}

.mb-chat-user {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-chat-assistant {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(57, 0, 153, 0.28), rgba(255, 0, 84, 0.2), rgba(255, 84, 0, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mb-chat-answer-fade {
    max-height: 24rem;
}

.mb-chat-answer-fade p + p,
.mb-chat-answer-fade ul + p,
.mb-chat-answer-fade p + ul {
    margin-top: 1rem;
}

.mb-chat-answer-fade ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--mb-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.mb-chat-answer-fade li::marker {
    color: rgba(255, 176, 120, 0.95);
}

.mb-chat-answer-fade strong {
    color: var(--mb-text);
    font-weight: 800;
}

.mb-chat-answer-fade::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 6.5rem;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, rgba(72, 13, 70, 0), rgba(72, 13, 70, 0.9) 58%, rgba(72, 13, 70, 1));
    pointer-events: none;
}

.mb-chat-message span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.mb-chat-message p,
.mb-chat-support {
    margin: 0;
}

.mb-chat-support {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.92rem;
}

.mb-steps {
    display: grid;
    gap: 1rem;
}

.mb-step {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    padding: 1.35rem;
    border-radius: 30px;
}

.mb-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(57, 0, 153, 0.7), rgba(255, 0, 84, 0.78) 58%, rgba(255, 84, 0, 0.74)),
        rgba(255, 255, 255, 0.04);
    color: #fff7fb;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.mb-section-last {
    padding-bottom: 5rem;
}

.mb-footer {
    padding: 0 0 2.5rem;
}

.mb-footer .container {
    display: flex;
    justify-content: center;
}

.mb-footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 0.15rem;
    transition: color 180ms ease, border-color 180ms ease;
}

.mb-footer-link:hover {
    color: #fff6fb;
    border-color: rgba(255, 84, 0, 0.44);
}

@media (max-width: 1199px) {
    .mb-pillars,
    .mb-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mb-hero-grid {
        grid-template-columns: 1fr;
    }

    .mb-signup-card {
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    .mb-hero,
    .mb-section {
        padding: 3.25rem 0;
    }

    .mb-nav {
        gap: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .mb-top-cta {
        width: 100%;
    }

    .mb-brand {
        max-width: 220px;
    }

    .mb-manifesto-card,
    .mb-step {
        grid-template-columns: 1fr;
    }

    .mb-squircle,
    .mb-step-index {
        margin: 0 auto;
    }

    .mb-pillars,
    .mb-value-grid {
        grid-template-columns: 1fr;
    }

    .mb-chat-panel {
        padding: 1.25rem;
        border-radius: 28px;
    }

    .mb-chat-window,
    .mb-signup-card,
    .mb-pillar,
    .mb-step,
    .mb-value-card,
    .mb-manifesto-card {
        border-radius: 24px;
    }

    .mb-step-actions {
        flex-direction: column;
    }
}
