
*,
::before,
::after {
    box-sizing: border-box;
}

html.standalone-hero,
html.standalone-hero body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}

html.standalone-hero body {
    font-family: 'Open Sans', sans-serif;
}

.hero-section {
    height: 780px;
    max-height: 780px;
    width: 100%;
    background: #4D7AC2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Subtle Grain Overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Above blobs (z-index: 0), below text (z-index: 10) */
    opacity: 0.04;
    /* Low opacity for a high-end, tactile feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    animation: drift 6s ease-in-out infinite alternate;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: drift 7s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    top: 20%;
    right: 15%;
    animation: drift 5s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(200px, 100px) scale(1.4) rotate(15deg);
    }
}

.navbar-brand {
    letter-spacing: 1px;
}

.nav-link {
    margin-right: 1rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.hero-watermark-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-w {
    position: absolute;
    font-size: clamp(6rem, 25vw, 25rem);
    font-family: 'Comfortaa-Bold', sans-serif;
    color: #ffffff;
    user-select: none;
    opacity: 0;
    will-change: transform, opacity, filter;
    display: inline-block;
}

.hero-2 {
    position: absolute;
    font-size: clamp(6rem, 25vw, 25rem);
    font-family: 'Comfortaa-Bold', sans-serif;
    color: #ffffff;
    user-select: none;
    opacity: 0;
    transform: scale(0);
    will-change: transform, opacity, filter;
    animation: fadeInGrow2 1.8s ease-in-out forwards;
    animation-delay: 0.6s;
}

.hero-subtitle {
    position: absolute;
    font-size: clamp(1.2rem, 4vw, 3.125rem);
    line-height: 1.1;
    font-family: 'Comfortaa-Bold', sans-serif;
    color: #ffffff;
    text-align: center;
    z-index: 10;
    opacity: 0;
    will-change: transform, opacity, filter;
    max-width: 90%;
}

.subtitle-1 {
    animation: fadeInOutSubtitle 3s ease-in-out forwards;
    animation-delay: 2s;
}

.subtitle-2 {
    animation: fadeInOutSubtitle 3s ease-in-out forwards;
    animation-delay: 5s;
}

.subtitle-3 {
    animation: fadeInOutSubtitle 3s ease-in-out forwards;
    animation-delay: 8s;
}

.subtitle-4 {
    animation: fadeInSubtitleStay 2s ease-out forwards;
    animation-delay: 11s;
}

.hero-eyebrow {
    position: absolute;
    font-family: 'Comfortaa-Regular', sans-serif;
    font-size: clamp(0.875rem, 1.2vw, .625rem);
    color: #ffffff;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    transform: translateY(var(--hero-eyebrow-y));
    will-change: transform, opacity, filter;
    animation: fadeInEyebrow 1.2s ease-out forwards;
    animation-delay: 11s;
}

.hero-description {
    position: absolute;
    font-family: 'Comfortaa-Regular', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    /* ~20px max */
    color: #ffffff;
    text-align: center;
    z-index: 10;
    max-width: 660px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(var(--hero-desc-y));
    will-change: transform, opacity, filter;
    animation: fadeInDescription 1.2s ease-out forwards;
    animation-delay: 12s;
}

.hero-cta-group {
    position: absolute;
    z-index: 10;
    transform: translateY(var(--hero-cta-y));
    will-change: transform, opacity, filter;
    animation: fadeInCTA 1.2s ease-out forwards;
    animation-delay: 12s;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    margin-top: 4rem;
}

.hero-btn {
    font-family: 'Comfortaa-Regular', sans-serif;
    font-size: 18px;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn-primary {
    background: #ffffff;
    color: #4D7AC2;
    border: 2px solid #ffffff;
}

.hero-btn-primary:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-btn-secondary:hover {
    background: #ffffff;
    color: #4D7AC2;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes fadeInCTA {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(calc(var(--hero-cta-y) + 10px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(var(--hero-cta-y));
    }
}

