:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5c6c7e;
  --line: #d7dee7;
  --panel: #ffffff;
  --surface: #f4f7fb;
  --teal: #0e8f84;
  --teal-dark: #0a6d65;
  --coral: #df5a3f;
  --amber: #b77918;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: #ffffff;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.08);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.16);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.74;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: currentColor;
  font-size: 0.95rem;
}

.nav-links a,
.header-signin,
.header-download,
.language-option {
  opacity: 0.86;
}

.nav-links a:hover,
.header-signin:hover,
.header-download:hover,
.language-option:hover {
  opacity: 1;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-profile[hidden] {
  display: none;
}

.header-download {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
}

.header-signin {
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 9px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  z-index: 18;
  top: 66px;
  right: 14px;
  display: grid;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 800;
}

.mobile-menu a:hover {
  background: #eef2f7;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 3px;
}

.language-option {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-option.active {
  background: #ffffff;
  color: var(--ink);
  opacity: 1;
}

.site-header[data-scrolled="true"] .language-option.active {
  background: var(--ink);
  color: #ffffff;
}

.header-profile .profile-avatar-button {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #dbeafe;
  color: var(--blue);
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.16);
}

.site-header[data-scrolled="true"] .header-profile .profile-avatar-button {
  border-color: rgba(16, 32, 51, 0.14);
}

.header-profile .profile-dropdown {
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  min-width: 260px;
}

.profile-menu-card {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 4px 8px 10px;
  color: var(--ink);
}

.profile-menu-card strong,
.profile-menu-card span,
.profile-menu-card em {
  display: block;
  overflow-wrap: anywhere;
}

.profile-menu-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-menu-card em {
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.profile-action-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 90px 18px 24px;
  background: rgba(16, 32, 51, 0.38);
}

.profile-action-overlay[hidden] {
  display: none;
}

.profile-action-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100svh - 120px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.profile-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: #173250;
  padding: 118px clamp(18px, 7vw, 92px) 72px;
}

#mapCanvas,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#mapCanvas {
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 28, 44, 0.84), rgba(12, 28, 44, 0.58) 48%, rgba(12, 28, 44, 0.2)),
    linear-gradient(0deg, rgba(16, 32, 51, 0.7), rgba(16, 32, 51, 0.02) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #ffba8f;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

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

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(14, 143, 132, 0.25);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(16, 32, 51, 0.1);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-demo-button {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.hero-demo-button:visited {
  color: #ffffff !important;
}

.hero-demo-button:hover,
.hero-demo-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(4, 17, 33, 0.22);
}

.button.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats > span {
  display: inline-flex;
  flex-direction: column;
  min-width: 156px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  color: #ffffff;
}

.hero-stats small {
  color: inherit;
  font-size: inherit;
}

.product-strip {
  padding: 0 clamp(18px, 7vw, 92px) 38px;
  margin-top: -38px;
  position: relative;
  z-index: 3;
}

.app-preview {
  display: grid;
  grid-template-columns: minmax(126px, 180px) 1fr;
  width: min(1120px, 100%);
  min-height: 286px;
  margin: 0 auto;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #102033;
  color: #ffffff;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.window-dot.red {
  background: var(--coral);
}

.window-dot.gold {
  background: #f2b84b;
}

.window-dot.green {
  background: #30b981;
}

.preview-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.preview-product img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.preview-nav {
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.preview-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(2px);
}

.preview-nav.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.preview-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 20px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-weight: 800;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #ecfdf7;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.map-panel {
  position: relative;
  display: block;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    #f8fbff;
  background-size: 38px 38px;
}

.map-line {
  position: absolute;
  display: block;
  height: 6px;
  border-radius: 999px;
  transform-origin: left center;
}

.line-a {
  width: 58%;
  left: 8%;
  top: 54%;
  background: var(--teal);
  transform: rotate(-13deg);
}

.line-b {
  width: 44%;
  left: 28%;
  top: 36%;
  background: var(--blue);
  transform: rotate(18deg);
}

