/* ---------------------------------------------------------------
   Geodata Labs company site
   Dark theme drawn from the EarthBrowser design system: deep-space
   navy surfaces, the blue -> cyan -> teal brand gradient, solid
   slate borders.
------------------------------------------------------------------ */

:root {
  --bg: #0a1020;
  --bg-raised: #0f172a;
  --bg-card: #111a2e;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --green: #34d399;
  /* Bright gradient: marks, emphasis and primary buttons (dark text on it) */
  --gradient: linear-gradient(100deg, #60a5fa 0%, #22d3ee 55%, #2dd4bf 100%);
  /* Deep gradient: full-width bands that carry white text */
  --gradient-deep: linear-gradient(100deg, #1d4ed8 0%, #0e7490 55%, #0f766e 100%);
  --ink: #06101f;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* In-page links land below the sticky header */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

h1,
h2,
h3 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  text-wrap: pretty;
}

section {
  padding: 88px 0;
}

/* Gradient text, for a few words of emphasis */
.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--gradient);
  color: var(--ink);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-tertiary);
  background: rgba(148, 163, 184, 0.08);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-large {
  padding: 13px 24px;
  font-size: 1rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 16, 32, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.site-nav a:hover {
  color: var(--text);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 80px;
}

/* A sparse star field, fading out towards the content below */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 6% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 14% 64%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 23% 12%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 31% 44%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 39% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 47% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 58% 8%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 66% 90%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 74% 5%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 83% 94%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 91% 14%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 96% 58%, rgba(255, 255, 255, 0.5), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
    60% 60% at 50% 0%,
    rgba(37, 99, 235, 0.4),
    rgba(6, 182, 212, 0.14) 45%,
    transparent 70%
  );
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.07;
  text-wrap: balance;
}

.hero-sub {
  margin: 20px 0 30px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 500px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.hero-shot {
  position: relative;
  margin: 0;
}
/* Soft halo behind the screenshot */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 10% 6% -4%;
  background: var(--gradient);
  filter: blur(64px);
  opacity: 0.22;
  border-radius: 50%;
}
.hero-shot img {
  position: relative;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7);
}
.hero-shot figcaption {
  position: relative;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ---------------- Facts strip ---------------- */

.facts {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
}
.facts-inner strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

/* ---------------- Product features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.4rem;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

/* ---------------- Gallery ---------------- */

.gallery {
  padding-top: 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.shot-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.shot-grid figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.shot-grid figcaption a {
  flex: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.shot-grid figcaption a:hover {
  text-decoration: underline;
}

.credit {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.credit a {
  text-decoration: underline;
}

/* ---------------- Live globe ---------------- */

.live {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 56px;
}

.live h2 {
  text-align: left;
}

.live-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.live-copy p a,
.company-copy p a {
  color: var(--cyan);
}

/* Two classes, so it outranks the paragraph rule above */
.live-copy .live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* The EarthBrowser embed placeholder. embed.js (served by earthbrowser.com)
   puts an iframe in it and moves the credit link underneath; until it runs,
   or if it never does, the still image stands in. */
.live-globe {
  width: 100%;
  aspect-ratio: 16 / 10;
}
.live-globe iframe,
.live-globe .embed-fallback {
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: 0 0 0 1px var(--border-strong),
    0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.live-globe .embed-fallback {
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
}
.live-globe[data-eb-processed] .embed-fallback {
  display: none;
}
.live-globe a {
  display: block;
  height: 22px;
  font: 12px/22px system-ui, -apple-system, sans-serif;
  text-align: right;
  text-decoration: none;
  color: var(--text-tertiary);
}
.live-globe a:hover {
  color: var(--text);
}

/* ---------------- Callout ---------------- */

.callout {
  background: var(--gradient-deep);
}
.callout-inner {
  text-align: center;
}
.callout h2 {
  color: #fff;
}
.callout p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  text-wrap: balance;
}
.callout .btn {
  margin-top: 26px;
}

/* ---------------- Company ---------------- */

.company-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 56px;
}

.company h2 {
  text-align: left;
}

.company-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.company-copy .btn {
  margin-top: 28px;
}

.facts-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 24px;
}
.facts-card > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.facts-card > div:last-child {
  border-bottom: 0;
}
.facts-card dt {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.facts-card dd {
  margin: 0;
  color: var(--text);
}
.facts-card dd span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}
.facts-card a {
  color: var(--cyan);
  text-decoration: none;
}
.facts-card a:hover {
  text-decoration: underline;
}

/* ---------------- FAQ ---------------- */

.faq {
  padding-top: 0;
}

.faq .wrap {
  max-width: 720px;
}

.faq h2 {
  margin-bottom: 28px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  margin-left: 12px;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 14px 0 0;
  color: var(--text-secondary);
}
.faq details p a {
  color: var(--cyan);
  text-decoration: underline;
}

/* ---------------- Final CTA ---------------- */

.final-cta {
  border-top: 1px solid var(--border);
}
.final-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.final-cta p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .live-inner,
  .company-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .facts-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* The gallery becomes a swipeable strip, so four shots cost one row */
  .shot-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .shot-grid figure {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .shot-grid figcaption {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 64px 0;
  }
  .gallery,
  .faq {
    padding-top: 0;
  }
  .facts {
    padding: 20px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .live-globe {
    aspect-ratio: 1 / 1;
  }
  .facts-card {
    padding: 4px 18px;
  }
  .facts-card > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .site-header .btn-small {
    padding: 7px 12px;
    font-size: 0.84rem;
  }
  .brand {
    font-size: 1rem;
    gap: 8px;
  }
}

/* Narrow phones: the header button drops its verb, then its arrow, so it
   never runs into the company name. The link keeps its full aria-label. */
@media (max-width: 380px) {
  .site-header .cta-verb {
    display: none;
  }
}
@media (max-width: 350px) {
  .header-inner {
    gap: 10px;
  }
  .site-header .btn-small .icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- Simple pages (contact, privacy, 404) ---------------- */

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 88px 24px 100px;
}
.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.page-content .updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin: 0 0 40px;
}
.page-content h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.page-content p,
.page-content li {
  color: var(--text-secondary);
  font-size: 1rem;
}
.page-content a:not(.btn) {
  color: var(--cyan);
}

.not-found {
  text-align: center;
  padding-top: 160px;
}
.not-found img {
  margin: 0 auto 24px;
}
.not-found .btn {
  margin-top: 8px;
}
