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

:root {
    --primary: #0F85FA;
    --primary-dark: #0d6bc7;
    --primary-light: #3a9dfb;
    --gradient: linear-gradient(135deg, #0F85FA 0%, #3a9dfb 100%);
}

/* Dark Theme (Default) */
body {
    --bg-primary: #000000;
    --bg-secondary: #0F0F0F;
    --bg-elevated: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #707070;
    --border: #2A2A2A;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --nav-bg-scrolled: rgba(0, 0, 0, 0.95);
    --hero-bg: radial-gradient(ellipse at top, #0a1628 0%, #000000 50%);
    --logo-src: url('images/app_icon_white.png');
}

/* Light Theme */
body[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-elevated: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #E5E5E5;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --hero-bg: linear-gradient(135deg, #E8F4FD 0%, #FFFFFF 50%, #F0F9FF 100%);
    --logo-src: url('images/app_icon_black.png');
}

html {
    scroll-behavior: smooth;
}

body {
    --bg-primary: #000000;
    --bg-secondary: #0F0F0F;
    --bg-elevated: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #707070;
    --border: #2A2A2A;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --nav-bg-scrolled: rgba(0, 0, 0, 0.95);
    --hero-bg: radial-gradient(ellipse at top, #0a1628 0%, #000000 50%);
    --logo-src: url('images/app_icon_white.png');
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(15, 133, 250, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 20px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 22px;
}

.logo-text {
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 15px;
}

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

.nav-links a.active {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    color: var(--primary);
}

.theme-toggle:active {
    transform: rotate(180deg);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(15, 133, 250, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(15, 133, 250, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(15, 133, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(15, 133, 250, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.coming-soon-badge {
    padding: 8px 16px;
    background: rgba(15, 133, 250, 0.15);
    border: 1px solid rgba(15, 133, 250, 0.5);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: 0 10px 40px rgba(15, 133, 250, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platforms Section */
.platforms {
    padding: 80px 0;
    background: var(--bg-primary);
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-badge {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 24px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.platform-badge:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
    color: var(--primary);
    transform: translateY(-2px);
}

/* App Preview Section */
.app-preview {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.preview-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
}

.preview-phone img {
    width: 100%;
    max-width: 300px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 133, 250, 0.2);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-phone img:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(15, 133, 250, 0.3);
}

.preview-caption {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Privacy Section */
.privacy-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.privacy-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.privacy-icon {
    margin-bottom: 32px;
    color: white;
}

.privacy-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
}

.privacy-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    backdrop-filter: blur(10px);
}

.privacy-item svg {
    color: white;
    flex-shrink: 0;
}

.privacy-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.privacy-link:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: var(--gradient);
}

.footer-brand .logo-text {
    color: var(--text-primary);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links a {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .preview-gallery {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .privacy-title,
    .cta-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.privacy-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll padding for fixed nav */
section {
    scroll-margin-top: 72px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

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

.modal .btn-primary {
    text-align: center;
}

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

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