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

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #555;
    --accent: #f28d28;
    --accent-dark: #d9740e;
    --radius: 12px;
    --max-width: 960px;
}

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

/* === Navigation === */
header {
    background: var(--surface);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: -0.3px;
}

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

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

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

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-desc {
    max-width: 500px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
}

.appstore-btn img {
    height: 48px;
    transition: transform 0.15s;
}

.appstore-btn img:hover {
    transform: scale(1.03);
}

/* === Features === */
.features {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.features h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* === Screenshots === */
.screenshots {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
    text-align: center;
}

.screenshots h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.screenshot-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.screenshot {
    width: 260px;
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* === Content Pages (Privacy, Support) === */
.content-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.content-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.content-page h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
}

.content-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 6px;
}

.content-page p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.content-page ul, .content-page ol {
    margin: 8px 0 16px 24px;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 6px;
}

.content-page a {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* === Footer === */
footer {
    border-top: 1px solid #e5e5e5;
    background: var(--surface);
    text-align: center;
    padding: 32px 24px;
}

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

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

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

.copyright {
    color: #999;
    font-size: 0.85rem;
}

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

    .hero {
        padding: 60px 20px;
    }

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

    .nav-links {
        gap: 16px;
    }
}
