/* =========================================
   1. 변수 및 초기화 (Original)
   ========================================= */
:root {
    --primary: #FF7210;
    --primary-hover: #e0650d;
    --bg-dark: #0A0A0A;
    --bg-card: #111111;
    --text-white: #FFFFFF;
    --text-gray: #A1A1AA;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
li { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* =========================================
   2. 헤더 (Original)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    z-index: 1001;
}
.text-primary { color: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-link:hover { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #151515;
    border: 1px solid var(--border-color);
    min-width: 180px;
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: block; padding: 10px 20px; color: var(--text-gray); font-size: 0.9rem;
}
.dropdown-item:hover { color: var(--primary); background: rgba(255,255,255,0.05); }

.header-right { display: flex; align-items: center; gap: 15px; z-index: 1001; }

.btn-cta {
    background: var(--primary); color: #fff;
    padding: 8px 20px; border-radius: 6px;
    font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.btn-cta:hover { background: var(--primary-hover); }

.hamburger { display: none; cursor: pointer; padding: 5px; }
.bar { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }
.mobile-only { display: none; }

@media (max-width: 1024px) {
    .hamburger { display: block; }
    .header-right .btn-cta { display: none; }
    .mobile-only { display: block !important; width: 100%; text-align: center; margin-top: 20px; }
    .nav-menu .btn-cta.mobile-only { display: block !important; width: 100%; text-align: center; margin-top: 20px; }

    .nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg-dark);
        flex-direction: column; justify-content: flex-start; align-items: flex-start;
        padding: 80px 24px; transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000; gap: 0;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link { font-size: 1.1rem; padding: 18px 0; width: 100%; justify-content: space-between; }

    .dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        background: transparent; border: none; box-shadow: none;
        padding: 0 0 10px 20px; display: none;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown:hover .dropdown-menu { transform: none; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================
   3. Hero & Common Sections (Original)
   ========================================= */
.hero-section {
    padding-top: 80px; min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255, 114, 16, 0.1) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0;
}
.hero-content {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; z-index: 1; gap: 50px;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; }
.badge { display: inline-block; padding: 6px 12px; background: rgba(255,114,16,0.1); color: var(--primary); border-radius: 20px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,114,16,0.3); }

.hero-btns { display: flex; gap: 15px; }
.btn-lg { padding: 12px 30px; font-size: 1.1rem; }
.btn-outline { border: 1px solid var(--border-color); color: #fff; padding: 12px 30px; border-radius: 6px; font-weight: 600; transition: 0.2s; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual { flex: 1; max-width: 500px; }
.dashboard-mockup { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.mockup-header { padding: 12px; background: #1a1a1a; display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.mockup-body { height: 300px; padding: 20px; position: relative; }
.graph-line { position: absolute; width: 100%; height: 2px; background: var(--primary); top: 50%; transform: rotate(-5deg); }

@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text, .hero-visual { width: 100%; }
    .hero-visual { margin-top: 40px; }
    .hero-btns { justify-content: center; }
}

.section { padding: 50px 0; }
.section-header { margin-bottom: 40px; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); }
.text-center { text-align: center; }
.bg-darker { background-color: #050505; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card, .pricing-card {
    background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.icon-box { width: 50px; height: 50px; background: rgba(255,114,16,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; margin-bottom: 20px; }
.link-arrow { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; }

.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(255,114,16,0.05) 0%, var(--bg-card) 100%); }
.price { font-size: 2.5rem; font-weight: 800; margin: 15px 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-gray); }
.features { text-align: center; margin: 30px 0; }
.features li { display: flex; gap: 10px; margin-bottom: 10px; color: #ccc; }
.features i { color: var(--primary); margin-top: 4px; }
.full { display: block; width: 100%; text-align: center; }
.badge-top { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--primary); padding: 4px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; }

.showcase-tabs { text-align: center; margin: 40px 0; }
.tab-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-gray); padding: 10px 25px; margin: 5px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.showcase-display { max-width: 900px; margin: 0 auto; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.showcase-window { height: 400px; background: #000; }
.fake-browser-bar { background: #222; padding: 10px; color: #555; font-size: 0.8rem; text-align: center; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-gray); font-size: 0.9rem; }

.hamburger span { display: block; width: 24px; height: 2px; background-color: #ffffff; margin: 5px 0; transition: 0.3s; }

/* Contact Modal (Original + Extended) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 10000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal-content { background: #111; width: 100%; max-width: 600px; margin: 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,0,0,0.8); transform: translateY(20px); transition: transform 0.3s ease; overflow: hidden; }
.modal-overlay.open .modal-content { transform: translateY(0); }
.modal-header { padding: 20px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: #1a1a1a; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; color: #fff; }
.close-btn { background: none; border: none; color: #888; font-size: 1.8rem; cursor: pointer; transition: 0.2s; line-height: 1; }
.close-btn:hover { color: #fff; }
.modal-body { padding: 30px; }
.modal-desc { color: var(--text-gray); margin-bottom: 25px; font-size: 0.95rem; }
.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 20px; flex: 1; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: #ddd; }
.req { color: var(--primary); margin-left: 2px; }
.form-input, .form-select { width: 100%; padding: 12px 15px; background: #000; border: 1px solid #333; border-radius: 6px; color: #fff; font-size: 1rem; transition: 0.2s; outline: none; font-family: inherit; }
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.form-input::placeholder { color: #555; }
textarea.form-input { resize: vertical; min-height: 100px; }
.select-wrapper { position: relative; }
.select-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #555; pointer-events: none; font-size: 0.8rem; }
.form-select { appearance: none; cursor: pointer; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.form-footer button { padding: 10px 24px; font-size: 1rem; border-radius: 6px; cursor: pointer; }
@media (max-width: 600px) { .form-row { flex-direction: column; gap: 0; } .modal-body { padding: 20px; } }
.landing-section { padding: 70px 0; border-bottom: 1px solid var(--border-color); }

/* =========================================
   Pricing 페이지 전용 스타일 (중복 제거됨)
   ========================================= */

/* 1. 레이아웃 & 간격 */
.step-block { padding: 80px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.step-block:first-child { border-top: none; padding-top: 0; }

.step-title-area { text-align: center; margin-bottom: 50px; }
.step-badge { display: inline-block; background: #222; color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; border: 1px solid #333; }
.step-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.step-desc { color: #888; font-size: 1rem; }

/* 2. 그리드 시스템 */
.ticket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.hosting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.membership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 1024px) { .membership-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
    .ticket-grid, .hosting-grid, .membership-grid, .content-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* 3. 카드 디자인 (Option Card) */
.option-card {
    background: #141414; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 30px 24px; text-align: center;
    cursor: pointer; transition: 0.2s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}
.option-card:hover { 
    border-color: var(--primary); transform: translateY(-5px); background: #1a1a1a; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* [중요] 활성화 상태 스타일 (주황색 테두리) */
.option-card.active { 
    border-color: var(--primary) !important; 
    background: rgba(255, 114, 16, 0.08) !important; 
    box-shadow: 0 0 0 1px var(--primary) inset !important;
}

/* 4. 텍스트 요소 */
.card-name { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.card-desc { color: #999; font-size: 0.9rem; min-height: 44px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; line-height: 1.4; }

.price-box { margin-bottom: 20px; }
.p-origin { text-decoration: line-through; color: #555; font-size: 0.9rem; }
.p-curr { font-size: 1.8rem; font-weight: 800; color: #fff; }
.p-curr span { font-size: 0.9rem; font-weight: 400; color: #777; }
.tag-sale { background: rgba(239, 68, 68, 0.2); color: #EF4444; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; font-weight: bold; }

/* 5. 체크리스트 */
.check-list { list-style: none; text-align: left; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; font-size: 0.85rem; color: #ccc; }
.check-list li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.check-list li::before { content: '✔'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

/* 6. 하단 결제 바 */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.15); padding: 15px 0; z-index: 200;
}
.total-price { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.btn-final {
    background: #fff; color: #000; padding: 12px 30px; border-radius: 8px;
    font-weight: 800; border: none; cursor: pointer; font-size: 1rem; transition: 0.2s;
}
.btn-final:hover { background: #e5e5e5; }

/* 7. 혜택 알림 박스 */
.benefit-box {
    background: #1F2937; border: 1px solid #10B981; color: #10B981;
    padding: 15px; border-radius: 12px; margin-top: -40px; margin-bottom: 35px; text-align: center;
    display: none; animation: slideUp 0.3s ease-out;
}
.benefit-item { display: inline-block; margin: 0 10px; font-weight: 700; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   [모달 팝업 스타일] - 여기부터 중요합니다!
   ========================================= */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); 
    z-index: 9999; justify-content: center; align-items: center; 
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s; }

.modal-content { 
    background: #1a1a1a; border: 1px solid #333; 
    width: 90%; max-width: 500px; padding: 0; 
    border-radius: 16px; position: relative; 
    box-shadow: 0 25px 80px rgba(0,0,0,0.8); 
    text-align: left; /* 텍스트 왼쪽 정렬 강제 */
}

/* 모달 헤더 */
.modal-header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 25px; border-bottom: 1px solid #333; 
    background: #202020; border-radius: 16px 16px 0 0;
}
.modal-header h3 { color: #fff; margin: 0; font-size: 1.3rem; font-weight: 800; }
.close-btn { background: none; border: none; color: #888; font-size: 1.8rem; cursor: pointer; }
.close-btn:hover { color: #fff; }

/* 모달 폼 */
.modal-body { padding: 25px; } /* 폼 패딩 */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; margin-bottom: 8px; color: #ddd; 
    font-size: 0.9rem; font-weight: 600; 
}
.form-input {
    width: 100%; padding: 14px; 
    background: #252525; /* 입력창 배경 */
    border: 1px solid #444; 
    border-radius: 8px; color: #fff; font-size: 1rem; 
    outline: none; transition: 0.2s;
}
.form-input:focus { border-color: var(--primary); background: #000; }

/* 요약 박스 */
.summary-box { 
    background: #000; padding: 15px; 
    border-radius: 8px; margin-bottom: 20px; border: 1px dashed #444; 
}
.summary-text { 
    color: #fff; font-weight: 700; white-space: pre-wrap; 
    font-size: 0.95rem; line-height: 1.5; 
}

/* 제출 버튼 */
.btn-submit { 
    width: 100%; background: var(--primary); color: #fff; 
    padding: 16px; border: none; border-radius: 8px; 
    font-weight: 800; font-size: 1.1rem; cursor: pointer; 
    transition: 0.2s; box-shadow: 0 4px 15px rgba(255, 114, 16, 0.3); 
}
.btn-submit:hover { background: #e0650d; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }