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

:root {
    --bg: #0a0a0f;
    --bg-card: #14141f;
    --bg-card-hover: #1a1a2e;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --border: #27272a;
    --radius: 12px;
    --max-width: 960px;
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */

.nav {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

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

.nav-links a:hover {
    color: var(--text);
    opacity: 1;
}

/* Hero */

.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-wordmark {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* App Card Grid */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    padding: 40px 0 80px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.app-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--bg-card);
    padding: 24px;
}

.app-card-body {
    padding: 20px;
}

.app-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* App Page Hero */

.app-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 60px 0;
}

.app-hero-img {
    flex: 0 0 400px;
    max-width: 400px;
    border-radius: var(--radius);
    padding: 16px;
}

.app-hero-content {
    flex: 1;
}

.app-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.app-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.badge-link img {
    height: 48px;
    width: auto;
}

/* Feature Grid */

.features {
    padding: 40px 0 60px;
}

.features-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

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

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

/* Page Links */

.page-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px 0 60px;
    flex-wrap: wrap;
}

.page-links a {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.page-links a:hover {
    border-color: var(--accent);
    color: var(--text);
    opacity: 1;
}

/* Support Page */

.support-header {
    text-align: center;
    padding: 60px 0 40px;
}

.support-header img {
    max-width: 300px;
    margin: 0 auto 24px;
    border-radius: var(--radius);
    padding: 12px;
}

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

.support-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.faq {
    padding: 0 0 60px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 60px;
}

.contact-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.contact-box a.email-link {
    font-size: 1rem;
    font-weight: 600;
}

/* Privacy Page */

.legal {
    padding: 0 0 60px;
}

.legal h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 60px;
    text-align: center;
}

.legal .effective-date {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.legal p,
.legal ul {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 24px;
}

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

/* Footer */

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.footer a {
    color: var(--text-dim);
}

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

/* Responsive */

@media (max-width: 640px) {
    .hero-wordmark {
        font-size: 2.25rem;
    }

    .hero-tagline {
        font-size: 1.0625rem;
    }

    .app-hero {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 40px 0;
    }

    .app-hero-img {
        flex: none;
        max-width: 280px;
        margin: 0 auto;
    }

    .app-hero-title {
        font-size: 2rem;
    }

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

    .nav-links {
        gap: 16px;
    }

    .container {
        padding: 0 16px;
    }
}
