/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme styles */
body.dark-theme {
    color: #e4e6ea;
    background-color: #0a0a0b;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
    transition: color 0.3s ease;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #ffffff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-theme .header {
    background: rgba(10, 10, 11, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav__logo {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__menu {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

body.dark-theme .nav__link {
    color: #a0a3a8;
}

.nav__link:hover {
    color: #111827;
}

body.dark-theme .nav__link:hover {
    color: #ffffff;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

body.dark-theme .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: #a0a3a8;
}

.theme-toggle:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1c 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

body.dark-theme .hero::before {
    background: radial-gradient(ellipse at center top, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

/* App Store Style Header */
.app-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.app-icon {
    flex-shrink: 0;
}

.app-icon__image {
    width: 200px;
    height: 200px;
}

body.dark-theme .app-icon__image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-info {
    flex: 1;
    padding-top: 0.5rem;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #111827;
}

body.dark-theme .app-title {
    color: #ffffff;
}

.app-developer {
    color: #667eea;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.app-rating {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 1.125rem;
}

.rating-text {
    color: #6b7280;
    font-size: 0.875rem;
}

body.dark-theme .rating-text {
    color: #a0a3a8;
}

.app-category {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

body.dark-theme .app-category {
    color: #a0a3a8;
}

.app-price {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

body.dark-theme .app-price {
    color: #a0a3a8;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__platforms {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

body.dark-theme .hero__platforms {
    color: #6b7280;
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .screenshots {
    background: #0a0a0b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshots__tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-theme .tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a3a8;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #111827;
}

body.dark-theme .tab-btn.active,
body.dark-theme .tab-btn:hover {
    color: #ffffff;
}

.screenshots__gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.screenshot-placeholder {
    flex-shrink: 0;
    width: 300px;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-theme .screenshot-placeholder {
    background: linear-gradient(145deg, #1a1a1c, #141416);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.screenshot-placeholder:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
}

body.dark-theme .screenshot-placeholder:hover {
    background: linear-gradient(145deg, #1f1f23, #191919);
}

.placeholder-content {
    text-align: center;
    color: #6b7280;
    display: flex;
    overflow: hidden;
}

.placeholder-content img {
    display: block;
    width: 100%;
}
body.dark-theme .placeholder-content {
    color: #6b7280;
}

.placeholder-content svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hide scrollbar but keep functionality */
.screenshots__gallery::-webkit-scrollbar {
    height: 6px;
}

.screenshots__gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

body.dark-theme .screenshots__gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.screenshots__gallery::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.screenshots__gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn__icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: translateY(2px);
}

/* Download Button Specific */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
}

/* Sections */
.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #111827 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .section__title {
    background: linear-gradient(135deg, #ffffff 0%, #a0a3a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 3rem 0;
    background: #f9fafb;
}

body.dark-theme .features {
    background: #0a0a0b;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature__card {
    padding: 2.5rem;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.dark-theme .feature__card {
    background: linear-gradient(145deg, #1a1a1c, #141416);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.feature__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature__card:hover::before {
    opacity: 1;
}

.feature__card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.dark-theme .feature__card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.feature__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #111827;
}

body.dark-theme .feature__title {
    color: #ffffff;
}

.feature__description {
    color: #6b7280;
    line-height: 1.6;
}

body.dark-theme .feature__description {
    color: #a0a3a8;
}

/* Security Section */
.security {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

body.dark-theme .security {
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1c 100%);
}

.security__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security__description {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

body.dark-theme .security__description {
    color: #a0a3a8;
}

.security__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1f2937;
    font-weight: 500;
}

body.dark-theme .security__item {
    color: #e4e6ea;
}

.security__check {
    color: #22c55e;
    flex-shrink: 0;
}

.security__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security__shield {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.security__shield::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.3;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    text-align: center;
}

body.dark-theme .cta {
    background: linear-gradient(135deg, #1a1a1c 0%, #0a0a0b 100%);
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

body.dark-theme .cta__title {
    color: #ffffff;
}

.cta__subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme .cta__subtitle {
    color: #a0a3a8;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 0 0 2rem;
}

body.dark-theme .footer {
    background: #0a0a0b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__description {
    color: #6b7280;
    line-height: 1.6;
}

body.dark-theme .footer__description {
    color: #a0a3a8;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__heading {
    color: #111827;
    margin-bottom: 1rem;
    font-size: 1rem;
}

body.dark-theme .footer__heading {
    color: #ffffff;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-theme .footer__link {
    color: #a0a3a8;
}

.footer__link:hover {
    color: #111827;
}

body.dark-theme .footer__link:hover {
    color: #ffffff;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark-theme .footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .security__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav__content {
        gap: 1rem;
    }

    .nav__menu {
        display: none;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .app-header {
        gap: 1.5rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 2rem;
    }

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

    .feature__card {
        padding: 2rem;
    }

    .cta__title {
        font-size: 2rem;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .screenshots__gallery {
        gap: 1rem;
    }

    .screenshot-placeholder {
        width: 250px;
    }

    .screenshots__tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {

    .app-header {
        gap: 1rem;
    }

    .app-icon__image {
        width: 80px;
        height: 80px;
        border-radius: 14px;
    }

    .app-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .feature__card {
        padding: 1.5rem;
    }

    .screenshot-placeholder {
        width: 200px;
    }
}

/* Performance optimizations */
.hero,
.features,
.security,
.cta {
    will-change: transform;
    transform: translateZ(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
