:root {
  color-scheme: light;
  --bg: #f7fbff;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: #ffffff;
  --ink: #112033;
  --muted: #587087;
  --line: rgba(83, 122, 153, 0.22);
  --line-strong: rgba(36, 118, 216, 0.34);
  --blue: #2476d8;
  --cyan: #18a7c8;
  --mint: #12a976;
  --coral: #f36f63;
  --violet: #7467d9;
  --shadow: 0 28px 90px rgba(35, 76, 108, 0.16);
  --radius: 8px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,255,.96) 48%, rgba(235,245,250,.98)),
    repeating-linear-gradient(90deg, rgba(17, 32, 51, .035) 0 1px, transparent 1px 54px);
  letter-spacing: 0;
}

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

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

.geo-os-topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(22px);
}

.geo-os-brand,
.geo-os-topbar nav,
.geo-os-cta {
  display: flex;
  align-items: center;
}

.geo-os-brand {
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
}

.geo-os-brand span {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1px solid rgba(18,169,118,.38);
  background:
    linear-gradient(135deg, rgba(18,169,118,.9), rgba(36,118,216,.9)),
    #fff;
  box-shadow: 0 10px 24px rgba(36,118,216,.18);
}

.geo-os-topbar nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.geo-os-topbar nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
}

.geo-os-topbar nav a:hover,
.geo-os-topbar nav a:focus-visible {
  color: var(--blue);
}

.geo-os-cta,
.geo-os-actions a,
.geo-os-strip button {
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.geo-os-cta,
.geo-os-actions .primary {
  color: #fff;
  border-color: rgba(18, 169, 118, .58);
  background: linear-gradient(135deg, #18b889, #1488d2);
  box-shadow: 0 16px 36px rgba(20, 136, 210, .2);
}

.geo-os-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .46fr);
  align-items: end;
  gap: 28px;
  padding: 110px clamp(18px, 5vw, 68px) 46px;
  overflow: hidden;
  isolation: isolate;
}

#geoOsCanvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  background: #f7fbff;
}

.geo-os-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(247,251,255,.92));
  pointer-events: none;
}

.geo-os-fallback {
  position: absolute;
  inset: 88px 18px auto auto;
  display: none;
  max-width: 320px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper);
  box-shadow: var(--shadow);
}

body[data-geo-os-canvas="fallback"] .geo-os-fallback {
  display: grid;
  gap: 6px;
}

.geo-os-copy {
  width: min(860px, 100%);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,250,249,.78));
  box-shadow: var(--shadow);
}

.geo-os-kicker {
  margin: 0 0 12px;
  color: #087553;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 880;
  text-transform: uppercase;
}

.geo-os-copy h1,
.geo-os-section-head h2,
.geo-os-console h2 {
  margin: 0;
  color: var(--ink);
  line-height: .98;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.geo-os-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.7vw, 96px);
}

.geo-os-copy p:not(.geo-os-kicker),
.geo-os-console p,
.geo-os-grid article p {
  color: var(--muted);
  line-height: 1.7;
}

.geo-os-copy p:not(.geo-os-kicker) {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
}

.geo-os-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.geo-os-actions a {
  display: inline-flex;
  align-items: center;
}

.geo-os-actions .secondary {
  background: rgba(255,255,255,.84);
}

.geo-os-status {
  display: grid;
  gap: 10px;
}

.geo-os-status div {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
  box-shadow: 0 16px 42px rgba(35, 76, 108, .1);
}

.geo-os-status b {
  font-size: 24px;
}

.geo-os-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.geo-os-visual-rail {
  align-self: end;
  display: grid;
  gap: 12px;
}

.geo-os-video-card,
.geo-os-image-pair figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(36, 118, 216, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
}

.geo-os-video-card {
  min-height: 250px;
  isolation: isolate;
}

.geo-os-video-card video,
.geo-os-image-pair img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.geo-os-video-card video {
  position: absolute;
  inset: 0;
  filter: saturate(1.12) contrast(1.04);
}

