/* GoPoint Landing Page - Component Styling */

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(11, 15, 25, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--emerald-primary), var(--azure-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B0F19;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--emerald-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--emerald-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.75rem;
  max-width: 900px;
  margin: 0 auto 24px auto;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interactive Demo Showcase */
.demo-section {
  padding: 40px 0 100px 0;
  scroll-margin-top: 100px;
}

.demo-wrapper {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(14, 21, 37, 0.85);
  border: 1px solid rgba(0, 255, 157, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 157, 0.08);
}

.demo-header {
  margin-bottom: 20px;
}

/* AI Prompt Bar */
.prompt-box-container {
  display: flex;
  align-items: center;
  background: rgba(8, 12, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 18px;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.prompt-box-container:focus-within {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.prompt-icon {
  color: var(--emerald-primary);
  font-size: 1.2rem;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.prompt-input::placeholder {
  color: var(--text-dim);
}

.preset-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip:hover, .chip.active {
  background: rgba(0, 255, 157, 0.12);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

/* Demo Grid Split */
.demo-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-top: 20px;
  min-height: 480px;
}

.map-container-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #090D16;
  min-height: 480px;
}

#demo-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  z-index: 1;
}

/* Leaflet Dark Custom Override */
.leaflet-container {
  background: #0B0F19 !important;
  font-family: var(--font-body) !important;
}

.leaflet-bar a {
  background-color: rgba(14, 21, 37, 0.9) !important;
  color: var(--text-main) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(14, 21, 37, 0.95) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--emerald-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
  background: rgba(14, 21, 37, 0.95) !important;
}

/* Telemetry HUD Side Panel */
.telemetry-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(10, 15, 26, 0.9);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.telemetry-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 112, 255, 0.15);
  color: var(--azure-accent);
  border: 1px solid rgba(0, 112, 255, 0.3);
}

.metric-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.metric-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Surface Breakdown Bar */
.surface-section {
  margin-top: 4px;
}

.surface-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.surface-bar-wrap {
  height: 10px;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.surface-seg-paved { background: var(--azure-accent); width: 65%; }
.surface-seg-gravel { background: var(--yellow-accent); width: 25%; }
.surface-seg-trail { background: var(--emerald-primary); width: 10%; }

.surface-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Elevation Chart Box */
.elevation-box {
  margin-top: 20px;
  background: rgba(8, 12, 21, 0.9);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.elevation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.elevation-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.elevation-svg-wrap {
  width: 100%;
  height: 140px;
  position: relative;
}

/* Features Grid */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 157, 0.1);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Route Preset Explorer */
.presets-section {
  padding: 80px 0 100px 0;
  background: rgba(0, 0, 0, 0.2);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.preset-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preset-img-box {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.preset-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(11, 15, 25, 0.85);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-primary);
  backdrop-filter: var(--glass-backdrop);
}

.preset-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preset-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.preset-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.preset-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--emerald-primary);
  color: #07130E;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0;
  color: #FFFFFF;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
}

.pricing-list {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-list li i {
  color: var(--emerald-primary);
}

/* Notification Toast & Modal */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: rgba(18, 26, 43, 0.95);
  border: 1px solid var(--emerald-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: var(--glass-backdrop);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-color);
  background: rgba(7, 10, 18, 0.95);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
