* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #08161b;
    color: #fff;
}

.site-header {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 4px;
    border-bottom: 1px solid #dce2e5;
    background: #fff;
}

.site-logo {
    display: flex;
    align-items: center;
    margin-inline-start: 5px;
    padding-top: 5px;
}

.site-logo img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 190px;
    object-fit: contain;
}

.language {
    position: relative;
    font-size: 15px;
}

.language summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
    cursor: pointer;
    list-style: none;
}

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

.language img {
    width: 28px;
    height: 20px;
    object-fit: contain;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 3;
    min-width: 160px;
    padding: 4px 0;
    border: 1px solid #dedede;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 12px rgb(0 0 0 / 18%);
}

.language-options button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: #fff;
    color: #263238;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.language-options button:hover,
.language-options button[aria-pressed="true"]:not(:focus-visible) {
    background: #edf3f5;
}

.language-options button:focus-visible {
    background: #fff;
    outline-offset: -3px;
}

.hero {
    display: grid;
    flex: 1;
    align-items: center;
    min-width: 0;
    padding: clamp(4.5rem, 10vh, 8rem) clamp(1.5rem, 7vw, 8rem);
    background:
        linear-gradient(90deg, rgb(5 16 21 / 95%) 0%, rgb(5 16 21 / 85%) 34%, rgb(5 16 21 / 30%) 63%, transparent 88%),
        url("./assets/circuit-board.jpg") 64% center / cover no-repeat;
}

.hero-content {
    max-width: 50rem;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 6.1vw, 6.25rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

h1 span:last-child {
    color: #a7d8dd;
}

.intro {
    max-width: 36ch;
    margin: 1.5rem 0 0;
    color: #e1ecee;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    line-height: 1.55;
}

.contact {
    max-width: 34rem;
    margin-top: clamp(2rem, 6vh, 3.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgb(218 239 241 / 42%);
    font-size: 1rem;
    line-height: 1.55;
}

.contact p {
    margin: 0 0 .45rem;
}

.contact-button {
    padding: .45rem .8rem;
    border: 1px solid #a7d8dd;
    border-radius: .25rem;
    background: transparent;
    color: #bde8ec;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.contact-button:hover {
    background: rgb(189 232 236 / 12%);
}

.contact-button:disabled {
    opacity: .7;
    cursor: wait;
}

.contact .support-status {
    margin: 0;
    color: #e1ecee;
}

.contact .support-status:not(:empty) {
    margin-top: .45rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1rem;
    min-height: 3rem;
    padding: .5rem clamp(1.5rem, 7vw, 8rem);
    border-top: 1px solid #30434b;
    background: #0b1b22;
    color: #d1dfe2;
    font-size: .875rem;
}

.site-footer button {
    padding: .35rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.analytics-notice {
    position: fixed;
    inset: auto 1rem 3.5rem auto;
    z-index: 2;
    width: min(26rem, calc(100% - 2rem));
    max-height: calc(100dvh - 8rem);
    overflow: auto;
    padding: 1.25rem;
    border: 1px solid #ccd7db;
    border-radius: .5rem;
    background: #fff;
    color: #263238;
    box-shadow: 0 5px 22px rgb(0 0 0 / 25%);
}

.analytics-notice h2 {
    margin: 0;
    font-size: 1.125rem;
}

.analytics-notice p {
    margin: .5rem 0 1rem;
    line-height: 1.45;
}

.analytics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.analytics-actions button {
    padding: .55rem .8rem;
    border: 1px solid #44616a;
    border-radius: .25rem;
    background: #fff;
    color: #263238;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 700px) {
    .site-header {
        padding-right: 8px;
    }

    .hero {
        min-height: 43rem;
        align-items: end;
        padding-top: 15rem;
        padding-bottom: 3rem;
        background:
            linear-gradient(0deg, #051015 0%, rgb(5 16 21 / 94%) 44%, rgb(5 16 21 / 28%) 87%),
            url("./assets/circuit-board.jpg") 72% top / auto 75% no-repeat,
            #051015;
    }
}
