/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --primary-color: #0f172a;
    --lime: #CEFF00;
    --light-transparent: rgba(49, 57, 68, 0.75); 
    --danger: #ff0000;
    --gray: #c2c2c2;
    --text-lighter: #deecff;
    --text-light: #94a3b8;
    --text-medium: rgb(100, 116, 139);
    --white: #ffffff;
}

body {
    background-color: #f8f9fa;
}

.logo {
    width: 20%;
    height: 30px;
    background-image: url('public/logo/logo.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.logo-footer {
    width: 20%;
    height: 30px;
    background-image: url('public/logo/logo.svg');
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    cursor: pointer;
}

.navbar {
    background-color: var(--primary-color);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 메뉴 스타일 */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--lime);
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--white);
}

.btn-wallet {
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600 !important;
}

.btn-wallet:hover {
    opacity: 0.8;
}

.btn {
    background-color: var(--primary-color);
    color: var(--lime) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600 !important;
    padding: 2vh;
}

.btn:hover {
    transition: 0.5s;
    background-color: var(--lime);
    color: var(--primary-color) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--lime) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--lime);
    font-weight: 600 !important;
    padding: 2vh;
}

.btn:hover {
    opacity: 0.8;
}

/* --- 반응형 (모바일) 디자인 --- */
.menu-toggle, .hamburger {
    display: none;
}

@media (max-width: 992px) {
    .navbar{
        width: 100%;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--lime);
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%; /* 기본적으로 숨김 */
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* 체크박스가 체크되면 메뉴가 나타남 */
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .menu-toggle {
        display: none;
    }
}

.hero-container {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-image: url('public/images/hero-bg.png');
    background-size: cover; 
    background-position: right;
}

.hero-content{
    background: linear-gradient(to right, var(--primary-color) 10%, transparent);
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-wrapper {
    width: 50%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    color: var(--white);
    padding: 2vh 5vh;
    justify-content: center;
    gap: 2vh;
}

.cta-group {
    display: flex;
    width: 100%;
    padding: 2vh 0;
    gap: 2vh;
}

/* 📱 태블릿 및 모바일 대응 (992px 이하) */
@media (max-width: 992px) {
    /* 1. 컨테이너 패딩 조절 및 중앙 정렬 */
    .hero-container{
        width: 100%;
        height: 100%;
        background-position: center;
    }
    .hero-content {
        background: linear-gradient(to right, var(--primary-color), transparent);
        padding: 40px 5%;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
    }

    .text-wrapper {
        width: 100%;
        max-width: 600px;
    }

    .main-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%; /* 버튼이 가로로 꽉 차게 (터치하기 편함) */
        max-width: 300px;
        padding: 15px 0;
    }

    /* 5. 설명 문구 가독성 */
    .description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* 📱 아주 작은 스마트폰 (480px 이하) */
@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .sub-title {
        font-size: 0.8rem;
    }
}


.main-title {
    font-weight: lighter;
    font-size: 7vh;
    color: var(--lime);
}

.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(206, 255, 0, 0.1); /* 상단에 아주 연한 형광색 선 */
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--lime);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--lime);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.3s;
}

.social-icon:hover {
    opacity: 1;
    color: var(--lime);
}

.footer-divider {
    border: 0;
    border-top: 2px solid var(--lime);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 25px;
    transition: 0.3s;
}

.bottom-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-medium);
}

@media (max-width: 992px) {
    .main-footer {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.viability-section {
    background-color: var(--white);
    padding: 10vh 0vh;
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-card {
    flex: 1;
    background: var(--text-medium);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.timeline-card.highlight {
    background: var(--primary-color);
    transform: translateY(-10px);
    color: var(--text-medium);
}

.card-header span {
    font-size: 0.8rem;
    color: var(--white);
    text-transform: uppercase;
}

.card-header h3 {
    font-size: 1.4rem;
    margin: 10px 0 20px 0;
    color: var(--white);
}

.highlight h3 {
    color: var(--lime);
}

.highlight .card-stats .users {
    color: var(--white);
}

.highlight .card-stats .value {
    color: var(--gray);
}

.h-good {
    color: var(--white);
}

.card-stats {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--white);
}

.users { font-weight: bold; font-size: 1.1rem; color: var(--text-lighter); }
.value { color: var(--text-lighter); font-size: 0.9rem; }

.pros-cons {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.8;
    color: white;
}

.good::before { content: "✓ "; color: var(--lime); margin-right: 5px; }
.bad::before { content: "✕ "; color: var(--danger); margin-right: 5px; }

@media (max-width: 992px) {
    .timeline-container {
        flex-direction: column;
    }
    .timeline-card.highlight {
        transform: translateY(0) scale(1.02);
    }
}

.social-fitness-section {
    background-color: white;
    color: var(--primary-color);
    padding: 10vh 0vh 0vh 0vh;
}

.wrapper-container {
    width: 90%;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    background-image: url('public/images/card-bg.png');
    background-size: cover; 
    background-position: right;
    background-color: var(--primary-color);
    padding: 5vh;
    border-radius: 50px;
}

.image-area {
    height: 100%;
    flex: 1;
}

.highlight-text {
    font-size: 4rem;
    color: var(--lime);
    line-height: 1;
    padding: 2vh;
}

.points-area {
    background-color: var(--light-transparent);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    padding: 3vh;
    border-radius: 3vh;
}

.point-card {
    background: transparent;
    padding: 1.5vh 3vh;
    border-radius: 40px;
    transition: 0.3s;
}

.point-card h3 {
    color: var(--lime);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.point-card p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 반응형 모바일 */
@media (max-width: 992px) {
    .social-fitness-section {
        width: 100%;
    }

    .highlight-text {
        font-size: 2.2rem;
    }

    .content-wrapper {
        width: 100%;
        flex-direction: column;
        background-position: center;
        padding: 2vh;
    }

    .points-area {
        padding: 1vh;
        background: rgba(49, 57, 68, 0.85);
    }
}

.error-section {
    background-color: transparent;
}

.error-container {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 23, 42,0.9);
}

.error-container::before {
    position: absolute;
    z-index: -1;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url('public/images/hero-bg.png');
    background-size: cover;
    /* opacity: 0.1; */
}

.error-card {
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    border-radius: 3vh;
    padding: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;
}

.error-title {
    font-weight: lighter;
    font-size: 5rem;
    margin: 0;
    color: var(--lime);
    font-style: italic;
}

.error-text {
    font-size: 2rem;
    color: var(--white);
    margin: 0;
    text-align: center;
}

@media (max-width: 992px) {
    .error-card {
        width: 90%;
        height: auto;
        aspect-ratio: auto;
        padding: 8vh 5vh;
    }

    .error-title {
        font-size: 4rem;
        font-style: italic;
    }

    .error-text {
        font-size: 2rem;
    }
}