/* styles.css */
:root {
    /* Color Palette */
    --bg-dark: #121212;
    --bg-surface: #1E1E1E;
    --bg-surface-light: #2A2A2A;
    
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --primary-light: rgba(59, 130, 246, 0.1);
    
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dark: #111827;
    
    --border-color: #374151;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.accent-color {
    color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Ad Slots */
.ad-container {
    width: 100%;
    max-width: 970px;
    margin: 24px auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    background-color: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.ad-placeholder i {
    margin-right: 8px;
}

.top-ad {
    margin-top: 94px; /* nav space */
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-content .lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.highlight-text {
    font-size: 15px;
    color: var(--primary);
    background-color: rgba(59, 130, 246, 0.08);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 32px;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn i {
    font-size: 24px;
}

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

.btn-text span {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.btn-text strong {
    font-size: 16px;
    font-weight: 700;
}

/* Visual Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    width: 100%;
    max-width: 450px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mac-header {
    background-color: var(--bg-surface-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mac-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-header .dot.red { background-color: #FF5F56; }
.mac-header .dot.yellow { background-color: #FFBD2E; }
.mac-header .dot.green { background-color: #27C93F; }

.mac-header .title {
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transform: translateX(-18px);
}

.mac-body {
    padding: 60px 40px;
    background: radial-gradient(circle at center, #1e293b 0%, var(--bg-surface) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    text-align: center;
    transition: all var(--transition-normal);
    background-color: rgba(0, 0, 0, 0.1);
}

.drop-zone i {
    font-size: 48px;
    color: var(--primary);
}

.drop-zone p {
    font-size: 14px;
}

.drop-zone:hover {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.03);
    color: var(--text-main);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Mid Ad Slot Adjustment */
.mid-ad {
    max-height: 250px;
    margin-bottom: 60px;
}

.mid-ad .ad-placeholder {
    height: 250px;
}

/* Showcase Section */
.showcase {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.screenshot-container {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-container {
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.app-screenshot {
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screenshot img {
    width: 100%;
    display: block;
    height: auto;
}

.app-screenshot:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

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

.footer-left p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-right a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-right a:hover {
    color: var(--text-main);
}

.footer-right .separator {
    color: var(--border-color);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content .lead {
        margin-bottom: 24px;
    }
    
    .highlight-text {
        display: inline-block;
        text-align: left;
        max-width: 500px;
    }
    
    .hero-btns {
        display: flex;
        justify-content: center;
    }
    
    .app-mockup {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .top-ad {
        margin-top: 84px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .showcase {
        padding: 60px 0;
    }
    
    .screenshot-placeholder {
        height: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--bg-surface);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 650px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-main);
}

.guide-container {
    text-align: center;
}

.guide-container h2 {
    font-size: 28px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-container p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.guide-visual {
    margin: 24px 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.guide-visual img {
    width: 100%;
    display: block;
}

.guide-steps {
    text-align: left;
    background-color: var(--bg-dark);
    padding: 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 30px;
}

.guide-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
        margin: 10% auto;
    }
    
    .guide-container h2 {
        font-size: 22px;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.lang-btn i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 160px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(20px);
    transform-origin: top right;
    animation: dropdownFade 0.2s ease-out;
}

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

.lang-dropdown.active {
    display: flex;
}

.lang-dropdown a {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
}

.lang-dropdown a:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Adjustments for Language Selector */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .lang-selector {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        transform-origin: top;
    }
}

