/* ============================================
   LISTLAB — Theme CSS
   Real estate agent AI platform
   ============================================ */

:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2128;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --fg-subtle: #484f58;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-dim2: rgba(245, 158, 11, 0.06);
  --border: rgba(240, 246, 252, 0.08);
  --border-accent: rgba(245, 158, 11, 0.25);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 0 0 1px var(--border), 0 8px 32px rgba(0,0,0,0.4);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* ---- SELECTION ---- */
::selection { background: rgba(245,158,11,0.25); color: var(--fg); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,17,23,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent) !important;
  color: #0d1117 !important;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100,60,200,0.06) 0%, transparent 70%);
  bottom: 0;
  left: -50px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 36px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 750px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ============================================
   STATS BAR
   ============================================ */
.statsbar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statsbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow-x: auto;
}
.stat-item { flex-shrink: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 100px 32px;
}
.section-header {
  max-width: 1200px;
  margin: 0 auto 64px;
  text-align: left;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-2); }
.feature-card-primary {
  grid-column: span 1;
}
.feature-card-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.feature-label {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 3px 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ============================================
   PIPELINE
   ============================================ */
.pipeline {
  padding: 100px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pipeline-header {
  max-width: 1200px;
  margin: 0 auto 72px;
}
.pipeline-stages {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
}
.pipeline-stage {
  flex: 1;
  min-width: 160px;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.pipeline-stage h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.pipeline-stage p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.pipeline-connector {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin-top: 48px;
  flex-shrink: 0;
  position: relative;
}
.pipeline-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--fg-subtle);
  border-right: 1.5px solid var(--fg-subtle);
  transform: rotate(45deg);
  top: -3px;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  padding: 100px 32px;
}
.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote-mark {
  margin-bottom: 32px;
  color: var(--accent);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}
.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.author-role {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: 120px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.closing-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}
.closing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.closing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .statsbar-inner {
    gap: 16px;
  }
  .closing-features {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-headline { letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 64px 20px; }
  .hero-inner { padding: 100px 20px 64px; }
  .pipeline-stages {
    flex-direction: column;
    gap: 16px;
  }
  .pipeline-connector {
    width: 1px;
    height: 24px;
    margin: 0 auto;
  }
  .pipeline-connector::after {
    display: none;
  }
  .stat-divider { display: none; }
  .statsbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .closing-features {
    grid-template-columns: 1fr;
  }
}