@font-face {
    font-family: 'Double Rounded';
    src: url('fonts/EaseDoubleRounded-Regular.woff2') format('woff2'),
         url('fonts/EaseDoubleRounded-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rounded Regular';
    src: url('fonts/EaseRounded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    height: 100dvh;
    height: 100vh; /* Fallback for browsers that don't support dvh */
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100dvh;
    height: 100vh; /* Fallback for browsers that don't support dvh */
    min-height: 982px;
    background-color: #fafafa;
    opacity: 0;
}

.main-text .word {
    display: inline-block;
}

.main-text .word-space {
    display: inline-block;
    width: 0.3em;
}

.main-text {
    position: absolute;
    font-family: 'Double Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 96px;
    font-weight: 400;
    line-height: 1.1;
    color: #E0E0E0;
    text-align: center;
    letter-spacing: -3.84px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 35px));
    width: 952px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-feature-settings: "ss02" 1;
}

.union-icon {
    position: absolute;
    bottom: calc(max(30px, env(safe-area-inset-bottom, 0px) + 30px) + 12px * 1.1 + 25px);
    left: calc(50% + 0.5px);
    transform: translateX(-50%);
    width: 53px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.union-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sub-text {
    position: absolute;
    font-family: 'Rounded Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    color: #A1A1A1;
    text-align: center;
    bottom: max(30px, env(safe-area-inset-bottom, 0px) + 30px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-text {
        font-size: 72px;
        letter-spacing: -2.88px;
        width: 714px;
    }
}

@media (max-width: 768px) {
    .main-text {
        font-size: 48px;
        letter-spacing: -1.92px;
        width: 476px;
    }
}

@media (max-width: 480px) {
    body {
        background-color: white;
        overflow: hidden;
    }
    
    .container {
        min-height: 100dvh;
        min-height: 100vh; /* Fallback */
        height: 100dvh;
        height: 100vh; /* Fallback */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10vh 20px max(30px, env(safe-area-inset-bottom, 0px) + 30px);
        box-sizing: border-box;
        gap: 0;
    }
    
    .main-text {
        font-size: clamp(32px, 10vw, 48px);
        letter-spacing: -1.92px;
        width: 100%;
        max-width: 393px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, calc(-50% - 35px));
        margin: 0;
        flex-shrink: 0;
        min-height: 1.1em;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .union-icon {
        position: absolute;
        bottom: calc(max(30px, env(safe-area-inset-bottom, 0px) + 30px) + 12px * 1.1 + 25px);
        left: calc(50% + 0.5px);
        transform: translateX(-50%);
        width: 45px;
        height: 42px;
        flex-shrink: 0;
        z-index: 10;
    }
    
    .sub-text {
        position: absolute;
        bottom: max(30px, env(safe-area-inset-bottom, 0px) + 30px);
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        margin: 0;
        z-index: 10;
    }
}

@media (max-height: 700px) and (max-width: 480px) {
    .container {
        padding: 5vh 20px 20px;
    }
    
    .main-text {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 10px;
    }
    
    .union-icon {
        margin: 10px 0;
        width: 40px;
        height: 37px;
    }
    
    .sub-text {
        font-size: 11px;
    }
}

