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

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --primary: #007AFF;
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 54px;
}

.coming-soon {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 80px 24px;
}

.features h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

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

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-secondary);
}

/* Screenshots / Slideshow */
.screenshots {
    padding: 80px 24px;
    background: white;
    overflow: hidden;
}

.screenshots h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 48px;
}

.slideshow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.slideshow-track {
    position: relative;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    opacity: 0;
    transform: scale(0.65) translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 3;
}

.slide.prev-adjacent {
    opacity: 0.5;
    transform: scale(0.75) translateX(-280px);
    z-index: 2;
    filter: brightness(0.9);
}

.slide.next-adjacent {
    opacity: 0.5;
    transform: scale(0.75) translateX(280px);
    z-index: 2;
    filter: brightness(0.9);
}

.slide img {
    height: 500px;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: block;
}

/* Slideshow Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.slideshow-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slideshow-arrow:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.slideshow-prev {
    left: 0;
}

.slideshow-next {
    right: 0;
}

/* Slideshow Dots */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.slideshow-dot:hover {
    opacity: 0.6;
    transform: scale(1.2);
}

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

.slideshow-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.1s ease;
    }

    .slideshow-arrow,
    .slideshow-dot {
        transition: none;
    }
}

/* Legal Pages */
.legal {
    padding: 80px 24px;
    background: white;
}

.legal .container {
    max-width: 720px;
}

.legal h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal .last-updated {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--primary);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer-links {
    margin-top: 8px;
}

.footer-links .divider {
    margin: 0 8px;
}

@media (max-width: 900px) {
    .slide.prev-adjacent {
        transform: scale(0.7) translateX(-220px);
    }

    .slide.next-adjacent {
        transform: scale(0.7) translateX(220px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 24px 40px;
    }

    .features, .screenshots {
        padding: 60px 24px;
    }

    .slideshow {
        max-width: 100%;
        padding: 0 16px;
    }

    .slideshow-track {
        height: 440px;
    }

    .slide img {
        height: 400px;
    }

    .slide.prev-adjacent,
    .slide.next-adjacent {
        opacity: 0.4;
        transform: scale(0.65) translateX(-180px);
    }

    .slide.next-adjacent {
        transform: scale(0.65) translateX(180px);
    }

    .slideshow-arrow {
        width: 36px;
        height: 36px;
    }

    .slideshow-arrow svg {
        width: 20px;
        height: 20px;
    }

    .slideshow-dots {
        gap: 10px;
        margin-top: 24px;
    }

    .legal {
        padding: 60px 24px;
    }
}

@media (max-width: 520px) {
    .slide.prev-adjacent,
    .slide.next-adjacent {
        opacity: 0;
    }

    .slideshow {
        padding: 0 48px;
    }

    .slideshow-track {
        height: 400px;
    }

    .slide img {
        height: 360px;
        border-radius: 20px;
    }

    .slideshow-arrow {
        width: 32px;
        height: 32px;
    }

    .slideshow-arrow svg {
        width: 18px;
        height: 18px;
    }
}