.line-c {
  width: 36%;
  left: 51%;
  top: 67%;
  background: var(--amber);
  transform: rotate(-22deg);
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.2);
}

.pin-a {
  left: 14%;
  top: 48%;
  background: var(--coral);
}

.pin-b {
  left: 56%;
  top: 29%;
  background: var(--blue);
}

.pin-c {
  left: 80%;
  top: 62%;
  background: var(--teal);
}

.preview-panel {
  display: grid;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbff;
}

.coordinate-demo {
  grid-template-columns: minmax(180px, 0.85fr) 1fr;
  gap: 18px;
  padding: 16px;
}

.coordinate-form {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-field {
  display: grid;
  gap: 5px;
}

.mini-field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-field strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.94rem;
}

.convert-arrow {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
}

.coordinate-map {
  position: relative;
  min-height: 158px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 143, 132, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 143, 132, 0.12) 1px, transparent 1px),
    #ffffff;
  background-size: 32px 32px;
}

.coordinate-map::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 52%;
  width: 72%;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(-17deg);
}

.coordinate-map::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 37%;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.18);
}

.raster-demo {
  grid-template-columns: 1fr minmax(170px, 0.45fr);
  gap: 18px;
  padding: 16px;
}

.raster-map {
  position: relative;
  min-height: 158px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.45), transparent 32%),
    linear-gradient(45deg, rgba(14, 143, 132, 0.78), transparent 44%),
    linear-gradient(160deg, transparent 46%, rgba(183, 121, 24, 0.7) 47%, rgba(183, 121, 24, 0.25)),
    #dfeaf5;
}

.raster-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 34px 34px;
}

.raster-map::after {
  content: "";
  position: absolute;
  left: 19%;
  top: 25%;
  width: 22px;
  height: 22px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.2);
}

.layer-stack {
  display: grid;
  gap: 10px;
  align-content: center;
}

.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.layer-row span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.layer-row:nth-child(1) span {
  background: var(--teal);
}

.layer-row:nth-child(2) span {
  background: var(--blue);
}

.layer-row:nth-child(3) span {
  background: var(--amber);
}

.vector-demo {
  gap: 16px;
  padding: 16px;
}

.vector-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.file-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.file-card strong,
.file-card span {
  display: block;
}

.file-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.vector-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vector-status span {
  border-radius: 8px;
  padding: 10px;
  background: #eef7f7;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
}

.dashboard-demo {
  gap: 16px;
  padding: 16px;
  background: #f8fbff;
}

.preview-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.preview-hero-card h3,
.preview-hero-card p {
  margin: 0;
}

.preview-hero-card p:not(.mini-label) {
  margin-top: 6px;
  color: var(--muted);
}

.preview-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-tool-card {
  position: relative;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 15px 54px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.preview-tool-card:hover {
  border-color: rgba(14, 143, 132, 0.45);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.09);
  transform: translateY(-2px);
}

.preview-tool-card span,
.mini-label {
  display: block;
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-tool-card strong {
  display: block;
  padding-right: 12px;
  font-size: 1rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.preview-tool-card::after {
  content: attr(data-state);
  position: absolute;
  left: 15px;
  bottom: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ecfdf7;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.preview-tool-card.used::after {
  background: #eef2f7;
  color: var(--muted);
}

.mini-app-panel {
  gap: 16px;
  padding: 16px;
  background: #f8fbff;
}

.crs-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crs-field {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  margin: 0;
}

.crs-field legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 4px;
}

.crs-field label {
  display: grid;
  gap: 5px;
}

.crs-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.13);
}

.mini-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-toolbar > div,
.mini-form,
.result-table,
.file-card,
.gcp-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-toolbar > div {
  padding: 12px;
}

.mini-toolbar strong {
  display: block;
}

.mini-route,
.convert-arrow,
.flow-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.coordinate-workbench,
.raster-workbench,
.vector-workbench {
  display: grid;
  gap: 14px;
}

.coordinate-workbench {
  grid-template-columns: minmax(220px, 0.74fr) 1fr;
}

