
/* 기본 리셋 및 변수 */
:root {
    --primary-dark: #5B2C6F;
    --primary: #9B59B6;
    --primary-light: #F4ECF7;
    --accent: #8E44AD;
    --accent-glow: rgba(155, 89, 182, 0.5);
    --white: #FFFFFF;
    --text-dark: #2C1A33;
    --text-medium: #5D4E66;
    --text-light: #8B7F94;
    --gradient-main: linear-gradient(135deg, #5B2C6F 0%, #9B59B6 50%, #8E44AD 100%);
    --gradient-card: linear-gradient(145deg, rgba(91, 44, 111, 0.05) 0%, rgba(155, 89, 182, 0.1) 100%);
    --shadow-soft: 0 4px 20px rgba(91, 44, 111, 0.1);
    --shadow-medium: 0 8px 40px rgba(91, 44, 111, 0.15);
    --shadow-strong: 0 12px 60px rgba(91, 44, 111, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 그라디언트 오버레이 */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(91, 44, 111, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 파티클 배경 효과 - 더 많은 파티클 */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 5%; top: 15%; animation-delay: 0s; animation-duration: 22s; }
.particle:nth-child(2) { width: 10px; height: 10px; left: 15%; top: 55%; animation-delay: 1s; animation-duration: 18s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 25%; top: 25%; animation-delay: 2s; animation-duration: 25s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 35%; top: 75%; animation-delay: 0.5s; animation-duration: 20s; }
.particle:nth-child(5) { width: 12px; height: 12px; left: 45%; top: 35%; animation-delay: 3s; animation-duration: 24s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 55%; top: 85%; animation-delay: 1.5s; animation-duration: 21s; }
.particle:nth-child(7) { width: 9px; height: 9px; left: 65%; top: 20%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(8) { width: 6px; height: 6px; left: 75%; top: 60%; animation-delay: 4s; animation-duration: 19s; }
.particle:nth-child(9) { width: 11px; height: 11px; left: 85%; top: 40%; animation-delay: 0.8s; animation-duration: 26s; }
.particle:nth-child(10) { width: 8px; height: 8px; left: 92%; top: 70%; animation-delay: 3.5s; animation-duration: 22s; }
.particle:nth-child(11) { width: 5px; height: 5px; left: 10%; top: 90%; animation-delay: 2.2s; animation-duration: 20s; }
.particle:nth-child(12) { width: 7px; height: 7px; left: 50%; top: 10%; animation-delay: 1.2s; animation-duration: 24s; }

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.2;
    }
    25% { 
        transform: translateY(-40px) translateX(25px) scale(1.1); 
        opacity: 0.35;
    }
    50% { 
        transform: translateY(-20px) translateX(-20px) scale(0.9); 
        opacity: 0.25;
    }
    75% { 
        transform: translateY(-50px) translateX(15px) scale(1.05); 
        opacity: 0.3;
    }
}

/* 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 24px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

/* Hero 배경 이미지 */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .line1 {
    display: block;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .line2 {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-main);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--accent-glow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

/* 펄스 글로우 효과 */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 30px var(--accent-glow); }
    50% { box-shadow: 0 8px 50px rgba(155, 89, 182, 0.7); }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-notice i {
    color: var(--primary);
}

/* 히어로 비주얼 영역 */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out 0.5s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero 이미지 래퍼 */
.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 10;
    animation: floatImage 6s ease-in-out infinite;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.visual-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(155, 89, 182, 0.1);
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    z-index: 15;
}

.floating-card i {
    color: var(--primary);
}

.card-1 { top: 5%; left: -10%; }
.card-2 { top: 15%; right: -10%; }
.card-3 { bottom: 5%; left: -5%; }

/* 플로팅 애니메이션 - 다른 속도 */
.animate-float-slow { animation: floatCard 8s ease-in-out infinite; }
.animate-float-medium { animation: floatCard 6s ease-in-out infinite 0.5s; }
.animate-float-fast { animation: floatCard 5s ease-in-out infinite 1s; }
.animate-float { animation: floatCard 4s ease-in-out infinite; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 0;
    right: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--primary-dark);
    bottom: 0;
    left: 0;
    animation: glowPulse 4s ease-in-out infinite 2s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease-out 1.2s both;
    z-index: 10;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 애니메이션 키프레임 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 섹션 공통 스타일 */
section {
    position: relative;
    z-index: 1;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-grid.right-image {
    direction: rtl;
}

.section-grid.right-image > * {
    direction: ltr;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.title-accent {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 소개 섹션 */
.about-section {
    padding: 100px 24px;
    background: var(--white);
}

.section-image {
    position: relative;
}

.image-frame {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-strong);
}

.section-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover .section-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 44, 111, 0.1) 0%, rgba(155, 89, 182, 0.2) 100%);
    pointer-events: none;
}

