/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #050b18;
  --bg2:         #080f22;
  --green:       #00ff88;
  --blue:        #00bfff;
  --purple:      #7c3aed;
  --text:        #c8d6e5;
  --text-dim:    #5a7a9a;
  --card-bg:     rgba(0, 255, 136, 0.03);
  --card-border: rgba(0, 255, 136, 0.12);
  --glow:        0 0 30px rgba(0, 255, 136, 0.2);
  --glow-blue:   0 0 30px rgba(0, 191, 255, 0.2);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Noise texture overlay ───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: rgba(0, 255, 136, 0.18); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}
.nav-logo .dot { color: var(--green); }
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }

.btn-nav {
  background: var(--green);
  color: #050b18 !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-nav:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero-badge .pulse {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero-h1 {
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 24px;
}
.hero-h1 .grad {
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #050b18;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: #050b18;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(200, 214, 229, 0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

/* ── Scanner grid ─────────────────────────────────────────────────────────── */
.scanner-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.scanner-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scanner-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 20px;
  background: rgba(0, 255, 136, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.scanner-grid::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scan-line 3s linear infinite;
}

.state-cell {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.3s ease;
  cursor: default;
}
.state-cell.active {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
}
.state-cell.hit {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  animation: hit-flash 0.6s ease forwards;
}
.state-cell .amount {
  display: block;
  font-size: 8px;
  font-weight: 500;
  color: var(--green);
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.state-cell.hit .amount { opacity: 1; }

/* ── Stats bar ────────────────────────────────────────────────────────────── */
#stats {
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.stat-item {
  background: var(--bg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.2), transparent);
}
.stat-num {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Section base ─────────────────────────────────────────────────────────── */
section { position: relative; z-index: 2; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
#how {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  background: rgba(0, 255, 136, 0.06);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.step {
  background: var(--bg);
  padding: 48px 36px;
  position: relative;
  transition: background 0.3s;
}
.step:hover { background: rgba(0, 255, 136, 0.025); }

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,191,255,0.06));
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}
.step:hover .step-icon { box-shadow: var(--glow); }

.step h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  z-index: 1;
}

/* ── Sources grid ─────────────────────────────────────────────────────────── */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.source-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.source-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.source-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.source-card:hover::before { opacity: 1; }

.source-badge {
  display: inline-block;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.source-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.source-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.source-value {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}

/* ── Property types ───────────────────────────────────────────────────────── */
#types {
  background: var(--bg2);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.type-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,255,136,0.03);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.3s;
}
.type-pill:hover {
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.06);
  transform: translateX(4px);
}
.type-pill .ico { font-size: 22px; flex-shrink: 0; }
.type-pill .info { }
.type-pill .name { font-size: 14px; font-weight: 600; color: #e0e8f0; }
.type-pill .avg { font-size: 12px; color: var(--green); font-family: var(--font-mono); margin-top: 2px; }

/* ── State map grid ───────────────────────────────────────────────────────── */
#coverage { background: var(--bg); }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 48px;
}

.cov-state {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  transition: all 0.2s;
  cursor: default;
}
.cov-state.direct {
  background: rgba(0,255,136,0.08);
  border-color: rgba(0,255,136,0.25);
  color: var(--green);
}
.cov-state.direct:hover {
  background: rgba(0,255,136,0.16);
  box-shadow: var(--glow);
  transform: scale(1.08);
}
.cov-state.fallback {
  background: rgba(0,191,255,0.05);
  border-color: rgba(0,191,255,0.15);
  color: var(--blue);
}
.cov-state.federal-only {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.15);
  color: #a78bfa;
}

.coverage-legend {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}

/* ── Terminal / AI scan animation ────────────────────────────────────────── */
.terminal-box {
  background: #010914;
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 16px;
  padding: 28px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #7aff9e;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4), 0 0 40px rgba(0,255,136,0.05);
}
.terminal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(0,255,136,0.05);
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.terminal-dots {
  position: absolute;
  top: 8px; left: 14px;
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dots .red { background: #ff5f57; }
.terminal-dots .yellow { background: #ffbd2e; }
.terminal-dots .green { background: #28c840; }

.terminal-lines {
  margin-top: 24px;
}
.t-line {
  line-height: 1.8;
  opacity: 0;
  animation: fadein 0.2s forwards;
}
.t-line.dim { color: var(--text-dim); font-size: 12px; }
.t-line.hit { color: #fff; }
.t-line .t-green { color: var(--green); }
.t-line .t-blue { color: var(--blue); }
.t-line .t-dim { color: var(--text-dim); }
.cursor { display: inline-block; width: 2px; height: 14px; background: var(--green); animation: blink 1s infinite; vertical-align: middle; }

/* ── Property Watch CTA ──────────────────────────────────────────────────── */
#watch {
  background: linear-gradient(135deg, #050b18 0%, #0a1628 100%);
}

.watch-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.watch-card {
  background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,191,255,0.03));
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.watch-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,255,136,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.watch-price {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1;
}
.watch-price .per { font-size: 20px; color: var(--text-dim); font-weight: 400; }
.watch-features { margin: 28px 0; list-style: none; }
.watch-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}
.watch-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
#faq { background: var(--bg2); }

.faq-list { margin-top: 56px; }

.faq-item {
  border-bottom: 1px solid rgba(0,255,136,0.08);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #e0e8f0;
  transition: color 0.2s;
  gap: 16px;
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 18px;
  transition: transform 0.25s, background 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(0,255,136,0.1); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}
.faq-a-inner { padding-bottom: 24px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ── Final CTA ────────────────────────────────────────────────────────────── */
#cta {
  background: var(--bg);
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
#cta .section-title { margin-bottom: 20px; }
#cta .section-sub { margin: 0 auto 40px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: #02070f;
  border-top: 1px solid rgba(0,255,136,0.06);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.footer-links h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); text-decoration: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes scan-line {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes hit-flash {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr 1fr; }
  .watch-inner { grid-template-columns: 1fr; gap: 40px; }
  .scanner-grid { grid-template-columns: repeat(7, 1fr); }
  .coverage-grid { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .scanner-grid { grid-template-columns: repeat(5, 1fr); }
  .coverage-grid { grid-template-columns: repeat(5, 1fr); }
  .section-inner { padding: 72px 20px; }
}
