:root {
  --re-bg: #080F0D;
  --re-bg-alt: #0B1815;
  --re-fg: #F0F4F1;
  --re-fg-muted: #6B8F82;
  --re-accent: #F59E0B;
  --re-accent-dim: #B47A08;
  --re-sage: #34D399;
  --re-sage-dim: #059669;
  --re-border: rgba(255,255,255,0.07);
  --re-card: #0B1815;
  --re-radius: 14px;
}

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

body {
  background: var(--re-bg);
  color: var(--re-fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* — Navigation — */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 64px; display: flex; align-items: center;
  background: rgba(8,15,13,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--re-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-wordmark { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; color: var(--re-fg); }
.nav-links { display: flex; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--re-fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--re-fg); }
.nav-link.demo-badge {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px; padding: 6px 16px; color: var(--re-accent) !important;
}

/* — Real Estate Hero — */
.re-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 80px 80px; background: var(--re-bg); position: relative; overflow: hidden;
}
.re-hero::before {
  content: ''; position: absolute; top: -150px; right: -100px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.re-hero-inner { max-width: 600px; z-index: 1; }
.re-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--re-accent);
  margin-bottom: 28px;
}
.re-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--re-accent); box-shadow: 0 0 10px var(--re-accent);
  animation: rePulse 2s ease-in-out infinite;
}
@keyframes rePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.re-hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 56px); font-weight: 800;
  line-height: 1.12; letter-spacing: -1.5px; color: var(--re-fg); margin-bottom: 24px;
}
.re-gradient {
  background: linear-gradient(135deg, var(--re-accent) 0%, var(--re-sage) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.re-hero-sub {
  font-size: 18px; color: var(--re-fg-muted); max-width: 520px;
  margin-bottom: 40px; line-height: 1.7;
}
.re-trust-row { display: flex; gap: 20px; flex-wrap: wrap; }
.re-trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--re-fg-muted); }
.re-trust-item svg { color: var(--re-sage); }

/* Real estate illustration */
.re-illustration { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); }
.re-home-shape {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.re-home-icon { font-size: 96px; line-height: 1; animation: reFloat 4s ease-in-out infinite; }
@keyframes reFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.re-sparkle { position: absolute; font-size: 20px; color: var(--re-accent); animation: reSparkle 2s ease-in-out infinite; }
.sp-1 { top: 20%; left: 10%; animation-delay: 0s; }
.sp-2 { top: 30%; right: 10%; animation-delay: 0.6s; }
.sp-3 { bottom: 20%; left: 30%; animation-delay: 1.2s; }
@keyframes reSparkle { 0%, 100% { opacity: 0; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.re-floating-tags { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.re-tag {
  background: var(--re-card); border: 1px solid var(--re-border);
  border-radius: 100px; padding: 10px 20px; font-size: 13px; font-weight: 500;
  color: var(--re-fg); display: flex; align-items: center; gap: 8px;
  animation: reTagFloat 4s ease-in-out infinite;
}
.re-tag:nth-child(1) { animation-delay: 0.2s; }
.re-tag:nth-child(2) { animation-delay: 0.5s; }
.re-tag:nth-child(3) { animation-delay: 0.8s; }
@keyframes reTagFloat { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* — Sections — */
.section-label {
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--re-sage); margin-bottom: 16px;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 44px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.8px; color: var(--re-fg); margin-bottom: 56px;
}

/* — Demo Section — */
.re-demo-section { background: var(--re-bg); padding: 100px 80px; border-top: 1px solid var(--re-border); }
.re-demo-inner { max-width: 1200px; margin: 0 auto; }
.re-demo-header { text-align: center; margin-bottom: 64px; }
.re-demo-subtitle { font-size: 18px; color: var(--re-fg-muted); max-width: 560px; margin: 16px auto 0; }
.re-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; align-items: start; }
.re-chat-wrapper {
  background: var(--re-card); border: 1px solid var(--re-border);
  border-radius: 20px; overflow: hidden; height: 520px;
  display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.re-avatar { background: linear-gradient(135deg, var(--re-accent), var(--re-sage)) !important; }
.re-avatar-sm { background: linear-gradient(135deg, var(--re-accent), var(--re-sage)) !important; }
.re-demo-info { background: var(--re-card); border: 1px solid var(--re-border); border-radius: 20px; padding: 36px; }
.re-demo-info h3 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--re-fg); margin-bottom: 24px; }
.re-flow-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.re-flow-step { display: flex; align-items: flex-start; gap: 16px; }
.flow-step-icon { font-size: 20px; flex-shrink: 0; }
.re-flow-step h4 { font-size: 14px; font-weight: 600; color: var(--re-fg); margin-bottom: 2px; }
.re-flow-step span { font-size: 13px; color: var(--re-fg-muted); }
.re-demo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.re-svc-tag {
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
  border-radius: 100px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--re-sage);
}

/* — Listings Section — */
.re-listings { background: var(--re-bg-alt); padding: 100px 80px; border-top: 1px solid var(--re-border); }
.re-listings-inner { max-width: 1200px; margin: 0 auto; }
.re-listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.re-listing-card {
  background: var(--re-card); border: 1px solid var(--re-border);
  border-radius: var(--re-radius); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.re-listing-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-4px); }
