:root {
  color-scheme: light;
  --ink: #17212f;
  --muted: #5d6a79;
  --line: #d8dde5;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --shadow: 0 22px 60px rgba(23, 33, 47, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

#top {
  scroll-margin-top: 112px;
}

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

p {
  margin: 16px 0 0;
  color: #354153;
  font-size: 1.04rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px clamp(20px, 5vw, 72px);
  background-color: rgba(230, 230, 230, 0.88);
  border-bottom: 1px solid rgba(216, 221, 229, 0.72);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand,
.nav,
.social,
.trust-row,
.action-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.social {
  gap: 8px;
}

.social-hero {
  display: none;
}

.social a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.social img {
  display: block;
  max-width: 21px;
  max-height: 21px;
}

.hero {
  min-height: 560px;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 58px);
}

.hero-inner {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  max-width: 1160px;
  min-height: inherit;
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-row {
  display: block;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.75rem, 5.6vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

@supports (font-size: 1cqw) {
  h1 {
    font-size: clamp(2.75rem, 6.4cqw, 4.7rem);
  }
}

.hero-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.lead {
  margin: 24px 0 0;
  max-width: 58ch;
  color: #354153;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #435166;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 650;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.window {
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid rgba(23, 33, 47, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f1f4f8;
}

.window-title {
  margin-left: 10px;
  color: #536174;
  font-size: 0.86rem;
  font-weight: 800;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c7ced8;
}

.astro-window {
  width: min(100%, 780px);
}

.mini-window {
  position: absolute;
  z-index: 2;
  width: 260px;
}

.fits-window {
  left: -26px;
  bottom: -8px;
}

.astrometry-window {
  right: -18px;
  top: 28px;
  bottom: auto;
  width: 286px;
}

.mini-window .window-bar {
  height: 36px;
  padding: 0 13px;
}

.mini-window .dot {
  width: 9px;
  height: 9px;
}

.mini-window .window-title {
  font-size: 0.78rem;
}

.mini-window-body {
  padding: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf4f7 100%);
}

.astro-layout {
  min-height: 360px;
  padding: 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf4f7 100%);
}

.a1-board {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr 1.28fr;
  gap: 14px;
  min-height: 316px;
}

.agent-list,
.agent-detail,
.sky-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(23, 33, 47, 0.08);
}

.agent-list,
.agent-detail {
  padding: 18px;
}

.panel-title {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #546174;
  background: #f8fafc;
  font-size: 0.82rem;
}

.agent-item.active {
  color: var(--accent-strong);
  border-color: #b7d7d2;
  background: #eefaf8;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa6b5;
}

.agent-item.active .agent-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf0f4;
  color: #546174;
  font-size: 0.84rem;
}

.form-row b {
  color: var(--ink);
  white-space: nowrap;
}

.meter {
  height: 9px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9f1;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.meter.accent span {
  background: var(--accent);
}

.sky-column {
  padding: 12px;
  background: #0b1020;
}

.star-field {
  position: relative;
  height: 100%;
  min-height: 290px;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 62%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    linear-gradient(145deg, #080d1d 0%, #17223b 54%, #102c32 100%);
}

.mini-star-field {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 26%, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 78%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    linear-gradient(145deg, #080d1d 0%, #17223b 54%, #102c32 100%);
}

.mini-star-field .nebula {
  inset: 16% 18% 18% 16%;
}

.nebula {
  position: absolute;
  inset: 20% 18% 24% 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 48%, rgba(221, 249, 244, 0.92) 0 5%, rgba(18, 129, 118, 0.46) 16%, transparent 48%),
    radial-gradient(circle at 62% 58%, rgba(37, 99, 235, 0.52), transparent 44%),
    radial-gradient(circle at 34% 62%, rgba(183, 121, 31, 0.46), transparent 42%);
  filter: blur(1px);
  transform: rotate(-18deg);
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}

.s1 { left: 18%; top: 24%; }
.s2 { left: 72%; top: 34%; }
.s3 { left: 46%; top: 76%; }
.s4 { left: 84%; top: 66%; }
.s5 { left: 30%; top: 46%; }

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(223, 246, 240, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(223, 246, 240, 0.72);
}

.crosshair::before {
  left: 50%;
  top: -18px;
  width: 1px;
  height: 122px;
}

.crosshair::after {
  left: -18px;
  top: 50%;
  width: 122px;
  height: 1px;
}

.solve-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf0f4;
  color: #546174;
  font-size: 0.84rem;
}

.solve-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.solve-row b {
  color: var(--ink);
  white-space: nowrap;
}

section {
  scroll-margin-top: 96px;
  padding: clamp(44px, 6vw, 78px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: white;
}

section.alt {
  background: rgba(230, 230, 230, 0.88);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.indigo-logo-panel {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
}

.indigo-logo-panel img {
  display: block;
  width: min(100%, 170px);
  height: auto;
}

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

.section-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 34px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-content::after {
  content: "";
  display: block;
  clear: both;
}

.screenshot-window {
  float: right;
  width: 150px;
  margin: 0 0 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 47, 0.1);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(23, 33, 47, 0.13);
  cursor: zoom-in;
}

.screenshot-window:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.32);
  outline-offset: 4px;
}

