/* ============================================================
   landing.css — MapScene marketing pages (index.html, dashboard.html)
   Sits on top of Bootstrap 5. Never imported by app.html.
   ============================================================ */

/* ── Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Bootstrap primary colour → MapScene teal ───────────────── */
:root {
  --bs-primary:           #0d9488;
  --bs-primary-rgb:       13, 148, 136;
  --bs-link-color:        #0d9488;
  --bs-link-hover-color:  #0f766e;

  /* Brand tokens */
  --ms-teal:        #0d9488;   /* primary — teal-600 */
  --ms-teal-dk:     #0f766e;   /* teal-700 */
  --ms-teal-lt:     #5eead4;   /* teal-300 */
  --ms-sky:         #0ea5e9;   /* sky-500 — accent / complement */
  --ms-gradient:    linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  --ms-shadow-glow: 0 20px 60px rgba(13, 148, 136, 0.22);

  /* Legacy aliases kept so any inline style="color:var(--ms-purple-dk)" still resolves */
  --ms-purple:    #0d9488;
  --ms-purple-dk: #0f766e;
  --ms-purple-lt: #5eead4;
  --ms-cyan:      #0ea5e9;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  overflow-x: hidden;
}

/* ── Bootstrap btn-primary override ─────────────────────────── */
.btn-primary {
  background-color: var(--ms-teal) !important;
  border-color:     var(--ms-teal) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ms-teal-dk) !important;
  border-color:     var(--ms-teal-dk) !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.35) !important;
}
.btn-outline-primary {
  color:        var(--ms-teal) !important;
  border-color: var(--ms-teal) !important;
}
.btn-outline-primary:hover {
  background-color: var(--ms-teal) !important;
  border-color:     var(--ms-teal) !important;
  color: #fff !important;
}

/* ── Glassmorphism Navbar ────────────────────────────────────── */
.ms-glass {
  background:              rgba(255, 255, 255, 0.82) !important;
  backdrop-filter:         blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom:           1px solid rgba(0, 0, 0, 0.07);
  box-shadow:              0 1px 24px rgba(0, 0, 0, 0.05);
}

.navbar-brand .brand-icon {
  width: 30px;
  height: 30px;
  background: var(--ms-gradient);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.38);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a !important;
}

/* ── Utility: gradient text ──────────────────────────────────── */
.gradient-text {
  background:              var(--ms-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

/* ── Section tag (small teal eyebrow label) ──────────────────── */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ms-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  padding-top: 86px;    /* clear fixed navbar */
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decorative radial blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0);
}
.hero-blob-1 {
  top: -180px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.10) 0%, transparent 68%);
}
.hero-blob-2 {
  bottom: -100px; left: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.09) 0%, transparent 68%);
}
.hero-blob-3 {
  top: 30%; left: 40%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 68%);
}

/* Beta badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 100px;
  color: var(--ms-teal);
  font-size: 13px;
  font-weight: 500;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ms-teal);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Trust strip */
.trust-strip {
  font-size: 13px;
  color: #94a3b8;
}
.trust-strip .sep {
  margin: 0 10px;
  opacity: 0.4;
}

/* ============================================================
   PRODUCT MOCKUP (browser frame + SVG map)
   ============================================================ */
.mockup-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center,
    rgba(13, 148, 136, 0.17) 0%,
    transparent 65%);
  border-radius: 28px;
  pointer-events: none;
  filter: blur(10px);
}

.browser-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(13, 148, 136, 0.18);
  transform: perspective(1600px) rotateX(3.5deg);
  transform-origin: center 85%;
}

