:root {
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --surface: #ffffff;
    --ink: #0a0a0a;
    --ink-soft: #3f3f46;
    --muted: #52525b;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-wash: rgba(6, 182, 212, 0.08);
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.15);
    --radius: 0.875rem;
    --radius-lg: 1.1rem;
    --shadow-hover: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .06);
    --shadow-card: 0 1px 2px rgb(15 23 42 / .04);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}
/* Soft wash + masked dotted grid, matching the admin/CRM landing */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 45%, #fff7ed 100%);
    opacity: .7;
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(circle, rgba(10, 10, 10, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

a { text-decoration: none; color: inherit; transition: color .2s var(--ease); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.25rem; border-radius: .65rem; font-weight: 600; font-size: .9rem;
    cursor: pointer; border: 1px solid transparent; font-family: inherit;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: rgba(10, 10, 10, .85); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-wash); }
.btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; flex: none; }

/* Section header */
.section-tag {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--accent-dark); margin-bottom: .75rem;
}
.section-header { margin-bottom: 1.85rem; }
.section-header.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-description { color: var(--muted); font-size: 1.05rem; margin-top: .9rem; }

/* Header */
#main-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line); padding: .8rem 0;
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo h1 { font-size: 1.05rem; font-weight: 700; }
.logo .accent { color: var(--muted); font-weight: 500; }
.logo .tagline { font-size: .68rem; color: var(--muted); margin-top: .12rem; font-weight: 500; }
#main-nav ul { display: flex; gap: .25rem; align-items: center; list-style: none; }
#main-nav a { font-weight: 500; font-size: .875rem; color: var(--ink-soft); padding: .45rem .8rem; border-radius: .5rem; }
#main-nav a:hover { color: var(--ink); background: var(--accent-wash); }
#main-nav .btn-nav { background: var(--ink); color: #fff; padding: .5rem 1rem; font-weight: 600; }
#main-nav .btn-nav:hover { background: rgba(10, 10, 10, .85); }
#mobile-menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: .55rem; width: 40px; height: 40px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
#mobile-menu-btn .bar { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
#hero { position: relative; text-align: center; padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2.25rem, 3.5vw, 3rem); }
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
.hero-pill {
    display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line-strong);
    background: var(--surface); border-radius: 999px; padding: .35rem .8rem;
    font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    margin-bottom: 1.1rem;
}
.hero-pill .dot { position: relative; display: inline-flex; width: 7px; height: 7px; }
.hero-pill .dot::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #22c55e; animation: ping 1.6s var(--ease) infinite; }
.hero-pill .dot::after { content: ""; position: relative; width: 7px; height: 7px; border-radius: 999px; background: #16a34a; }
.hero-pill .live { color: var(--muted); font-weight: 500; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.hero-content h2 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.hero-divider { height: 1px; width: 48px; background: rgba(6, 182, 212, .45); margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36rem; margin: 0 auto 1.6rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 600px; width: 100%; margin: 0 auto 1.6rem; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.stat-card:hover { border-color: rgba(6, 182, 212, .35); box-shadow: var(--shadow-hover); }
.stat-number { font-size: clamp(1.8rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; }
.stat-label { font-size: .76rem; color: var(--muted); margin-top: .2rem; font-weight: 500; }
.hero-overlay { display: none; }

/* Sections */
section { padding: clamp(2.25rem, 3.5vw, 3.5rem) 0; }
#overview { background: rgba(250, 250, 250, .6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ZIP grid */
.zip-codes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; margin-bottom: 1.85rem; }
.zip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.zip-card:hover { border-color: rgba(6, 182, 212, .35); box-shadow: var(--shadow-hover); }
.zip-number { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-dark); }
.zip-name { font-size: 1.02rem; font-weight: 600; margin: .3rem 0; }
.zip-count { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.zip-categories { list-style: none; }
.zip-categories li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.zip-categories li:last-child { border-bottom: none; }

/* Criteria */
.criteria-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; text-align: center; }
.criteria-box h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.criterion { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; font-weight: 500; font-size: .9rem; }

/* Filters */
.filter-buttons { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: 1.85rem; }
.filter-btn { padding: .55rem 1.1rem; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; font-weight: 600; font-size: .83rem; cursor: pointer; color: var(--ink-soft); transition: all .2s var(--ease); font-family: inherit; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Business grid */
.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.25rem; }
.business-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.business-card:hover { border-color: rgba(6, 182, 212, .35); box-shadow: var(--shadow-hover); }
.business-card.hidden { display: none; }
.business-header { padding: 1.3rem 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.business-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.business-category { font-size: .72rem; color: var(--accent-dark); margin-top: .35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.business-body { padding: 1.3rem; }
.business-rating { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; font-size: .88rem; }
.business-rating .stars { display: inline-flex; color: #f59e0b; }
.business-rating .stars svg { width: 15px; height: 15px; }
.business-rating .rating-num { font-weight: 700; }
.business-rating .rev { color: var(--muted); font-weight: 500; }
.business-info p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .55rem; display: flex; align-items: center; gap: .55rem; }
.business-info p svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.business-note { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.55; color: var(--muted); }
.business-note strong { color: var(--ink-soft); font-weight: 600; }
.business-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { background: var(--accent-wash); border: 1px solid rgba(6, 182, 212, .2); padding: .25rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: var(--accent-dark); }

/* Stats section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.stat-box { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem 1.25rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.stat-box:hover { border-color: rgba(6, 182, 212, .35); box-shadow: var(--shadow-hover); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto .9rem; border-radius: 13px; background: var(--accent-wash); color: var(--accent-dark); border: 1px solid rgba(6, 182, 212, .18); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.stat-description { font-size: .92rem; color: var(--muted); margin-top: .2rem; font-weight: 500; }

/* Contact CTA (flat, compact) */
#contact { padding: clamp(2.25rem, 3.5vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem); }
.contact-cta { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-cta h2 { margin-bottom: .6rem; }
.contact-cta p { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.6rem; }
.contact-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* Demo (operator's view) */
#demo { background: rgba(250, 250, 250, .6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-window { max-width: 960px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 24px 48px -24px rgb(15 23 42 / .25); }
.demo-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 11px; height: 11px; border-radius: 999px; }
.demo-dots i:nth-child(1) { background: #f87171; }
.demo-dots i:nth-child(2) { background: #fbbf24; }
.demo-dots i:nth-child(3) { background: #34d399; }
.demo-url { margin: 0 auto; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3rem .85rem; font-size: .78rem; color: var(--muted); }
.demo-live { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; background: var(--accent-wash); color: var(--accent-dark); padding: .25rem .7rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.demo-live-dot { width: 7px; height: 7px; border-radius: 999px; background: #16a34a; flex: none; }
.demo-tabs { display: flex; gap: .25rem; padding: .6rem .7rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.demo-tab { border: none; background: none; border-radius: .55rem; padding: .5rem .95rem; font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .2s var(--ease); }
.demo-tab:hover { background: var(--accent-wash); color: var(--accent-dark); }
.demo-tab.active { background: var(--ink); color: #fff; }
.demo-body { padding: 1.5rem; }
.demo-pane { display: none; }
.demo-pane.active { display: block; animation: rise .4s var(--ease) both; }
.demo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.demo-kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.demo-kpi .l { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.demo-kpi .v { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; margin-top: .35rem; }
.demo-kpi .d { font-size: .74rem; color: var(--accent-dark); margin-top: .2rem; font-weight: 500; }
.demo-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.demo-table th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: .7rem .9rem; background: var(--bg-soft); }
.demo-table td { padding: .8rem .9rem; border-top: 1px solid var(--line); font-size: .85rem; }
.demo-table td.b { font-weight: 600; }
.demo-table td.m { color: var(--muted); }
.demo-table td.due { color: #b45309; font-weight: 600; }
.spill { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; font-weight: 600; }
.spill.new { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.spill.contacted { background: #eff6ff; color: #1d4ed8; }
.spill.qualified { background: var(--accent-wash); color: var(--accent-dark); }
.spill.won { background: #ecfdf5; color: #047857; }
.demo-feed { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.demo-feed li { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.demo-feed .when { color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.demo-feed .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-wash); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.demo-feed .ic svg { width: 15px; height: 15px; }
.demo-note { text-align: center; margin-top: 1.25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); background: rgba(250, 250, 250, .5); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; padding-top: 3rem; padding-bottom: 2rem; text-align: left; }
.footer-brand { max-width: 22rem; }
.footer-logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.footer-blurb { color: var(--muted); font-size: .88rem; margin-top: .6rem; line-height: 1.6; }
.footer-zlda { display: inline-block; margin-top: .9rem; font-size: .78rem; font-weight: 600; color: var(--accent-dark); }
.footer-zlda:hover { color: var(--accent); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-h { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: .1rem; }
.footer-col a { font-size: .88rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 1.25rem 0; font-size: .78rem; color: var(--muted); }

/* Load reveal */
.hero-content > * { animation: rise .55s var(--ease) both; }
.hero-content h2 { animation-delay: .05s; }
.hero-content .hero-divider { animation-delay: .1s; }
.hero-content .hero-subtitle { animation-delay: .14s; }
.hero-content .hero-stats { animation-delay: .2s; }
.hero-content > .btn-primary { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    #main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 24px; display: none; }
    #main-nav.active { display: block; }
    #main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    #mobile-menu-btn { display: flex; }
    .hero-stats { grid-template-columns: 1fr; max-width: 300px; }
    .business-grid { grid-template-columns: 1fr; }
    .demo-kpis { grid-template-columns: repeat(2, 1fr); }
    .demo-body { padding: 1rem; }
    .footer-grid { flex-direction: column; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
