@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Pretendard:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #1E40AF; /* 세련되고 깊이 있는 사파이어 블루 */
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-rgb: 30, 64, 175;
    --secondary: #F59E0B; /* 골드 앰버 옐로우 */
    --danger: #EF4444;
    --text-dark: #030712; /* 가독성을 대폭 극대화한 완전 어두운 딥 차콜 */
    --text-muted: #374151; /* 눈의 피로를 없애기 위해 기존 대비 훨씬 더 짙어진 다크 슬레이트 회색 */
    --text-gray: #374151; /* 짙은 톤 통일 */
    --bg-light: #F8FAFC; /* 매우 부드러운 오프화이트 슬레이트 */
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* 세련된 다중 그림자 시스템 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 20px 35px -5px rgba(30, 64, 175, 0.1), 0 10px 15px -10px rgba(30, 64, 175, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typographic tokens */
    --font-hero-home: 4.2rem;
    --font-hero-page: 3.4rem;
    --font-section-title: 2.4rem;
    --font-card-title: 1.35rem;
    --font-body-lg: 1.18rem;
    --font-body: 1rem;
}

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

body {
    font-family: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.8; /* 넉넉하고 시원한 본문 자간 */
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/* Glassmorphic Sticky Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.4rem 0; /* 헤더 여백 확장 */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

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

.logo-text {
    color: var(--primary);
    font-size: 1.65rem; /* 로고 텍스트 확대 */
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-img {
    width: 42px; /* 로고 아이콘 확대 */
    height: 42px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.08rem; /* 네비게이션 메뉴 글자 대폭 확대 */
    position: relative;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-download {
    background-color: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 1.02rem; /* 다운로드 탭 글자 확대 */
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2);
    transition: var(--transition-smooth);
}

.nav-download:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-smooth);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background-color: rgba(226, 232, 240, 0.3);
}

.lang-btn .fa-globe {
    font-size: 1rem;
    color: var(--text-dark);
}

.lang-btn .fa-chevron-down {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    padding: 6px 0;
    min-width: 130px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    margin-top: 4px;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background-color: rgba(226, 232, 240, 0.4);
    color: var(--primary);
}

/* Hover Action */
.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-switcher:hover .lang-btn i {
    transform: rotate(180deg);
}

/* Layout Container */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Footer Section */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 40px 0;
    border-top: 1px solid #1E293B;
    font-size: 0.9rem;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #FFF;
}

/* Mobile Responsive Navigation */
@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(226, 232, 240, 0.5);
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-item {
        font-size: 1.05rem;
        padding: 6px 0;
    }

    .nav-item::after {
        display: none;
    }

    .nav-download {
        border-radius: 12px;
        padding: 12px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section 공통 */
.hero {
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.05) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: 50px 0 60px 0;
    text-align: center;
}

/* Hero 2단 Layout */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    text-align: left;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-text {
    flex: 1.2;
    text-align: left;
}

/* 시안용 새로운 배지 스타일 */
.hero-badge-concept {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(30, 64, 175, 0.4);
    background-color: rgba(30, 64, 175, 0.05);
    color: #1e40af;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-badge-concept i {
    font-size: 1rem;
    color: #2563eb;
}

/* 시안용 타이틀과 서브타이틀 */
.hero h1.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-title .brand-on {
    color: #2563eb;
    font-weight: 900;
}

.hero p.hero-desc {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 600;
    line-height: 1.6;
    max-width: 100%;
    text-align: left;
}

/* 시안용 플레이스토어 및 가이드 버튼 */
.btn-playstore {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    gap: 12px;
    border: 1px solid #000;
}

.btn-modern-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    gap: 10px;
    border: 1.5px solid #0f172a;
}

.btn-modern-download:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-modern-download i {
    font-size: 1.3rem;
}

.btn-playstore:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.btn-playstore i {
    font-size: 1.6rem;
}

.btn-playstore .btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-playstore .btn-subtext {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ccc;
}

