:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: #151b2e;
  --bg-card-hover: #1a2238;
  --text-primary: #e8eaf0;
  --text-secondary: #8b92a8;
  --text-muted: #5a6178;
  --accent: #d4a254;
  --accent-dim: rgba(212, 162, 84, 0.15);
  --accent-glow: rgba(212, 162, 84, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --gradient-hero: linear-gradient(165deg, #0a0e1a 0%, #0d1525 30%, #111d35 60%, #0a0e1a 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 84, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  color: var(--text-primary);
  margin-bottom: 28px;
  max-width: 800px;
}

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

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 580px;
}

.stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-light);
}

/* ============ HERO CTAs ============ */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-hero-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0e1a;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--text-primary); }

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

/* ============ PROBLEM ============ */
.problem {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problem-label,
.features-label,
.how-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem h2 {
  font-size: clamp(26px, 4vw, 40px);
  max-width: 700px;
  margin-bottom: 56px;
  color: var(--text-primary);
}

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

.problem-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.problem-card:hover {
  border-color: var(--border-light);
}

.problem-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* ============ FEATURES ============ */
.features {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.features-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 56px;
  max-width: 520px;
}

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

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

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

.feature-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 162, 84, 0.03) 100%);
  border-color: rgba(212, 162, 84, 0.12);
}

.feature-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

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

/* ============ HOW ============ */
.how {
  padding: 100px 24px;
  background: var(--bg-primary);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 56px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.how-step:first-child {
  border-top: 1px solid var(--border);
}

.step-marker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  min-width: 64px;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ============ CLOSING ============ */
.closing {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1525 50%, var(--bg-primary) 100%);
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 24px;
  color: var(--text-primary);
}

.closing p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-location {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.7;
}

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

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

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 80px 20px 60px; }
  .hero-stats { flex-direction: column; gap: 24px; padding: 28px 24px; max-width: 100%; }
  .stat-divider { width: 48px; height: 1px; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .how-step { flex-direction: column; gap: 16px; }
  .step-marker { font-size: 36px; min-width: auto; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============ HERO SIGNUP FORM ============ */
.hero-signup {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  max-width: 480px;
}

.hero-signup input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.hero-signup input[type="email"]::placeholder {
  color: var(--text-muted);
}

.hero-signup input[type="email"]:focus {
  border-color: var(--accent);
}

.hero-signup button {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0a0e1a;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-signup button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 36px; }
  .hero-badge { font-size: 11px; margin-bottom: 24px; }
  .problem, .features, .how, .closing { padding: 64px 20px; }
  .hero-signup { flex-direction: column; }
  .hero-signup button { width: 100%; }
}

/* ============ TRY DEMO SECTION ============ */
.try-demo {
  padding: 100px 24px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.try-demo::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212,162,84,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.try-demo-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.try-demo h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.try-demo-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 52px;
  max-width: 480px;
}

.try-demo-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* Property card */
.demo-prop-card {
  background: var(--bg-card);
  border: 1px solid rgba(212,162,84,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: 24px;
}

.demo-prop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demo-prop-icon { font-size: 36px; }

.demo-prop-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 100px;
  font-size: 12px;
  color: #4ade80;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.demo-prop-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.demo-prop-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-prop-details {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.demo-prop-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-amenity {
  padding: 5px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Chat widget */
.demo-chat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.demo-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.demo-chat-info { flex: 1; }
.demo-chat-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-primary); }
.demo-chat-sub { font-size: 12px; color: var(--text-muted); }

.demo-response-speed {
  font-size: 12px;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.demo-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
}

.demo-message { display: flex; flex-direction: column; max-width: 82%; }
.demo-message-user { align-self: flex-end; }
.demo-message-ai { align-self: flex-start; }

.demo-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
}

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

.demo-message-ai .demo-bubble {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* Streaming cursor */
.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Typing indicator */
.demo-typing .demo-bubble { padding: 14px 18px; }
.demo-typing span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  margin: 0 2px;
  animation: demoBouce 1.2s infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes demoBouce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-7px)} }

.demo-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.demo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-chip {
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212,162,84,0.2);
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, opacity 0.2s;
}
.demo-chip:hover { background: rgba(212,162,84,0.25); }
.demo-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.demo-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.demo-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.demo-input:focus { border-color: var(--accent); }
.demo-input::placeholder { color: var(--text-muted); }
.demo-input:disabled { opacity: 0.6; }

.demo-send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0a0e1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.1s;
}
.demo-send-btn:hover { opacity: 0.9; }
.demo-send-btn:active { transform: scale(0.95); }
.demo-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.demo-rate-limit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  min-height: 20px;
}

.demo-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.demo-footer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.demo-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.demo-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 900px) {
  .try-demo-layout {
    grid-template-columns: 1fr;
  }
  .demo-prop-card {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }
  .demo-prop-header { grid-row: 1; grid-column: 1; align-self: center; }
  .demo-prop-name { grid-row: 1; grid-column: 2; margin-bottom: 0; align-self: center; }
  .demo-prop-meta { grid-row: 2; grid-column: 2; }
  .demo-prop-details { grid-row: 3; grid-column: 1 / 3; }
  .demo-prop-amenities { grid-row: 4; grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .try-demo { padding: 64px 20px; }
  .demo-prop-card { display: block; }
  .demo-suggestions { display: none; }
  .demo-messages { min-height: 180px; max-height: 260px; }
}

/* ============ ROI TEASER (landing page section) ============ */
.roi-teaser {
  padding: 100px 24px;
  background: var(--bg-secondary);
  text-align: center;
}

.roi-teaser-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.roi-teaser-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.roi-teaser h2 {
  font-size: clamp(26px, 4vw, 42px);
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.roi-teaser-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.roi-teaser-sub strong {
  color: #f87171;
  font-family: 'Space Grotesk', sans-serif;
}

.roi-teaser-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.roi-teaser-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.roi-ts-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.roi-ts-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.roi-ts-red { color: #f87171; }
.roi-ts-green { color: #4ade80; }

.roi-teaser-vs {
  font-size: 18px;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.roi-teaser-cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: #0a0e1a;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.roi-teaser-cta:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 600px) {
  .roi-teaser { padding: 64px 20px; }
  .roi-teaser-preview { gap: 20px; padding: 24px 20px; flex-direction: column; }
  .roi-ts-value { font-size: 24px; }
  .roi-teaser-vs { transform: rotate(90deg); }
}