/* ============================================
   LANDING PAGE — Premium Hero Styles
   Herda tokens + componentes do design-system.
   ============================================ */

@import url('./design-system.css');

/* ── Base reset for the landing page ── */
html.landing-page {
  background: var(--ds-bg-dark);
  font-family: var(--ds-font-family);
}

html.landing-page body {
  background: var(--ds-bg-dark);
  color: var(--ds-text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ── HERO — fullscreen map container ── */
.lp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Leaflet map fills the hero */
#hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Dark gradient overlay to ensure readability */
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10,15,13,0.88) 0%, rgba(10,15,13,0.55) 50%, rgba(10,15,13,0.82) 100%),
    linear-gradient(to bottom, rgba(10,15,13,0.5) 0%, transparent 30%, transparent 70%, rgba(10,15,13,0.9) 100%);
}

/* Grid of content panels on top of map */
.lp-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ds-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── GROUP CARD (left panel) ── */
.lp-group-card-wrap {
  position: relative;
  min-height: 320px;
}

.lp-group-card {
  background: var(--ds-bg-glass);
  border: 1px solid var(--ds-border-glass);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(37,211,102,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.lp-group-card.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.lp-group-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsing dot — "ao vivo" */
.lp-live-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-color-brand);
  margin-bottom: 1.25rem;
}

.lp-live-dot::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ds-color-brand);
  box-shadow: 0 0 0 0 var(--ds-color-brand-glow);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   var(--ds-color-brand-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

.lp-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.lp-card-desc {
  font-size: 0.9rem;
  color: var(--ds-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.lp-card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.lp-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--ds-radius-full);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  color: #a7f3c1;
}

.lp-card-summary {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  border-left: 2px solid var(--ds-color-brand-dim);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lp-card-actions {
  display: flex;
  gap: 0.75rem;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-brand);
  color: var(--ds-text-on-brand);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow var(--ds-transition-base), transform var(--ds-transition-base);
}
.lp-btn-primary:hover {
  box-shadow: 0 0 24px var(--ds-color-brand-glow);
  transform: translateY(-1px);
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--ds-radius-full);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--ds-transition-base), background var(--ds-transition-base), color var(--ds-transition-base);
}
.lp-btn-ghost:hover {
  border-color: var(--ds-color-brand);
  background: var(--ds-color-brand);
  color: var(--ds-text-on-brand);
}

/* Skeleton placeholders while loading */
.lp-group-card-placeholder {
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  background: var(--ds-bg-glass);
  border: 1px solid var(--ds-border-glass);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
}

@keyframes skeleton-shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.8; }
}

.sk-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 0.75rem;
}
.sk-line.wide   { width: 75%; }
.sk-line.medium { width: 50%; }
.sk-line.narrow { width: 35%; }
.sk-line.full   { width: 100%; }
.sk-title {
  height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  width: 65%;
  margin-bottom: 1rem;
}

/* ── RIGHT PANEL — exclusive pitch (texto alinhado à direita) ── */
.lp-pitch {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
  text-align: right;
}

.lp-pitch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-color-brand);
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.18);
  padding: 0.3rem 0.8rem;
  border-radius: var(--ds-radius-full);
  width: fit-content;
}

.lp-pitch-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ds-text-primary);
  margin: 0;
}

.lp-pitch-title .accent {
  background: linear-gradient(135deg, var(--ds-color-brand) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-pitch-body {
  font-size: 1rem;
  color: var(--ds-text-muted);
  line-height: 1.65;
  max-width: 400px;
}

.lp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  justify-content: flex-end;
}

.lp-feature-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--ds-color-brand);
  margin-top: 2px;
  order: 1;
}

.lp-feature-item .lp-feature-icon + * {
  order: 0;
}

.lp-pitch-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lp-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--ds-radius-full);
  background: linear-gradient(135deg, var(--ds-color-brand) 0%, #22c55e 100%);
  color: var(--ds-text-on-brand);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
  transition: box-shadow var(--ds-transition-base), transform var(--ds-transition-base);
}
.lp-btn-cta:hover {
  box-shadow: 0 8px 40px rgba(37,211,102,0.45);
  transform: translateY(-2px);
}

.lp-pitch-sub {
  font-size: 0.8rem;
  color: var(--ds-text-muted);
}

