.section[id] {
  scroll-margin-top: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #111;
  background: #f6f7f9;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-text {
  line-height: 1;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.nav a:hover {
  color: #111;
}

.nav-cta {
  padding: 6px 10px;
  background: #111;
  color: #fff !important;
  border-radius: 4px;
}

/* HERO */

.hero {
  padding: 56px 0;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.15;
  margin: 10px 0 12px;
  max-width: 680px;
}

.hero p {
  color: #555;
  font-size: 13px;
  max-width: 620px;
}

.hero-actions {
  margin-top: 16px;
}

.hero-card {
  background: #f8fafc;
  border: 1px solid #e4e8ef;
  border-radius: 5px;
  padding: 14px;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-card li {
  font-size: 12px;
  color: #555;
  margin: 5px 0;
}

/* EYEBROW */

.eyebrow {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  color: #2454d6;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-right: 8px;
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn.secondary {
  background: #fff;
  color: #333;
}

.btn.small {
  padding: 6px 10px;
  font-size: 11px;
}

/* SECTIONS */

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 20px;
  margin: 8px 0 12px;
  line-height: 1.3;
  color: #111;
}

.section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: #2454d6;
  border-radius: 2px;
  margin-top: 8px;
}

.section-text {
  color: #555;
  font-size: 13px;
}

.section-text-narrow {
  max-width: 650px;
}

.section-note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 2px solid #e5e7eb;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.section-note::before {
  content: "Data quality: ";
  font-weight: 700;
  color: #4b5563;
}

.pricing-lock-note::before {
  content: "Price lock: ";
}

/* GRID SECTIONS */

#features .container,
#channels .container,
#use-cases .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#features .eyebrow,
#features h2,
#features .section-text,
#features .cards,
#features .section-note,
#channels .eyebrow,
#channels h2,
#channels .section-text,
#channels .cards,
#use-cases .eyebrow,
#use-cases h2,
#use-cases .section-text,
#use-cases .cards {
  grid-column: 1 / -1;
}

#features .eyebrow,
#channels .eyebrow,
#use-cases .eyebrow {
  justify-self: start;
}

/* DARK SECTION */

.section.dark {
  background: #111827;
  color: #fff;
}

.section.dark .section-text {
  color: #cbd5e1;
}

.section.dark h2 {
  color: #fff;
}

.section.dark h2::after {
  background: #7aa2ff;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: #fff;
  border: 1px solid #e4e8ef;
  padding: 14px;
  border-radius: 5px;
  box-shadow: 0 5px 14px rgba(20, 30, 60, 0.04);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.card code,
.integration-card code {
  font-size: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
}

.card-actions {
  margin-top: 12px;
}

.integration-card {
  margin-top: 18px;
}

.integration-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
}

.integration-card p:last-child {
  margin-bottom: 0;
}

.code-block {
  margin: 10px 0 12px;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.45;
}

.code-block code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ICON CARDS */

.icon-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  font-size: 15px;
  line-height: 1;
}

.section.dark .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.section.dark .card h3 {
  color: #fff;
}

.section.dark .card p {
  color: #cbd5e1;
}

/* CHANNELS */

