/* ============================================================
   REMScout.com — Main Stylesheet
   Colors: Orange #FC782D · Navy #1A2744 · White #FFFFFF
   Font: System stack (matches iOS app feel)
   ============================================================ */

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

:root {
  --orange:      #FC782D;
  --orange-dark: #E5661A;
  --orange-lite: rgba(252,120,45,0.12);
  --navy:        #1A2744;
  --navy-mid:    #243560;
  --navy-lite:   #2C3E6B;
  --cream:       #FFF8F3;
  --gray-1:      #F5F5F7;
  --gray-2:      #E5E5EA;
  --gray-3:      #AEAEB2;
  --gray-4:      #636366;
  --text:        #1C1C1E;
  --text-sub:    #48484A;
  --white:       #FFFFFF;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.20);
  --shadow-orange: 0 8px 32px rgba(252,120,45,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(252,120,45,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-2);
}
.btn-outline:hover { border-color: var(--navy); background: var(--gray-1); }
.btn-nav {
  background: var(--orange);
  color: var(--white);
  padding: 9px 20px;
  font-size: 14px;
  box-shadow: none;
}
.btn-nav:hover { background: var(--orange-dark); transform: none; }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,39,68,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-rem   { color: var(--orange); }
.logo-scout { color: var(--white); }
.nav-monkey { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--navy);
}
.nav-mobile a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, #1f3060 55%, #162238 100%);
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 75% 50%, rgba(252,120,45,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 10% 20%, rgba(252,120,45,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0,0,0,0.3) 0%, transparent 70%);
  pointer-events: none;
}
/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252,120,45,0.15);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(252,120,45,0.3);
}
.hero-headline {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-headline .highlight {
  color: var(--orange);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ---- PHONE MOCKUP ---- */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--navy);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 80px rgba(252,120,45,0.15);
  position: relative;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 36px;
  overflow: hidden;
}
.phone-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(252,120,45,0.25), transparent 70%);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  filter: blur(24px);
}