@keyframes fadeInDescription {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(calc(var(--hero-desc-y) + 10px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(var(--hero-desc-y));
    }
}

@keyframes fadeInEyebrow {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(calc(var(--hero-eyebrow-y) + 10px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(var(--hero-eyebrow-y));
    }
}

@keyframes fadeInOutSubtitle {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(5px);
    }

    28.6% {
        opacity: 1;
        transform: translateY(var(--hero-subtitle-y));
        filter: blur(0);
    }

    71.4% {
        opacity: 1;
        transform: translateY(var(--hero-subtitle-y));
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(var(--hero-subtitle-y));
        filter: blur(5px);
    }
}

@keyframes fadeInSubtitleStay {
    0% {
        opacity: 0;
        transform: translateY(var(--hero-subtitle-y));
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(calc(var(--hero-subtitle-y) - 15px));
        filter: blur(0);
    }
}

.w-left {
    animation: fadeInAndMoveLeft 2.5s ease-in-out forwards;
}

.w-right {
    animation: fadeInAndMoveRight 2.5s ease-in-out forwards;
}

@keyframes fadeInAndMoveLeft {
    0% {
        opacity: 0;
        transform: scale(0.85) translateX(0);
        filter: blur(8px);
    }

    40% {
        opacity: 0.2;
        transform: scale(1) translateX(0);
        filter: blur(2px);
    }

    100% {
        opacity: 0.2;
        transform: scale(1) translateX(-0.75em);
        filter: blur(0);
    }
}

@keyframes fadeInAndMoveRight {
    0% {
        opacity: 0;
        transform: scale(0.85) translateX(0);
        filter: blur(8px);
    }

    40% {
        opacity: 0.2;
        transform: scale(1) translateX(0);
        filter: blur(2px);
    }

    100% {
        opacity: 0.2;
        transform: scale(1) translateX(0.75em);
        filter: blur(0);
    }
}

@keyframes fadeInGrow2 {
    0% {
        opacity: 0;
        transform: scale(0);
        filter: blur(10px);
    }

    100% {
        opacity: 0.2;
        transform: scale(1);
        filter: blur(0);
    }
}

/* ==========================================================================
   Media Queries (Cascading order overrides)
   ========================================================================== */

@media (max-width: 743px) {
    :root {
        --hero-subtitle-y: -55px;
        --hero-eyebrow-y: -115px;
        --hero-desc-y: 75px;
        --hero-cta-y: 185px;
    }

    .hero-section {
        height: 560px;
        max-height: 560px;
    }

    .hero-w,
    .hero-2 {
        font-size: 8rem;
    }

    .hero-watermark-container {
        transform: translateY(-40px);
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-btn {
        font-size: 15px;
        padding: 10px 24px;
    }
}

/* Tablet view styling */
@media (min-width: 744px) and (max-width: 1024px) {
    :root {
        --hero-subtitle-y: -10px;
        --hero-eyebrow-y: -130px;
        --hero-desc-y: 110px;
        --hero-cta-y: 220px;
    }

    .hero-section {
        height: 560px;
        max-height: 560px;
    }
}

/* Responsive height adjustments for shorter mobile screens */
@media (max-width: 743px) and (max-height: 780px) {
    :root {
        --hero-subtitle-y: -50px;
        --hero-eyebrow-y: -120px;
        --hero-desc-y: 90px;
        --hero-cta-y: 230px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-btn {
        font-size: 16px;
        padding: 10px 28px;
    }
}

@media (max-width: 743px) and (max-height: 680px) {
    :root {
        --hero-subtitle-y: -45px;
        --hero-eyebrow-y: -100px;
        --hero-desc-y: 70px;
        --hero-cta-y: 180px;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-btn {
        font-size: 15px;
        padding: 8px 24px;
    }
}

@media (max-width: 743px) and (max-height: 580px) {
    :root {
        --hero-subtitle-y: -35px;
        --hero-eyebrow-y: -80px;
        --hero-desc-y: 50px;
        --hero-cta-y: 140px;
    }

    .hero-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .hero-btn {
        font-size: 12px;
        padding: 6px 20px;
    }
}