@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --ink: #071d24;
  --ocean: #0f3d4a;
  --teal: #0ea5a4;
  --sky: #7dd3fc;
  --sand: #f5d0a9;
  --coral: #f97316;
  --mint: #d2f4e8;
  --cream: #fff7ee;
  --shadow: rgba(7, 29, 36, 0.18);
  --glass: rgba(255, 255, 255, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.35), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(245, 208, 169, 0.45), transparent 40%),
    linear-gradient(180deg, #f7fbff 0%, #e6f4f1 45%, #fff4ea 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.map-only {
  background: #eaf2f6;
  overflow: hidden;
}

body.map-only .skip-link {
  left: 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(7, 29, 36, 0.06),
      rgba(7, 29, 36, 0.06) 1px,
      transparent 1px,
      transparent 24px
    );
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6vw;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  z-index: 2;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(14, 165, 164, 0.5);
  outline-offset: 2px;
}

.bg-orbit {
  position: fixed;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 164, 0.2), transparent 70%);
  top: -140px;
  right: -120px;
  filter: blur(8px);
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 24px 6vw 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--glass);
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 20px 40px -30px var(--shadow);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--teal), var(--sky));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  opacity: 0.8;
}

.nav-links a.active {
  opacity: 1;
  font-weight: 600;
  border-bottom: 2px solid rgba(14, 165, 164, 0.6);
  padding-bottom: 2px;
}

.nav-cta,
.nav-toggle {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  background: rgba(7, 29, 36, 0.08);
  color: var(--ink);
  display: none;
}

.hero {
  padding: 70px 6vw 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ocean);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  margin: 0 0 20px;
  line-height: 1.05;
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
  color: rgba(7, 29, 36, 0.78);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.primary,
.ghost,
.mini {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(7, 29, 36, 0.7);
}

.ghost {
  background: transparent;
  color: var(--ocean);
  border: 1px solid rgba(7, 29, 36, 0.2);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  color: rgba(7, 29, 36, 0.55);
}

.meta-value {
  margin: 0;
  font-weight: 600;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.map-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 60px -40px var(--shadow);
  border: 1px solid rgba(7, 29, 36, 0.08);
}

.map-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
  animation: pulse 2.6s infinite;
}

.map-canvas {
  background: linear-gradient(160deg, #e0fbff, #f3f7ff);
  border-radius: 18px;
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-canvas svg {
  width: 90%;
  height: auto;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(7, 29, 36, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.mini {
  padding: 8px 14px;
  background: rgba(7, 29, 36, 0.08);
  color: var(--ink);
}

.stat-card {
  background: var(--cream);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(7, 29, 36, 0.08);
}

.stat-desc {
  margin: 8px 0 0;
  color: rgba(7, 29, 36, 0.65);
}

.section {
  padding: 70px 6vw;
}

.section-title {
  max-width: 640px;
  margin-bottom: 36px;
}

.section h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 12px;
}

.value-stack {
  background: rgba(255, 255, 255, 0.55);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.value-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(7, 29, 36, 0.08);
  box-shadow: 0 20px 45px -30px var(--shadow);
}

.value-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: rgba(7, 29, 36, 0.72);
}

.value-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.value-tag.tech {
  background: rgba(14, 165, 164, 0.16);
  color: #0b6f6e;
}

.value-tag.ops {
  background: rgba(125, 211, 252, 0.25);
  color: #155e75;
}

.value-tag.biz {
  background: rgba(249, 115, 22, 0.18);
  color: #9a3412;
}

.features,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(7, 29, 36, 0.08);
  box-shadow: 0 20px 40px -30px var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.map-section {
  background: rgba(7, 29, 36, 0.04);
}

.map-canvas-full {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.map-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  z-index: 1000;
}

.map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 16px 36px -28px var(--shadow);
  pointer-events: auto;
  min-width: 220px;
}

.map-topbar .ghost {
  padding: 8px 16px;
}

.map-page .map-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-panel {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(7, 29, 36, 0.08);
  box-shadow: 0 20px 40px -30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}

.map-panel-header h3 {
  margin: 0 0 6px;
}

.map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(7, 29, 36, 0.7);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend-dot.good { background: #0ea5a4; }
.legend-dot.watch { background: #f59e0b; }
.legend-dot.alert { background: #ef4444; }

.map-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 4px;
}

.map-item {
  border: 1px solid rgba(7, 29, 36, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
}

.map-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(7, 29, 36, 0.65);
}

.map-item.active {
  border-color: rgba(14, 165, 164, 0.8);
  box-shadow: 0 12px 24px -18px rgba(14, 165, 164, 0.6);
}

.map-panel-footer {
  margin-top: auto;
}

.map-canvas-large {
  background: #eef4f8;
  border-radius: 24px;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(7, 29, 36, 0.08);
}

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

.map-popup {
  color: rgba(7, 29, 36, 0.6);
  font-size: 0.85rem;
}

.map-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 29, 36, 0.08);
  font-size: 0.85rem;
}

.map-preview-right {
  position: relative;
  background: linear-gradient(150deg, #e0f2fe, #fef3c7);
  border-radius: 24px;
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
}

.layer-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 16px;
  max-width: 220px;
  box-shadow: 0 12px 30px -20px var(--shadow);
}

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

.layer-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.dot.water { background: var(--sky); }
.dot.sand { background: var(--sand); }
.dot.coral { background: var(--coral); }
.dot.moss { background: var(--teal); }

.badge {
  background: var(--mint);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-preview-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 29, 36, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 29, 36, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.api-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  background: rgba(7, 29, 36, 0.9);
  color: #fff;
  padding: 30px;
  border-radius: 26px;
}

.api-code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.api-code code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1f3ff;
}

.pipeline {
  background: rgba(255, 255, 255, 0.65);
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.step {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(7, 29, 36, 0.08);
}

.step span {
  font-weight: 700;
  color: var(--teal);
  font-size: 1.1rem;
}

.cta {
  padding-bottom: 100px;
}

.cta-card {
  background: var(--ocean);
  color: #fff;
  padding: 28px 32px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer {
  padding: 40px 6vw 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
}

.footer-note {
  margin: 0;
  color: rgba(7, 29, 36, 0.6);
}

.page-hero {
  padding: 80px 6vw 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.page-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid rgba(7, 29, 36, 0.08);
  box-shadow: 0 24px 50px -35px var(--shadow);
}

.page-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(7, 29, 36, 0.72);
}

.page-card a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
}

.page-card a:hover {
  text-decoration: underline;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 29, 36, 0.08);
  font-size: 0.85rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(7, 29, 36, 0.08);
}

.data-table th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: rgba(7, 29, 36, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(7, 29, 36, 0.6);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(7, 29, 36, 0.15);
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(14, 165, 164, 0.4);
  border-color: rgba(14, 165, 164, 0.6);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 8px;
}

.note {
  font-size: 0.9rem;
  color: rgba(7, 29, 36, 0.6);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

[data-animate]:nth-of-type(2) { animation-delay: 0.15s; }
[data-animate]:nth-of-type(3) { animation-delay: 0.3s; }
[data-animate]:nth-of-type(4) { animation-delay: 0.45s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .map-page .map-shell {
    grid-template-columns: 1fr;
  }

  .map-list {
    max-height: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 10px 0 0;
    gap: 12px;
  }

  .map-overlay {
    grid-template-columns: 1fr;
    right: 16px;
    left: 16px;
  }

  .map-panel {
    max-height: 50vh;
  }

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

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

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-animate],
  .pulse {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