/* 틸트 효과 */
.tilt-effect {
    transition: transform 0.3s ease;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(155, 89, 182, 0.1);
    transition: var(--transition);
}

/* 호버 리프트 효과 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.feature-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* 프레임워크 섹션 */
.framework-section {
    padding: 100px 24px;
    background: var(--primary-light);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

.framework-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.framework-visual {
    height: 400px;
}

/* 모듈 섹션 */
.modules-section {
    padding: 100px 24px;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-medium);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.module-card {
    background: var(--gradient-card);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-radius: 24px;
    padding: 28px;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--primary);
}

.module-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.module-card > p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.module-list {
    list-style: none;
}

.module-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* 학습 과정 섹션 */
.process-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-item {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(155, 89, 182, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: top;
}

.process-item:hover::before {
    transform: scaleY(1);
}

.process-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.process-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.process-content p {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 리뷰 섹션 */
.reviews-section {
    padding: 100px 24px;
    background: var(--primary-dark);
    overflow: hidden;
}

.reviews-section .section-header {
    color: var(--white);
}

.reviews-section .section-header h2 {
    color: var(--white);
}

.reviews-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* 리뷰 슬라이더 */
.reviews-slider {
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

/* iPhone 15 Pro 목업 스타일 */
.phone-mockup {
    flex-shrink: 0;
    width: calc((100% - 48px) / 3); /* 桌面端3个 */
    min-width: 280px;
    max-width: 320px;
}

.iphone-frame {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform 0.4s ease;
}

.phone-mockup:hover .iphone-frame {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.iphone-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    z-index: 20;
}

.iphone-speaker {
    width: 50px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 3px;
}

.iphone-camera {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid #333;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #000;
    border-radius: 16px;
    z-index: 30;
}

.iphone-screen {
    background: #f5f5f7;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* 상태바 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 38px 18px 6px;
    background: #fff;
}

.status-bar .time {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.status-icons {
    display: flex;
    gap: 4px;
    font-size: 10px;
    color: #000;
}

/* 채팅 앱 헤더 */
.chat-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 8px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.back-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.user-avatar.female {
    background: linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.user-status {
    font-size: 10px;
    color: #8e8e93;
}

.more-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

/* 채팅 영역 */
.chat-area {
    padding: 10px;
    height: 320px;
    background: #fff;
    overflow-y: auto;
}

.chat-date {
    text-align: center;
    font-size: 10px;
    color: #8e8e93;
    margin-bottom: 8px;
    padding: 3px 10px;
    background: #f2f2f7;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

.chat-bubble {
    max-width: 88%;
    margin-bottom: 6px;
    animation: bubbleIn 0.3s ease-out;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.received {
    background: #e9e9eb;
    padding: 8px 12px;
    border-radius: 16px 16px 16px 4px;
}

.chat-bubble p {
    font-size: 11px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.bubble-time {
    font-size: 9px;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 3px;
}

.bubble-time .read {
    color: #34c759;
    font-size: 9px;
}

/* 입력 영역 */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.input-actions {
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.input-field {
    flex: 1;
    padding: 6px 12px;
    background: #f2f2f7;
    border-radius: 16px;
    font-size: 11px;
    color: #8e8e93;
}

.send-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

/* 홈 인디케이터 */
.home-indicator {
    width: 100px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    margin: 6px auto 4px;
}

/* 슬라이더 도트 */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.reviews-cta {
    text-align: center;
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

/* 푸터 */
.footer {
    background: var(--text-dark);
    padding: 60px 24px 120px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 고정 CTA 버튼 */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
  
    z-index: 999;
    display: flex;
    justify-content: center;
}

.btn-fixed {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    background: var(--gradient-main);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--accent-glow);
    animation: ctaPulse 2s ease-in-out infinite;
}

.btn-fixed img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.btn-fixed:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px var(--accent-glow);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 30px var(--accent-glow); }
    50% { box-shadow: 0 8px 50px var(--accent-glow); }
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 26, 51, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-body {
    padding: 30px;
}

.modal-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ==========================================
   반응형 디자인 - 모바일 최적화
   ========================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        height: 350px;
        order: -1;
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-grid.right-image {
        direction: ltr;
    }
    
    .section-image {
        order: -1;
    }
    
    /* 모듈 그리드 - 태블릿에서도 2열 유지 */
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* 리뷰 슬라이더 - 태블릿 */
    .phone-mockup {
        min-width: 260px;
        max-width: 300px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .hero-image-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .about-section,
    .framework-section,
    .modules-section,
    .process-section,
    .reviews-section {
        padding: 60px 16px;
    }
    
    .section-img {
        height: 280px;
    }
    
    /* 모듈 그리드 - 모바일에서도 2열 유지 */
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .module-card {
        padding: 16px;
    }
    
    .module-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .module-card h3 {
        font-size: 0.95rem;
    }
    
    .module-card > p {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .module-list li {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    /* 프로세스 그리드 - 모바일에서 2열 */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .process-item {
        padding: 16px;
    }
    
    .process-number {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .process-content h4 {
        font-size: 0.9rem;
    }
    
    .process-content p {
        font-size: 0.75rem;
    }
    
    /* 기능 리스트 - 모바일에서 2열 */
    .feature-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-item {
        flex-direction: column;
        padding: 16px;
        text-align: center;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 0 auto;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
    
    .framework-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 슬라이더 - 모바일 1개 표시 */
    .reviews-slider {
        padding: 0 20px;
    }
    
    .phone-mockup {
        width: 100%;
        min-width: 260px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .iphone-frame {
        border-radius: 36px;
        padding: 8px;
    }
    
    .iphone-screen {
        border-radius: 30px;
    }
    
    .dynamic-island {
        width: 70px;
        height: 20px;
        top: 10px;
    }
    
    .status-bar {
        padding: 34px 16px 5px;
    }
    
    .chat-area {
        height: 300px;
        padding: 8px;
    }
    
    .chat-bubble p {
        font-size: 11px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-fixed {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
}

/* 슬라이더 네비게이션 버튼 */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* 더 작은 화면에서도 2열 유지하되 더 압축 */
    .modules-grid {
        gap: 8px;
    }
    
    .module-card {
        padding: 12px;
    }
    
    .module-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .module-card h3 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .module-card > p {
        font-size: 0.7rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .module-list {
        display: none;
    }
    
    .process-timeline {
        gap: 8px;
    }
    
    .process-item {
        padding: 12px;
    }
    
    .process-number {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .process-content h4 {
        font-size: 0.8rem;
    }
    
    .process-content p {
        font-size: 0.7rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .feature-list {
        gap: 8px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .feature-text h4 {
        font-size: 0.8rem;
    }
    
    .feature-text p {
        font-size: 0.7rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .phone-mockup {
        min-width: 240px;
        max-width: 280px;
    }
    
    .chat-area {
        height: 280px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* 매우 작은 화면 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .modules-grid,
    .process-timeline,
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .module-list {
        display: block;
    }
    
    .module-card > p,
    .process-content p,
    .feature-text p {
        display: block;
        -webkit-line-clamp: unset;
    }
}
