:root {
    color-scheme: dark;
    --background: #050817;
    --surface: rgba(11, 21, 56, 0.76);
    --surface-strong: rgba(13, 27, 67, 0.94);
    --text: #f7faff;
    --muted: #b7c8e6;
    --border: rgba(75, 178, 235, 0.8);
    --teal: #2dd4d0;
    --focus: #6feee6;
    --error: #ff9caa;
    --success: #75ead6;
    font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--background);
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.65rem 0.9rem;
    color: var(--background);
    background: var(--text);
    border-radius: 0.4rem;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 42%, rgba(20, 58, 111, 0.24), transparent 38%),
        linear-gradient(145deg, #030612 0%, #071027 48%, #020611 100%);
}

.background-grid {
    position: absolute;
    z-index: -4;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(50, 134, 207, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 134, 207, 0.28) 1px, transparent 1px);
    background-size: clamp(5rem, 7.4vw, 8.2rem) clamp(5rem, 7.4vw, 8.2rem);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 86%);
    mask-image: radial-gradient(circle at center, black, transparent 86%);
}

.orb {
    position: absolute;
    z-index: -3;
    aspect-ratio: 1;
    border: 1px solid rgba(60, 209, 229, 0.68);
    border-radius: 50%;
    pointer-events: none;
}

.orb::after {
    position: absolute;
    inset: 7%;
    content: "";
    border: 1px solid rgba(38, 126, 214, 0.28);
    border-radius: inherit;
}

.orb-left {
    bottom: -42vw;
    left: -30vw;
    width: min(77vw, 74rem);
    background:
        radial-gradient(circle at 66% 35%, rgba(34, 191, 207, 0.38), transparent 22%),
        radial-gradient(circle at 58% 44%, #123a72 0%, #0a2557 24%, #061631 52%, #020713 72%);
    box-shadow: 0 0 3.5rem rgba(24, 199, 214, 0.18), inset -1rem 1rem 3rem rgba(26, 208, 218, 0.11);
}

.orb-right {
    top: -44vw;
    right: -31vw;
    width: min(72vw, 70rem);
    background:
        radial-gradient(circle at 34% 66%, rgba(31, 207, 218, 0.3), transparent 20%),
        radial-gradient(circle at 42% 58%, #103565 0%, #081d42 31%, #020713 69%);
    box-shadow: 0 0 3.5rem rgba(24, 199, 214, 0.14), inset 1rem -1rem 3rem rgba(26, 208, 218, 0.11);
}

.orbit-lines {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.52;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 68%, transparent 0 24%, rgba(36, 129, 216, 0.75) 24.1% 24.2%, transparent 24.3% 36%, rgba(31, 123, 205, 0.5) 36.1% 36.2%, transparent 36.3%),
        radial-gradient(circle at 88% 19%, transparent 0 20%, rgba(31, 123, 205, 0.5) 20.1% 20.2%, transparent 20.3% 31%, rgba(34, 185, 218, 0.5) 31.1% 31.2%, transparent 31.3%);
}

.language-switch {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.9rem;
    padding: clamp(1.4rem, 3.4vw, 3.25rem) clamp(1.5rem, 5.2vw, 5.6rem) 0;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.language-switch span {
    width: 1px;
    height: 1.25rem;
    background: rgba(183, 200, 230, 0.38);
}

.language-switch a {
    position: relative;
    padding: 0.25rem 0;
    color: rgba(183, 200, 230, 0.62);
    text-decoration: none;
    transition: color 160ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a.active {
    color: var(--text);
}

.language-switch a.active::after {
    position: absolute;
    right: 0;
    bottom: -0.4rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--teal);
}

.main-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100% - 2rem, 62rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vh, 3.5rem) 0 clamp(2rem, 5vh, 4rem);
    text-align: center;
}

.brand-logo-wrap {
    width: min(29rem, 74vw);
    overflow: hidden;
    margin-bottom: clamp(2.5rem, 7vh, 5rem);
    line-height: 0;
}

.brand-logo {
    width: 100%;
    height: auto;
    filter: grayscale(1) invert(1) brightness(2.4) contrast(1.4);
    mix-blend-mode: screen;
}

.content-block {
    width: 100%;
}

