/* Shared foundations */
:root {
    color-scheme: dark;
    --page-background: #000;
    --text: #fff;
    --muted: #999;
    --content-width: 1200px;
    --page-gutter: clamp(20px, 5vw, 70px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--page-background);
    color: var(--text);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
button,
input {
    font: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    -webkit-tap-highlight-color: transparent;
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
p {
    margin: 0;
}
.container {
    width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
    margin-inline: auto;
}
:focus-visible {
    outline: 2px solid #70c8f4;
    outline-offset: 6px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 12px 20px;
    background: #fff;
    color: #000;
    transform: translateY(-150%);
}
.skip-link:focus {
    transform: translateY(0);
}

/* First screen */
.hero {
    position: relative;
    min-height: max(700px, 100svh);
    isolation: isolate;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #000 url('/assets/video/hero-poster.jpg') center / cover no-repeat;
}
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgb(0 0 0 / 10%));
}
.site-header {
    padding-block: 64px;
}
.brand {
    display: inline-block;
}
.brand img {
    width: 130px;
    height: 41px;
}
.hero-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    margin-top: 48px;
}
.hero h1 {
    max-width: 700px;
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 400;
    line-height: 1.65;
}
.registration-trigger {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    cursor: pointer;
}
.registration-trigger::before {
    content: '';
    position: absolute;
    inset: -80px -60px -80px 45%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgb(77 113 244 / 45%), transparent 65%);
    transition: opacity 200ms;
}
.registration-trigger img {
    flex-shrink: 0;
    transition: transform 200ms;
}
.registration-trigger:hover img {
    transform: translateX(6px);
}
.registration-trigger:hover::before {
    opacity: 0.7;
}
.hero noscript p {
    margin-top: 24px;
}
.hero noscript a {
    text-decoration: underline;
}

/* Supported types of partners */
.audience {
    padding-block: 100px 80px;
}
.audience h2 {
    max-width: 1000px;
    margin-bottom: 32px;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 400;
    line-height: 1.55;
}
.audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.audience-list li {
    padding: 10px 24px;
    border: 1px solid #575961;
    border-radius: 999px;
    color: #b4b4b8;
    font-size: 20px;
    line-height: 1.4;
}
.audience-list li:nth-child(2) {
    border-color: #315e64;
}
.audience-list li:nth-child(3) {
    border-color: #6343a4;
}
.audience-list li:nth-child(4) {
    border-color: #354c91;
}
.audience-list li:nth-child(5) {
    border-color: #3d809e;
}

/* The four original benefits */
.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px 100px;
    padding-block: 40px 120px;
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}
.feature h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 400;
}
.feature p {
    max-width: 520px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

/* Contacts */
.site-footer {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 40px;
    color: var(--muted);
    font-size: 14px;
}
.site-footer a:hover,
.legal-header a:hover {
    color: #fff;
}
.site-footer .contact-link {
    margin-left: auto;
    font-size: 24px;
}

/* Offer: the published legal text with readable document formatting */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 40px;
}
.legal-header > a:last-child {
    color: var(--muted);
}
.legal-content {
    max-width: 960px;
    padding-block: 24px 100px;
}
.legal-content h1 {
    margin-bottom: 24px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
}
.legal-content h2 {
    margin-block: 36px 16px;
    font-size: 24px;
    font-weight: 500;
}
.legal-content p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.legal-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The wide-screen composition scales together, as in the original hero. */
@media (min-width: 1101px) {
    .hero-content {
        width: calc(100% - 6.6667vw);
    }
    .site-header {
        padding-block: 2.2vw 0;
    }
    .hero .brand {
        display: block;
        width: fit-content;
    }
    .hero .brand img {
        width: 11.5vw;
        height: auto;
    }
    .hero-intro {
        display: grid;
        grid-template-columns: 65vw minmax(0, 1fr);
        align-items: start;
        gap: 0;
        margin-top: 5.7vw;
    }
    .hero h1 {
        max-width: none;
        font-size: 2.25vw;
        line-height: 1.55;
    }
    .hero-line {
        display: block;
    }
    .registration-trigger {
        justify-self: start;
        gap: 1.8vw;
        padding: 0;
        font-size: 1.8333vw;
        line-height: 1.55;
    }
    .registration-trigger img {
        width: 2.5vw;
        height: auto;
    }
    .registration-trigger::before {
        inset: -7vw -6vw -7vw 45%;
    }
}

@media (max-width: 1100px) {
    .hero-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        margin-top: 24px;
    }
    .registration-trigger {
        align-self: flex-end;
    }
    .features {
        gap: 60px;
    }
}

@media (max-width: 639px) {
    .hero {
        min-height: max(720px, 100svh);
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        min-height: inherit;
    }
    .site-header {
        padding-block: 64px 48px;
    }
    .hero-intro {
        flex: 1;
        margin-top: 24px;
        padding-bottom: 120px;
        gap: 64px;
    }
    .hero h1 {
        max-width: 420px;
        font-size: 22px;
        line-height: 1.65;
    }
    .registration-trigger {
        margin-top: auto;
        gap: 24px;
        font-size: 20px;
    }
    .audience {
        padding-block: 72px 64px;
    }
    .audience h2 {
        font-size: 25px;
    }
    .audience-list {
        gap: 12px;
    }
    .audience-list li {
        padding: 10px 18px;
        font-size: 16px;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 64px;
        padding-block: 24px 72px;
    }
    .feature h2 {
        font-size: 24px;
    }
    .feature p {
        font-size: 18px;
    }
    .site-footer {
        flex-wrap: wrap;
        gap: 20px;
        padding-block: 24px 40px;
    }
    .site-footer .contact-link {
        flex-basis: 100%;
        margin-left: 0;
        font-size: 22px;
    }
    .legal-header {
        padding-block: 28px;
    }
    .legal-content p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .registration-trigger img,
    .registration-trigger::before {
        transition: none;
    }
}
