html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: var(--fw-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform-origin: center center;
    animation: heroVideoDrift 32s ease-in-out infinite alternate;
}

@keyframes heroVideoDrift {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.045) translate3d(0.6%, -0.4%, 0);
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    backdrop-filter: blur(6px) saturate(1.1);
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--black) 15%, transparent) 0%,
            color-mix(in srgb, var(--black) 10%, transparent) 38%,
            color-mix(in srgb, var(--black) 20%, transparent) 100%);
}

.hero__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: color-mix(in srgb, var(--black) 0%, transparent);
    transform: translateY(-110%);
    opacity: 0;
    transition:
        transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
        opacity 320ms ease,
        background-color 280ms ease,
        backdrop-filter 280ms ease;
    will-change: transform, opacity;
}

body.hero-loaded .hero__nav {
    transform: translateY(0);
    opacity: 1;
}

body.hero-loaded .hero__nav.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.hero__nav.is-pinned {
    background: color-mix(in srgb, var(--black) 70%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.hero__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    background: transparent !important;
}

.hero__logo-img {
    display: block;
    height: 52px;
    /* Bigger desktop logo */
    width: auto;
    max-width: min(250px, 42vw);
    object-fit: contain;
    background: transparent !important;
}

.hero__nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__link {
    color: color-mix(in srgb, var(--white) 85%, transparent);
    text-decoration: none;
    font-size: 14px;
    transition: color 160ms ease;
}

.hero__link:hover {
    color: var(--white);
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    max-width: 880px;
    /* Narrower width for optimal reading and alignment */
    margin: 0 auto;
    gap: 36px;
    /* spreads out the elements perfectly and uniformly */
}

.hero__eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--white) 70%, transparent);
}

.hero__title {
    margin: 0;
    font-size: clamp(3rem, 8.5vw, 7rem);
    font-weight: var(--fw-extrabold);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.hero__subtitle {
    margin: 0;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: var(--fw-light);
    line-height: 1.55;
    color: color-mix(in srgb, var(--white) 78%, transparent);
    max-width: 700px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero__microcopy {
    margin: 28px 0 0;
    font-size: 15px;
    font-weight: var(--fw-light);
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--white) 60%, transparent);
}

.hero__social {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero__avatars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.hero__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid var(--black);
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--black) 60%, transparent);
}

.hero__avatar+.hero__avatar {
    margin-left: -12px;
}

.hero__avatar--1 {
    background: linear-gradient(135deg, #ff8a65, #ff5252);
}

.hero__avatar--2 {
    background: linear-gradient(135deg, #ffd54f, #ff9800);
}

.hero__avatar--3 {
    background: linear-gradient(135deg, #4fc3f7, #1976d2);
}

.hero__avatar--4 {
    background: linear-gradient(135deg, #b388ff, #6a1b9a);
}

.hero__avatar--5 {
    background: linear-gradient(135deg, #80cbc4, #00897b);
}

.hero__social-text {
    margin: 0;
    font-size: 15px;
    font-weight: var(--fw-light);
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--white) 70%, transparent);
}

.hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    isolation: isolate;
    transition:
        transform 220ms cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 220ms cubic-bezier(0.19, 1, 0.22, 1),
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease,
        filter 220ms ease;
}

.hero__cta:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--white) 75%, transparent);
    outline-offset: 3px;
}

.hero__cta--primary:focus-visible {
    outline-color: color-mix(in srgb, var(--white) 90%, transparent);
}

.hero__cta--primary {
    color: var(--black);
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--white) 100%, transparent) 0%,
            color-mix(in srgb, var(--white) 92%, var(--black)) 100%);
    border-color: color-mix(in srgb, var(--white) 35%, transparent);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 65%, transparent) inset,
        0 10px 32px -12px color-mix(in srgb, var(--black) 65%, transparent),
        0 2px 6px color-mix(in srgb, var(--black) 28%, transparent);
}

.hero__cta--primary:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--white) 55%, transparent);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 80%, transparent) inset,
        0 18px 44px -14px color-mix(in srgb, var(--black) 72%, transparent),
        0 6px 16px color-mix(in srgb, var(--black) 22%, transparent);
}

.hero__cta--primary:active {
    transform: translateY(0) scale(0.985);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 40%, transparent) inset,
        0 6px 18px -8px color-mix(in srgb, var(--black) 55%, transparent),
        0 1px 3px color-mix(in srgb, var(--black) 35%, transparent);
}

