/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 베타 출시 알림 배너 */
.beta-announcement {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
    animation: shimmer 3s ease-in-out infinite;
}

.beta-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

.beta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.beta-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    animation: bounce 2s infinite;
}

.beta-badge i {
    font-size: 1.2rem;
    animation: rocket 1.5s ease-in-out infinite;
}

.beta-text {
    color: white;
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.beta-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beta-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ff5252;
}

@keyframes shimmer {
    0%, 100% { background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%); }
    50% { background: linear-gradient(135deg, #feca57 0%, #ff6b6b 100%); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-5deg); }
    75% { transform: translateY(2px) rotate(5deg); }
}

/* 히어로 섹션 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    word-break: keep-all;
}

.highlight {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    white-space: nowrap;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero .beta-text {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 핸드폰 목업 */
.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone-screen {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.app-interface {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.map-view {
    position: relative;
    width: 100%;
    height: 70%;
    background: linear-gradient(45deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
}

.territory {
    position: absolute;
    border-radius: 10px;
    opacity: 0.7;
}

.territory-1 {
    width: 60px;
    height: 40px;
    background: #fbbf24;
    top: 20%;
    left: 10%;
    animation: pulse 2s infinite;
}

.territory-2 {
    width: 80px;
    height: 60px;
    background: #f59e0b;
    top: 50%;
    right: 15%;
    animation: pulse 2s infinite 0.5s;
}

.territory-3 {
    width: 50px;
    height: 50px;
    background: #d97706;
    bottom: 20%;
    left: 40%;
    animation: pulse 2s infinite 1s;
}

.user-marker {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: bounce 1s infinite;
}

.ui-elements {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* 섹션 공통 스타일 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* 특징 섹션 */
.features {
    padding: 80px 0;
    background: #f9fafb;
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.feature-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 사용법 섹션 */
.how-it-works {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 6;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    grid-template-columns: 80px 1fr 80px;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.step.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step:nth-child(even) {
    grid-template-columns: 80px 1fr 80px;
    direction: rtl;
}

.step:nth-child(even) .step-content {
    direction: ltr;
    text-align: right;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.step-visual {
    width: 60px;
    height: 60px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* 다운로드 섹션 */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
    z-index: 7;
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #e2e8f0;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #000 0%, #1f2937 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 180px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.download-btn i {
    font-size: 2rem;
    color: #fbbf24;
}

.download-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.store-text {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #94a3b8;
}

/* App Store 버튼 (아직 출시 안됨) */
.download-btn.app-store {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.download-btn.app-store:hover {
    transform: none;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.download-btn.app-store i {
    color: #6b7280;
}

.download-btn.app-store .store-text {
    color: #6b7280;
}

.qr-section {
    text-align: center;
}

.qr-section p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.qr-code {
    display: inline-block;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6b7280;
}

/* 핸드폰 목업 (다운로드 섹션) */
.phones-mockup {
    position: relative;
    height: 400px;
}

.phone {
    position: absolute;
    width: 180px;
    height: 360px;
    background: #000;
    border-radius: 20px;
    padding: 0px;
}

.phone-1 {
    left: 0;
    top: 0;
    transform: rotate(-10deg);
    z-index: 2;
}

.phone-2 {
    right: 0;
    top: 20px;
    transform: rotate(10deg);
    z-index: 1;
}

.phone .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.map-screen {
    background: linear-gradient(45deg, #10b981, #3b82f6);
}

.mini-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-territory {
    position: absolute;
    background: #fbbf24;
    border-radius: 5px;
    opacity: 0.8;
}

.mini-territory:nth-child(1) {
    width: 30px;
    height: 20px;
    top: 20%;
    left: 10%;
}

.mini-territory:nth-child(2) {
    width: 25px;
    height: 25px;
    top: 60%;
    right: 20%;
}

.mini-user {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ef4444;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stats-screen {
    background: #1f2937;
    color: white;
}

.stats-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100%;
    padding: 20px 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    min-height: 20px;
}

/* 푸터 */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 8px;
    color: #6366f1;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.25;
    }
}

@media (max-width: 768px) {
    .beta-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .beta-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* 모바일에서 핸드폰 목업 수정 */
    .hero-image .phones-mockup {
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 2rem;
    }
    
    .hero-image .phone {
        width: 180px !important;
        height: 360px !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero-image .phone-1,
    .hero-image .phone-2 {
        transform: none !important;
    }
    
    .hero-image .phone .phone-screen {
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-image .app-interface img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 15px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .step:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .step:nth-child(even) .step-content {
        text-align: center;
        direction: ltr;
    }
    
    .download-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .download-content h2 {
        font-size: 2rem;
    }
    
    .download-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .step {
        padding: 2rem;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        font-size: 1.0rem;
        font-weight: 700;
        color: #6366f1;
    }

    .beta-announcement {
        padding: 8px 0;
    }
    
    .beta-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .beta-text {
        font-size: 0.8rem;
        padding: 0 5px;
    }
    
    .beta-cta {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.4;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* 작은 모바일에서 핸드폰 목업 크기 조정 */
    .hero-image .phone {
        width: 160px !important;
        height: 320px !important;
    }
    
    .hero-image .phones-mockup {
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
    
    .phone-screen {
        width: 240px;
        height: 480px;
    }
} 