h1 {
    max-width: 61rem;
    margin: 0 auto;
    font-size: clamp(2.45rem, 5.2vw, 5.25rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 0.2rem 1.8rem rgba(0, 0, 0, 0.28);
}

.lead {
    margin: clamp(1rem, 2.3vh, 1.5rem) auto 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.65vw, 1.45rem);
    line-height: 1.5;
    text-wrap: balance;
}

.signup-form {
    width: min(100%, 52.5rem);
    margin: clamp(1.7rem, 3.5vh, 2.5rem) auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
}

.input-wrap {
    position: relative;
    min-width: 0;
}

.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 1.45rem;
    width: 1.45rem;
    color: #a8bee4;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
    transform: translateY(-50%);
    pointer-events: none;
}

input[type="email"] {
    width: 100%;
    min-height: 4.7rem;
    padding: 0 1.4rem 0 4rem;
    color: var(--text);
    font: inherit;
    font-size: 1.06rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(50, 103, 167, 0.24), 0 0.65rem 2rem rgba(0, 0, 0, 0.16);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="email"]::placeholder {
    color: #a7b8d8;
    opacity: 0.88;
}

input[type="email"]:hover {
    background: var(--surface-strong);
}

input[type="email"]:focus-visible {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(111, 238, 230, 0.18), 0 0 1.9rem rgba(22, 185, 201, 0.13);
}

