/* ============================================================================
   DataPro Comply — Landing Page Styles
   Dark theme, Bloomberg Terminal meets modern SaaS
   ============================================================================ */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg:         #08080e;
  --bg-card:    #0d0d14;
  --bg-elevated:#12121c;
  --bg-hover:   #181824;

  /* Accent */
  --blue:       #3c8cff;
  --blue-dim:   #2a6ad4;
  --blue-glow:  rgba(60, 140, 255, 0.15);

  /* Semantic */
  --orange:     #ffa028;
  --red:        #ff3232;
  --green:      #32dc64;
  --yellow:     #ffd700;

  /* Text */
  --text:       #e0e0e8;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;

  /* Borders */
  --border:     #1a1a2a;
  --border-highlight: #2a2a3e;

  /* Typography */
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --container:  1200px;
  --section-py: 120px;
  --section-py-mobile: 72px;

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5ea3ff;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(60, 140, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: #4d9aff;
  box-shadow: 0 0 30px rgba(60, 140, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s var(--ease);
  background: transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.nav-logo:hover { color: var(--text); }

.nav-logo-icon {
  display: flex;
  align-items: center;
}

.nav-logo-accent {
  color: var(--blue);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --------------------------------------------------------------------------
   Pulse dots
   -------------------------------------------------------------------------- */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot--live {
  background: var(--green);
}
.pulse-dot--live::after {
  border: 2px solid var(--green);
}

.pulse-dot--green {
  background: var(--green);
}
.pulse-dot--green::after {
  border: 2px solid var(--green);
}

.pulse-dot--red {
  background: var(--red);
}
.pulse-dot--red::after {
  border: 2px solid var(--red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(2); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 140, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 140, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(60, 140, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(50, 220, 100, 0.08);
  border: 1px solid rgba(50, 220, 100, 0.2);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #a78bfa 50%, var(--blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Screener
   -------------------------------------------------------------------------- */
.screener {
  max-width: 580px;
  margin: 0 auto 40px;
}

.screener-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.screener-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow), 0 0 40px rgba(60, 140, 255, 0.1);
}

.screener-icon {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--text-muted);
}

.screener-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px;
  min-width: 0;
}

.screener-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.screener-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  border-radius: 8px;
}

.screener-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.hint-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.hint-btn:hover {
  background: var(--blue-glow);
}

/* Screener Result */
.screener-result {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.result-vessel-name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.result-vessel-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.result-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-critical { background: rgba(255, 50, 50, 0.15); color: var(--red); border: 1px solid rgba(255, 50, 50, 0.3); }
.risk-high { background: rgba(255, 160, 40, 0.15); color: var(--orange); border: 1px solid rgba(255, 160, 40, 0.3); }
.risk-medium { background: rgba(255, 215, 0, 0.15); color: var(--yellow); border: 1px solid rgba(255, 215, 0, 0.3); }
.risk-low { background: rgba(50, 220, 100, 0.15); color: var(--green); border: 1px solid rgba(50, 220, 100, 0.3); }

.result-body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-field {
  font-size: 13px;
}

.result-field-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.result-field-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.result-risk-bar {
  padding: 12px 20px 16px;
}

.risk-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s var(--ease);
}

.risk-bar-fill--critical { background: linear-gradient(90deg, var(--orange), var(--red)); }
.risk-bar-fill--high { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.risk-bar-fill--medium { background: linear-gradient(90deg, var(--green), var(--yellow)); }
.risk-bar-fill--low { background: var(--green); }

.result-sanctions {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}

.result-sanctions-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.result-sanctions-status--yes { color: var(--red); }
.result-sanctions-status--no { color: var(--green); }

.result-error {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.result-error-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

/* Spinner */
.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Stats Ticker
   -------------------------------------------------------------------------- */
.stats-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

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

.ticker-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.ticker-divider {
  width: 1px;
  height: 16px;
  background: var(--border-highlight);
}

/* --------------------------------------------------------------------------
   Scroll indicator
   -------------------------------------------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bobble 2s ease-in-out infinite;
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --------------------------------------------------------------------------
   Section shared
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--dark {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--blue-glow);
  border: 1px solid rgba(60, 140, 255, 0.2);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Threat Map
   -------------------------------------------------------------------------- */
.map-container {
  position: relative;
  height: 520px;
  margin-top: -20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.threat-map {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  padding: 12px 16px;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  z-index: 10;
}

.map-overlay--top-left {
  top: 16px;
  left: 16px;
}

.map-overlay--bottom-right {
  bottom: 16px;
  right: 16px;
}

.map-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--critical { background: var(--red); box-shadow: 0 0 8px var(--red); }
.legend-dot--high { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.legend-dot--medium { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.legend-dot--low { background: var(--green); }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-card--highlight {
  border-color: rgba(255, 160, 40, 0.2);
  background: linear-gradient(180deg, rgba(255, 160, 40, 0.03) 0%, var(--bg-card) 100%);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon--blue { background: rgba(60, 140, 255, 0.1); color: var(--blue); }
.feature-icon--orange { background: rgba(255, 160, 40, 0.1); color: var(--orange); }
.feature-icon--green { background: rgba(50, 220, 100, 0.1); color: var(--green); }

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Numbers
   -------------------------------------------------------------------------- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.number-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.3s var(--ease);
}

.number-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 30px var(--blue-glow);
}

.number-value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.number-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-secondary);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s var(--ease);
}

.pricing-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.pricing-card--popular {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(60, 140, 255, 0.05) 0%, var(--bg) 100%);
  box-shadow: 0 0 40px rgba(60, 140, 255, 0.1);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-plan {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-duration {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.pricing-feature--disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   API Preview
   -------------------------------------------------------------------------- */
.api-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.api-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-highlight);
}

.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.code-lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card);
}

.code-body {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.code-body code {
  font-family: inherit;
}

.code-keyword { color: var(--blue); }
.code-string { color: var(--green); }
.code-key { color: #a78bfa; }
.code-bool { color: var(--orange); }
.code-number { color: var(--orange); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #fff;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(60, 140, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-subtitle {
  position: relative;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy--muted {
  color: var(--text-muted);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   MapLibre overrides
   -------------------------------------------------------------------------- */
.maplibregl-canvas {
  outline: none;
}

.maplibregl-ctrl-attrib {
  display: none !important;
}

.maplibregl-ctrl-logo {
  display: none !important;
}

.maplibregl-popup-content {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.maplibregl-popup-tip {
  border-top-color: var(--bg-elevated) !important;
}

.maplibregl-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
}

.map-popup-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.map-popup-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature-card:last-child {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }

  .api-preview-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-mobile);
  }

  .nav-links, .nav-actions {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-links.open, .nav-actions.open {
    display: flex;
  }

  /* Mobile menu */
  .nav.mobile-open .nav-inner {
    flex-wrap: wrap;
  }

  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
    gap: 16px;
    order: 3;
  }

  .nav.mobile-open .nav-actions {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding-bottom: 16px;
    order: 4;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle br {
    display: none;
  }

  .screener-input-wrap {
    flex-direction: column;
    gap: 0;
    padding: 8px;
  }

  .screener-icon {
    display: none;
  }

  .screener-input {
    width: 100%;
    text-align: center;
  }

  .screener-btn {
    width: 100%;
  }

  .stats-ticker {
    flex-direction: column;
    gap: 10px;
  }

  .ticker-divider {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .number-card {
    padding: 28px 16px;
  }

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

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
    padding: 8px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .map-container {
    height: 400px;
  }

  .result-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-title br {
    display: none;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .code-body {
    font-size: 11px;
    padding: 14px;
  }
}

/* --------------------------------------------------------------------------
   Animations (intersection observer driven)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: none; }
