:root {
    --bg: #0F0F14;
    --surface: #1A1A24;
    --surface-raised: #242434;
    --border: #2A2A3C;
    --text: #EEEEF2;
    --text-secondary: #8888A0;
    --text-muted: #5C5C72;
    --accent: #7B7FED;
    --accent-light: #9B9EF5;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Navigation */

nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

nav .nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

nav .nav-brand:hover {
    color: var(--accent);
    text-decoration: none;
}

nav .nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

nav .nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

/* Main content */

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* Hero section */

.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Features grid */

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

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

/* App Store badge */

.store-badge {
    display: inline-block;
    margin-top: 1.5rem;
}

.store-badge img {
    height: 48px;
}

/* Legal pages */

.legal h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal .effective-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.legal li {
    margin-bottom: 0.375rem;
}

.legal strong {
    color: var(--text);
}

/* Contact page */

.contact-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.contact-card .email-link {
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1.5rem;
    text-align: center;
}

footer .footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    margin-bottom: 0.75rem;
}

footer .footer-links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

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

footer .copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive */

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

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

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

    nav .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
    }

    nav .nav-links {
        gap: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 1rem 0 2rem;
    }
}