.mini-form {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.mini-form label {
  display: grid;
  gap: 6px;
}

.mini-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.mini-form input {
  min-height: 40px;
}

.drop-zone {
  display: grid;
  gap: 6px;
  border: 1px dashed #b9c6d8;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--teal);
  background: #f0fbf9;
  box-shadow: 0 12px 26px rgba(14, 143, 132, 0.12);
}

.drop-zone input[type="file"] {
  display: none;
}

.drop-zone strong {
  color: var(--ink);
}

.drop-zone span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-drop {
  padding: 13px 16px;
}

.raster-upload-row {
  display: grid;
}

.result-table {
  min-height: 206px;
  padding: 14px;
  overflow: auto;
}

.result-table.compact {
  min-height: 0;
}

.empty-result {
  display: grid;
  place-items: center;
  min-height: 100%;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.mini-result {
  border-radius: 8px;
  padding: 12px;
  background: #ecfdf7;
  color: var(--ink);
}

.mini-result.error {
  background: #fff3ed;
  color: #9d331e;
}

.mini-result table {
  width: 100%;
  border-collapse: collapse;
}

.mini-result th,
.mini-result td {
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.mini-result tr:last-child th,
.mini-result tr:last-child td {
  border-bottom: 0;
}

.mini-result th {
  width: 34%;
  color: var(--muted);
  font-size: 0.86rem;
}

.raster-workbench {
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.7fr);
}

.raster-canvas-wrap {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  min-width: 0;
}

.raster-canvas-wrap canvas {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.raster-result-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: 14px;
}

.raster-canvas {
  position: relative;
  min-height: 224px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.48), transparent 34%),
    linear-gradient(45deg, rgba(14, 143, 132, 0.72), transparent 46%),
    linear-gradient(160deg, transparent 45%, rgba(183, 121, 24, 0.65) 46%, rgba(183, 121, 24, 0.24)),
    #dfeaf5;
}

.raster-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 36px 36px;
}

.gcp-point {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.18);
}

.gcp-a {
  left: 18%;
  top: 21%;
}

.gcp-b {
  right: 18%;
  top: 25%;
  background: var(--blue);
}

.gcp-c {
  left: 22%;
  bottom: 19%;
  background: var(--teal);
}

.gcp-table {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
}

.gcp-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1fr;
  gap: 8px;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.editable-gcp input {
  width: 100%;
  min-height: 34px;
  padding: 6px 7px;
  font-size: 0.84rem;
}

.editable-gcp span:nth-child(2),
.editable-gcp span:nth-child(3),
.editable-gcp span:nth-child(4) {
  display: block;
}

.gcp-row.header {
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.vector-workbench {
  grid-template-columns: 1fr 1fr;
}

.file-card {
  padding: 14px;
}

.file-card textarea,
.file-card pre {
  width: 100%;
  min-height: 214px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vector-drop {
  min-height: 104px;
}

.vector-drop strong {
  font-size: 1.05rem;
}

.file-card pre {
  max-height: 260px;
  overflow: auto;
}

.file-card textarea {
  resize: vertical;
}

.vector-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.vector-actions span {
  color: var(--muted);
  font-weight: 800;
}

.preview-gate {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 32, 51, 0.54);
  backdrop-filter: blur(8px);
}

.preview-gate[hidden] {
  display: none;
}

.preview-gate-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.24);
}

.preview-gate-card h3,
.preview-gate-card p {
  margin: 0;
}

.preview-gate-card p:not(.mini-label) {
  margin-top: 10px;
  color: var(--muted);
}

.preview-gate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.preview-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.download-focus {
  animation: downloadFocus 1.2s ease 2;
}

@keyframes downloadFocus {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
  }

  50% {
    border-color: rgba(14, 143, 132, 0.6);
    box-shadow: 0 16px 34px rgba(14, 143, 132, 0.2);
  }
}