/* macOS-style dark browser chrome */
.browser-bar {
  background: #1e1e2e;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 7px;
}
.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.browser-url-bar {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

/* Map canvas area */
.browser-screen {
  background: #0b1f2e;
  line-height: 0;
}
.browser-screen svg {
  width: 100%;
  display: block;
}

/* SVG animation: pulsing ring on end marker */
.pulse-ring {
  transform-box:    fill-box;
  transform-origin: center;
  animation: ring-expand 2.4s ease-out infinite;
}
@keyframes ring-expand {
  0%   { r: 9;  opacity: 0.7; }
  100% { r: 22; opacity: 0;   }
}

/* Timeline strip */
.browser-timeline {
  background: #0d1f2e;
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-time {
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-family: monospace;
  min-width: 32px;
}

.tl-tracks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  width: 46px;
  flex-shrink: 0;
  text-align: right;
}

.tl-body {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
}

.tl-kf {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
}
.tl-kf-cam  { background: #38bdf8; }  /* sky-400 — camera track */
.tl-kf-mark { background: #2dd4bf; }  /* teal-300 — marker track */

.tl-head {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.feature-card {
  border-radius: 18px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 28px rgba(13,148,136,0.07) !important;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.09),
    0 24px 48px rgba(13,148,136,0.13) !important;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.fi-purple { background: rgba(13,  148, 136, 0.10); }
.fi-blue   { background: rgba(14,  165, 233, 0.10); }
.fi-cyan   { background: rgba(20,  184, 166, 0.10); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ms-gradient);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.30);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--ms-teal), var(--ms-teal-lt));
  opacity: 0.2;
  align-self: center;
  margin-bottom: 46px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 55%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60%; left: -5%;
  width: 110%; height: 220%;
  background: radial-gradient(ellipse at 25% 55%, rgba(255,255,255,0.09) 0%, transparent 55%);
  pointer-events: none;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section { background: #f8faff; }

.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover {
    box-shadow: 0 8px 32px rgba(13,148,136,0.1);
    transform: translateY(-3px);
}

/* Featured / highlighted card */
.pricing-card--featured {
    border: 2px solid #0d9488;
    background: linear-gradient(160deg, #f0fdf4 0%, #fff 60%);
}

.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #0d9488, #0ea5e9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f2942;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.pricing-card--featured .pricing-price { color: #0f766e; }

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.pricing-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 0;
    line-height: 1.45;
}

.pricing-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    transition: opacity 0.15s, background 0.15s;
}
.pricing-cta--primary {
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    color: #fff;
}
.pricing-cta--primary:hover { opacity: 0.88; color: #fff; }
.pricing-cta--outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #334155;
}
.pricing-cta--outline:hover { border-color: #0d9488; color: #0d9488; background: #f0fdf4; }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pricing-features li {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.35;
}

.pricing-features li::before {
    flex-shrink: 0;
    margin-top: 0.05rem;
    font-size: 0.8rem;
}

.pf-yes::before { content: "✓"; color: #0d9488; font-weight: 700; }
.pf-no          { color: #94a3b8; }
.pf-no::before  { content: "—"; color: #cbd5e1; }


/* ============================================================
   FOOTER
   ============================================================ */
.ms-footer {
  background: #0b1f2e;
  color: #94a3b8;
}
.ms-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.ms-footer a:hover {
  color: #f1f5f9;
}
.ms-footer .footer-brand {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.05rem;
}
.ms-footer .divider {
  border-color: rgba(255,255,255,0.08);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-main {
  padding-top: 90px;
  min-height: 100vh;
  background: #f0fdfa;   /* teal-50 */
}

/* New project card */
.card-new-project {
  border: 2px dashed rgba(13, 148, 136, 0.28) !important;
  background: rgba(13, 148, 136, 0.025) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 210px;
}
.card-new-project:hover {
  border-color: var(--ms-teal) !important;
  background: rgba(13, 148, 136, 0.07) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.14) !important;
}
.new-plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--ms-teal);
  margin: 0 auto 12px;
  transition: background 0.2s;
}
.card-new-project:hover .new-plus {
  background: rgba(13, 148, 136, 0.18);
}

/* Existing project cards */
.card-project {
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.07),
    0 6px 20px rgba(0,0,0,0.06) !important;
}
.card-project:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.09),
    0 20px 44px rgba(13,148,136,0.12) !important;
}

.project-thumb {
  height: 138px;
  background: linear-gradient(135deg, #0b1f2e 0%, #0e2a3a 50%, #0a1e28 100%);
  position: relative;
  overflow: hidden;
}
/* Decorative trail line on thumbnail */
.project-thumb::after {
  content: '';
  position: absolute;
  top: 48%;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, rgba(45,212,191,0.6), rgba(14,165,233,0.5));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(45,212,191,0.3);
}
.thumb-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.75);
}

.project-meta {
  font-size: 12px;
  color: #94a3b8;
}

/* Empty state */
.empty-projects {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.empty-icon {
  font-size: 52px;
  opacity: 0.4;
  margin-bottom: 16px;
}

/* Auth loading overlay (kept for compatibility) */
.auth-loading {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .browser-frame {
    transform: none;
    border-radius: 10px;
  }
  .browser-timeline {
    display: none; /* keep mockup compact on mobile */
  }
  .step-connector {
    display: none;
  }
  .hero-section {
    padding-top: 100px;
  }
}
