/* Astrodyne public marketplace — Asale-aligned light design system.
   Self-contained (does not depend on the legacy dark landing styles).
   Brand: Astrodyne orange primary, cyan secondary, orbit mark. */

:root {
  --bg: #f9f9fc;
  --bg-2: #ededf3;
  --card: #ffffff;
  --ink: #16171c;
  --ink-2: #3b3e46;
  --muted: #6b6f7b;
  --line: rgba(22, 23, 28, 0.09);
  --line-2: rgba(22, 23, 28, 0.16);
  --accent: #e8913e;
  --accent-hover: #d97b25;
  --accent-soft: rgba(232, 145, 62, 0.12);
  --cyan: #2d8fa3;
  --cyan-soft: rgba(45, 143, 163, 0.12);
  --good: #0a7d5c;
  --warn: #b8791a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 44px -28px rgba(22, 23, 28, 0.28);
  --container: 1152px;
  --track: -0.02em;
  --t-hero: clamp(2.5rem, 1.4rem + 4vw, 4rem);
  --t-h: clamp(1.625rem, 1.1rem + 1.9vw, 2.5rem);
  --font: 'Geist', 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.004em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }
img, svg { display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.dim { color: var(--muted); }

/* ── Orbit mark (self-contained; replaces the legacy .ad-brand-mark CSS) ── */
.orbit-mark { display: inline-block; flex: 0 0 auto; overflow: visible; }
.orbit-mark .orbit-ring { stroke: rgba(22, 23, 28, 0.32); stroke-width: 1.5; }
.orbit-mark .orbit-core { fill: var(--accent); }
.orbit-mark .orbit-sat { fill: var(--cyan); }

/* Shared Astrodyne orbit mark component (self-contained so the public site
   no longer depends on the legacy dark landing stylesheet). */
.ad-brand-mark { width: var(--ad-brand-mark-size, 32px); height: var(--ad-brand-mark-size, 32px); display: inline-block; flex: 0 0 auto; vertical-align: middle; overflow: visible; }
.ad-brand-mark__ring { stroke: rgba(22, 23, 28, 0.34); stroke-width: 1.5; fill: none; }
.ad-brand-mark__core { fill: var(--accent); }
.ad-brand-mark__satellite-static, .ad-brand-mark__satellite-motion { fill: var(--cyan); }
.ad-brand-mark:not(.ad-brand-mark--static) .ad-brand-mark__satellite-static { opacity: 0; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(249, 249, 252, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 7px 11px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(22,23,28,0.04); }
.nav-link[aria-current="page"] { color: var(--ink); background: rgba(22,23,28,0.06); }
.nav-link.disabled { color: var(--muted); cursor: default; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  line-height: 1.2; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(22,23,28,0.04); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(28rem, 68svh, 40rem);
  display: flex; align-items: center;
  padding: 72px 0 112px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 480px at 78% 18%, rgba(232,145,62,0.07), transparent 60%),
    radial-gradient(620px 420px at 12% 12%, rgba(45,143,163,0.06), transparent 58%);
}
.hero-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.hero-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-hover); margin: 0 0 16px; }
.hero h1 {
  max-width: 16ch; margin: 0; font-size: var(--t-hero); font-weight: 600;
  line-height: 1.13; letter-spacing: -0.035em; color: var(--ink);
}
.hero p.lede { max-width: 56ch; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ── Sections ── */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: var(--t-h); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.section-head .sub { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(22,23,28,0.03);
}
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.card-hover { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.dev-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dev-split > * { min-width: 0; }

/* ── Model cards ── */
.model-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.model-card .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.model-card h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; }
.model-card .meta { font-size: 13px; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.badge-soft { background: var(--accent-soft); color: var(--accent-hover); }
.badge-cyan { background: var(--cyan-soft); color: var(--cyan); }

/* ── Steps / FAQ ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 20px 20px 20px 56px; }
.step .n {
  position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0; font-weight: 600;
  font-size: 16px; position: relative;
}
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-size: 20px; color: var(--muted); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 0 20px; font-size: 15px; color: var(--ink-2); max-width: 72ch; }

/* ── Code ── */
.code {
  background: #0f1117; color: #d7dce4; border-radius: 12px; padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; max-width: 100%;
}

/* ── Footer ── */
.footer {
  margin-top: 40px; background: #141518; color: #f2f2f5; border-radius: 32px 32px 0 0;
  padding: 48px 0 28px;
}
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer p.dim { color: #9aa0aa; font-size: 14px; max-width: 34ch; }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #f2f2f5; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer .col a { color: #9aa0aa; font-size: 14px; }
.footer .col a:hover { color: #fff; }
.footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); color: #6b6f7b; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dev-split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 12px; }
  .nav-actions { margin-left: auto; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .site-nav-inner { padding: 0 12px; gap: 12px; }
  .nav-toggle { flex: 0 0 38px; }
  .nav-actions { gap: 6px; }
  .btn-sm { padding: 7px 10px; font-size: 12px; }
  .hero { min-height: auto; padding: 56px 0 80px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