/* Phone mockup content — map screen */
.phone-mockup { height: 100%; display: flex; flex-direction: column; background: #EEF2F5; }

/* Status bar */
.mockup-statusbar {
  height: 32px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.mockup-statusbar-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}
.mockup-statusbar-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mockup-statusbar-icons span {
  font-size: 9px;
  color: rgba(255,255,255,0.8);
}

/* Top bar */
.mockup-topbar {
  background: var(--white);
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.mockup-area-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-1);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.mockup-area-pill .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.mockup-icon-btn {
  width: 28px; height: 28px;
  background: var(--gray-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.mockup-icon-btn.orange {
  background: var(--orange);
  color: var(--white);
  position: relative;
}
.mockup-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 12px; height: 12px;
  background: var(--navy);
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Map area */
.mockup-map {
  flex: 1;
  background: #E8EFF4;
  position: relative;
  overflow: hidden;
}
.map-bg {
  position: absolute; inset: 0;
  background:
    /* roads */
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px) 0 40%,
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px) 35% 0,
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px) 0 65%,
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px) 65% 0,
    #D8E4EC;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100%;
}
/* Blocks */
.map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    rgba(200,215,225,0.6) 10px 10px / 60px 28px,
    rgba(200,215,225,0.4) 80px 50px / 50px 32px,
    rgba(195,210,222,0.5) 20px 60px / 70px 24px;
  background-repeat: no-repeat;
}
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pin-bubble {
  background: var(--white);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.pin-bubble.active { background: var(--orange); color: var(--white); }
.pin-tail {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--white);
}
.pin-tail.active { border-top-color: var(--orange); }
.pin-1 { top: 20%; left: 15%; }
.pin-2 { top: 38%; left: 48%; }
.pin-3 { top: 18%; right: 20%; }
.pin-4 { top: 60%; left: 28%; }
/* Tour route line */
.map-route {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.map-route::before {
  content: '';
  position: absolute;
  top: 30%; left: 22%;
  width: 35%; height: 25%;
  border: 2px dashed var(--orange);
  border-radius: 50%;
  opacity: 0.5;
}
/* Search this area button */
.mockup-search-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bottom card */
.mockup-card {
  padding: 12px;
  background: var(--white);
  border-top: 1px solid var(--gray-2);
  flex-shrink: 0;
}
.card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.card-address { font-size: 10px; font-weight: 700; color: var(--navy); }
.card-match {
  font-size: 9px;
  font-weight: 700;
  color: #34C759;
  background: rgba(52,199,89,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.card-price { font-size: 16px; font-weight: 900; color: var(--orange); margin: 1px 0; }
.card-details { font-size: 9px; color: var(--gray-4); margin-bottom: 8px; }
.card-actions { display: flex; gap: 6px; }
.card-btn { font-size: 9px; font-weight: 700; padding: 5px 10px; border-radius: 50px; border: none; cursor: pointer; }
.card-btn-primary { background: var(--orange); color: var(--white); }
.card-btn-ghost { background: var(--gray-1); color: var(--navy); }

/* ---- PROOF BAR ---- */
.proof-bar {
  background: var(--navy);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-item {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 8px 28px;
  font-weight: 500;
}
.proof-item strong { color: var(--white); }
.proof-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); }

/* ---- SECTION COMMONS ---- */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-sub {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features { padding: 100px 0; background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card-large { grid-column: span 2; }
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(252,120,45,0.3);
}
.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--text-sub); line-height: 1.65; }
.feature-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.feature-list li { font-size: 14px; color: var(--text-sub); }
.feature-list li::before { content: ''; }

/* Tour Sort Badge */
.sort-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.sort-badge .active { color: var(--orange); }
.sort-divider { color: var(--gray-3); margin: 0 2px; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  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: 48px 48px;
  pointer-events: none;
}
.how-it-works .section-label { color: var(--orange); position: relative; z-index: 1; }
.how-it-works .section-title { color: var(--white); position: relative; z-index: 1; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.step {
  flex: 1;
  padding: 28px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.step:hover { background: rgba(255,255,255,0.08); }
.step-arrow {
  font-size: 22px;
  color: var(--orange);
  padding: 0 6px;
  margin-top: 28px;
  flex-shrink: 0;
  opacity: 0.6;
}
.step-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ---- PRICING ---- */
.pricing { padding: 100px 0; background: var(--white); }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-card {
  border: 2px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card-featured {
  border-color: var(--orange);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 16px 48px rgba(26,39,68,0.25), 0 0 0 1px rgba(252,120,45,0.2);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.5;
}
.pricing-card-featured .pricing-tier { color: var(--white); }
.pricing-price { font-size: 52px; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -2px; }
.pricing-price span { font-size: 26px; letter-spacing: 0; }
.pricing-card-featured .pricing-price { color: var(--white); }
.pricing-period { font-size: 14px; color: var(--gray-3); margin-bottom: 28px; margin-top: 4px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 15px; color: var(--text-sub); }
.pricing-card-featured .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-features li.muted { opacity: 0.35; }
.pricing-note { text-align: center; font-size: 13px; margin-top: 14px; color: var(--gray-3); }
.pricing-card-featured .pricing-note { color: rgba(255,255,255,0.4); }

/* ---- DOWNLOAD ---- */
.download {
  padding: 100px 0;
  background: linear-gradient(145deg, #0f1a2e 0%, var(--navy) 40%, #1f3060 100%);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(252,120,45,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.download-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.download-monkey { margin-bottom: 24px; }
.download-monkey-img {
  width: 140px; height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(252,120,45,0.45));
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.download p {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  line-height: 1.6;
}
.app-store-btn { margin: 0 auto; }
.download-note { font-size: 13px; color: rgba(255,255,255,0.28); margin-top: 18px; }

/* ---- FOOTER ---- */
.footer {
  background: #0f1a2e;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.footer-monkey { width: 34px; height: 34px; object-fit: contain; opacity: 0.8; }
.footer-logo .logo-scout { color: rgba(255,255,255,0.65); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.38); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate:nth-child(2) { animation-delay: 0.08s; }
.animate:nth-child(3) { animation-delay: 0.16s; }
.animate:nth-child(4) { animation-delay: 0.24s; }
.animate:nth-child(5) { animation-delay: 0.32s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-phone { order: -1; }
  .phone-frame { width: 240px; height: 480px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; }
  .steps { flex-direction: column; gap: 12px; }
  .step-arrow { display: none; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .proof-inner { gap: 4px; }
  .proof-divider { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; max-width: 320px; }
}