.hero__cta--secondary {
    color: var(--white);
    background: color-mix(in srgb, var(--white) 6%, transparent);
    border-color: color-mix(in srgb, var(--white) 32%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 12%, transparent) inset,
        0 10px 28px -14px color-mix(in srgb, var(--black) 55%, transparent);
}

.hero__cta--secondary:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--white) 11%, transparent);
    border-color: color-mix(in srgb, var(--white) 52%, transparent);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 18%, transparent) inset,
        0 16px 36px -12px color-mix(in srgb, var(--black) 60%, transparent);
}

.hero__cta--secondary:active {
    transform: translateY(0) scale(0.985);
}

.hero__cta--ghost {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--white);
    background: color-mix(in srgb, var(--white) 7%, transparent);
    border-color: color-mix(in srgb, var(--white) 18%, transparent);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    backdrop-filter: blur(8px) saturate(1.1);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 10%, transparent) inset,
        0 8px 22px -12px color-mix(in srgb, var(--black) 45%, transparent);
}

.hero__cta--ghost:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--white) 13%, transparent);
    border-color: color-mix(in srgb, var(--white) 38%, transparent);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--white) 16%, transparent) inset,
        0 12px 28px -10px color-mix(in srgb, var(--black) 50%, transparent);
}

.hero__cta--ghost:active {
    transform: translateY(0) scale(0.985);
}

.hero__content {
    opacity: 0;
    filter: blur(22px);
    transform: translateY(22px) scale(0.985);
    will-change: opacity, filter, transform;
    animation: heroTextGrainBlurIn 1.3s cubic-bezier(0.19, 1, 0.22, 1) 1s both;
}

@keyframes heroTextGrainBlurIn {
    0% {
        opacity: 0;
        filter: blur(22px) saturate(1.05);
        transform: translateY(22px) scale(0.985);
    }

    14% {
        opacity: 0.18;
        filter: blur(16px);
    }

    30% {
        opacity: 0.42;
        filter: blur(11px);
    }

    48% {
        opacity: 0.68;
        filter: blur(7px);
    }

    66% {
        opacity: 0.86;
        filter: blur(4px);
    }

    84% {
        opacity: 0.96;
        filter: blur(1.5px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        animation: none;
    }

    .hero__nav,
    body.hero-loaded .hero__nav {
        transition: none;
        transform: translateY(0);
        opacity: 1;
    }

    .hero__content {
        animation: none;
        opacity: 1;
        filter: none;
        transform: none;
        will-change: auto;
    }
}

@media (max-width: 640px) {
    .hero__nav {
        padding: 16px 20px;
    }

    .hero__content {
        padding: 0 20px;
    }
}

/* Language Selector Styles */
.hero__lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.hero__lang-form {
    margin: 0;
}

.hero__lang-btn {
    background: color-mix(in srgb, var(--white) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
    border-radius: 50px;
    padding: 6px 12px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}

.hero__lang-btn:hover {
    background: color-mix(in srgb, var(--white) 15%, transparent);
}

.hero__lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.hero__lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: color-mix(in srgb, var(--black) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--black) 50%, transparent);
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 4px;
}

