/* === Design Tokens (from UI-SPEC.md) === */
:root {
    --color-primary: #4F46E5;
    --color-secondary: #F8F9FB;
    --color-neutral: #334155;
    --color-background: #F8F9FB;
    --color-heading: #0F162A;
    --color-body: #334155;
    --color-muted: #64748B;
    --color-border: #E2E8F0;
    --color-footer-bg: #0F162A;
    --color-footer-text: #64748B;

    --font-family: 'Avenir Next', 'Avenir', system-ui, -apple-system, sans-serif;
    --font-regular: 400;
    --font-medium: 500;
    --font-demibold: 600;
    --font-bold: 700;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font-family);
    color: var(--color-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Skip navigation link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: var(--font-demibold);
    text-decoration: none;
    z-index: 200;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* === Navigation === */
.navbar {
    position: sticky;
    top: 0;
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: var(--font-bold);
    color: var(--color-heading);
    text-decoration: none;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: var(--font-medium);
    color: var(--color-body);
    text-decoration: none;
    transition: color 0.2s;
}

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

.lang-switcher {
    display: flex;
    background: var(--color-border);
    border-radius: 8px;
    padding: 2px;
}

.lang-btn {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: var(--font-demibold);
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #fff;
    color: var(--color-heading);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* === Hero === */
.hero {
    background: var(--color-background);
    padding: 60px 24px 48px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: var(--font-bold);
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: var(--font-regular);
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.screenshot {
    background: var(--color-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 13px;
}

.screenshot-center {
    width: 180px;
    height: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.screenshot-side {
    width: 150px;
    height: 300px;
}

.screenshot-side.left {
    transform: rotate(-3deg);
}

.screenshot-side.right {
    transform: rotate(3deg);
}

/* App Store Badge */
.appstore-badge {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.appstore-badge:hover {
    opacity: 0.85;
}

.appstore-badge img {
    display: block;
    height: 44px;
    width: auto;
}

/* === Sections === */
.section-white {
    background: #fff;
    padding: 48px 24px;
    text-align: center;
}

.section-gray {
    background: var(--color-background);
    padding: 48px 24px;
    text-align: center;
}

.section-white h2,
.section-gray h2 {
    font-size: 28px;
    font-weight: var(--font-bold);
    color: var(--color-heading);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: var(--font-regular);
    color: var(--color-muted);
    margin-bottom: 32px;
}

/* === Actions Grid === */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.action-card {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.action-green {
    background: #f0faf0;
    border: 1px solid #c8e6c9;
}

.action-rose {
    background: #fdf0f7;
    border: 1px solid #f0c0dc;
}

.action-blue {
    background: #eef4fb;
    border: 1px solid #b8d4f0;
}

.action-red {
    background: #fdedef;
    border: 1px solid #f0b8be;
}

.action-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.action-name {
    font-size: 15px;
    font-weight: var(--font-demibold);
    margin-bottom: 4px;
}

.action-green .action-name { color: #2e7d32; }
.action-rose .action-name { color: #c850a0; }
.action-blue .action-name { color: #4a90d9; }
.action-red .action-name { color: #cc2936; }

.action-desc {
    font-size: 13px;
    font-weight: var(--font-regular);
    color: var(--color-muted);
}

/* === Steps === */
.steps {
    display: flex;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
    justify-content: center;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
    font-weight: var(--font-bold);
}

.step-title {
    font-size: 14px;
    font-weight: var(--font-demibold);
    color: var(--color-heading);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    font-weight: var(--font-regular);
    color: var(--color-muted);
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 16px;
}

.feature-emoji {
    font-size: 28px;
    margin-bottom: 6px;
}

.feature-label {
    font-size: 13px;
    font-weight: var(--font-demibold);
    color: var(--color-heading);
}

/* === Privacy === */
.privacy-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.privacy-content p {
    font-size: 15px;
    font-weight: var(--font-regular);
    color: var(--color-body);
    margin-bottom: 12px;
    line-height: 1.7;
}

/* === Support === */
.support-email {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-demibold);
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.support-email:hover {
    opacity: 0.8;
}

.faq {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 12px;
}

.faq-q {
    font-size: 14px;
    font-weight: var(--font-demibold);
    color: var(--color-heading);
    margin-bottom: 2px;
}

.faq-a {
    font-size: 14px;
    font-weight: var(--font-regular);
    color: var(--color-muted);
    font-style: italic;
}

/* === Footer === */
.footer {
    background: var(--color-footer-bg);
    padding: 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    font-weight: var(--font-regular);
    color: var(--color-footer-text);
    margin-bottom: 6px;
}

.footer-links {
    font-size: 12px;
    margin-bottom: 6px;
}

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

.footer-links a:hover {
    color: #CBD5E1;
}

.footer-langs {
    font-size: 12px;
    font-weight: var(--font-regular);
    color: var(--color-footer-text);
}

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

    .hero-subtitle {
        font-size: 15px;
    }

    .screenshot-center {
        width: 140px;
        height: 280px;
    }

    .screenshot-side {
        width: 110px;
        height: 220px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

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

    .steps {
        flex-direction: column;
        gap: 16px;
    }

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