/* ===== CSS VARIABLES & RESET ===== */
:root {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 8px;
    --font: system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #999;
    --border: #333;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ===== HEADER ===== */
.header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.logo-accent { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}
.accent { color: var(--accent); }
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FEATURES ===== */
.features { padding: 60px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== PRICING ===== */
.pricing-header {
    padding: 60px 0 32px;
    text-align: center;
}
.pricing-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.pricing { padding-bottom: 40px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.pricing-card {
    padding: 32px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price { margin: 16px 0; }
.amount { font-size: 2rem; font-weight: 700; }
.period { color: var(--text-muted); }
.features-list {
    list-style: none;
    margin: 20px 0;
    flex: 1;
}
.features-list li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pricing-card .btn { width: 100%; margin-top: auto; }
.payment-note { padding-bottom: 60px; }
.note-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== MODAL ===== */
.modal {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal::backdrop {
    background: rgba(0,0,0,0.5);
}
.modal-content { padding: 24px; }
.modal h3 { margin-bottom: 12px; }
.modal-price { margin-bottom: 20px; color: var(--text-muted); }
.payment-placeholder {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.95rem;
}
.payment-placeholder ol {
    margin: 12px 0 0 20px;
    color: var(--text-muted);
}
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.modal-actions .btn { flex: 1; }

/* ===== POLICY PAGES ===== */
.policy {
    padding: 60px 0;
    max-width: 800px;
}
.policy h1 { margin-bottom: 8px; }
.policy-date { color: var(--text-muted); margin-bottom: 32px; }
.policy section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.policy section:last-child { border-bottom: none; }
.policy h2 { font-size: 1.4rem; margin-bottom: 12px; }
.policy p, .policy ul { color: var(--text-muted); margin-bottom: 12px; }
.policy ul { padding-left: 20px; }
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 16px 0;
}
.data-col h3 { margin-bottom: 8px; }
.data-col ul { padding-left: 20px; }
.policy-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* ===== ERROR PAGE ===== */
.error-page {
    padding: 100px 0;
    text-align: center;
}
.error-page h1 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.error-subtitle { color: var(--text-muted); margin-bottom: 24px; }

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-contacts { margin-top: 8px; }
.footer-contacts a { color: var(--text-muted); }
.footer-contacts a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .data-grid { grid-template-columns: 1fr; }
    .policy-actions, .modal-actions { flex-direction: column; }
}