input[type="email"][aria-invalid="true"] {
    border-color: var(--error);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 4.7rem;
    padding: 0 2.2rem;
    color: #f9ffff;
    font: inherit;
    font-size: 1.03rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    background: linear-gradient(135deg, #21c7cf, #0ba9c0);
    border: 1px solid #50e7e0;
    border-radius: 0.72rem;
    box-shadow: 0 0.8rem 2.5rem rgba(16, 188, 203, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button svg {
    width: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.submit-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 1rem 2.8rem rgba(16, 188, 203, 0.3), inset 0 1px rgba(255, 255, 255, 0.3);
}

.submit-button:focus-visible,
.language-switch a:focus-visible,
footer a:focus-visible {
    outline: 3px solid rgba(111, 238, 230, 0.72);
    outline-offset: 4px;
}

.submit-button:active {
    transform: translateY(0);
}

.consent-row {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    width: fit-content;
    margin: 1rem 0 0 3.2rem;
    color: #c4d0e7;
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
}

.consent-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-checkbox {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.02rem;
    background: rgba(4, 10, 27, 0.7);
    border: 2px solid #b8cbe9;
    border-radius: 0.35rem;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.custom-checkbox svg {
    width: 0.95rem;
    opacity: 0;
    fill: none;
    stroke: #031018;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.consent-row input:checked + .custom-checkbox {
    background: var(--teal);
    border-color: var(--teal);
}

.consent-row input:checked + .custom-checkbox svg {
    opacity: 1;
}

.consent-row input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(111, 238, 230, 0.3);
}

.form-errors {
    margin: 0.8rem 0 0 3.2rem;
    color: var(--error);
    font-size: 0.88rem;
    line-height: 1.4;
}

.form-errors p {
    margin: 0.25rem 0 0;
}

.success-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 40rem;
    margin: clamp(1.7rem, 3.5vh, 2.5rem) auto 0;
    padding: 1rem 1.25rem;
    color: #e8fffb;
    font-size: 1rem;
    line-height: 1.45;
    background: rgba(15, 103, 102, 0.24);
    border: 1px solid rgba(117, 234, 214, 0.48);
    border-radius: 0.75rem;
}

.success-message svg {
    flex: 0 0 auto;
    width: 1.5rem;
    fill: none;
    stroke: var(--success);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.mlv-banner {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    width: min(100%, 52.5rem);
    margin: clamp(1.7rem, 3.8vh, 2.7rem) auto 0;
    padding: 0.85rem 1rem;
    text-align: left;
    background: rgba(8, 18, 45, 0.74);
    border: 1px solid rgba(75, 178, 235, 0.34);
    border-radius: 0.85rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.mlv-logo-wrap {
    height: 4.8rem;
    overflow: hidden;
    border-radius: 0.55rem;
}

.mlv-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

.mlv-copy h2 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    letter-spacing: -0.015em;
}

.mlv-copy p {
    margin: 0;
    color: #aebedb;
    font-size: 0.78rem;
    line-height: 1.45;
}

.mlv-links {
    display: grid;
    gap: 0.45rem;
}

.mlv-links a {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
    min-height: 2.15rem;
    padding: 0.35rem 0.65rem;
    color: #d9f8fa;
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
    background: rgba(18, 48, 88, 0.56);
    border: 1px solid rgba(66, 210, 215, 0.28);
    border-radius: 0.5rem;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mlv-links a:hover {
    background: rgba(20, 66, 105, 0.72);
    border-color: rgba(66, 210, 215, 0.62);
    transform: translateY(-1px);
}

.mlv-links a:focus-visible {
    outline: 3px solid rgba(111, 238, 230, 0.72);
    outline-offset: 3px;
}

.mlv-links svg {
    width: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

footer {
    z-index: 2;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem clamp(1.5rem, 4vh, 3rem);
    color: #afbdd4;
    font-size: 0.88rem;
}

.creator-credit {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

footer a {
    color: #39d9dc;
    text-underline-offset: 0.28rem;
    text-decoration-thickness: 1px;
}

.cookie-settings-button {
    padding: 0.15rem 0;
    color: #8fa2c0;
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(143, 162, 192, 0.42);
}

.cookie-settings-button:hover {
    color: var(--text);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    z-index: 30;
    right: clamp(1rem, 2.6vw, 2.5rem);
    bottom: clamp(1rem, 2.6vw, 2.5rem);
    left: clamp(1rem, 2.6vw, 2.5rem);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    width: min(58rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.15rem 1.25rem;
    background: rgba(5, 12, 30, 0.97);
    border: 1px solid rgba(75, 178, 235, 0.5);
    border-radius: 0.9rem;
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
}

.cookie-copy {
    min-width: 0;
}

.cookie-copy h2 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.cookie-copy p {
    max-width: 39rem;
    margin: 0;
    color: #b7c8e6;
    font-size: 0.82rem;
    line-height: 1.45;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
}

.cookie-button {
    min-height: 2.7rem;
    padding: 0 1rem;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    border-radius: 0.55rem;
}

.cookie-button-secondary {
    background: rgba(12, 24, 54, 0.9);
    border: 1px solid rgba(143, 174, 218, 0.46);
}

.cookie-button-primary {
    background: linear-gradient(135deg, #21c7cf, #0ba9c0);
    border: 1px solid #50e7e0;
}

.cookie-button:hover {
    filter: brightness(1.08);
}

.cookie-button:focus-visible,
.cookie-settings-button:focus-visible {
    outline: 3px solid rgba(111, 238, 230, 0.72);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .language-switch {
        padding: 1.35rem 1.35rem 0;
    }

    .main-content {
        width: min(100% - 2.25rem, 34rem);
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .brand-logo-wrap {
        width: min(22rem, 82vw);
        margin-bottom: clamp(2.6rem, 8vh, 4.25rem);
    }

    h1 {
        font-size: clamp(2.35rem, 11vw, 3.5rem);
    }

    .lead {
        max-width: 29rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    input[type="email"],
    .submit-button {
        min-height: 4.1rem;
    }

    .consent-row,
    .form-errors {
        margin-left: 0.2rem;
    }

    .mlv-banner {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.85rem;
    }

    .mlv-logo-wrap {
        height: 4.2rem;
    }

    .mlv-links {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .mlv-links a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .orb-left {
        bottom: -33vw;
        left: -65vw;
        width: 125vw;
    }

    .orb-right {
        top: -46vw;
        right: -58vw;
        width: 112vw;
    }

    footer {
        flex-wrap: wrap;
        padding-bottom: 1.35rem;
    }

    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-button {
        width: 100%;
    }
}

@media (max-height: 760px) and (min-width: 761px) {
    .brand-logo-wrap {
        width: 23rem;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: clamp(2.9rem, 4.5vw, 4.35rem);
    }

    .lead {
        margin-top: 0.7rem;
    }

    .signup-form {
        margin-top: 1.35rem;
    }

    .mlv-banner {
        margin-top: 1.35rem;
    }

    input[type="email"],
    .submit-button {
        min-height: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