.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.channel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.section.dark .channel {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

/* DEMO */

.demo-panel {
  border: 1px solid #e4e8ef;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 16px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 30, 60, 0.04);
}

.demo-toolbar {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 10px;
  align-items: end;
  padding: 10px;
  background: #f7f9fc;
  border-bottom: 1px solid #e4e8ef;
}

.channel-select {
  display: contents;
}

.channel-select label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.channel-select select {
  min-width: 160px;
  padding: 6px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

/* STATUS + RATE */

.status {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 330px;
  max-width: 360px;
  font-size: 11px;
  color: #777;
}

.rate-text,
.time-badge {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rate-text {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  transition: color .9s ease, background-color .9s ease, border-color .9s ease;
}

.status-pulse .rate-text {
  color: #111827;
  background: #dbeafe;
  border-color: #93c5fd;
  animation: ratePulse 1.4s ease-out;
}

@keyframes ratePulse {
  0% {
    color: #111827;
    background: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .25);
  }

  55% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .08);
  }

  100% {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* TIME BADGE */

.time-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.time-day {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.time-late {
  background: #fffaeb;
  color: #b54708;
  border: 1px solid #fedf89;
}

.time-night {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

/* NEWS LIST */

.news-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
}

.empty-state {
  padding: 16px;
  color: #888;
  text-align: center;
  font-size: 12px;
}

.news-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.news-item strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.news-item ul {
  padding-left: 16px;
  margin: 0;
}

.news-item li {
  font-size: 12px;
  color: #444;
  margin-bottom: 4px;
}

/* NEWS TAGS */

.news-tags {
  margin-top: 6px;
}

.news-tags-label {
  font-size: 11px;
  color: #666;
  margin-right: 4px;
}

.news-tag {
  display: inline-block;
  background: #f1f3f7;
  border: 1px solid #e1e4ea;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  margin-right: 4px;
  margin-top: 4px;
}

/* MAP HEADING */

.map-section-heading {
  margin-top: 0;
}

.map-section-heading h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
}

.map-section-heading p {
  margin: 0;
  color: #555;
  font-size: 12px;
}

/* MAP */

.map-container {
  position: relative;
  height: auto;
  margin-top: 18px;
  border: 1px solid #1e293b;
  border-radius: 6px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.map-layout {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  gap: 12px;
  height: 300px;
  padding: 12px;
}

.map-stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.map-svg {
  position: absolute;
  width: 114%;
  height: 114%;
  left: -7%;
  top: -7%;
}

.map-country {
  fill: #1e293b;
  stroke: #334155;
  stroke-width: .5;
  vector-effect: non-scaling-stroke;
}

#mapDaylight {
  pointer-events: none;
}

.daylight-zone {
  fill: rgba(250, 204, 21, 0.15);
  stroke: rgba(250, 204, 21, 0.22);
  stroke-width: 0.7;
  filter: blur(1.2px);
}

.subsolar-dot {
  fill: rgba(250, 204, 21, 0.9);
  stroke: rgba(250, 204, 21, 0.28);
  stroke-width: 5;
}

#mapPings {
  pointer-events: none;
}

.map-ping-dot {
  fill: #60a5fa;
  opacity: 1;
  animation: mapPingDot 0.8s linear forwards;
}

.map-ping-ring {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2;
  opacity: 0.6;
  animation: mapPingRing 0.8s linear forwards;
}

@keyframes mapPingDot {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mapPingRing {
  from {
    opacity: 0.6;
    r: 4;
  }

  to {
    opacity: 0;
    r: 18;
  }
}

/* MAP SIDEBAR */

.map-sidebar {
  position: relative;
  z-index: 3;
  align-self: start;
  height: fit-content;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 5px;
  padding: 8px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.map-sidebar-title {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.top-country-list {
  display: grid;
  gap: 2px;
}

.top-country-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 4px;
  align-items: center;
  color: #cbd5e1;
  font-size: 10px;
}

.top-country-rank {
  color: #93c5fd;
  font-weight: 800;
}

.top-country-main {
  min-width: 0;
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.top-country-name {
  min-width: 0;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-country-code {
  flex: 0 0 auto;
  color: #60a5fa;
  font-size: 9px;
}

.top-country-count {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.top-country-bar {
  grid-column: 1 / -1;
  height: 2px;
  border-radius: 1px;
  background: rgba(148, 163, 184, .18);
  overflow: hidden;
}

.top-country-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  transition: width .25s ease;
}

.top-country-empty {
  color: #64748b;
  font-size: 11px;
}

/* MAP TICKER */

.map-ticker {
  position: relative;
  height: 88px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  pointer-events: none;
  padding: 6px 12px 10px;
}

.map-ticker-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 20px;
  flex: 0 0 20px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(148, 163, 184, .24);
  color: #cbd5e1;
  font-size: 10px;
  opacity: 1;
}

.map-ticker-country {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.map-ticker-code {
  flex: 0 0 auto;
  font-size: 9px;
  color: #93c5fd;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: .02em;
}

.map-ticker-title {
  min-width: 0;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DEMO SITE */

.demo-site-note {
  margin-top: 18px;
}

/* CTA */

.cta {
  background: linear-gradient(to bottom, #ffffff, #f6f7f9);
  border-top: 1px solid #e5e7eb;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 14px;
  align-items: center;
}

.cta-copy {
  grid-column: 1 / 3;
}

.cta h2 {
  font-size: 20px;
  margin: 8px 0 12px;
}

.cta p {
  font-size: 13px;
  color: #555;
  margin: 0;
  max-width: none;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cta-actions .btn {
  margin-right: 0;
  white-space: nowrap;
}

/* FOOTER */

.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 30px 0;
  font-size: 12px;
}

.footer-inner.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(110px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
}

.footer-brand strong {
  font-size: 14px;
  color: #111;
  line-height: 1.3;
}

.footer-brand p {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

.footer-small {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.45;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-column strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #111;
  margin-bottom: 4px;
}

.site-footer a {
  color: #555;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
}

.site-footer a:hover {
  color: #111;
}

.footer-column a {
  width: fit-content;
}

/* PRICING */

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card-highlight {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.pricing-price {
  margin-top: auto;
  display: grid;
  gap: 4px;
}

.pricing-current {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.pricing-future {
  font-size: 11px;
  color: #6b7280;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .footer-inner.footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 800px) {
  .hero-grid,
  .cards,
  #features .container,
  #channels .container,
  #use-cases .container {
    grid-template-columns: 1fr;
  }

  #features .eyebrow,
  #features h2,
  #features .section-text,
  #features .cards,
  #features .section-note,
  #channels .eyebrow,
  #channels h2,
  #channels .section-text,
  #channels .cards,
  #use-cases .eyebrow,
  #use-cases h2,
  #use-cases .section-text,
  #use-cases .cards {
    grid-column: auto;
  }

  .nav {
    display: none;
  }

  .demo-toolbar {
    grid-template-columns: 1fr;
  }

  .channel-select {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .channel-select select,
  .status {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
  }

  .map-container {
    height: auto;
  }

  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 380px auto;
    height: auto;
    padding: 10px;
  }

  .map-stage {
    height: 380px;
  }

  .map-svg {
    width: 145%;
    height: 145%;
    left: -22.5%;
    top: -22.5%;
  }

  .map-sidebar {
    overflow-y: auto;
  }

  .map-ticker {
    height: 104px;
  }

  .map-ticker-item {
    grid-template-columns: 92px 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-copy {
    grid-column: auto;
  }

  .cta-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .footer-inner.footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand {
    gap: 4px;
  }

  .footer-column {
    gap: 6px;
  }

  .map-layout {
    grid-template-rows: auto 420px auto;
  }

  .map-stage {
    height: 420px;
  }

  .map-svg {
    width: 160%;
    height: 160%;
    left: -30%;
    top: -30%;
  }

  .map-sidebar {
    max-height: 120px;
  }

  .map-ticker {
    height: 112px;
  }

  .map-ticker-item {
    height: auto;
    min-height: 24px;
    grid-template-columns: 64px 1fr;
  }
}