.section {
  padding: 76px clamp(18px, 7vw, 92px);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.auth-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.feature-card img {
  aspect-ratio: 340 / 172;
  border-radius: 8px;
  background: #f8fafc;
  object-fit: cover;
}

.feature-card p,
.download-section p {
  margin: 0;
  color: var(--muted);
}

.screenshots-section,
.tunisia-section {
  background: #ffffff;
}

.screenshot-grid,
.workflow-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  cursor: zoom-in;
  object-fit: cover;
}

.screenshot-card img:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -4px;
}

.screenshot-card figcaption {
  padding: 14px;
  color: var(--ink);
  font-weight: 800;
}

body.screenshot-lightbox-open {
  overflow: hidden;
}

.screenshot-lightbox {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(10, 23, 37, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
  visibility: hidden;
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.screenshot-lightbox-dialog {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(1480px, 96vw);
  max-height: 92svh;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(12px) scale(0.975);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.screenshot-lightbox.is-open .screenshot-lightbox-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.screenshot-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(92svh - 76px);
  border-radius: 8px;
  object-fit: contain;
}

.screenshot-lightbox-caption {
  margin: 0;
  padding: 0 4px 2px;
  color: var(--ink);
  font-weight: 800;
}

.screenshot-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 32, 51, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.18);
}

.screenshot-lightbox-close:hover,
.screenshot-lightbox-close:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.18);
  outline: none;
}