.geo-os-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(5, 18, 31, .68)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 34px);
  pointer-events: none;
}

.geo-os-video-card figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  color: #fff;
}

.geo-os-video-card figcaption b {
  font-size: 20px;
}

.geo-os-video-card figcaption span {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.45;
}

.geo-os-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.geo-os-image-pair figure {
  min-height: 144px;
}

.geo-os-image-pair figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 7px;
  color: #fff;
  background: rgba(8, 18, 32, .62);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 820;
}

.geo-os-strip {
  position: sticky;
  top: 70px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
}

.geo-os-strip button {
  color: var(--muted);
  background: rgba(255,255,255,.72);
  cursor: pointer;
}

.geo-os-strip button.is-active {
  color: #075a45;
  border-color: rgba(18,169,118,.42);
  background: rgba(18,169,118,.1);
}

.geo-os-grid,
.geo-os-console {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.geo-os-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(54px, 7vw, 92px) 0 34px;
}

.geo-os-section-head {
  grid-column: 1 / -1;
  max-width: 880px;
  margin-bottom: 12px;
}

.geo-os-section-head h2,
.geo-os-console h2 {
  font-size: clamp(34px, 4.4vw, 64px);
}

.geo-os-grid article {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(35, 76, 108, .08);
}

.geo-os-grid article::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,169,118,.24), transparent 68%);
  pointer-events: none;
}

.geo-os-card-orbit {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(36,118,216,.18);
  border-radius: 50%;
  animation: geo-os-spin 16s linear infinite;
}

.geo-os-card-orbit::before,
.geo-os-card-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.geo-os-card-orbit::before {
  inset: 28px;
  border: 1px solid rgba(18,169,118,.22);
}

.geo-os-card-orbit::after {
  width: 10px;
  height: 10px;
  left: 20px;
  top: 38px;
  background: var(--mint);
  box-shadow: 0 0 20px rgba(18,169,118,.5);
}

@keyframes geo-os-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-os-card-orbit {
    animation: none;
  }
}

.geo-os-grid small {
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.geo-os-grid h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 1.08;
}

.geo-os-grid article a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 820;
}

.geo-os-console {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, .74fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 70px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,250,249,.76));
  box-shadow: var(--shadow);
}

.geo-os-console pre {
  min-height: 100%;
  margin: 0;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(36,118,216,.2);
  border-radius: var(--radius);
  color: #17324d;
  background: rgba(247,251,255,.88);
  font-size: 13px;
  line-height: 1.55;
}

.geo-os-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 30px 18px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.geo-os-footer span {
  color: var(--ink);
  font-weight: 840;
}

@media (max-width: 980px) {
  .geo-os-topbar {
    grid-template-columns: 1fr auto;
  }

  .geo-os-topbar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .geo-os-hero,
  .geo-os-console {
    grid-template-columns: 1fr;
  }

  .geo-os-visual-rail {
    grid-row: 1;
    margin-top: 80px;
  }

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

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

@media (max-width: 760px) {
  .geo-os-topbar {
    position: relative;
  }

  .geo-os-hero {
    min-height: auto;
    padding-top: 26px;
    align-items: start;
  }

  #geoOsCanvas {
    inset: 0 0 auto 0;
    height: 330px;
    opacity: 1;
  }

  .geo-os-hero::after {
    top: 280px;
    bottom: auto;
    height: 190px;
  }

  .geo-os-copy {
    position: relative;
    z-index: 2;
  }

  .geo-os-visual-rail {
    margin-top: 320px;
  }

  .geo-os-video-card {
    min-height: 218px;
  }

  .geo-os-image-pair {
    grid-template-columns: 1fr;
  }

  .geo-os-copy h1 {
    font-size: 44px;
  }

  .geo-os-status,
  .geo-os-grid {
    grid-template-columns: 1fr;
  }

  .geo-os-strip {
    top: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }
}
