:root {
    --primary: #7badf6;
    --primary-dark: #5a8ccf;
    --primary-light: #a6cbf9;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --bg-gradient-start: #f5f5f7;
    --bg-gradient-end: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius-lg: 32px;
    --radius-md: 16px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.header-glass {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 173, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 173, 246, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: 1px solid rgba(123, 173, 246, 0.2);
}

.btn-glass:hover {
    background: white;
    transform: translateY(-2px);
}

/* Layout */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: padding 0.3s;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 100%;
    max-width: 840px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Features Section */
.features {
    padding: 100px 0;
}

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

.feature-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    border-radius: var(--radius-lg);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(123, 173, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
    font-size: 24px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    outline: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-download {
        padding: 8px 16px !important;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    /* Compact mobile navigation */
    header {
        padding: 12px 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 0.75rem;
        white-space: nowrap;
        padding: 4px 8px;
    }

    .nav-links .btn-download {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .lang-switcher {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
    }

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

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

/* Dark Mode (Full Black) - MOVED TO BOTTOM TO OVERRIDE */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #ffffff;
        --text-secondary: #a1a1a6;
        --bg-gradient-start: #000000;
        --bg-gradient-end: #000000;
        --glass-bg: rgba(20, 20, 20, 0.6);
        --glass-border: rgba(255, 255, 255, 0.15);
        --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    body {
        background: #000000 !important;
    }

    .btn-glass {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    footer {
        background: #000000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-switcher {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .lang-switcher option {
        background: #000000;
        color: white;
    }

    .modal-close {
        color: rgba(255, 255, 255, 0.6);
    }

    .modal-close:hover {
        color: white;
    }
}