/* ── 기본 리셋 & 글꼴 ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── 네비게이션 ── */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 60px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
    background: rgba(15, 12, 41, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
nav .logo { font-size: 1.6rem; font-weight: 700; color: #d4a76a; cursor: pointer; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a {
    text-decoration: none; color: #ccc; font-size: 0.95rem;
    transition: color 0.3s; position: relative;
}
nav ul li a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #d4a76a; transition: width 0.3s;
}
nav ul li a:hover { color: #d4a76a; }
nav ul li a:hover::after { width: 100%; }
nav ul li a.active { color: #d4a76a; }
nav ul li a.active::after { width: 100%; }

/* 모바일 햄버거 */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 25px; height: 3px; background: #d4a76a; border-radius: 3px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ── 히어로 섹션 ── */
.hero {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 120px 20px 80px;
}
.hero-icon {
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, #d4a76a, #b07d3b);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; margin-bottom: 30px;
    box-shadow: 0 0 40px rgba(212,167,106,0.4);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}
.hero h1 { font-size: 3rem; margin-bottom: 15px; }
.hero h1 span { color: #d4a76a; }

/* 타이핑 효과 */
.typing-text {
    font-size: 1.15rem; color: #bbb; max-width: 620px; line-height: 1.7;
    min-height: 60px;
}
.cursor { animation: blink 0.7s infinite; }
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

.hero .btn {
    margin-top: 35px; padding: 14px 40px;
    background: #d4a76a; color: #1a1a2e; border: none; border-radius: 30px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
}
.hero .btn:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(212,167,106,0.5); }

/* ── 스크롤 애니메이션 (fade-in 제거/수정) ── */
.fade-in {
    opacity: 1; /* 처음부터 보이도록 수정 */
    transform: translateY(0); /* 이동 효과 제거 */
}

/* ── 소개 & 공통 섹션 ── */
section { padding: 80px 60px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 50px; }
.section-title span { color: #d4a76a; }

/* ── 특징 카드 ── */
.features { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 35px 28px; text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-8px); border-color: #d4a76a; }
.card .icon { font-size: 2.4rem; margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: #d4a76a; }
.card p { font-size: 0.92rem; color: #aaa; line-height: 1.6; }

/* ── 모델 비교 테이블 ── */
.table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
table {
    width: 100%; border-collapse: collapse;
    background: rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden;
}
th, td { padding: 16px 20px; text-align: center; }
th { background: rgba(212,167,106,0.15); color: #d4a76a; font-weight: 600; }
td { border-top: 1px solid rgba(255,255,255,0.06); color: #ccc; font-size: 0.92rem; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* ── 제휴 문의 섹션 ── */
.contact-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #d4a76a;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #eee;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #d4a76a;
    box-shadow: 0 0 10px rgba(212,167,106,0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* ── 댓글 섹션 ── */
#disqus_thread {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
}

/* ── FAQ 아코디언 ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; margin-bottom: 14px; overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: #d4a76a; }
.faq-question {
    cursor: pointer; padding: 20px 24px;
    font-size: 1.05rem; font-weight: 600; color: #eee;
    display: flex; justify-content: space-between; align-items: center;
    user-select: none;
}
.faq-question .arrow {
    font-size: 1.4rem; color: #d4a76a; transition: transform 0.3s;
}
.faq-item.open .faq-question .arrow { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    color: #aaa; line-height: 1.7; font-size: 0.93rem;
}
.faq-item.open .faq-answer {
    max-height: 200px; padding: 0 24px 20px;
}
.faq-answer a { color: #d4a76a; text-decoration: none; }

/* ── 다크/라이트 토글 ── */
.theme-toggle {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: #d4a76a; color: #1a1a2e; border: none;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 200;
}
.theme-toggle:hover { transform: scale(1.1); }

/* 라이트 모드 대응 */
body.light { background: linear-gradient(135deg, #f5f0e8, #e8ddd0, #f0ebe3); color: #333; }
body.light nav { background: rgba(255,255,255,0.8); }
body.light nav.scrolled { background: rgba(245,240,232,0.98); }
body.light nav ul li a { color: #555; }
body.light .hero h1 { color: #222; }
body.light .typing-text { color: #666; }
body.light .card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.light .card p { color: #666; }
body.light .contact-wrap { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.light .form-group input, 
body.light .form-group select, 
body.light .form-group textarea { background: #fff; border-color: #ddd; color: #333; }
body.light td { color: #555; }
body.light table { background: rgba(0,0,0,0.03); }
body.light .faq-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.light .faq-question { color: #333; }
body.light .faq-answer { color: #666; }
body.light footer { color: #999; border-color: rgba(0,0,0,0.06); }
body.light .theme-toggle { background: #302b63; color: #f0f0f0; }

/* ── 맨 위로 버튼 ── */
.scroll-top {
    position: fixed; bottom: 90px; right: 30px;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(212,167,106,0.2); border: 1px solid #d4a76a;
    color: #d4a76a; font-size: 1.2rem; cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s; z-index: 200;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: scale(1.1); background: rgba(212,167,106,0.4); }

/* ── 카운트업 ── */
.stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 50px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.6rem; font-weight: 700; color: #d4a76a; }
.stat-label { font-size: 0.9rem; color: #aaa; margin-top: 6px; }

/* ── 푸터 ── */
footer {
    text-align: center; padding: 40px 20px;
    color: #666; font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
footer a { color: #d4a76a; text-decoration: none; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    nav { padding: 16px 24px; }
    nav ul {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        flex-direction: column; padding: 80px 30px 30px;
        background: rgba(15,12,41,0.98); transition: right 0.3s;
        gap: 24px;
    }
    nav ul.open { right: 0; }
    .hamburger { display: flex; z-index: 110; }
    .hero h1 { font-size: 2rem; }
    section { padding: 60px 24px; }
    .stats { gap: 30px; }
}
