/* ============================================================================
   랜딩페이지 전용 스타일
   파일명: landing.css
   경로: /home/wifiqr/public_html/assets/css/landing.css
   작성일: 2025-10-16
   ============================================================================ */

/* 랜딩페이지 기본 설정 */
.landing-page {
    background: var(--body-bg);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================================
   네비게이션 헤더
   ============================================================================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-header.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover:after {
    width: 100%;
}

/* ============================================================================
   히어로 섹션
   ============================================================================ */
.hero-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-bg) 0%, transparent 100%);
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: var(--text-white);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-hero-secondary {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 히어로 이미지 */
.hero-image {
    animation: slideInRight 0.8s ease;
    position: relative;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

.mockup-phone {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wifi-card-preview {
    width: 200px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-bg), white);
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.wifi-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.wifi-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.qr-preview {
    width: 300px;
    height: 300px;
    margin: 0 auto 1rem;
}

.wifi-info {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* ============================================================================
   특징 섹션
   ============================================================================ */
.features-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================================
   사용 방법 섹션
   ============================================================================ */
.how-section {
    padding: 5rem 0;
    background: var(--body-bg);
}

.steps-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-light);
    margin: 0 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.step-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-demo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 200px;
}

.input-demo input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background: var(--card-bg);
}

.template-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 30px);
    gap: 0.5rem;
}

.template-mini {
    width: 30px;
    height: 40px;
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.print-icon {
    font-size: 3rem;
    color: var(--primary);
}

/* ============================================================================
   샘플 템플릿 섹션
   ============================================================================ */
.examples-section {
    padding: 5rem 0;
    background: white;
}

.templates-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.template-preview-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.template-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.template-thumb {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.template-preview-card h4 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.template-preview-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}


/* ============================================================================
   샘플 템플릿 섹션 (모달 기능 추가)
   ============================================================================ */
.templates-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.template-preview-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.template-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.template-thumb {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* 미리보기 아이콘 (호버 시 표시) */
.template-preview-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.template-preview-card:hover .template-preview-icon {
    opacity: 1;
}

.template-preview-icon i {
    font-size: 1.2em;
}

.template-preview-card h4 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.template-preview-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 모달 내 CTA 버튼 */
.btn-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ============================================================================
   FAQ 섹션
   ============================================================================ */
.faq-section {
    padding: 5rem 0;
    background: var(--body-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-dark);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================================
   CTA 섹션
   ============================================================================ */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* ============================================================================
   푸터 (컴팩트 버전)
   ============================================================================ */
.footer {
    padding: 2rem 0 1rem;
    background: var(--text);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    opacity: 0.6;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}


/* ============================================================================
   반응형 디자인
   ============================================================================ */
@media (max-width: 768px) {
    /* 네비게이션 */
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo i {
        font-size: 1.25rem;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* 히어로 섹션 */
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .mockup-phone {
        width: 200px;
        height: 400px;
    }
    
    /* 특징 섹션 */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 사용 방법 */
    .steps-timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    /* 템플릿 쇼케이스 */
    .templates-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* 푸터 */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* 로고 텍스트 항상 표시 */
    .logo-text {
        display: inline-block;
        font-size: 0.875rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .templates-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
}

/* 매우 작은 화면 (320px 이하) */
@media (max-width: 360px) {
    .nav-logo {
        font-size: 0.9rem;
    }
    
    .nav-logo i {
        font-size: 1.1rem;
    }
    
    .logo-text {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        font-size: 0.75rem;
    }
}