* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.transparent {
    background-color: transparent;
    box-shadow: none;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    transition: opacity 0.3s ease;
}

.logo-default {
    opacity: 1;
    display: block;
}

.logo-scroll {
    opacity: 0;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

header.scrolled .logo-default {
    opacity: 0;
    display: none;
}

header.scrolled .logo-scroll {
    opacity: 1;
    display: block;
    position: relative;
}

.logo {
    position: relative;
}

.logo-white {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 로고를 흰색으로 만듦 */
}

.logo-black {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav > ul {
    display: flex;
    gap: 60px;
    position: relative;
}

.main-nav ul li a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header.scrolled .main-nav ul li a {
    color: #333;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s, background-color 0.3s;
}

header.scrolled .main-nav ul li a:after {
    background-color: #333;
}

.main-nav ul li a:hover:after {
    width: 100%;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.register-btn {
    background-color: white;
    color: #333;
    border: 1px solid transparent;
}

header.scrolled .login-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

header.scrolled .register-btn {
    background-color: #333;
    color: white;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);x
}

.register-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

header.scrolled .login-btn:hover {
    background-color: #eee;
}

header.scrolled .register-btn:hover {
    background-color: #555;
}

.mobile-menu-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header.scrolled .mobile-menu-toggle {
    background-color: #f5f5f5;
    color: #555;
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay-bg.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header img {
    height: 30px;
}

.mobile-close {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    background-color: #f5f5f5;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
}

.mobile-auth {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.mobile-auth-btn:first-child {
    background-color: #f5f5f5;
    color: #333;
}

.mobile-auth-btn:last-child {
    background-color: #333;
    color: white;
}

/* 히어로 섹션 스타일링 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-image: url('../res/bgback.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-content p {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 버튼 스타일 */
.btn-more, .btn-download, .btn-demo, .btn-open-account, .btn-contact, .btn-submit {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-more {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    margin-top: 20px;
}

.btn-more:hover {
    background-color: #333;
    color: white;
}

.btn-download, .btn-open-account {
    background-color: #1e5bb0;
    color: white;
    border: none;
}

.btn-download:hover, .btn-open-account:hover {
    background-color: #154787;
}

.btn-demo, .btn-contact {
    background-color: transparent;
    color: #1e5bb0;
    border: 2px solid #1e5bb0;
    margin-left: 15px;
}

.btn-demo:hover, .btn-contact:hover {
    background-color: #1e5bb0;
    color: white;
}

.btn-submit {
    background-color: #1e5bb0;
    color: white;
    border: none;
    width: 100%;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #154787;
}


.futures-intro {
    background-color: #f9f9f9;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.intro-text p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.intro-features {
    margin-bottom: 25px;
}

.intro-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.intro-features li i {
    color: #1e5bb0;
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 거래 상품 섹션 */
.trading-products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background-color: #e6eef8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.product-icon i {
    font-size: 32px;
    color: #1e5bb0;
}

.product-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.product-card p {
    color: #666;
    line-height: 1.6;
}

/* 거래 플랫폼 섹션 */
.trading-platform {
    background-color: #f0f4f8;
}

.platform-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.platform-image {
    flex: 1;
    min-width: 300px;
}

.platform-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.platform-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #e6eef8;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: #1e5bb0;
}

.feature-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.feature-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.platform-cta {
    text-align: center;
    margin-top: 40px;
}

/* 계좌 정보 섹션 */
.account-info {
    background-color: white;
}

.pricing-table {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.pricing-header {
    display: flex;
    background-color: #1e5bb0;
    color: white;
    font-weight: 600;
}

.pricing-header .col {
    padding: 15px;
    text-align: center;
}

.pricing-row {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row .col {
    padding: 15px;
    text-align: center;
    flex: 1;
}

.pricing-row:nth-child(even) {
    background-color: #f9f9f9;
}

/* 교육 섹션 */
.education-section {
    background-color: #f5f7fa;
}

.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ed-icon {
    width: 70px;
    height: 70px;
    background-color: #e6eef8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.ed-icon i {
    font-size: 28px;
    color: #1e5bb0;
}

.education-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.education-card p {
    color: #666;
}

/* CTA 섹션 */
.account-cta {
    background: linear-gradient(135deg, #1e5bb0, #123d6f);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-open-account {
    background-color: white;
    color: #1e5bb0;
}

.btn-open-account:hover {
    background-color: #f0f0f0;
}

.btn-contact {
    border-color: white;
    color: white;
}

.btn-contact:hover {
    background-color: white;
    color: #1e5bb0;
}

/* 푸터 */
.footer {
    background-color: #1e2a3a;
    color: #a1a8b3;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #1e5bb0;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .main-nav > ul {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .right-menu .auth-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .logo-container {
        width: 200px;
        height: 100px;
    }

    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .intro-content, .platform-showcase {
        flex-direction: column;
    }
    
    .platform-features {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        overflow-x: auto;
    }
    
    .pricing-row, .pricing-header {
        min-width: 600px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid, .education-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-demo, .btn-contact {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* 메뉴 간격 조정 */
.main-nav-centered {
    justify-content: center;
}

.main-nav-centered > ul {
    gap: 120px; /* 메뉴 사이의 간격을 넓게 설정 */
    padding: 0 50px; /* 양쪽에 패딩 추가 */
}

.main-nav-centered ul li a {
    font-size: 20px; /* 폰트 크기 키우기 */
    padding: 10px 20px; /* 클릭 영역 넓히기 */
    position: relative;
}

/* 메뉴 아이템에 밑줄 스타일 개선 */
.main-nav-centered ul li a:after {
    height: 3px; /* 밑줄 두께 증가 */
    bottom: -3px; /* 약간 아래로 위치 조정 */
}

/* 메뉴에 호버했을 때 효과 강화 */
.main-nav-centered ul li a:hover {
    color: #1e5bb0;
} 