@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --primary-purple: #7b40f2;
    --primary-blue: #3264f5;
    --text-dark: #1f1f1f;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fb;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-purple {
    background-color: var(--primary-purple);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(123, 64, 242, 0.3);
}

.btn-purple:hover {
    background-color: #6a35d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 64, 242, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-phone {
    max-width: 100%;
    width: 500px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 80%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--bg-white);
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--bg-white);
}

.hero-content h3 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--bg-white);
    opacity: 0.9;
}

.download-desc {
    font-size: 18px;
    color: var(--bg-white);
    opacity: 0.8;
    margin-bottom: 20px;
}

.app-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.app-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--primary-purple);
}

.app-icon {
    font-size: 32px;
    color: var(--primary-purple);
    margin-right: 15px;
}

.app-text {
    display: flex;
    flex-direction: column;
}

.app-text span {
    font-size: 12px;
    color: var(--text-light);
}

.app-text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Sections Common */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-card img {
    height: 60px;
    margin-bottom: 25px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Apps Section */
.apps-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.app-item img {
    height: 50px;
    margin-bottom: 15px;
}

.app-item h6 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.app-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.pricing-content {
    display: none;
    justify-content: center;
}

.pricing-content.active {
    display: flex;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
    width: 350px;
    border: 2px solid var(--primary-blue);
}

.card-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.card-inner {
    padding: 50px 40px;
}

.discount {
    display: inline-block;
    background: rgba(50, 100, 245, 0.1);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-inner .title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price h3 {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.btn-blue:hover {
    background-color: #254edb;
}

.features-list li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--primary-blue);
    margin-right: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.review-text {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.reviews-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #111;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-btn:hover {
    transform: scale(1.2);
}

.avatars-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    text-align: center;
    transition: all 0.3s;
}

.avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.avatar.active img {
    width: 90px;
    height: 90px;
    opacity: 1;
    border-color: #eaeaea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.avatar-name {
    display: none;
    font-size: 14px;
    font-weight: 700;
    margin-top: 15px;
    color: #111;
}

.avatar.active .avatar-name {
    display: block;
}

/* Footer Section */
.footer {
    background-color: #050a15;
    color: #fff;
    padding: 40px 0;
    position: relative;
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    color: #a0aabf;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content a img {
    width: 30px;
    margin-right: 5px;
    transition: transform 0.2s;
}

.footer-content a:hover img {
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #a0aabf;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #5a6682 !important;
    font-size: 13px !important;
}

.back-to-top {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid #3264f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3264f5;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #3264f5;
    color: #fff;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.modal-content p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.8;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid, .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 { font-size: 48px; }
    .hero-content h2 { font-size: 32px; }
    .hero-content h3 { font-size: 24px; }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo img {
        height: 30px;
    }

    .header-action .btn {
        padding: 6px 14px;
        font-size: 14px;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-phone {
        width: 280px;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 30px;
    }

    .hero-content h1 { font-size: clamp(24px, 6.5vw, 48px); white-space: nowrap; }
    .hero-content h2 { font-size: clamp(18px, 5.5vw, 24px); white-space: nowrap; }
    .hero-content h3 { font-size: 18px; margin-bottom: 20px; }
    
    .app-links {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .app-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 15px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .apps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-card img {
        height: 40px;
        margin-bottom: 15px;
    }

    .feature-card h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .app-item {
        padding: 10px 2px;
    }

    .app-item img {
        height: 25px;
        margin-bottom: 5px;
        max-width: 100%;
        object-fit: contain;
    }

    .app-item h6 {
        font-size: 10px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-item p {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .card-inner {
        padding: 30px 20px;
    }

    .pricing-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-btn {
        font-size: 16px;
    }

    /* Reviews section adjustments */
    .reviews-carousel {
        gap: 5px;
        margin-top: 30px;
        width: 100%;
    }

    .avatars-container {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
    }

    .avatar img {
        width: 40px;
        height: 40px;
    }

    .avatar.active img {
        width: 60px;
        height: 60px;
    }

    .carousel-btn {
        font-size: 18px;
    }

    .footer {
        padding: 30px 0;
    }

    .back-to-top {
        right: 20px;
        width: 35px;
        height: 35px;
    }
}
