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

:root {
    --bg: #ffffff;
    --bg-secondary: #f5f7fa;
    --text: #1a1a2e;
    --text-secondary: #555770;
    --accent: #4361ee;
    --accent-hover: #3a56d4;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --border: #e0e0e0;
    --logo-stroke: #1a1a2e;
    --footer-bg: #1a1a2e;
    --footer-text: #c0c0d0;
    --footer-link: #8890ff;
    --badge-bg: #000000;
    --hero-gradient: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f1a;
        --bg-secondary: #1a1a2e;
        --text: #e8e8f0;
        --text-secondary: #a0a0b8;
        --accent: #6c7cff;
        --accent-hover: #8490ff;
        --card-bg: #1e1e32;
        --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
        --border: #2a2a40;
        --logo-stroke: #e8e8f0;
        --footer-bg: #0a0a14;
        --footer-text: #888898;
        --footer-link: #8890ff;
        --badge-bg: #ffffff;
        --hero-gradient: linear-gradient(135deg, #2a3ab0 0%, #5b28a0 100%);
    }
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* ===== Layout ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-header .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
}

.site-header .logo-link:hover {
    color: var(--accent);
}

.site-header .logo-svg {
    width: 36px;
    height: 36px;
}

.site-header .logo-svg svg {
    width: 100%;
    height: 100%;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

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

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

/* ===== Hero Section ===== */
.hero {
    background: var(--hero-gradient);
    padding: 80px 0 64px;
    text-align: center;
    color: #ffffff;
}

.hero .logo-hero {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.hero .logo-hero svg {
    width: 100%;
    height: 100%;
}

/* Force white strokes in hero */
.hero .logo-hero svg g {
    stroke: #ffffff !important;
}

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

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 400;
}

.hero .tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Store Badges ===== */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--badge-bg);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.store-badge .badge-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-badge .badge-text small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badge .badge-text span {
    font-size: 1.05rem;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .store-badge {
        background: #ffffff;
        color: #000000;
    }

    .store-badge:hover {
        color: #000000;
    }
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* ===== About / Description Section ===== */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== CTA Section ===== */
.cta {
    padding: 64px 0;
    background: var(--hero-gradient);
    text-align: center;
    color: #ffffff;
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand .logo-svg {
    width: 28px;
    height: 28px;
}

.footer-brand .logo-svg svg {
    width: 100%;
    height: 100%;
}

.footer-brand .logo-svg svg g {
    stroke: #ffffff !important;
}

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

.footer-links a {
    color: var(--footer-link);
    font-size: 0.875rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--footer-link);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 48px 0 80px;
}

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

.legal-page .legal-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.legal-page ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-page a {
    color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 56px 0 48px;
    }

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

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

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

    .feature-card {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .features,
    .about {
        padding: 56px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

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

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

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

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 220px;
        justify-content: center;
    }

    .header-nav {
        gap: 12px;
    }

    .header-nav a {
        font-size: 0.8rem;
    }
}