/* VoterConnect — static site (voters.contact) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0b0f1a;
    --bg-card: #111827;
    --bg-alt: #0f1525;
    --border: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --accent: #a855f7;
    --warning: #f59e0b;
    --radius: 12px;
}

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

/* Nav */
.nav {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 28px;
    background: rgba(11,15,26,.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 40;
}
.nav__brand {
    font-size: 18px; font-weight: 800;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__links { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav__links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #fff !important; padding: 8px 18px; border-radius: 20px; font-weight: 600;
}
.nav__cta:hover { filter: brightness(1.1); text-decoration: none; }

/* Disclaimer */
.disclaimer {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 24px;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: var(--radius);
    font-size: 13px; line-height: 1.55; color: var(--text-muted);
}
.disclaimer a { color: var(--warning); text-decoration: underline; }

/* Hero */
.hero {
    text-align: center; padding: 80px 24px 96px;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(99,102,241,.18), transparent 70%),
        radial-gradient(40% 40% at 80% 30%, rgba(168,85,247,.14), transparent 70%);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #fff 30%, rgba(99,102,241,.6) 60%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(15px, 1.6vw, 19px); max-width: 800px; margin: 0 auto 32px; color: var(--text-muted); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; border-radius: 14px;
    font-weight: 700; font-size: 16px; border: 0; cursor: pointer;
    text-decoration: none; transition: all 200ms ease;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    box-shadow: 0 4px 24px rgba(99,102,241,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(99,102,241,.5); text-decoration: none; }
.btn--outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); text-decoration: none; }

/* Sections */
.section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); max-width: none; }
.section--alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section__sub { text-align: center; font-size: 16px; color: var(--text-muted); max-width: 760px; margin: 0 auto 40px; }

/* Grid + Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
    transition: transform 160ms ease, border-color 160ms ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card h3 { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* Language row */
.lang-row {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    padding: 0 24px;
}
.lang-row span {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 20px; font-size: 14px; font-weight: 600;
}