.btn-playstore .btn-maintext {
    font-size: 1rem;
    font-weight: 700;
}

.btn-guide-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-guide-outline:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

/* 시안용 하단 3개 특징 그리드 카드 */
.hero-features-grid {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-feature-card {
    background-color: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-feature-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-feature-card .card-icon.bg-blue {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.hero-feature-card .card-icon.bg-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.hero-feature-card .card-icon.bg-orange {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.hero-feature-card .card-text {
    text-align: left;
}

.hero-feature-card .card-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.hero-feature-card .card-text p {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* 2대 스마트폰 겹침 비주얼 */
.hero-visual {
    position: relative;
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.phone-mockup-item {
    position: absolute;
    border: 8px solid #0F172A;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    background-color: #0F172A;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phone-mockup-item.mockup-back {
    width: 190px;
    left: 10px;
    top: 10px;
    z-index: 10;
    transform: rotate(5deg) scale(0.95);
    opacity: 0.85;
}

.phone-mockup-item.mockup-front {
    width: 210px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    transform: rotate(-3deg);
}

.phone-mockup-wrapper:hover .mockup-front {
    transform: translateY(-8px) rotate(-1deg) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.35);
}

.phone-mockup-wrapper:hover .mockup-back {
    transform: translateY(-4px) rotate(3deg) scale(0.97);
    opacity: 0.95;
}

.phone-mockup-item img {
    width: 100%;
    display: block;
}

/* 모바일/태블릿 반응형 미디어 쿼리 */
@media (max-width: 850px) {
    .hero {
        padding: 50px 0 40px 0;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
    }
    
    .hero h1.hero-title {
        text-align: center;
        font-size: 2.8rem;
    }
    
    .hero p.hero-desc {
        text-align: center;
        font-size: 1.15rem;
    }
    
    .download-btns, .blog-hero .download-btns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .download-btns a, .blog-hero .download-btns a {
        display: inline-flex !important;
        width: 100% !important;
        max-width: 320px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }
    
    .hero-features-grid {
        flex-direction: column;
        gap: 12px;
        margin-top: 45px;
    }
    
    .hero-visual {
        width: 100%;
    }
    
    .phone-mockup-wrapper {
        max-width: 300px;
        height: 320px;
        margin: 0 auto;
    }
    
    .phone-mockup-item.mockup-back {
        width: 145px;
        left: 15px;
        top: 15px;
    }
    
    .phone-mockup-item.mockup-front {
        width: 160px;
        right: 15px;
        bottom: 15px;
    }
}

    .page-hero {
        padding: 60px 0 40px 0;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }
}

/* 공통 히어로 섹션 */
.page-hero {
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.05) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: 80px 0 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: var(--font-hero-page);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.page-hero p {
    font-size: var(--font-body-lg);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    font-weight: 500;
}

.text-gradient {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 공통 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 64, 175, 0.15);
}

.btn-white {
    background-color: #fff;
    color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background-color: rgba(30, 64, 175, 0.08);
    color: var(--primary) !important;
}

.btn-light:hover {
    background-color: rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

/* 공통 휴대폰 목업 */
.phone-frame {
    width: 100%;
    max-width: 290px;
    border: 8px solid #0F172A;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    background-color: #0F172A;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: block;
    margin: 0 auto;
}

.phone-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.phone-frame img {
    width: 100%;
    display: block;
}

.phone-frame--video {
    max-width: 320px;
    border-radius: 20px;
    border: 6px solid #0F172A;
}

.phone-frame--video iframe {
    width: 100%;
    aspect-ratio: 9/16;
    display: block;
    border: none;
}

/* 공통 카드 컴포넌트 */
.card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card--soft {
    border-color: rgba(226, 232, 240, 0.6);
    box-shadow: none;
}

.card--interactive {
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.card--interactive:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 64, 175, 0.15);
}

/* 공통 CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-logo {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-section h2 {
    font-size: var(--font-section-title);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: var(--font-body-lg);
    margin-bottom: 30px;
    opacity: 0.9;
}

