:root {
    --primary-color: #00a0d2;
    --secondary-color: #0073aa;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-gray: #64748b;
    --success-color: #10b981;
    --app-blue: #3b82f6;
    --app-dark: #0f172a;
    --app-dark-lighter: #1e293b;
    --app-accent: #60a5fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

/* Header */
.site-header {
    background: transparent;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: linear-gradient(135deg, #111111 0%, #151515 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo-text span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
}

/* Hero Section */
.app-hero {
    padding: 140px 20px 100px;
    background: linear-gradient(135deg, var(--app-dark) 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59,130,246,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(96,165,250,0.1) 0%, transparent 40%);
}

.app-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-hero-content {
    color: #fff;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.2);
    color: var(--app-accent);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.app-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.app-hero-content h1 span {
    background: linear-gradient(135deg, var(--app-accent), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.app-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.app-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
}

.app-highlight svg {
    width: 20px;
    height: 20px;
    color: var(--app-accent);
    flex-shrink: 0;
}

.app-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--app-blue), var(--app-accent));
    color: #fff;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}

.cta-btn svg {
    width: 22px;
    height: 22px;
}

.cta-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--app-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.app-hero-visual {
    display: flex;
    justify-content: center;
}

.desktop-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.desktop-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg);
}

.desktop-frame {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 8px 8px 30px;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.5),
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

.desktop-screen {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.desktop-screen img {
    display: block;
    width: 550px;
    height: auto;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.1);
    color: var(--app-blue);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: #fff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 20px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--app-blue), var(--app-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Screenshots Gallery */
.gallery-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detail Sections */
.detail-section {
    padding: 100px 20px;
}

.detail-section:nth-child(even) {
    background: var(--light-color);
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.detail-container.reverse {
    direction: rtl;
}

.detail-container.reverse > * {
    direction: ltr;
}

.detail-screen {
    display: flex;
    justify-content: center;
}

.detail-screen img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.detail-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.detail-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
}

.detail-list li svg {
    width: 22px;
    height: 22px;
    color: var(--app-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Compatibility Section */
.compatibility-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--app-dark) 0%, #1e293b 100%);
}

.compatibility-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.compatibility-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.compatibility-section > .compatibility-container > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.compatibility-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 16px;
    transition: all 0.3s;
}

.compatibility-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--app-accent);
    transform: translateY(-5px);
}

.compatibility-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--app-blue), var(--app-accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.compatibility-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.compatibility-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.compatibility-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Specs Section */
.specs-section {
    padding: 80px 20px;
    background: #fff;
}

.specs-container {
    max-width: 900px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.spec-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-group h4 svg {
    width: 24px;
    height: 24px;
    color: var(--app-blue);
}

.spec-group ul {
    list-style: none;
}

.spec-group ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
}

.spec-group ul li span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Algorithm Section */
.algorithm-section {
    padding: 80px 20px;
    background: var(--light-color);
}

.algorithm-container {
    max-width: 900px;
    margin: 0 auto;
}

.algorithm-highlight {
    background: linear-gradient(135deg, var(--app-dark), #1e293b);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    color: #fff;
}

.algorithm-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.algorithm-highlight p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.algorithm-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.algorithm-feature {
    text-align: center;
}

.algorithm-feature svg {
    width: 40px;
    height: 40px;
    color: var(--app-accent);
    margin-bottom: 10px;
}

.algorithm-feature h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.algorithm-feature p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--app-blue) 0%, var(--app-accent) 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-white {
    background: #fff;
    color: var(--app-dark);
}

.btn-white:hover {
    background: var(--light-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Footer */
.site-footer {
    background: #111111;
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--app-accent);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 35px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--app-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .app-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-hero-visual {
        order: -1;
    }

    .desktop-screen img {
        width: 100%;
        max-width: 500px;
    }

    .app-highlights {
        justify-content: center;
    }

    .app-cta-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .detail-container.reverse {
        direction: ltr;
    }

    .detail-list {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }

    .compatibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .algorithm-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-color);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .app-hero {
        padding: 120px 20px 60px;
    }

    .app-hero-content h1 {
        font-size: 2rem;
    }

    .app-tagline {
        font-size: 1rem;
    }

    .app-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-content h3 {
        font-size: 1.5rem;
    }

    .compatibility-grid {
        grid-template-columns: 1fr;
    }

    .algorithm-features {
        grid-template-columns: 1fr;
    }

    .algorithm-highlight {
        padding: 30px 20px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .compatibility-section h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255,255,255,0.2);
}

.lang-current .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-current .chevron {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.lang-switcher:hover .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: rgba(255,255,255,0.1);
}

.lang-option.active {
    background: rgba(0,160,210,0.2);
    color: var(--primary-color);
}

.lang-option .flag {
    font-size: 1.3rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 10px;
    }

    .lang-current .lang-code {
        display: none;
    }

    .lang-current {
        padding: 8px 10px;
    }

    .lang-dropdown {
        right: -10px;
    }
}
