:root {
    --color-base: #1a1a2e;
    --color-surface: #16213e;
    --color-accent: #4361ee;
    --color-accent-hover: #3a56d4;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0b0;
    --color-text-heading: #ffffff;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --font-stack: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --max-width: 740px;
    --spacing-section: 80px;
    --radius: 12px;
}

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

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-base);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 24px;
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.site-logo:hover { text-decoration: none; opacity: 0.85; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-text-heading); text-decoration: none; }

.x-icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.x-icon:hover { color: var(--color-text-heading); }
.x-icon svg { width: 18px; height: 18px; fill: currentColor; }

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

/* ===== Hero ===== */
.hero {
    background: linear-gradient(160deg, var(--color-surface), var(--color-base));
    padding: 140px 24px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

/* ===== Page Hero (sub pages) ===== */
.page-hero {
    background: linear-gradient(160deg, var(--color-surface), var(--color-base));
    padding: 100px 24px 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-heading);
}

/* ===== Sections ===== */
.section {
    padding: 64px 24px;
}

.section--alt {
    background: var(--color-surface);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 48px;
}

.section-text {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--color-text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
}
.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== App Card ===== */
.app-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-heading);
}

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

.app-card-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(160deg, var(--color-accent), #2d3dbd);
    padding: 64px 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 24px;
}

.cta-section .btn {
    background: #fff;
    color: var(--color-accent);
    font-weight: 700;
}
.cta-section .btn:hover {
    background: #f0f0f0;
}

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

.site-footer-links {
    margin-bottom: 12px;
}

.site-footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.site-footer-links a:hover { color: var(--color-text-heading); }

.site-footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ===== Privacy Policy / Legal Pages ===== */
.legal-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.9;
}

.legal-content ul {
    margin: 0 0 16px 24px;
    font-size: 0.9rem;
    line-height: 1.9;
}

/* ===== Contact Page ===== */
.contact-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
    text-align: center;
}

.contact-content p {
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .hero {
        padding: 160px 24px 100px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: var(--spacing-section) 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .page-hero {
        padding: 120px 24px 48px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}
