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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  overflow-x: hidden;
}

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #e0f2fe 100%);
}

.topo-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(16, 185, 129, 0.05) 49px, rgba(16, 185, 129, 0.05) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(14, 165, 233, 0.05) 49px, rgba(14, 165, 233, 0.05) 50px);
  opacity: 0.6;
}

.content {
  position: relative;
  z-index: 1;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 1200;
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #111827;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #10b981;
}

.cta-btn {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-links .cta-btn {
  color: #ffffff;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: #059669;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #111827, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: white;
  color: #111827;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  border-color: #10b981;
  color: #10b981;
  background: #f0fdf4;
}

.demo-section {
  max-width: 1600px;
  margin: 4rem auto 8rem;
  padding: 0 2rem;
}

.section-label {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.section-label p {
  font-size: 1.1rem;
  color: #6b7280;
}

.demo-container {
  display: flex;
  align-items: stretch;
  min-height: 600px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

#demo-map-container {
  flex: 0 0 60%;
  position: relative;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

#demo-map {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

#demo-info-panel {
  flex: 1 1 40%;
  background: #ffffff;
  padding: 32px;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

#demo-info-panel h3 {
  margin: 0 0 12px;
  font-weight: 700;
  color: #111827;
  font-size: 1.5rem;
}

.demo-muted {
  color: #6b7280;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

#demo-story-content,
#demo-photo-description {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 15px;
  color: #1f2937;
}

.demo-photo-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

#demo-photo-preview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  display: none;
}

.demo-photo-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
  text-align: center;
}

.demo-photo-timestamp {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.demo-panel-text {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 120px;
  color: #4b5563;
  line-height: 1.6;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 1px;
}

.leaflet-popup-content {
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-popup-content {
  display: contents;
}

.demo-popup-date {
  margin: 0;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
}

.demo-popup-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.demo-popup-image-wrapper img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.demo-popup-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.demo-popup-hint {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.features {
  max-width: 1400px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 800;
}

.section-header p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.pricing {
  max-width: 1400px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
}

.plan-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.plan-tag.accent {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.25));
  color: #047857;
}

.plan-description {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
}

.price-period {
  font-size: 0.95rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.plan-features li {
  position: relative;
  padding-left: 1.75rem;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.6;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 0.5rem;
  height: 1rem;
  border: solid #10b981;
  border-width: 0 0.15rem 0.15rem 0;
  transform: rotate(45deg);
}

.plan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.plan-action:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.plan-action.primary {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.25);
}

.plan-action.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
}

.pricing-card.premium {
  border: 2px solid rgba(14, 165, 233, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.96));
}

.pricing-card.premium::before {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 65%);
}

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

.feature-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 700;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

.how-it-works {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.step {
  text-align: center;
  position: relative;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.3s;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.1);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  color: white;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
  font-weight: 700;
}

.step p {
  color: #64748b;
  line-height: 1.6;
}

.cta-section {
  max-width: 900px;
  margin: 8rem auto;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.cta-section p {
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 2rem;
}

footer {
  text-align: center;
  padding: 3rem 2rem 4rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.demo-placeholder {
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .demo-container {
    flex-direction: column;
  }

  #demo-map-container {
    flex: none;
    height: 400px;
  }

  #demo-info-panel {
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 8rem;
  }

  .demo-container {
    border-radius: 20px;
  }

  #demo-info-panel {
    padding: 24px;
  }

  .features,
  .how-it-works {
    margin: 6rem auto;
  }
}