.re-listing-image {
  height: 160px; background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(52,211,153,0.1));
  display: flex; align-items: center; justify-content: center; font-size: 56px;
}
.re-listing-image-lux { background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(6,182,212,0.1)); }
.re-listing-image-condo { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(245,158,11,0.1)); }
.re-listing-body { padding: 24px; }
.re-listing-price { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--re-accent); margin-bottom: 4px; }
.re-listing-address { font-size: 15px; font-weight: 600; color: var(--re-fg); margin-bottom: 4px; }
.re-listing-meta { font-size: 13px; color: var(--re-fg-muted); margin-bottom: 12px; }
.re-listing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.re-listing-tags span {
  background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.15);
  border-radius: 100px; padding: 4px 10px; font-size: 12px; color: var(--re-sage);
}

/* — Pricing Section — */
.re-pricing { background: var(--re-bg); padding: 100px 80px; border-top: 1px solid var(--re-border); }
.re-pricing-inner { max-width: 1200px; margin: 0 auto; }
.re-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; }
.re-pricing-card {
  background: var(--re-card); border: 1px solid rgba(245,158,11,0.2); border-radius: 20px;
  padding: 48px; position: relative; overflow: hidden;
}
.re-pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--re-accent), var(--re-sage));
}
.re-pricing-badge {
  display: inline-block; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--re-accent); padding: 4px 12px; margin-bottom: 16px;
}
.re-badge-alt { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.2); color: var(--re-sage); }
.re-pricing-card h3 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; color: var(--re-fg); margin-bottom: 20px; }
.re-pricing-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 36px; }
.price { font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800; color: var(--re-fg); line-height: 1; }
.per { font-size: 16px; color: var(--re-fg-muted); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--re-fg-muted); }
.pricing-features svg { color: var(--re-sage); flex-shrink: 0; }
.pricing-math { border-top: 1px solid var(--re-border); padding-top: 24px; }
.math-line { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--re-fg); margin-bottom: 8px; }
.math-line strong { color: var(--re-sage); }
.math-note { font-size: 13px; color: var(--re-fg-muted); }

/* — Closing Section — */
.re-closing { background: var(--re-bg-alt); padding: 120px 80px; border-top: 1px solid var(--re-border); }
.re-closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.re-closing-icon { font-size: 64px; margin-bottom: 32px; }
.re-closing-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px; color: var(--re-fg); margin-bottom: 24px;
}
.re-closing-body { font-size: 18px; color: var(--re-fg-muted); line-height: 1.7; max-width: 560px; margin: 0 auto 40px; }
.re-cta-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.re-cta-primary {
  background: linear-gradient(135deg, var(--re-accent), var(--re-sage));
  color: #080F0D; border: none; border-radius: 100px;
  padding: 14px 32px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: opacity 0.2s;
}
.re-cta-primary:hover { opacity: 0.85; }
.re-cta-secondary { font-size: 14px; font-weight: 500; color: var(--re-fg-muted); text-decoration: none; transition: color 0.2s; }
.re-cta-secondary:hover { color: var(--re-fg); }

/* — Footer — */
.footer { background: var(--re-bg); padding: 48px 80px; border-top: 1px solid var(--re-border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: var(--re-fg); }
.footer-note { font-size: 14px; color: var(--re-fg-muted); }

/* Shared chat widget styles */
.chat-header {
  padding: 20px 24px; background: var(--re-bg-alt); border-bottom: 1px solid var(--re-border);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.chat-info h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--re-fg); }
.chat-info span { font-size: 12px; color: var(--re-sage); }
.chat-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble-wrap { display: flex; gap: 8px; align-items: flex-end; }
.chat-bubble-wrap.user { flex-direction: row-reverse; }
.chat-bubble-wrap.user .chat-bubble { background: var(--re-accent); color: #080F0D; }
.chat-avatar-small { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.chat-bubble {
  background: var(--re-bg-alt); border: 1px solid var(--re-border);
  border-radius: 16px 16px 16px 4px; padding: 12px 16px;
  font-size: 14px; line-height: 1.55; color: var(--re-fg); max-width: 260px;
}
.chat-bubble-wrap.user .chat-bubble { border-radius: 16px 16px 4px 16px; }
.typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--re-fg-muted); animation: reTyping 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes reTyping { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-input-area { padding: 16px 20px; background: var(--re-bg-alt); border-top: 1px solid var(--re-border); display: flex; gap: 10px; align-items: center; }
.chat-input {
  flex: 1; background: var(--re-card); border: 1px solid var(--re-border);
  border-radius: 100px; padding: 10px 20px; font-size: 14px;
  color: var(--re-fg); font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--re-fg-muted); }
.chat-input:focus { border-color: var(--re-accent); }
.chat-send-btn {
  background: var(--re-sage); color: #080F0D; border: none;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s, transform 0.15s; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--re-sage-dim); transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* — Responsive — */
@media (max-width: 900px) {
  .re-hero { padding: 100px 32px 60px; }
  .re-illustration { display: none; }
  .re-demo-section, .re-listings, .re-pricing, .re-closing { padding: 72px 32px; }
  .re-listings-grid, .re-pricing-grid { grid-template-columns: 1fr; }
  .re-demo-grid { grid-template-columns: 1fr; }
  .re-chat-wrapper { height: 420px; }
  .re-pricing-card { padding: 32px; }
  .nav { padding: 0 20px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 13px; }
}