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

:root {
    --accent: #40BCB4;
    --accent-dark: #5AD2A6;
    --bg: #FAFCFB;
    --text: #1A1A1A;
    --text-secondary: #6B7280;
    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;
}

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.app-store-badge img {
    transition: opacity 0.2s;
}

.app-store-badge:hover img {
    opacity: 0.8;
}

/* Features */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.features h2,
.screenshots h2,
.support h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots */
.screenshots {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.iphone-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.iphone-screenshot-item {
    flex: 0 0 calc(25% - 1.25rem);
    text-align: center;
}

.iphone-screenshot-item img {
    width: 100%;
    max-width: 240px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.screenshot-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Multi-device */
.multi-device {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.multi-device h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.multi-device-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

.ipad-screenshots.portrait {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.ipad-screenshot-item img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ipad-screenshot-item.landscape-item img {
    width: 440px;
}

@media (max-width: 640px) {
    .ipad-screenshot-item img {
        width: 100%;
    }
    .ipad-screenshot-item.landscape-item img {
        width: 100%;
    }
}

/* Support */
.support {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.support p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.support-link {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: opacity 0.2s;
}

.support-link:hover {
    opacity: 0.85;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--card-border);
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    transition: opacity 0.2s;
}

.lightbox-caption {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}
