:root {
    color-scheme: dark;
    --bg: #070a10;
    --bg-soft: #0d1420;
    --panel: rgba(10, 16, 24, 0.86);
    --panel-strong: rgba(14, 22, 32, 0.94);
    --line: rgba(168, 210, 232, 0.24);
    --text: #edf7ff;
    --muted: #aebdca;
    --cyan: #5ed7ff;
    --amber: #f2b84b;
    --green: #70e0a8;
    --red: #ff4f5e;
    --rose: #d06a92;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #070a10 url("../img/hero-cover.jpg") center top / cover no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 5, 9, 0.24), rgba(3, 5, 9, 0.96) 68%),
        linear-gradient(90deg, rgba(3, 5, 9, 0.88), rgba(3, 5, 9, 0.38) 52%, rgba(3, 5, 9, 0.9));
    pointer-events: none;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-height: 0;
    padding: 12px max(22px, calc((100vw - 1180px) / 2)) 0;
    pointer-events: none;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: center;
    text-decoration: none;
    font-weight: 800;
    pointer-events: auto;
    isolation: isolate;
}

.brand::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: -1;
    width: clamp(260px, 30vw, 460px);
    height: clamp(220px, 26vw, 380px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0) 78%);
    filter: blur(14px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.brand img {
    position: relative;
    z-index: 1;
    width: clamp(180px, 19vw, 270px);
    height: auto;
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 22px rgba(94, 215, 255, 0.22));
}

.beta-status-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(168, 210, 232, 0.2);
    border-radius: 12px;
    background: rgba(7, 12, 19, 0.44);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 18px rgba(255, 79, 94, 0.72);
}

.beta-language-selector {
    position: relative;
    z-index: 21;
    justify-self: end;
    pointer-events: auto;
}

.beta-language-selector summary {
    list-style: none;
}

.beta-language-selector summary::-webkit-details-marker {
    display: none;
}

