:root {
    --primary: #e11d48;
    --primary-hover: #fb7185;
    --radius: 12px;
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --bg-main: #0a0a0a;
    --bg-glass: rgba(25, 25, 25, 0.6);
    --bg-header: rgba(10, 10, 10, 0.7);
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-input-option: #1a1a1a;
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --mockup-bg: #000;
    --shadow-main: rgba(0, 0, 0, 0.8);
    --shadow-hero: 0 50px 120px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(225, 29, 72, 0.1);
    --glare-bg: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    --rim-light: inset 0 0 40px rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.3);
}

body.light {
    --bg-main: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-header: rgba(248, 249, 250, 0.8);
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --bg-input: rgba(0, 0, 0, 0.05);
    --bg-input-option: #ffffff;
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.6);
    --mockup-bg: #e2e8f0;
    --shadow-main: rgba(0, 0, 0, 0.1);
    --shadow-hero: 0 50px 120px -20px rgba(0, 0, 0, 0.1), 0 0 60px -10px rgba(225, 29, 72, 0.05);
    --glare-bg: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    --rim-light: inset 0 0 40px rgba(0, 0, 0, 0.03);
    --border-hover: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body,
button,
input,
select,
textarea,
option,
optgroup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 12px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

.lang-selector-wrapper {
    display: flex;
    align-items: center;
}

.lang-selector {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    padding-right: 28px;
}

body.dark .lang-selector {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

body.light .lang-selector {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.lang-selector:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.lang-selector option {
    background-color: var(--bg-input-option);
    color: var(--text-main);
}

.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-card-hover);
}

.mobile-menu-toggle {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-card-hover);
}

.mobile-menu-toggle .close-icon { display: none; }

body.mobile-menu-open .mobile-menu-toggle .menu-icon { display: none; }
body.mobile-menu-open .mobile-menu-toggle .close-icon { display: block; }

body.dark .theme-icon-light { display: block; }
body.dark .theme-icon-dark { display: none; }
body.light .theme-icon-light { display: none; }
body.light .theme-icon-dark { display: block; }

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

/* Hero */
.hero {
    padding: 160px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.app-window-mockup {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.mockup-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glare-bg);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    mix-blend-mode: overlay; /* Better light integration */
    transition: opacity 0.5s ease;
}

.mockup-rim-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: var(--rim-light);
    pointer-events: none;
    z-index: 11;
    border-radius: 12px;
}

.hero:hover .mockup-glare {
    opacity: 1;
}

.hero:hover .mockup-wrapper {
    box-shadow: var(--shadow-hero);
}

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

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

.feature-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--border-hover);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Screenshots Showcase */
.screenshots {
    padding: 100px 24px;
}

.screenshot-showcase {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.screenshot-mockup-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "desc mockup";
    align-items: center;
    gap: 80px;
}

.screenshot-mockup-wrapper.reverse {
    grid-template-areas: "mockup desc";
}

.screenshot-mockup-desc {
    grid-area: desc;
    max-width: 440px;
    justify-self: end;
}

.screenshot-mockup-wrapper.reverse .screenshot-mockup-desc {
    justify-self: start;
}

.mockup-wrapper {
    grid-area: mockup;
    justify-self: start;
}

.screenshot-mockup-wrapper.reverse .mockup-wrapper {
    justify-self: end;
}

.screenshot-mockup-wrapper .mockup-wrapper {
    transform: rotateY(-5deg) rotateX(2deg);
}

.screenshot-mockup-wrapper.reverse .mockup-wrapper {
    transform: rotateY(5deg) rotateX(2deg);
}

.screenshot-mockup-wrapper .mockup-wrapper:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.screenshot-mockup-desc h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.screenshot-mockup-desc p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* FAQ */
.faq {
    padding: 100px 24px;
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

/* Download */
.download {
    padding: 100px 24px;
    text-align: center;
}

.download-card {
    padding: 80px 40px;
}

.download-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    min-width: 220px;
}

.download-group .btn {
    min-width: 200px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chevron {
    font-size: 0.8rem;
    opacity: 0.6;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding-top: 12px; /* Invisible bridge */
    z-index: 100;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
}

.dropdown-content-inner {
    overflow: hidden;
    border-radius: var(--radius);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    text-align: left;
}

.dropdown-content a:hover {
    background: var(--bg-card);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.platform-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.platform-icon {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}

.platform-icon svg {
    max-height: 40px;
    max-width: 40px;
    width: auto;
    height: auto;
}

.download-group:hover .platform-icon {
    color: var(--text-main);
    transform: scale(1.1);
}

.license-info {
    font-size: 0.9rem !important;
}

.license-info a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .features, .screenshots, .faq, .download {
        padding: 80px 24px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-mockup {
        max-width: 600px;
        margin: 0 auto;
    }

    .app-window-mockup {
        transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    }
.screenshot-mockup-wrapper, 
.screenshot-mockup-wrapper.reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "desc" "mockup";
    text-align: center;
    gap: 40px;
}

.screenshot-mockup-desc {
    text-align: center;
    justify-self: center;
    max-width: none;
}

.screenshot-mockup-wrapper .mockup-wrapper,
.screenshot-mockup-wrapper.reverse .mockup-wrapper {
    transform: none !important;
    justify-self: center;
}

.download-card {
    padding: 40px 24px;
}
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .features, .screenshots, .faq, .download {
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 40px;
    }

    body.mobile-menu-open .nav-links {
        right: 0;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .nav {
        justify-content: space-between;
    }

    .lang-selector-wrapper {
        justify-content: center;
        width: 100%;
    }

    .lang-selector {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

    .download-card {
        padding: 40px 20px;
    }

    .download-card h2 {
        font-size: 2rem;
    }

    .download-options {
        flex-direction: column;
        gap: 40px;
    }

    .app-window-mockup {
        transform: none;
    }

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