/* ═══════════════════════════════════════════════
   PBS Map — Landing Page Styles
   ═══════════════════════════════════════════════ */

.landing-body {
  background: var(--white);
  overflow-x: hidden;
}

/* ══ NAVBAR ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background .3s, box-shadow .3s;
  padding: 0 24px;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  color: white;
  transition: color .2s;
  flex-shrink: 0;
}
.nav.scrolled .nav-logo { color: var(--gray-800); }
.nav-logo strong { font-weight: 800; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.nav.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover { color: white; }
.nav.scrolled .nav-links a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.btn-nav-outline {
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: var(--radius-md);
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.nav.scrolled .btn-nav-outline {
  border-color: var(--gray-300);
  color: var(--gray-700);
}
.btn-nav-outline:hover { background: rgba(255,255,255,.15); }
.nav.scrolled .btn-nav-outline:hover { background: var(--gray-100); }

.btn-nav-fill {
  padding: 8px 18px;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-nav-fill:hover { background: var(--primary-dark); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: background .2s;
}
.nav.scrolled .nav-hamburger span { background: var(--gray-700); }

.nav-mobile {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
.nav-mobile a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .2s;
}
.nav-mobile a:hover { background: var(--gray-50); }
.mobile-login-btn {
  margin: 8px 24px 0;
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius-md);
  text-align: center;
}

/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d2137 40%, #0a1628 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .15;
}
.hero-circle.h1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563eb, transparent);
  top: -200px; left: -100px;
  animation: heroFloat 10s ease-in-out infinite;
}
.hero-circle.h2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0ea5e9, transparent);
  bottom: -150px; right: -100px;
  animation: heroFloat 12s ease-in-out infinite reverse;
}
.hero-circle.h3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: 50%; left: 50%;
  animation: heroFloat 8s ease-in-out infinite 2s;
}
@keyframes heroFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-30px) scale(1.05); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-highlight {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
}
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,.5); }
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* Hero visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 40px;
}
.map-mockup {
  width: min(380px, 100%);
  aspect-ratio: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.map-mockup-inner {
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}
.map-pin {
  position: absolute;
  font-size: 28px;
  animation: pinBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.map-pin.p1 { top: 25%; left: 30%; animation-delay: 0s; }
.map-pin.p2 { top: 55%; left: 60%; animation-delay: .7s; }
.map-pin.p3 { top: 35%; left: 65%; animation-delay: 1.4s; }
@keyframes pinBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.map-pulse {
  position: absolute;
  top: 50%; left: 45%;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(37,99,235,.2);
  transform: translate(-50%,-50%);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}

/* ══ SECTIONS COMMON ══ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* ══ FEATURES ══ */
.features {
  padding: 100px 0;
  background: var(--gray-50);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card.fc-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-color: transparent;
  color: white;
}
.fc-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.fc-primary h3 { color: white; }
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}
.fc-primary p { color: rgba(255,255,255,.75); }
.fc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-list li {
  font-size: 13px;
  color: var(--gray-600);
}
.fc-primary .fc-list li { color: rgba(255,255,255,.8); }

/* ══ HOW IT WORKS ══ */
.how-section {
  padding: 100px 0;
  background: var(--white);
}
.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.step-icon { font-size: 36px; margin-bottom: 12px; }
.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}
.step-arrow {
  font-size: 24px;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* ══ ROLES ══ */
.roles-section {
  padding: 100px 0;
  background: var(--gray-50);
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 2px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.role-admin  { border-color: #fbbf24; }
.role-editor { border-color: var(--primary); }
.role-viewer { border-color: var(--success); }
.role-admin  .role-badge { background: #fef3c7; color: #92400e; }
.role-editor .role-badge { background: var(--primary-light); color: var(--primary-dark); }
.role-viewer .role-badge { background: var(--success-light); color: #166534; }
.role-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}
.role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-card ul li {
  font-size: 14px;
  color: var(--gray-600);
}

/* ══ ABOUT / API ══ */
.about-section {
  padding: 100px 0;
  background: var(--gray-900);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-badge {
  background: rgba(37,99,235,.2);
  color: #93c5fd;
}
.about-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.about-text > p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.al-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-list strong {
  display: block;
  font-size: 15px;
  color: white;
  margin-bottom: 2px;
}
.about-list p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.btn-about {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.btn-about:hover { background: var(--primary-dark); }

/* Code window */
.code-window {
  background: #0d1117;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-title {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-left: 8px;
  font-family: monospace;
}
.code-body {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}
.code-body code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e6edf3;
}
.c-comment { color: #8b949e; }
.c-keyword  { color: #ff7b72; }
.c-string   { color: #a5d6ff; }

/* ══ CTA ══ */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 14px 32px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.btn-cta-outline {
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,.5);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.15); border-color: white; }

/* ══ FOOTER ══ */
.footer {
  background: #060a12;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: white;
  margin-bottom: 12px;
}
.footer-logo strong { font-weight: 800; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.25);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .step-card { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