/* Sources table */
.sources-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.sources-table th {
    text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 700;
    border-bottom: 2px solid var(--border); color: var(--text);
}
.sources-table td {
    padding: 10px 14px; font-size: 13px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.sources-table a { color: var(--primary); }

/* Quiet data sources */
.data-sources-quiet {
    max-width: 820px; margin: 0 auto;
    font-size: 13px; color: var(--text-muted); line-height: 1.65;
}
.data-sources-quiet h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.data-sources-quiet a { color: var(--text-muted); text-decoration: underline; }

/* Prose (privacy, terms) */
.prose { max-width: 820px; margin: 0 auto; font-size: 15px; color: var(--text); padding: 0 24px; }
.prose h2 { margin: 32px 0 12px; font-size: 22px; }
.prose h3 { margin: 24px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.65; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose th { text-align: left; padding: 8px 12px; font-size: 13px; border-bottom: 2px solid var(--border); }
.prose td { padding: 8px 12px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }

/* Footer */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 40px 24px 28px; margin-top: 60px;
}
.footer__inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer__inner strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px; }
.footer__inner p { font-size: 14px; color: var(--text-muted); margin: 0; }
.footer__inner a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.footer__inner a:hover { color: var(--text); text-decoration: none; }
.footer__legal {
    border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px;
    font-size: 12px; color: var(--text-muted); text-align: center;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer__legal a { color: var(--text-muted); text-decoration: underline; }

/* ─── Services page ─── */
.svc { padding: 80px 24px; border-bottom: 1px solid var(--border); }
.svc--alt { background: var(--bg-alt); }
.svc__inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.svc__inner--reverse { direction: rtl; }
.svc__inner--reverse > * { direction: ltr; }

.svc__badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(99,102,241,.15); color: #818cf8; margin-bottom: 12px;
}
.svc__badge--purple { background: rgba(168,85,247,.15); color: #c084fc; }
.svc__badge--amber { background: rgba(245,158,11,.15); color: #fbbf24; }
.svc__badge--red { background: rgba(239,68,68,.15); color: #f87171; }
.svc__badge--green { background: rgba(34,197,94,.15); color: #4ade80; }

.svc__text h2 { text-align: left; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.svc__text p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }

.svc__list { list-style: none; padding: 0; }
.svc__list li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 14px; color: var(--text-muted);
}
.svc__icon {
    width: 20px; height: 20px; flex-shrink: 0;
    fill: none; stroke: var(--primary); stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Mockup cards ─── */
.svc__visual { display: flex; justify-content: center; }

.svc__mockup {
    width: 100%; max-width: 380px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.mockup__header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: rgba(99,102,241,.08);
    border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.mockup__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mockup__search {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 12px; padding: 8px 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    font-size: 12px; color: var(--text-muted);
}
.mockup__row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-bottom: 1px solid rgba(30,41,59,.5);
    font-size: 13px;
}
.mockup__row--faded { opacity: .5; }
.mockup__row small { color: var(--text-muted); font-size: 11px; }
.mockup__avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: #059669; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.mockup__phone { margin-left: auto; font-size: 16px; cursor: pointer; }

/* Chart card */
.svc__chart-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.svc__chart-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.chart-bars { display: flex; gap: 24px; justify-content: center; align-items: flex-end; height: 120px; }
.chart-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; justify-content: flex-end; }
.chart-bar__fill { width: 100%; border-radius: 6px 6px 0 0; min-height: 4px; transition: height .5s ease; }
.chart-bar span { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.3; }

.chart-hbar { display: flex; flex-direction: column; gap: 6px; }
.chart-hbar__row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.chart-hbar__row > span:first-child { width: 36px; text-align: right; }
.chart-hbar__row > span:last-child { width: 28px; }
.chart-hbar__track { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.chart-hbar__fill { height: 100%; background: linear-gradient(90deg, #6366f1, #a855f7); border-radius: 5px; }

/* AI card */
.svc__ai-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.ai-prompt {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: rgba(99,102,241,.06);
    border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
.ai-response { padding: 16px; }
.ai-response p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; }
.ai-typing { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.ai-sparkle { font-size: 16px; }

/* Dashboard card */
.svc__dashboard {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.dash__header {
    padding: 12px 16px; font-size: 13px; font-weight: 700;
    background: rgba(239,68,68,.06); border-bottom: 1px solid var(--border);
}
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dash__stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px; border-bottom: 1px solid var(--border);
}
.dash__stat:nth-child(odd) { border-right: 1px solid var(--border); }
.dash__num { font-size: 24px; font-weight: 800; }
.dash__label { font-size: 11px; color: var(--text-muted); }
.dash__booths { padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.dash__booth {
    padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600;
    display: flex; justify-content: space-between; gap: 10px; flex: 1 1 45%;
}
.dash__booth--high { background: rgba(34,197,94,.12); color: #4ade80; }
.dash__booth--mid { background: rgba(245,158,11,.12); color: #fbbf24; }
.dash__booth--low { background: rgba(239,68,68,.12); color: #f87171; }

/* Results card */
.svc__results-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.svc__results-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.results-table { width: 100%; border-collapse: collapse; }
.results-table th { font-size: 11px; font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 2px solid var(--border); color: var(--text-muted); }
.results-table td { font-size: 12px; padding: 8px 8px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.party-bjp { color: #f97316; font-weight: 700; }
.party-sp { color: #22c55e; font-weight: 700; }
.party-bsp { color: #3b82f6; font-weight: 700; }
.results-source { margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.results-source a { color: var(--primary); }

/* Phone mockup */
.svc__phone-mockup {
    width: 100%; max-width: 320px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 16px; position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.phone__notch {
    width: 100px; height: 6px; background: var(--border);
    border-radius: 3px; margin: 0 auto 16px;
}
.phone__msg {
    padding: 10px 14px; border-radius: 14px; font-size: 12px;
    line-height: 1.55; margin-bottom: 8px; max-width: 90%;
}
.phone__msg--out { background: rgba(99,102,241,.15); color: var(--text); margin-left: auto; border-bottom-right-radius: 4px; }
.phone__msg--in { background: var(--bg); color: var(--text-muted); border-bottom-left-radius: 4px; }
.phone__status {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-muted);
}
.phone__status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.phone__status-dot:first-child { margin-left: 0; }
.phone__status-dot--green { background: #22c55e; }
.phone__status-dot--amber { background: #f59e0b; }
.phone__status-dot--red { background: #ef4444; }

/* Voter slip */
.svc__slip {
    width: 100%; max-width: 320px;
    background: #fff; color: #111; border-radius: 12px;
    overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.4);
    font-size: 13px;
}
.slip__header {
    padding: 10px; text-align: center; font-weight: 800; font-size: 15px;
    background: #1e3a5f; color: #fff; letter-spacing: .08em;
}
.slip__body { padding: 14px 16px; }
.slip__row {
    display: flex; justify-content: space-between; padding: 4px 0;
    border-bottom: 1px dashed #ddd; font-size: 12px;
}
.slip__row span { color: #666; }
.slip__row strong { color: #111; }
.slip__qr {
    width: 50px; height: 50px; margin: 10px auto;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #333; border-radius: 4px; font-size: 16px; font-weight: 800;
}
.slip__footer {
    padding: 8px; text-align: center; font-size: 11px;
    background: #f0f0f0; color: #555; font-weight: 600;
}

/* Team card */
.svc__team-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.svc__team-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.team__row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(30,41,59,.5);
    font-size: 13px;
}
.team__row small { color: var(--text-muted); font-size: 11px; }
.team__status {
    margin-left: auto; font-size: 11px; font-weight: 600;
    padding: 2px 10px; border-radius: 10px;
}
.team__status--online { background: rgba(34,197,94,.15); color: #4ade80; }
.team__status--offline { background: rgba(148,163,184,.1); color: var(--text-muted); }

/* CTA strip */
.cta-strip {
    text-align: center; padding: 72px 24px;
    background:
        radial-gradient(50% 80% at 50% 100%, rgba(99,102,241,.15), transparent 70%),
        radial-gradient(40% 60% at 20% 50%, rgba(168,85,247,.1), transparent 70%);
    border-block: 1px solid var(--border);
}
.cta-strip h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; margin-bottom: 10px; }
.cta-strip p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }

/* Mobile */
@media (max-width: 720px) {
    .nav { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
    .nav__links { gap: 10px; font-size: 12px; }
    .nav__cta { padding: 6px 14px; font-size: 13px; }
    .hero { padding: 48px 18px 52px; }
    .hero h1 { font-size: clamp(26px, 7.5vw, 36px); }
    .section { padding: 48px 18px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .sources-table { font-size: 12px; }
    .sources-table th, .sources-table td { padding: 8px 8px; }
    .svc { padding: 48px 18px; }
    .svc__inner { grid-template-columns: 1fr; gap: 28px; }
    .svc__inner--reverse { direction: ltr; }
    .svc__mockup, .svc__chart-card, .svc__ai-card, .svc__dashboard,
    .svc__phone-mockup, .svc__slip, .svc__results-card, .svc__team-card { max-width: 100%; }
    .cta-strip { padding: 48px 18px; }
}