.screenshot-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f1f4f8;
}

.screenshot-window-bar .dot {
  width: 8px;
  height: 8px;
}

.screenshot-window-bar .window-title {
  font-size: 0.76rem;
}

.preview-art {
  display: grid;
  gap: 4px;
  height: 86px;
  padding: 7px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf4f7 100%);
}

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

.preview-control {
  grid-template-columns: repeat(3, 1fr);
}

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

.preview-fits {
  padding: 0;
}

.preview-art > span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.preview-art > span:not(.sky-mini)::before,
.preview-art > span:not(.sky-mini)::after {
  content: "";
  display: block;
  height: 5px;
  margin: 9px 8px 0;
  border-radius: 999px;
  background: #d8dee8;
  box-shadow: 0 13px 0 #e5eaf1, 0 26px 0 #edf1f6;
}

.preview-art > span:not(.sky-mini)::after {
  width: 58%;
  margin-top: 39px;
  box-shadow: none;
}

.sky-mini {
  position: relative;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 76%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 48%, rgba(221, 249, 244, 0.72) 0 5%, rgba(18, 129, 118, 0.34) 18%, transparent 44%),
    radial-gradient(circle at 62% 58%, rgba(37, 99, 235, 0.42), transparent 38%),
    linear-gradient(145deg, #080d1d 0%, #17223b 54%, #102c32 100%) !important;
}

.product-shot {
  display: none;
  width: 100%;
  height: 86px;
  object-fit: cover;
  object-position: top center;
}

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

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.action-row {
  clear: both;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.store-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 150px;
  height: 50px;
  border-radius: 8px;
}

.store-link:hover,
.icon-link:hover {
  opacity: 0.88;
}

.store-link img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.download-link img {
  object-position: left center;
}

.icon-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 150px;
  height: 50px;
  border-radius: 8px;
}

.icon-link img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: rgba(247, 248, 251, 0.88);
  border-top: 1px solid rgba(216, 221, 229, 0.72);
}

.footer-developer,
.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-copyright {
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  background: rgba(23, 33, 47, 0.72);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-image {
  display: block;
  max-width: min(1100px, 100%);
  max-height: min(760px, 86vh);
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: white;
  background: rgba(23, 33, 47, 0.42);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(23, 33, 47, 0.7);
}

.download-hero {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 58px);
  background: var(--paper);
}

.downloads-section {
  background: white;
}

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

.download-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.download-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.download-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.download-card-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.release-list {
  max-height: 430px;
  overflow: auto;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 104px minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 11px 22px;
  border-top: 1px solid #edf0f4;
  color: var(--muted);
  font-size: 0.92rem;
}

.release-row:first-child {
  border-top: 0;
}

.release-name {
  color: var(--ink);
  font-weight: 650;
}

.release-date {
  white-space: nowrap;
}

.release-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.release-actions a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  border-top: 0;
  min-height: calc(100vh - 101px);
}

.legal-content {
  max-width: 820px;
}

.legal-content h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.legal-content h3 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: #354153;
  font-size: 1.04rem;
}

.legal-content ul {
  margin: 18px 0 0;
  padding-left: 24px;
}

.policy-section {
  scroll-margin-top: 128px;
  padding-top: 20px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

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

.support-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.support-block h3 {
  margin: 0;
  font-size: 1.08rem;
}

.support-block p,
.support-block li {
  color: var(--muted);
}

.support-block p {
  margin: 10px 0 0;
}

.support-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.support-faq {
  grid-column: 1 / -1;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 16px 0 0;
}

.faq-item dt {
  color: var(--ink);
  font-weight: 750;
}

.faq-item dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.support-contact-line {
  margin: 22px 0 0;
  color: var(--muted);
}

.support-contact {
  display: inline;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-inner {
    align-items: center;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .footer-copyright {
    text-align: left;
  }

  .feature-grid,
  .download-grid,
  .support-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .two-column {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .lead {
    max-width: none;
  }

  .product-visual,
  .indigo-logo-panel {
    display: none;
  }

  .social-toolbar {
    display: none;
  }

  .social-hero {
    display: flex;
    flex: 0 0 auto;
  }

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

  .hero-meta-row .eyebrow {
    margin-bottom: 0;
  }

}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-heading-row {
    flex-wrap: wrap;
  }

  .panel-title {
    margin-bottom: 10px;
  }

  .feature-grid,
  .support-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .screenshot-window {
    float: none;
    width: 100%;
    margin: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
  }

  .screenshot-window-bar {
    display: none;
  }

  .preview-art {
    display: none;
  }

  .product-shot {
    display: block;
    height: auto;
    max-height: none;
    border-radius: 6px;
  }

  .action-row {
    flex-wrap: wrap;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .release-actions {
    justify-content: flex-start;
  }
}