.workflow-section,
.pricing-section,
.testimonials-section {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.workflow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-grid li {
  display: grid;
  gap: 10px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.workflow-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
}

.workflow-grid span,
.use-case-grid span {
  color: var(--ink);
  font-weight: 800;
}

.public-plan-grid {
  width: min(1040px, 100%);
}

.public-plan-grid .plan-card {
  padding: 20px;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.plan-description,
.pricing-note {
  color: var(--muted);
}

.plan-module-list {
  display: grid;
  gap: 7px;
  margin: 4px 0;
}

.plan-module-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-module-list span.available {
  color: var(--teal-dark);
}

.pricing-note {
  margin: 18px 0 0;
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-case-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.account-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.account-section .section-heading {
  margin-inline: auto;
  text-align: center;
}

.account-layout {
  display: grid;
  width: min(680px, 100%);
  margin-inline: auto;
}

.auth-panel {
  padding: 24px;
}

.account-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.account-highlights span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(14, 143, 132, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ecfdf7;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.health-badge.online {
  background: #ecfdf7;
  color: var(--teal-dark);
}

.health-badge.offline {
  background: #fff3ed;
  color: #a33b27;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.13);
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.13);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-action-panel[hidden] {
  display: none;
}

.profile-menu-shell {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-button,
.profile-avatar-preview {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 0;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--blue);
  cursor: pointer;
  overflow: hidden;
  font-weight: 900;
}

.profile-avatar-button {
  border: 2px solid transparent;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.profile-avatar-button:hover,
.profile-avatar-button:focus-visible,
.profile-avatar-button[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.13);
  transform: translateY(-1px);
  outline: none;
}

.profile-avatar-button img,
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 198px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.16);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown button,
.profile-dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.profile-dropdown button:hover,
.profile-dropdown a:hover {
  background: #eef2f7;
}

.profile-dropdown button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.64;
}

.plan-card .button[disabled] {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.profile-action-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.profile-workspace {
  display: grid;
  gap: 14px;
}

.profile-workspace h3,
.profile-workspace p {
  margin: 0;
}

.profile-muted {
  color: var(--muted);
}

.profile-edit-grid {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-preview {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  font-size: 2rem;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.plan-top span {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.plan-price {
  min-height: 38px;
  border: 1px solid rgba(14, 143, 132, 0.28);
  border-radius: 8px;
  background: #ecfdf7;
  color: var(--teal-dark);
  font-weight: 900;
}

.plan-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-instructions {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.payment-instructions span,
.payment-instructions small {
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef2f7;
  padding: 5px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-field a,
.text-button {
  color: var(--teal-dark);
  font-weight: 800;
}

.text-button {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-copy {
  color: var(--muted);
}

.tabs.verification-only {
  grid-template-columns: 1fr;
}

.tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(16, 32, 51, 0.08);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.password-row:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 143, 132, 0.13);
}

.password-row input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.toggle-password {
  min-width: 72px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

meter {
  width: 100%;
  height: 10px;
  margin: 0 0 18px;
}

.form-message {
  display: none;
  margin-top: 16px;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef2f7;
  color: var(--ink);
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #ecfdf7;
  color: var(--teal-dark);
}

.form-message.error {
  background: #fff3ed;
  color: #9d331e;
}

.support-section {
  background: #ffffff;
}

.support-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.support-card strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  overflow-wrap: anywhere;
}

.support-card p:not(.panel-label) {
  margin: 0;
  color: var(--muted);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.support-form {
  display: grid;
  gap: 2px;
}

.two-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-grid,
.module-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stat,
.module-access-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.dashboard-stat span,
.module-access-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-stat strong,
.module-access-item strong {
  color: var(--ink);
}

.module-access-item.available strong {
  color: var(--teal-dark);
}

.module-access-item.locked strong,
.danger-copy {
  color: #9d331e;
}

.danger-panel {
  border: 1px solid rgba(223, 90, 63, 0.35);
  border-radius: 8px;
  padding: 14px;
  background: #fff8f5;
}

.button.danger {
  background: var(--coral);
  color: #ffffff;
}

.phone-actions .button {
  flex: 1 1 170px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.download-panel strong,
.download-panel span {
  display: block;
}

.download-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px clamp(18px, 7vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--teal-dark);
}

.seo-page {
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface) 280px),
    var(--surface);
}

.seo-page .site-header {
  position: sticky;
}

.seo-main {
  display: grid;
  gap: 34px;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0 86px;
}

.seo-hero {
  display: grid;
  gap: 16px;
  padding: 38px 0 10px;
}

.seo-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1.02;
}

.seo-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seo-card,
.faq-list article,
.policy-content article {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.08);
}

.seo-card h2,
.faq-list h2,
.policy-content h2 {
  margin: 0;
  font-size: 1.14rem;
}

.seo-card p,
.faq-list p,
.policy-content p {
  margin: 0;
  color: var(--muted);
}

.seo-card .button {
  justify-self: start;
  margin-top: 8px;
}

.faq-list,
.policy-content {
  display: grid;
  gap: 16px;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #55e6ba, var(--coral));
  box-shadow: 0 0 14px rgba(14, 143, 132, 0.55);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 100ms linear;
}

.public-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-header-actions .language-switch {
  border-color: rgba(16, 32, 51, 0.12);
}

:root {
  --map-motion-opacity: 0.88;
  --map-motion-opacity-soft: 0.76;
  --map-motion-opacity-medium: 0.82;
  --map-motion-opacity-seo: 0.7;
  --map-motion-grid: rgba(37, 99, 235, 0.1);
  --map-motion-route-first: rgba(10, 109, 101, 0.52);
  --map-motion-route-second: rgba(199, 70, 45, 0.38);
  --map-motion-pin-fill: rgba(37, 99, 235, 0.38);
  --map-motion-pin-stroke: rgba(10, 109, 101, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --map-motion-opacity: 0.68;
    --map-motion-opacity-soft: 0.56;
    --map-motion-opacity-medium: 0.62;
    --map-motion-opacity-seo: 0.5;
    --map-motion-grid: rgba(37, 99, 235, 0.045);
    --map-motion-route-first: rgba(14, 143, 132, 0.26);
    --map-motion-route-second: rgba(223, 90, 63, 0.18);
    --map-motion-pin-fill: rgba(37, 99, 235, 0.22);
    --map-motion-pin-stroke: rgba(14, 143, 132, 0.5);
  }
}

.map-motion-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.map-motion-host > :not(.section-map-motion) {
  position: relative;
  z-index: 1;
}

.section-map-motion {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--map-motion-opacity);
  background-image:
    linear-gradient(var(--map-motion-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-motion-grid) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: ambient-grid-drift 24s linear infinite;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.section-map-motion svg {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.ambient-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  stroke-dasharray: 18 16;
  animation: ambient-route-flow 18s linear infinite;
}

.ambient-route-first {
  stroke: var(--map-motion-route-first);
}

.ambient-route-second {
  stroke: var(--map-motion-route-second);
  animation-duration: 24s;
  animation-direction: reverse;
}

.ambient-pin {
  fill: var(--map-motion-pin-fill);
  stroke: var(--map-motion-pin-stroke);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: ambient-pin-pulse 3.6s ease-in-out infinite;
}

.ambient-pin-2 {
  animation-delay: 900ms;
}

.ambient-pin-3 {
  animation-delay: 1800ms;
}

.ambient-pin-4 {
  animation-delay: 2700ms;
}

.section-map-motion-2 {
  opacity: var(--map-motion-opacity-soft);
}

.section-map-motion-3 {
  opacity: var(--map-motion-opacity-medium);
}

.seo-page .section-map-motion {
  opacity: var(--map-motion-opacity-seo);
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card,
.screenshot-card,
.workflow-grid li,
.plan-card,
.use-case-grid span,
.support-card,
.download-panel,
.seo-card,
.faq-list article,
.policy-content article {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-card:hover,
.screenshot-card:hover,
.workflow-grid li:hover,
.plan-card:hover,
.use-case-grid span:hover,
.support-card:hover,
.seo-card:hover,
.faq-list article:hover,
.policy-content article:hover {
  border-color: rgba(14, 143, 132, 0.34);
  box-shadow: 0 20px 42px rgba(16, 32, 51, 0.13);
  transform: translateY(-6px);
}

.screenshot-card img {
  transition: transform 420ms ease;
}

.screenshot-card:hover img {
  transform: scale(1.035);
}

.hero {
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 1;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  content: "";
  filter: blur(12px);
  opacity: 0.3;
  pointer-events: none;
}

.hero::before {
  top: 16%;
  right: 8%;
  background: radial-gradient(circle, rgba(85, 230, 186, 0.6), transparent 68%);
  transform: translate(calc(var(--hero-pointer-x, 0) * 18px), calc(var(--hero-pointer-y, 0) * 18px));
}

.hero::after {
  bottom: 0;
  left: 32%;
  background: radial-gradient(circle, rgba(223, 90, 63, 0.45), transparent 68%);
  transform: translate(calc(var(--hero-pointer-x, 0) * -14px), calc(var(--hero-pointer-y, 0) * -14px));
}

.hero-overlay,
.hero-content {
  z-index: 2;
}

@keyframes ambient-grid-drift {
  to {
    background-position: 58px 58px;
  }
}

@keyframes ambient-route-flow {
  to {
    stroke-dashoffset: -170;
  }
}

@keyframes ambient-pin-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.36);
  }
}

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .account-layout,
  .support-layout,
  .download-section,
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand small,
  .header-download,
  .header-signin {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding: 96px 18px 54px;
  }

  .hero-stats span {
    width: 100%;
  }

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

  .account-highlights {
    grid-template-columns: 1fr;
  }

  .screenshot-grid,
  .workflow-grid,
  .two-field-grid,
  .dashboard-grid,
  .module-access-grid {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .window-dot {
    display: none;
  }

  .window-controls {
    display: none;
  }

  .preview-product {
    flex: 1 1 100%;
    margin: 0;
  }

  .preview-nav {
    flex: 1 1 120px;
    text-align: center;
  }

  .coordinate-demo,
  .raster-demo,
  .vector-flow,
  .vector-status,
  .preview-tool-grid,
  .mini-toolbar,
  .crs-bar,
  .coordinate-workbench,
  .raster-workbench,
  .vector-workbench,
  .raster-result-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow,
  .convert-arrow,
  .mini-route {
    transform: rotate(90deg);
  }

  .preview-hero-card,
  .vector-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gcp-row {
    grid-template-columns: 1fr;
  }

  .profile-edit-grid {
    align-items: flex-start;
  }

  .section {
    padding: 58px 18px;
  }

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

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

  .download-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .seo-main {
    padding-top: 42px;
  }
}
