:root {
    --primary-color: #0A84FF;
    --secondary-color: #30D158;
    --text-color: #1D1D1F;
    --bg-color: #FFFFFF;
    --light-gray: #F5F5F7;
    --medium-gray: #86868B;
    --dark-gray: #424245;
    --section-padding: 80px 0;
    --gradient-blue: linear-gradient(135deg, #0A84FF, #30D158);
    --gradient-purple: linear-gradient(135deg, #AF52DE, #5E5CE6);
    --gradient-orange: linear-gradient(135deg, #FF9500, #FF2D55);
    --gradient-download: linear-gradient(135deg, #3c58e3, #5438d5, #7824c5);
    --gradient-hero: linear-gradient(135deg, #3c58e3, #5438d5, #7824c5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

h2 {
    font-size: 36px;
    margin-bottom: 24px;
    text-align: left;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 24px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 132, 255, 0.3);
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

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

.logo-img {
    height: 40px;
}

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

.nav-links a:not(.btn) {
    color: var(--dark-gray);
    font-weight: 500;
}

.header-download-btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="20" height="20"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 50%;
    padding-right: 40px;
    position: relative;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero h1 {
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.app-preview {
    max-height: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Features Section */
.features {
    padding: var(--section-padding);
}

.section-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 40px;
}

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

.feature-item {
    background: var(--gradient-purple);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    box-shadow: 0 8px 16px rgba(175, 82, 222, 0.2);
}

.feature-item:nth-child(2n) {
    background: var(--gradient-blue);
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.2);
}

.feature-item:nth-child(3n) {
    background: var(--gradient-purple);
    box-shadow: 0 8px 16px rgba(175, 82, 222, 0.2);
}

.feature-item:nth-child(4n) {
    background: var(--gradient-blue);
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

/* App Showcase */
.app-showcase {
    padding: var(--section-padding);
    background: linear-gradient(120deg, #f6f9fc, #edf2f7);
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 48px auto 0;
    overflow: hidden;
    padding-bottom: 20px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.screen-preview {
    height: 500px;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark-gray);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-button img {
    width: 20px;
    height: 20px;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Media queries for slider */
@media (max-width: 900px) {
    .screen-preview {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .screen-preview {
        height: 350px;
    }

    .slider-button {
        width: 38px;
        height: 38px;
    }

    .slider-button img {
        width: 16px;
        height: 16px;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }
}

/* Download Section */
.download {
    padding: var(--section-padding);
    background: var(--gradient-download);
    color: white;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="20" height="20"/></svg>');
    opacity: 0.1;
}

.download .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.download-content {
    max-width: 60%;
}

.download-content h2 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.download-logo {
    height: 40px;
    vertical-align: middle;
    margin-left: 5px;
    filter: brightness(0) invert(1);
}

.app-store-btn img {
    height: 48px;
    transition: transform 0.3s ease;
}

.app-store-btn:hover img {
    transform: translateY(-3px);
}

.app-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 44px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: float 6s ease-in-out infinite;
}

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

/* Footer */
footer {
    background: linear-gradient(180deg, #f5f7ff, #ffffff);
    padding: 60px 0 40px;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--dark-gray);
    font-size: 14px;
}

.copyright {
    text-align: center;
    color: var(--medium-gray);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 900px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

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

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .app-preview {
        max-height: 400px;
    }

    .download .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .download-content {
        max-width: 100%;
        text-align: center;
    }

    .download-content h2 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-logo {
        height: 30px;
    }

    .screen-preview {
        height: 400px;
    }

    .header-download-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .download-logo {
        height: 30px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .app-preview, .screen-preview {
        height: 350px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 16px;
    }

    .download-logo {
        height: 24px;
        display: block;
        margin: 10px auto;
    }
}
