:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.1);
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(200, 255, 0, 0.25);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .volt {
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.7;
}

.hero-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.problem .section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.problem h2 em {
  font-style: normal;
  color: #ff4444;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}

.pain-card .pain-icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features .section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  max-width: 700px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: border-color 0.3s;
}

.feature-row:hover {
  border-color: rgba(200, 255, 0, 0.2);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(200, 255, 0, 0.15);
  line-height: 1;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- NICHES ---- */
.niches {
  padding: 6rem 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.niches-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.niches .section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.niches h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 3rem;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.niche-item {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.niche-item:hover {
  border-color: rgba(200, 255, 0, 0.2);
  transform: translateY(-2px);
}

.niche-item .niche-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.niche-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.niche-item p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.closing h2 .volt {
  color: var(--accent);
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 3rem; min-height: 80vh; }
  .hero-stat-row { gap: 2rem; }
  .feature-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .feature-number { font-size: 1.8rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .problem, .features, .niches { padding: 4rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
  .niche-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-direction: column; gap: 1.5rem; }
}
/* ========================================
   NAV
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link--cta {
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.nav-link--cta:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Offset hero for fixed nav */
.hero {
  padding-top: 8rem;
}

/* ========================================
   SHARED BUTTON
   ======================================== */
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: -0.01em;
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
}

/* ========================================
   DEMO PAGE
   ======================================== */
.demo-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.demo-inner {
  max-width: 780px;
  margin: 0 auto;
}

.demo-header {
  margin-bottom: 3rem;
}

.demo-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.2rem;
}

.demo-header .lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* Chatbot shell */
.chatbot-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.chatbot-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.avatar-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-card);
  border-radius: 50%;
}

.chatbot-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.chatbot-meta em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Messages */
.chatbot-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.msg {
  display: flex;
  max-width: 80%;
}

.msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg--bot {
  align-self: flex-start;
}

.msg-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.msg--bot .msg-bubble {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--fg);
}

.msg--user .msg-bubble {
  background: var(--accent);
  color: #0a0a0f;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.85rem 1.1rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Input row */
.chatbot-input-row {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.chatbot-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input::placeholder { color: var(--fg-muted); }

.chatbot-input:focus {
  border-color: rgba(200, 255, 0, 0.35);
}

.chatbot-send {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a0a0f;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.chatbot-send:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-1px);
}

.chatbot-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--fg-muted);
  padding: 0.6rem 1rem;
}

/* Lead captured CTA strip */
.demo-cta-strip {
  margin-top: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.25);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-strip-text {
  font-size: 0.95rem;
  color: var(--fg);
}

/* ========================================
   SERVICES PAGE
   ======================================== */
.services-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 4rem;
}

.services-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.2rem;
}

.services-header .lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(200, 255, 0, 0.2);
  transform: translateY(-3px);
}

.service-card--featured {
  border-color: rgba(200, 255, 0, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 255, 0, 0.03) 100%);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.service-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  display: block;
  width: fit-content;
}

.service-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 1.2rem;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.service-price strong {
  color: var(--fg);
  font-size: 1rem;
}

.services-cta-block {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.services-cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.services-cta-block p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================================
   ADMIN PAGE
   ======================================== */
.admin-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.admin-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-count {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(200, 255, 0, 0.2);
}

.admin-empty {
  padding: 4rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg-muted);
}

.admin-empty a {
  color: var(--accent);
}

.leads-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.leads-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  white-space: nowrap;
}

.leads-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.leads-table tr:last-child td {
  border-bottom: none;
}

.leads-table tr:hover td {
  background: var(--bg-subtle);
}

.lead-id {
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.lead-type {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.lead-type--roofing {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.2);
}

.lead-type--hvac {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.msg-count {
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.lead-date {
  color: var(--fg-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ========================================
   CLOSING SECTION — Add demo CTA
   ======================================== */
.closing .cta-row {
  margin-top: 2.5rem;
}

/* ========================================
   RESPONSIVE — New pages
   ======================================== */
@media (max-width: 768px) {
  .demo-page, .services-page, .admin-page {
    padding: 6rem 1.5rem 3rem;
  }
  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }
  .services-grid { grid-template-columns: 1fr; }
  .chatbot-messages { height: 320px; }
  .msg { max-width: 90%; }
}
