/* ---- Marketing Site CSS ---- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}

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

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

/* Nav */
.top-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 0 1.5rem;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: .75rem auto 0; text-align: center; }

/* Hero */
.hero { padding: 6rem 0 4rem; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; font-size: .9rem; font-weight: 600;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    text-decoration: none; cursor: pointer; transition: all .12s;
}
.btn:hover { background: var(--bg-alt); }
.btn-primary { background: var(--primary); color: #fff !important; border-color: var(--primary); font-weight: 700; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: .7rem 1.5rem; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: #f0f4ff; }

/* Features */
.features { background: var(--surface); }
.features h2 { text-align: center; font-size: 2rem; font-weight: 700; }
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.feature-card {
    background: var(--bg-alt); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 1.75rem; text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

/* Pricing */
.pricing { background: var(--bg-alt); }
.pricing h2 { text-align: center; font-size: 2rem; font-weight: 700; }
.pricing-grid {
    display: flex; gap: 1.5rem; justify-content: center; margin-top: 3rem;
    flex-wrap: wrap;
}
.pricing-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-align: center;
    width: 340px; max-width: 100%;
    box-shadow: var(--shadow);
}
.pricing-card.featured {
    border-color: var(--primary); box-shadow: var(--shadow-lg);
    position: relative; transform: scale(1.03);
}
.popular {
    background: var(--primary); color: #fff;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    padding: .25rem 1rem; border-radius: 100px;
    display: inline-block; margin-bottom: .75rem; letter-spacing: .5px;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 1.25rem 0; text-align: left; }
.pricing-card ul li { padding: .35rem 0; font-size: .9rem; border-bottom: 1px solid var(--border-light); }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: '\2713'; color: var(--success); margin-right: .5rem; font-weight: 700; }
.pricing-card .btn { margin-top: .5rem; width: 100%; justify-content: center; }
.save { color: var(--success); font-weight: 600; margin-bottom: .75rem; font-size: .85rem; }

/* CTA */
.cta h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }

/* Footer */
.footer {
    background: var(--text); color: #fff; padding: 3rem 0; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer strong { display: block; margin-bottom: .5rem; font-size: .95rem; }
.footer a { display: block; color: #94a3b8; text-decoration: none; font-size: .85rem; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer .text-muted { color: #94a3b8; font-size: .85rem; }

/* Forms (reuse dashboard styles) */
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .3rem; font-size: .85rem; }
.form-control {
    width: 100%; padding: .55rem .7rem; font-size: .9rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text); font-family: inherit;
    transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-check { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.form-check input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--primary); }
.flash { padding: .6rem 1rem; border-radius: var(--radius); margin-bottom: .5rem; font-size: .85rem; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.text-muted { color: var(--text-muted); }

/* Feature Detail Rows */
.feature-row { display: flex; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.3rem; margin-bottom: .75rem; color: var(--primary); }
.feature-text p { font-size: .95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .75rem; }
.feature-text ul { padding-left: 1.2rem; list-style: disc; }
.feature-text ul li { font-size: .9rem; color: var(--text-muted); padding: .2rem 0; }
.feature-screenshot { flex: 1; min-width: 300px; }
.screenshot-placeholder {
    background: var(--border-light); border: 2px dashed var(--border);
    border-radius: var(--radius); height: 280px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: .9rem; font-weight: 500;
}
.features-hero .section-sub { max-width: 700px; }

/* Responsive */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 1.5rem; }
    .feature-screenshot { min-width: auto; width: 100%; }
    .screenshot-placeholder { height: 200px; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .nav-links { gap: .75rem; }
    .nav-links a { font-size: .8rem; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .section { padding: 2.5rem 0; }
    .pricing-card { width: 100%; }
    .nav-inner { flex-wrap: wrap; height: auto; padding: .5rem 0; }
}