.cockpit-language-current,
.cockpit-language-option {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(106, 192, 255, 0.2);
    border-radius: 12px;
    background: rgba(9, 16, 26, 0.64);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.cockpit-language-current:hover,
.cockpit-language-current:focus-visible,
.cockpit-language-option:hover,
.cockpit-language-option:focus-visible {
    border-color: rgba(111, 226, 255, 0.46);
    box-shadow: 0 0 0 1px rgba(111, 226, 255, 0.16), 0 10px 20px rgba(0, 0, 0, 0.28);
    outline: none;
}

.cockpit-language-current img,
.cockpit-language-option img {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cockpit-language-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(106, 192, 255, 0.18);
    border-radius: 14px;
    background: rgba(6, 11, 18, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

.beta-language-selector:not([open]) .cockpit-language-menu {
    display: none;
}

.cockpit-language-option {
    text-decoration: none;
}

.cockpit-language-option.is-active {
    border-color: rgba(255, 204, 103, 0.62);
    background: linear-gradient(180deg, rgba(81, 59, 18, 0.86), rgba(13, 17, 27, 0.96));
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 750px;
    padding: 206px max(22px, calc((100vw - 1180px) / 2)) 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 8, 13, 0.1), rgba(6, 8, 13, 0.88)),
        url("../img/hero-cover.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: center;
    min-height: 480px;
}

.hero-copy {
    min-width: 0;
    width: 100%;
    max-width: 690px;
}

.kicker,
.panel-eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: 1.9rem;
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.hero-lede {
    width: 100%;
    max-width: 650px;
    margin-bottom: 20px;
    color: #d8e7f2;
    font-size: 1.08rem;
    overflow-wrap: break-word;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.hero-pills span,
.hero-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 13, 20, 0.62);
    color: #eaf7ff;
    font-size: 0.86rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.button-primary {
    color: #061016;
    background: var(--amber);
    box-shadow: 0 12px 28px rgba(242, 184, 75, 0.22);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.signup-panel {
    display: grid;
    min-width: 0;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.signup-panel h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.signup-panel p {
    color: var(--muted);
}

.signup-panel label {
    color: #d9eaf4;
    font-size: 0.82rem;
    font-weight: 800;
}

.signup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.signup-row input,
.signup-row button {
    min-height: 42px;
    border-radius: 8px;
    font: inherit;
}

.signup-row input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 12px;
}

.signup-row input:focus {
    outline: 2px solid rgba(94, 215, 255, 0.38);
    outline-offset: 2px;
}

.signup-row button {
    border: 0;
    background: var(--cyan);
    color: #061016;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.form-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 800;
}

.form-message.is-success,
.form-message.is-duplicate {
    border: 1px solid rgba(112, 224, 168, 0.34);
    background: rgba(112, 224, 168, 0.12);
    color: #dfffee;
}

.form-message.is-invalid,
.form-message.is-error {
    border: 1px solid rgba(208, 106, 146, 0.42);
    background: rgba(208, 106, 146, 0.14);
    color: #ffe6ef;
}

.privacy-note {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.section-band {
    padding: 42px max(22px, calc((100vw - 1180px) / 2));
    background: rgba(7, 10, 16, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.section-copy p,
.gallery-copy p,
.validation-copy p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.feature-grid article {
    min-height: 128px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-grid article:nth-child(1) h3 {
    color: var(--green);
}

.feature-grid article:nth-child(2) h3 {
    color: var(--amber);
}

.feature-grid article:nth-child(3) h3 {
    color: var(--cyan);
}

.feature-grid article:nth-child(4) h3 {
    color: var(--rose);
}

.feature-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.gallery-copy {
    align-self: center;
}

.wide-visual,
.planet-visual,
.promo-strip figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: var(--panel-strong);
}

.wide-visual {
    min-height: 260px;
}

.wide-visual img,
.planet-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.promo-strip figure {
    position: relative;
    aspect-ratio: 16 / 9;
}

.promo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-strip figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(5, 8, 13, 0.76);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.validation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    align-items: center;
}

.planet-visual {
    min-height: 280px;
}

.validation-copy ul {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.validation-copy li {
    padding: 10px 12px;
    border-left: 3px solid var(--cyan);
    background: rgba(255, 255, 255, 0.05);
    color: #d9e8f0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px max(22px, calc((100vw - 1180px) / 2));
    color: var(--muted);
    background: #05080d;
}

.site-footer span {
    color: var(--text);
    font-weight: 900;
}

.site-footer p {
    margin: 0;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(168, 210, 232, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: rgba(94, 215, 255, 0.48);
    color: var(--cyan);
    outline: none;
    box-shadow: 0 0 0 1px rgba(94, 215, 255, 0.16);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 920px) {
    .hero-shell {
        min-height: 0;
        padding-top: 228px;
    }

    .hero-content,
    .intro-grid,
    .visual-grid,
    .validation-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: 0;
    }

    h1 {
        font-size: 2.7rem;
    }

    .signup-panel {
        max-width: 560px;
    }

    .promo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        padding-top: 10px;
    }

    .brand {
        grid-column: 1 / -1;
        grid-row: 1;
        padding-top: 28px;
    }

    .brand img {
        width: min(58vw, 190px);
    }

    .brand::before {
        width: 270px;
        height: 230px;
        filter: blur(12px);
    }

    .beta-status-pill {
        grid-column: 1;
        grid-row: 1;
        min-height: 30px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .beta-language-selector {
        grid-column: 3;
        grid-row: 1;
    }

    .hero-shell {
        padding-top: 272px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-content {
        justify-items: start;
    }

    .hero-copy,
    .hero-lede {
        width: min(100%, calc(100vw - 72px));
        max-width: calc(100vw - 72px);
    }

    .signup-panel,
    .hero-stats {
        width: calc(100vw - 44px);
        max-width: calc(100vw - 44px);
    }

    .hero-lede,
    .section-copy p,
    .signup-panel p {
        overflow-wrap: break-word;
    }

    h1 {
        font-size: 2.18rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .hero-lede {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .signup-row,
    .feature-grid,
    .promo-strip {
        grid-template-columns: 1fr;
    }

    .signup-row button {
        width: 100%;
    }

    .section-band {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
