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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0a0e1a 0%, #0f172a 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: #38bdf8;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: #38bdf8;
    border: 2px solid rgba(56, 189, 248, 0.5);
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight {
    color: #38bdf8;
}

.hero-text p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 32px;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1e293b;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.phone-logo {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phone-download {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.light-effect {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.apps-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: #94a3b8;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.app-card {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.app-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.app-card .btn-secondary {
    width: 100%;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #334155;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #38bdf8;
    width: 24px;
    border-radius: 4px;
}

.features-section {
    padding: 60px 0;
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: #38bdf8;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 0;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb i {
    font-size: 10px;
}

.app-detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.app-detail-header {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    align-items: center;
}

.app-icon-large {
    width: 130px;
    height: 130px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    flex-shrink: 0;
}

.app-detail-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.app-detail-info p {
    color: #94a3b8;
    font-size: 16px;
}

.app-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    margin-bottom: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item i {
    color: #38bdf8;
    font-size: 22px;
}

.stat-item span {
    font-weight: 600;
    font-size: 18px;
}

.stat-label {
    color: #94a3b8;
    font-size: 13px;
}

.btn-download {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn-download-secondary {
    background: rgba(56, 189, 248, 0.08);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: none;
}

.btn-download-secondary:hover {
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.18);
}

.download-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 36px;
}

.download-note i {
    color: #22c55e;
    font-size: 16px;
}

.app-section {
    margin-bottom: 36px;
}

.app-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.app-section p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 16px;
}

.app-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-section ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 16px;
}

.app-section ul li i {
    color: #38bdf8;
    font-size: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.info-item {
    background: #0f172a;
    padding: 18px 20px;
}

.info-item-label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 6px;
}

.info-item-value {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 15px;
}

.app-detail-sidebar {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 18px;
    padding: 18px 16px;
}

.screenshots-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    padding: 10px 0 0;
}

.screenshots-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
    overflow: hidden;
}

.screenshot {
    position: absolute;
    width: 260px;
    height: 520px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.screenshot.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: #38bdf8;
    color: white;
    border-color: #38bdf8;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.footer {
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    padding: 56px 0 36px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-link:hover {
    color: #38bdf8;
}

.footer-section p {
    color: #94a3b8;
    font-size: 15px;
}

.copyright {
    margin-top: 18px;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-link:hover {
    background: #38bdf8;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    display: flex;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    margin: 0 auto;
    top: 18vh;
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(56, 189, 248, 0.06);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.24);
}

.modal-body {
    padding: 16px 18px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
}

.modal-footer {
    padding: 14px 18px 18px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

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

    .hero-buttons {
        justify-content: center;
    }

    .app-detail-content {
        grid-template-columns: 1fr;
    }

    .app-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .app-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .app-icon-large {
        width: 110px;
        height: 110px;
        font-size: 48px;
    }

    .app-detail-info h1 {
        font-size: 28px;
    }

    .app-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-container {
        height: 440px;
    }

    .screenshot {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        font-size: 24px;
    }

    .nav {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 18px;
    }

    .btn-primary {
        width: 100%;
        max-width: 200px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

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

    .btn-large {
        width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

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

    .app-detail-sidebar {
        padding: 14px 12px;
    }

    .screenshots-container {
        height: 380px;
    }

    .screenshot {
        width: 190px;
        height: 380px;
    }
}

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

    .app-stats {
        grid-template-columns: 1fr;
    }
}
