: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;
}

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-download,
.language-option {
  opacity: 0.86;
}

.nav-links a: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;
}

.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);
}

.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;
}

.crs-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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,
.connection-panel,
.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);
}

.account-section {
  background: #ffffff;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  align-items: start;
}

.connection-panel,
.auth-panel {
  padding: 20px;
}

.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;
}

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(2, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef2f7;
  padding: 5px;
}

.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;
}

.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;
}

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

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

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

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

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

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

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

  .app-preview {
    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;
  }
}
