:root {
    --primary: #6c47ff;
    --primary-dark: #5438cc;
    --bg: #0f0f13;
    --surface: #1a1a24;
    --border: #2a2a3a;
    --text: #f0f0f5;
    --text-muted: #888899;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.6; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center;
       padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
.nav-logo { font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { padding: 0.5rem 1.25rem; border-radius: var(--radius); text-decoration: none;
       font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; display: inline-block; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* Flash messages */
.flash { padding: 0.75rem 1.5rem; margin: 1rem 2rem; border-radius: var(--radius); }
.flash-success { background: rgba(34,197,94,0.15); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(239,68,68,0.15); border: 1px solid var(--danger); color: var(--danger); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input { width: 100%; padding: 0.7rem 1rem; background: var(--surface);
                    border: 1px solid var(--border); border-radius: var(--radius);
                    color: var(--text); font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,71,255,0.2); }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.25rem; }

/* Footer */
.footer { padding: 2rem; text-align: center; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-ai { color: var(--text-muted); font-size: 0.85rem; }

/* Usage bar */
.usage-bar { font-size: 0.85rem; color: var(--text-muted); }
.usage-bar.warning { color: #f59e0b; }
.usage-bar.full { color: var(--danger); }

/* Landing */
.hero { text-align: center; padding: 5rem 2rem 3rem; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem;
            padding: 3rem 4rem; max-width: 1100px; margin: 0 auto; }
.feature { background: var(--surface); padding: 2rem; border-radius: var(--radius);
           border: 1px solid var(--border); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); }
.social-proof { text-align: center; padding: 2rem; color: var(--text-muted); }
.cta-bottom { text-align: center; padding: 4rem 2rem; }
.cta-bottom h2 { margin-bottom: 1.5rem; font-size: 2rem; }

/* Pricing */
.pricing-hero { text-align: center; padding: 4rem 2rem 2rem; }
.pricing-hero h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem;
                padding: 2rem 4rem; max-width: 1100px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 2rem; position: relative; }
.plan-featured { border-color: var(--primary); }
.plan-badge { font-size: 0.75rem; background: var(--primary); color: white;
              padding: 0.25rem 0.75rem; border-radius: 20px; display: inline-block;
              margin-bottom: 1rem; }
.plan-badge-gold { background: #d97706; }
.plan-price { font-size: 2.5rem; font-weight: 700; margin: 1rem 0; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-features { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-features li { font-size: 0.95rem; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.85rem;
                padding: 1rem 2rem 3rem; max-width: 600px; margin: 0 auto; }

/* Auth */
.auth-container { max-width: 420px; margin: 4rem auto; padding: 2rem; }
.auth-container h1 { margin-bottom: 0.5rem; }
.auth-sub { color: var(--text-muted); margin-bottom: 2rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size:0.9rem; }
.auth-footer a { color: var(--primary); text-decoration: none; }
.auth-legal { text-align: center; margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted); }
.auth-legal a { color: var(--text-muted); }

/* Google button */
.btn-google { display:flex; align-items:center; gap:0.5rem; justify-content:center;
              background:white; color:#333; border:1px solid #ddd; width:100%;
              padding:0.75rem; border-radius:var(--radius); text-decoration:none;
              font-weight:500; margin-top:0.75rem; }
.divider { text-align:center; color:var(--text-muted); font-size:0.85rem;
           margin:1rem 0; position:relative; }
.divider::before, .divider::after { content:''; position:absolute; top:50%;
    width:42%; height:1px; background:var(--border); }
.divider::before { left:0; } .divider::after { right:0; }

/* Account */
.account-container { max-width: 600px; margin: 3rem auto; padding: 2rem; }
.account-section { background: var(--surface); border: 1px solid var(--border);
                   border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.account-section h3 { margin-bottom: 0.75rem; }
.account-danger { border-color: rgba(239,68,68,0.3); }

/* Legal */
.legal-container { max-width: 700px; margin: 3rem auto; padding: 2rem; }
.legal-container h1 { margin-bottom: 0.5rem; }
.legal-date { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.legal-container h2 { margin: 2rem 0 0.75rem; font-size: 1.1rem; }
.legal-container p { color: var(--text-muted); line-height: 1.7; margin-bottom: 0.5rem; }

/* Dashboard */
.dashboard { max-width: 900px; margin: 0 auto; padding: 2rem; }
.usage-header { padding: 1rem 0; margin-bottom: 1rem; }
.usage-header a { color: var(--primary); text-decoration: none; }
