:root {
    --brand: #10b981;
    --brand-dark: #059669;
    --brand-light: #d1fae5;
    --text: #0f172a;
    --text-muted: #475569;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --radius: 16px;
    --max-width: 1100px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --bg: #0f172a;
        --bg-soft: #1e293b;
        --border: #334155;
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Navigation */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand-mark {
    width: 32px; height: 32px;
    background: var(--brand);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 18px;
}
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--text-muted); }
@media (max-width: 600px) { .nav-links { display: none; } }

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero p {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,.25); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; }

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-soft);
}
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.section-heading p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.features-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* CTA section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-section p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-soft);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--text-muted); }
.footer-copy { color: var(--text-muted); font-size: 14px; }

/* Legal/article pages */
.article {
    padding: 60px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}
.article h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.article .updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}
.article h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}
.article p, .article ul { margin-bottom: 14px; color: var(--text); }
.article ul { padding-left: 22px; }
.article ul li { margin-bottom: 6px; }
.article strong { font-weight: 600; }
.article .note {
    padding: 16px 20px;
    background: var(--bg-soft);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 15px;
}
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}
