/* NexxFlow Real Estate AI — Central Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #080910;
  --ink-2: #0E0F18;
  --panel: #131522;
  --panel-flat: #1B1D2C;
  --paper: #EBE9E3;
  --mute: #8C9099;
  --mute-2: #52565E;
  --line: rgba(235,233,227,0.08);
  --line-strong: rgba(235,233,227,0.16);
  --gold: #D4A94A;
  --gold-soft: rgba(212,169,74,0.1);
  --steel: #A1AAB8;
  --live: #2ECC8F;
}

body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--panel-flat); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mute-2); }

/* Common Panels & Borders */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.panel-flat {
  background: var(--panel-flat);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* Animations & Transitions */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }

/* Premium Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212,169,74,0.3);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  background: rgba(235,233,227,0.05);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: translateY(0);
}

/* Ticker Loop */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 35s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* Live indicators */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-live {
  background: var(--live);
  box-shadow: 0 0 12px var(--live);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46,204,143,0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46,204,143,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46,204,143,0); }
}

/* Nav Link Hover */
.nav-link {
  color: var(--mute);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--paper);
}

/* FAQ Item Transitions */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  transition: all 0.3s;
}
.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  opacity: 0;
}
.faq-item.open .faq-ans {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.25s ease;
}

/* Screenshots lightbox */
.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--panel-flat);
}
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.screenshot-card:hover img {
  transform: scale(1.04);
}
