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

/* ── Light theme (default) ── */
:root {
    --bg-primary: #f2f2f7;
    --bg-card: #ffffff;
    --bg-card-border: rgba(0, 0, 0, 0.06);
    --accent: #d29434;
    --accent-hover: #b8802b;
    --text-primary: #1c1c1e;
    --text-secondary: #6c6c70;
    --text-muted: #aeaeb2;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color-scheme: light;
}

/* ── Dark theme ── */
[data-theme="dark"] {
    --bg-primary: #1c1c1e;
    --bg-card: #2c2c2e;
    --bg-card-border: rgba(255, 255, 255, 0.06);
    --accent: #e8ac49;
    --accent-hover: #d29434;
    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --text-muted: #48484a;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

/* ── System theme: follow OS preference ── */
@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --bg-primary: #1c1c1e;
        --bg-card: #2c2c2e;
        --bg-card-border: rgba(255, 255, 255, 0.06);
        --accent: #e8ac49;
        --accent-hover: #d29434;
        --text-primary: #f5f5f7;
        --text-secondary: #8e8e93;
        --text-muted: #48484a;
        --border-color: rgba(255, 255, 255, 0.08);
        --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        color-scheme: dark;
    }
}

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

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ── Header ── */
.site-header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--text-secondary); font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text-primary); }

/* ── Theme Toggle ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.theme-toggle-icon { font-size: 1rem; line-height: 1; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* ── CTA Button ── */
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2.25rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.cta-btn:hover { background: var(--accent-hover); color: #ffffff; }

/* ── Features ── */
.features { padding: 4rem 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

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

/* ── CTA Bottom ── */
.cta-bottom {
    text-align: center;
    padding: 4rem 0 6rem;
}

.cta-bottom h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cta-bottom p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* ── Page Content (Privacy, Terms) ── */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

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

.page-content strong { color: var(--text-primary); }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }

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

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .tagline { font-size: 1.1rem; }
    .features-grid { grid-template-columns: 1fr; }
}
