/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #141210;
  --surface: #1C1A17;
  --surface-2: #242220;
  --border: #33302C;
  --text: #F0E8E0;
  --muted: #9E9486;
  --primary: #FF6B6B;
  --primary-light: #D4874D;
  --primary-glow: rgba(201, 107, 60, 0.12);
  --sage: #7C9A72;
  --sage-glow: rgba(124, 154, 114, 0.12);
  --gold: #D4A574;
  --red: #C45D3E;
  --blue: #6B8EAD;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 48, 44, 0.5);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 800; color: var(--primary);
  text-decoration: none; letter-spacing: 4px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 8px 20px; border-radius: 10px; font-weight: 600 !important;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-size: 15px;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201, 107, 60, 0.35); }
.btn-glass { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-glass:hover { background: rgba(255,255,255,0.1); }
.btn-large { padding: 18px 36px; font-size: 17px; border-radius: 14px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 120px 24px 60px;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(20,18,16,0.4) 30%, rgba(20,18,16,0.4) 60%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--primary-glow); color: var(--primary-light);
  font-size: 13px; font-weight: 600; margin-bottom: 32px;
  border: 1px solid rgba(201, 107, 60, 0.2);
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  line-height: 1.08; margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 540px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating social cards */
.hero-cards {
  position: relative; z-index: 2;
  display: flex; gap: 20px; justify-content: center;
  margin-top: 64px; flex-wrap: wrap; padding: 0 24px;
}
.social-card {
  width: 220px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform 0.3s; flex-shrink: 0;
}
.social-card:hover { transform: translateY(-6px); }
.card-1 { transform: rotate(-2deg); }
.card-2 { transform: rotate(1deg) translateY(-12px); }
.card-3 { transform: rotate(-1deg); }
.social-card img { width: 100%; height: 140px; object-fit: cover; }
.social-card-body { padding: 12px 14px 10px; }
.social-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.social-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.social-name { font-size: 13px; font-weight: 600; display: block; }
.social-platform { font-size: 11px; color: var(--muted); }
.social-card-body p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.social-card-saved {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 11px; font-weight: 600;
  color: var(--sage); background: var(--sage-glow);
  border-top: 1px solid var(--border);
}

/* Photo strip */
.photo-strip { overflow: hidden; padding: 2px 0; background: var(--bg); }
.photo-strip-inner {
  display: flex; gap: 4px; width: max-content;
  animation: scroll 40s linear infinite;
}
.photo-strip-inner img {
  width: 180px; height: 120px; object-fit: cover;
  border-radius: 8px; opacity: 0.5; transition: opacity 0.3s;
}
.photo-strip-inner img:hover { opacity: 1; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section styles */
.section-label {
  font-size: 13px; font-weight: 600; color: var(--primary-light);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  margin-bottom: 56px; letter-spacing: -0.5px;
}

/* Problem */
.problem { padding: 100px 24px; }
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.problem-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--primary); }
.problem-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.problem-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Features */
.features { padding: 100px 24px; background: var(--surface); }
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-bottom: 100px;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
  background: var(--primary-glow); color: var(--primary-light);
}
.feature-text h4 { font-size: 28px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.3px; }
.feature-text p { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 460px; }
.feature-visual { display: flex; justify-content: center; }

/* Share sheet mock */
.share-sheet-mock {
  width: 280px; background: var(--surface-2); border-radius: 20px;
  border: 1px solid var(--border); padding: 20px; overflow: hidden;
}
.share-sheet-bar { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
.share-sheet-title { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.share-sheet-apps { display: flex; gap: 16px; justify-content: center; }
.share-app { text-align: center; }
.share-app-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.share-app span { font-size: 10px; color: var(--muted); }
.share-app.active .share-app-icon { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.share-app.active span { color: var(--primary-light); font-weight: 600; }

/* Extract mock */
.extract-mock { display: flex; gap: 12px; align-items: flex-start; }
.extract-slide {
  width: 160px; height: 220px; border-radius: 14px; overflow: hidden;
  position: relative; flex-shrink: 0;
}
.extract-slide img { width: 100%; height: 100%; object-fit: cover; }
.extract-slide-num {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 11px;
  font-weight: 600; padding: 3px 8px; border-radius: 8px;
}
.extract-results {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; min-width: 200px;
}
.extract-result { display: flex; align-items: center; gap: 10px; }
.extract-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.extract-result strong { font-size: 14px; display: block; }
.extract-result small { font-size: 11px; color: var(--muted); }
.extract-saved { margin-left: auto; color: var(--sage); font-weight: 700; font-size: 16px; }
.extract-pending { margin-left: auto; color: var(--primary-light); font-weight: 700; font-size: 16px; }

/* Live map */
.map-mock {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); width: 100%; max-width: 480px; background: #0a0a08;
}
.map-live {
  width: 100%; height: 400px; min-height: 400px; border-radius: 16px;
  background: linear-gradient(135deg, #0a0a08 0%, #161412 40%, #0e0d0b 70%, #181614 100%);
}
.maplibregl-canvas { border-radius: 16px; }


.trov-popup .maplibregl-popup-content {
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  border-radius: 10px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  padding: 8px 12px !important;
}
.trov-popup .maplibregl-popup-tip { border-top-color: var(--surface-2) !important; }

/* Activity mock */
.activity-mock {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; max-width: 380px;
}
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; background: var(--bg); border-radius: 12px;
}
.activity-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.activity-content p { font-size: 13px; line-height: 1.4; }
.activity-content strong { color: var(--text); }
.activity-content small { font-size: 11px; color: var(--muted); }
.activity-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rating-badge {
  background: rgba(212, 165, 116, 0.15); color: var(--gold);
  padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 600;
}

/* Rating mock */
.rating-mock {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; max-width: 340px;
}
.rating-mock-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rating-place-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.rating-mock-header strong { display: block; font-size: 15px; }
.rating-mock-header small { font-size: 12px; color: var(--muted); }
.rating-bars { display: flex; flex-direction: column; gap: 10px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rating-bar-row > span:first-child { width: 65px; color: var(--muted); }
.rating-bar-row > span:last-child { width: 28px; text-align: right; font-weight: 700; color: var(--gold); }
.rating-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.rating-overall {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.rating-overall-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--gold);
}
.rating-overall-stars { font-size: 18px; color: var(--gold); }

/* How It Works */
.how-it-works { padding: 100px 24px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 32px; padding: 40px 0;
  border-bottom: 1px solid var(--border); align-items: center;
}
.step:last-child { border-bottom: none; }
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 800; color: var(--primary);
  opacity: 0.3; min-width: 80px;
}
.step-content { flex: 1; }
.step-content h4 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.step-image { width: 160px; height: 110px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.step-image img { width: 100%; height: 100%; object-fit: cover; }

/* Why */
.why { padding: 100px 24px; background: var(--surface); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.why-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s;
}
.why-card:hover { border-color: var(--primary); }
.why-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* CTA */
.cta {
  position: relative; padding: 140px 24px; text-align: center; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.cta-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.cta-content { position: relative; z-index: 2; }
.cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 48px); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.cta p { font-size: 17px; color: var(--muted); margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 24px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 900px) {
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-block.reverse > * { direction: ltr; }
  .feature-visual { margin-top: 24px; }
}
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-cards { gap: 12px; }
  .social-card { width: 180px; }
  .social-card img { height: 100px; }
  .step { flex-direction: column; gap: 12px; align-items: flex-start; }
  .step-number { font-size: 36px; min-width: auto; }
  .step-image { display: none; }
  .extract-mock { flex-direction: column; }
}
