:root {
    --bg-body: #f8fafc;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #4f46e5;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --hero-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #818cf8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --hero-gradient: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

.hero {
    padding: 4rem 0;
    text-align: center;
    background: var(--hero-gradient);
    color: white;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.play-store-btn img {
    height: 60px;
    transition: transform 0.2s;
}

.play-store-btn:hover img {
    transform: scale(1.05);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-container {
    position: relative;
    margin-bottom: 5rem;
}

.screenshots-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.slider-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.screenshots-container {
    padding: 2rem 0;
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex-grow: 1;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshots-container:active {
    cursor: grabbing;
}

.screenshot-item {
    display: inline-block;
    width: 280px;
    margin-right: 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    scroll-snap-align: center;
}

.tablet-item {
    width: calc(100vw - 3rem);
    max-width: 900px;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.screenshot-item img {
    width: 100%;
    display: block;
}

.slider-arrow {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 32px;
    padding: 0;
}

.slider-arrow:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slider-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 1150px) {
    .container {
        padding: 0 1rem;
    }
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .screenshot-item {
        width: 200px;
    }

    .tablet-item {
        width: 350px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}