:root {
    --text-main: #f2f5fa;
    --overlay-top: rgba(5, 11, 23, 0.42);
    --overlay-mid: rgba(4, 9, 20, 0.62);
    --overlay-bottom: rgba(3, 6, 15, 0.72);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Public Sans", sans-serif;
    background: #030a15;
    color: var(--text-main);
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: saturate(1.04) contrast(0.95) brightness(0.75);
    transform: scale(1.04);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 58% 56%, rgba(15, 28, 50, 0.08) 0%, rgba(7, 14, 26, 0.56) 44%, rgba(2, 5, 12, 0.84) 100%), linear-gradient(180deg, var(--overlay-top) 0%, var(--overlay-mid) 52%, var(--overlay-bottom) 100%);
}

.hero__content {
    width: min(760px, calc(100% - 2.5rem));
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hero-rise 1.05s cubic-bezier(0.2, 0.72, 0.1, 1) both;
}

.hero__logo {
    width: clamp(210px, 24vw, 380px);
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.hero__title {
    margin: 0;
    max-width: 20ch;
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

@keyframes hero-rise {
    from {
        transform: translateY(32px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero__content {
        width: min(720px, calc(100% - 2rem));
    }
}

@media (max-width: 640px) {
    .hero__content {
        width: calc(100% - 1.4rem);
    }

    .hero__logo {
        width: clamp(180px, 80vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__content {
        animation: none;
    }
}