/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #111111;
    color: #ffffff;
    font-family: 'Titillium Web', sans-serif;
    overflow: hidden;
}

.gateway-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. 핵심 레이아웃: CSS Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 좌측 여백 | 중앙 버튼 | 우측 여백 */
    gap: 40px; 
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
    align-items: center;
}

.text-wrapper {
    display: flex;
}

.text-left-wrapper {
    justify-content: flex-end;
}

.text-right-wrapper {
    justify-content: flex-start;
}

/* 유동적 폰트 타이포그래피 */
.brand-text {
    font-size: clamp(42px, 4.7vw, 85px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0;
    white-space: nowrap;
}

.char {
    display: inline-block;
    opacity: 0; 
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.button-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 24px;
    background-color: #111111;
    z-index: 10;
}

.enter-link {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Marketing 버튼 스타일 */
.btn-without {
    border-radius: 0px;
}

.btn-without:hover {
    color: #3b43fc;
}

.btn-without::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1px;
    background-color: #3b43fc;
    transform: scaleX(0); 
    transform-origin: left center; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-without:hover::after {
    transform: scaleX(1); 
}

/* Creative 버튼 스타일 */
.btn-with {
    background-color: #ffffff;
    color: #000000;
    border-radius: 0px;
    padding: 2px 16px; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.btn-with::after {
    content: '↵';
    position: absolute;
    right: 6px;
    top: 50%;
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-weight: 900;
}

.btn-with:hover {
    background-color: #bfff00;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 22px; 
}

.btn-with:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.footer-consent {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

/* ==========================================================================
    태블릿 & 모바일 반응형
   ========================================================================== */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: auto auto; 
        grid-template-rows: auto auto;
        justify-content: center; 
        gap: 15px 0px; 
        padding: 0 40px; 
    }

    .brand-text {
        font-size: clamp(36px, 6.5vw, 42px); 
    }

    .btn-container {
        grid-column: 1 / span 2; 
        grid-row: 2; 
        margin-top: 30px; 
        justify-self: center; 
        width: 100%; 
    }

    .button-box {
        width: 100%;
        max-width: 480px;
        padding: 10px 16px; 
        gap: 15px;
    }

    .enter-link {
        font-size: 13px;
        padding: 2px 16px;
    }

    .footer-consent {
        bottom: 30px;
        width: 90%;
        white-space: normal;
    }
}

/* 480px 이하 좁은 모바일 화면 */
@media (max-width: 480px) {
    .main-content {
        padding: 0 24px; 
        gap: 12px 10px;
    }
    
    .brand-text {
        font-size: clamp(22px, 8vw, 32px); 
    }
    
    .button-box {
        flex-direction: row; 
        padding: 10px 16px;
        gap: 8px;
    }
    
    .enter-link {
        font-size: 11px; 
        padding: 4px 6px;
    }
}