:root {
  --bg-deep: #0a0e1a;
  --bg-surface: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2940;
  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-2: #06b6d4;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(56, 189, 248, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.menu-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ===== SLIDE-OUT MENU ===== */
.slide-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.slide-menu.is-open {
  pointer-events: all;
}

.slide-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-menu.is-open .slide-menu-backdrop {
  opacity: 1;
}

.slide-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.slide-menu.is-open .slide-menu-panel {
  transform: translateX(0);
}

.slide-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  margin-bottom: 32px;
}

.slide-menu-close:hover {
  color: var(--text-primary);
}

.slide-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-chat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.menu-chat-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(6, 182, 212, 0.14));
  border-color: var(--accent);
}

.slide-menu-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.slide-menu-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero Visual - Activity Feed */
.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.status-dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.activity-item:hover {
  border-color: var(--border-accent);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.activity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== PROBLEM ===== */
.problem {
  padding: 120px 40px;
  background: var(--bg-surface);
}

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

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 64px;
  color: var(--text-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.problem-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 40px;
  background: var(--bg-deep);
}

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

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.features-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-large {
  grid-column: span 2;
}

.feature-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== FEATURES SEGMENT TAG ===== */
.features-segment-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.features-segment-tag-residential {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.features-residential-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 80px 0 80px;
}

.features-header-residential {
  margin-top: 0;
}

.feature-card-residential {
  border-color: rgba(139, 92, 246, 0.15);
}

.feature-card-residential:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.feature-label-residential {
  color: #a78bfa;
}

/* ===== HERO SEGMENT PILLS ===== */
.hero-segments {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-segment-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* ===== CLOSING CTA ===== */
.closing-cta {
  display: inline-block;
  margin-top: 36px;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s;
}

.closing-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ===== HOW / COMPARISON ===== */
.how {
  padding: 120px 40px;
  background: var(--bg-surface);
}

.how-inner {
  max-width: 880px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 56px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comp-col {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comp-old {
  background: var(--bg-card);
}

.comp-new {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(6, 182, 212, 0.04));
  border-color: var(--border-accent);
}

.comp-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comp-old .comp-header {
  color: var(--text-muted);
}

.comp-new .comp-header {
  color: var(--accent);
}

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-col li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.comp-old li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-size: 12px;
  top: 3px;
}

.comp-new li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 13px;
  top: 2px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 40px;
  background: var(--bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing {
  padding: 120px 40px;
  background: var(--bg-surface);
}

.pricing-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.pricing-header {
  text-align: center;
}

.pricing-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.pricing-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== PRICING TIERS GRID ===== */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--border-accent);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(56, 189, 248, 0.05) 100%);
}

.pricing-card-featured::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.tier-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  margin-bottom: 6px;
}

.tier-dollar {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  align-self: flex-start;
  margin-top: 6px;
}

.tier-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-period {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.tier-offer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 12px;
  top: 2px;
}

.tier-cta {
  display: inline-block;
  width: 100%;
  padding: 13px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.tier-cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
}

.tier-cta-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.tier-cta-ghost {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent);
}

.tier-cta-ghost:hover {
  background: var(--accent-glow);
  opacity: 0.9;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== PRICING SEGMENT TOGGLE ===== */
.pricing-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.pricing-toggle-btn {
  padding: 10px 28px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}

.pricing-toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
}

.pricing-toggle-btn:not(.active):hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Segment label inside pricing card */
.tier-segment-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .problem,
  .features,
  .how,
  .pricing,
  .closing {
    padding: 80px 20px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: span 1;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .problem-number {
    font-size: 2.4rem;
  }

  .pricing-toggle {
    width: 100%;
    flex-direction: column;
  }

  .pricing-toggle-btn {
    width: 100%;
    padding: 12px 20px;
  }

  .features-residential-divider {
    margin: 48px 0;
  }

  .hero-segments {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .activity-item {
    padding: 12px 14px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}