/* ── SCROLL HINT ── */
.lp-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-updown 2.5s ease-in-out infinite;
}

@keyframes float-updown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-5px); }
}

.lp-scroll-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(37,211,102,0.5), transparent);
}

/* ── SECTION BELOW HERO ── */
.lp-content-section {
  background: var(--ds-bg-dark-2);
  padding: 4rem 0;
}

.lp-content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.lp-section-header {
  margin-bottom: 2rem;
}

.lp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.5rem;
}

.lp-section-sub {
  font-size: 0.9rem;
  color: var(--ds-text-muted);
}

/* ── PERFIS DESTACADOS ── */
.lp-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.lp-profile-card {
  background: var(--ds-bg-glass);
  border: 1px solid var(--ds-border-glass);
  border-radius: var(--ds-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: border-color var(--ds-transition-base), transform var(--ds-transition-base);
}
.lp-profile-card:hover {
  border-color: rgba(37,211,102,0.4);
  transform: translateY(-2px);
}

.lp-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ds-color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ds-text-on-brand);
  flex-shrink: 0;
  object-fit: cover;
}

.lp-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.lp-empty-msg {
  color: var(--ds-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
}

/* ── PLANOS ── */
.lp-section-plans {
  background: var(--ds-bg-dark);
}

.lp-plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.lp-plan-card {
  flex: 0 1 320px;
  background: var(--ds-bg-glass);
  border: 1px solid var(--ds-border-glass);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color var(--ds-transition-base), transform var(--ds-transition-base);
}
.lp-plan-card:hover {
  border-color: rgba(37,211,102,0.3);
  transform: translateY(-2px);
}

.lp-plan-card-highlight {
  border-color: var(--ds-color-brand);
  box-shadow: 0 0 32px rgba(37,211,102,0.15), 0 0 0 1px rgba(37,211,102,0.25);
}
.lp-plan-card-highlight:hover {
  box-shadow: 0 0 48px rgba(37,211,102,0.25);
}

.lp-plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ds-color-brand);
  color: var(--ds-text-on-brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--ds-radius-full);
}

.lp-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.lp-plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.lp-plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ds-text-muted);
}

.lp-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lp-plan-features li {
  font-size: 0.85rem;
  color: var(--ds-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-plan-features li::before {
  content: '✓';
  color: var(--ds-color-brand);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── REFERRAL SECTION ── */
.lp-referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── FOOTER ── */
.lp-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2rem 2rem;
}

.lp-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.lp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.lp-footer-desc {
  font-size: 0.82rem;
  color: var(--ds-text-muted);
  margin: 0;
}

.lp-footer-links {
  display: flex;
  gap: 1.5rem;
}

.lp-footer-link {
  font-size: 0.85rem;
  color: var(--ds-text-muted);
  text-decoration: none;
  transition: color var(--ds-transition-base);
}
.lp-footer-link:hover {
  color: #fff;
}

.lp-footer-copy {
  font-size: 0.75rem;
  color: var(--ds-text-dim);
}

/* ── Leaflet dark tile attribution ── */
.leaflet-control-attribution {
  background: rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.3) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,0.4) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .lp-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 5rem;
    align-items: flex-start;
  }

  .lp-pitch {
    align-items: flex-start;
    text-align: left;
  }

  .lp-feature-item {
    justify-content: flex-start;
  }

  .lp-feature-icon {
    order: 0;
  }

  .lp-pitch-cta {
    justify-content: flex-start;
  }

  .lp-pitch-title { font-size: 2rem; }

  .lp-pitch {
    order: -1;
  }

  .lp-hero { height: auto; min-height: 100svh; }

  .lp-profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .lp-plans-grid {
    flex-direction: column;
    align-items: center;
  }

  .lp-referral-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lp-referral-grid .lp-pitch {
    align-items: flex-start;
    text-align: left;
  }

  .lp-referral-grid .lp-feature-item {
    justify-content: flex-start;
  }

  .lp-referral-grid .lp-pitch-cta {
    justify-content: flex-start;
  }

  .lp-content-section { padding: 2.5rem 1rem; }

  .lp-footer { padding: 2rem 1rem 1.5rem; }
}