.hero__lang-option {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hero__lang-option:hover {
    background: color-mix(in srgb, var(--white) 25%, transparent);
}

.hero__lang-option.is-active {
    background: color-mix(in srgb, var(--white) 15%, transparent);
}

.hero__lang-option-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsive Drawer & Burger Menu Styles */
.hero__logo-img--favicon {
    display: none !important;
}

.hero__burger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hero__burger-icon {
    font-size: 32px !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    display: block;
    transition: transform 0.2s ease;
}

/* Breakpoint for Medium Desktop / Large Laptop (1200px to 1440px) */
@media (max-width: 1440px) {
    .hero__content {
        max-width: 900px;
    }

    .hero__title {
        font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    }

    .hero__subtitle {
        font-size: clamp(1.15rem, 1.65vw, 1.4rem);
    }
}

/* Laptop Responsive Styles (1024px to 1200px) */
@media (max-width: 1200px) {
    .hero__content {
        max-width: 760px;
    }

    .hero__title {
        font-size: clamp(3rem, 6.5vw, 5rem);
    }

    .hero__subtitle {
        font-size: clamp(1.2rem, 1.7vw, 1.35rem);
    }
}

/* Tablet Responsive Styles (Covers your 780px test width) */
@media (max-width: 1024px) {
    .hero__logo-img {
        height: 38px;
    }

    .hero__content {
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .hero__logo-img--full {
        display: none !important;
    }

    .hero__logo-img--favicon {
        display: block !important;
        height: 42px;
        /* Bigger mobile logo icon! */
        width: 42px;
        object-fit: contain;
        background: transparent !important;
    }

    .hero__link--desktop-only,
    .hero__cta--desktop-only {
        display: none !important;
    }

    .hero__lang-selector {
        margin-right: 0 !important;
    }

    .hero__burger-btn {
        display: flex !important;
    }

    /* Reduced Mobile Typography & Buttons */
    .hero__content {
        max-width: 480px !important;
        /* Further reduced width for extremely compact mobile look */
        width: 100% !important;
        gap: 48px !important;
        /* Doubled the gap to spread out the content */
    }

    .hero__eyebrow {
        font-size: 11px !important;
        margin: 0 !important;
        letter-spacing: 0.14em !important;
    }

    .hero__title {
        font-size: clamp(2.4rem, 9.5vw, 3.4rem) !important;
        /* Increased font-size */
        margin: 0 !important;
        line-height: 1.05 !important;
    }

    .hero__subtitle {
        font-size: 1.15rem !important;
        /* Increased font-size */
        margin: 0 !important;
        line-height: 1.45 !important;
    }

    .hero__social {
        margin-top: -16px !important;
        /* Pulls the copy closer to the buttons above */
        max-width: 240px !important;
        /* Constrains the width */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero__social-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .hero__cta {
        min-height: 42px !important;
        padding: 0 20px !important;
        font-size: 13px !important;
    }

    .hero__actions {
        flex-direction: column !important;
        /* Stacks the buttons one per row */
        align-items: center !important;
        /* Centers them at their original auto-width */
        gap: 12px !important;
    }
}

/* Extremely Small Mobile Breakpoint (510px and below) */
@media (max-width: 510px) {
    .hero__content {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        gap: 36px !important;
    }

    .hero__title {
        font-size: clamp(2.0rem, 9.5vw, 2.6rem) !important;
    }

    .hero__subtitle {
        font-size: 1rem !important;
    }

    .hero__cta {
        min-height: 38px !important;
        padding: 0 16px !important;
        font-size: 12px !important;
    }

    .hero__actions {
        gap: 8px !important;
    }

    .hero__social-text {
        font-size: 11px !important;
    }
}

/* Bulletproof Background Scroll Lock */
html.mobile-menu-active,
body.mobile-menu-active {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.4s ease;
}

.mobile-drawer.is-active {
    visibility: visible;
}

.mobile-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-active .mobile-drawer__overlay {
    opacity: 1;
}

.mobile-drawer__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Slides out all the way! */
    height: 100%;
    background: color-mix(in srgb, var(--black) 95%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 40px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mobile-drawer.is-active .mobile-drawer__content {
    transform: translate3d(0, 0, 0);
}

.mobile-drawer__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.mobile-drawer__close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--white) 8%, transparent);
    width: 44px;
    /* Larger hit target */
    height: 44px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-drawer__close-btn span {
    font-size: 28px !important;
}

.mobile-drawer__close-btn:hover {
    background: color-mix(in srgb, var(--white) 15%, transparent);
    transform: scale(1.05);
}

.mobile-drawer__close-btn:active {
    transform: scale(0.95);
}

.mobile-drawer__nav {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.mobile-drawer__nav::-webkit-scrollbar {
    display: none;
}

.mobile-drawer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-drawer__link {
    color: color-mix(in srgb, var(--white) 80%, transparent);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    padding: 8px 16px;
    display: block;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-drawer__link:hover {
    color: var(--white);
    transform: scale(1.05);
}

.mobile-drawer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.mobile-drawer__action-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mobile-drawer__action-link--signin {
    color: color-mix(in srgb, var(--white) 85%, transparent);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--fw-bold);
    padding: 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-drawer__action-link--signin:hover {
    color: var(--white);
    background-color: color-mix(in srgb, var(--white) 6%, transparent);
}

.mobile-drawer__action-link--signup {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* Big Desktop / Ultra-wide Responsive Breakpoint (1440px and up) */
@media (min-width: 1440px) {
    .hero__content {
        max-width: 1100px;
    }

    .hero__title {
        font-size: clamp(3rem, 5.5vw, 5rem);
    }

    .hero__subtitle {
        max-width: 820px;
    }

    .hero__actions {
        margin-top: 64px;
    }

    .hero__social {
        margin-top: 16px;
    }
}