/* Orion Interstellar shared site styles.
   Dark "interstellar" identity, floating pill nav, centered heroes, card system.
   Per-page accent is set by a body class (.app-home / .app-hh / .app-sf / .app-em / .app-sn). */

:root {
  --bg: #1a1918;
  --bg-2: #211f1e;
  --surface: #26231f;
  --surface-2: #2e2a26;
  --text: #f4f3f2;
  --muted: #a8a3a0;
  --faint: #6f6a66;
  --border: rgba(244, 243, 242, 0.12);
  --border-2: rgba(244, 243, 242, 0.18);
  /* default accent = Orion blue (home) */
  --accent: #8aa0f8;
  --accent-2: #b3c1fb;
  --on-accent: #15130f;
  --maxw: 1140px;
  --maxw-narrow: 820px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* per-app accents */
.app-home { --accent: #8aa0f8; --accent-2: #b3c1fb; --on-accent: #15130f; }
.app-hh   { --accent: #f0472b; --accent-2: #ff7a5f; --on-accent: #ffffff; }
.app-sf   { --accent: #34d399; --accent-2: #d7f24b; --on-accent: #06231a; }
.app-em   { --accent: #f0922f; --accent-2: #f8b45f; --on-accent: #241d06; }
.app-sn   { --accent: #eab012; --accent-2: #f6cf5c; --on-accent: #241d06; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- starfield ---------- */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 620px at 72% -12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(900px 520px at 8% 112%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}
.stars::after { content: ""; position: absolute; inset: 0; opacity: .5; background-repeat: no-repeat;
  background-image:
    radial-gradient(1px 1px at 18% 24%, #fff, transparent),
    radial-gradient(1px 1px at 78% 16%, #fff, transparent),
    radial-gradient(1px 1px at 46% 62%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 86% 66%, #cfe, transparent),
    radial-gradient(1px 1px at 62% 40%, #fff, transparent),
    radial-gradient(1px 1px at 28% 82%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 92% 30%, #fff, transparent),
    radial-gradient(1px 1px at 12% 58%, #fff, transparent);
}

.page { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: var(--maxw-narrow); }

/* ---------- floating pill nav ---------- */
.nav-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 50;
  padding-inline: 16px; margin-top: 18px; }
.nav { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  justify-content: space-between; padding: 9px 9px 9px 18px; border-radius: 999px;
  background: rgba(31, 29, 27, 0.72); border: 1px solid var(--border-2);
  box-shadow: 0 10px 34px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.2px; }
.nav-brand img { width: 30px; height: 30px; display: block; }
.nav-brand span { font-size: 15.5px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; transition: color .18s ease, background .18s ease; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { color: var(--on-accent) !important; font-weight: 600 !important;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav-cta:hover { filter: brightness(1.05); }

/* apps dropdown (built by site.js, replaces the See-the-apps link) */
.nav-apps { position: relative; display: inline-flex; }
.nav-apps-btn { border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center;
  gap: 7px; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; }
.nav-apps-btn .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-apps.open .nav-apps-btn .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; min-width: 232px;
  background: rgba(31, 29, 27, 0.92); border: 1px solid var(--border-2); border-radius: 16px; padding: 7px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5); display: none; flex-direction: column; gap: 2px; }
.nav-apps.open .nav-menu { display: flex; }
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .nav-menu { -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
}
.nav-menu-item { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--muted);
  font-size: 14.5px; font-weight: 500; padding: 9px 12px; border-radius: 11px;
  transition: background .15s ease, color .15s ease; }
.nav-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-menu-item.active { color: var(--text); }
.nav-menu-item .nmark { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; background: #15130f; border: 1px solid var(--border); }
.nav-menu-item .nmark img { width: 100%; height: 100%; object-fit: cover; }
.nav-menu-item .nmark.sf { padding: 3px; }
.nav-menu-item.active .nmark { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-menu-sep { height: 1px; background: var(--border); margin: 5px 8px; }

/* ---------- buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 14px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn-primary { color: var(--on-accent); background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

.badge { display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  font-weight: 600; padding: 13px 24px; border-radius: 999px;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform .15s, box-shadow .2s; }
a.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 42%, transparent); }
span.badge { cursor: default; }
.badge svg { width: 18px; height: 18px; }
.badge-note { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- hero (centered) ---------- */
.hero { padding-block: clamp(52px, 8vw, 96px) clamp(34px, 6vw, 60px); text-align: center; }
.hero-copy { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(38px, 6.6vw, 68px); line-height: 1.03; font-weight: 800; letter-spacing: -1.6px; }
.hero h1 .glow { background: linear-gradient(118deg, #fff 30%, var(--accent-2) 70%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--muted); font-size: clamp(16px, 2.1vw, 20px); margin: 22px auto 0; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }

/* app landing hero (icon + title + subtitle + badge) */
.app-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 24px; display: block;
  box-shadow: 0 16px 50px color-mix(in srgb, var(--accent) 30%, transparent); }
.app-hero h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -1.2px;
  background: linear-gradient(118deg, #fff 32%, var(--accent-2) 72%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-hero .subtitle { color: var(--muted); font-size: clamp(16px, 2.3vw, 20px); margin: 20px auto 0; max-width: 54ch; }
.app-hero .cta-wrap { margin-top: 30px; }

/* ---------- section heads ---------- */
.section { padding-top: clamp(38px, 6vw, 60px); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 92px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .k { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-2); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.8px; margin-top: 8px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title .k { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.section-title h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.6px; margin-top: 8px; }
.section-title .sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards.studio { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; text-align: left; text-decoration: none; color: inherit; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(38,35,31,0.45)); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; min-width: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--ac) 55%, transparent), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.card::after { content: ""; position: absolute; right: -40%; top: -60%; width: 80%; height: 120%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 20%, transparent), transparent 62%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none; }
a.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 44px rgba(0,0,0,0.42); }
a.card:hover::before, a.card:hover::after { opacity: 1; }
a.card:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--border); display: grid; place-items: center; background: #15130f; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark.sf { padding: 8px; }
.mark.sf svg { width: 100%; height: 100%; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.chip .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.chip.live .sdot { background: #49d17a; box-shadow: 0 0 8px #49d17a; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.card .tag { color: var(--muted); font-size: 14px; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ac);
  font-size: 13.5px; font-weight: 600; }
.card .more svg { width: 15px; height: 15px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(3px); }

/* ---------- feature grid ---------- */
.features { padding-top: clamp(38px, 6vw, 60px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: linear-gradient(180deg, var(--surface), rgba(38,35,31,0.45)); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; }
.feat h3 { font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---------- highlight / privacy call ---------- */
.callout { margin-top: clamp(38px, 6vw, 56px); padding: 32px; border: 1px solid var(--border);
  border-radius: 20px; background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); text-align: center; }
.callout .k { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout h2 { font-size: clamp(21px, 3vw, 25px); margin-bottom: 12px; font-weight: 700; }
.callout p { color: var(--muted); max-width: 580px; margin: 0 auto; }
.callout a.link { color: var(--accent-2); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); padding-bottom: 2px; }
.callout a.link:hover { border-color: var(--accent-2); }
.callout .link-row { margin-top: 18px; }

.disclaimer { color: var(--muted); font-size: 13px; text-align: center; max-width: 640px;
  margin: clamp(32px,5vw,46px) auto 0; }

/* ---------- screenshot gallery ---------- */
.shots { padding-top: clamp(38px, 6vw, 56px); }
.shots .sub { text-align: center; color: var(--muted); font-size: 15px; margin-top: 6px; margin-bottom: 24px; }
.shots-viewport { position: relative; }
.shot-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 4px 24px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.shot-row img { flex: 0 0 auto; width: 258px; height: auto; border-radius: 24px; scroll-snap-align: center;
  border: 1px solid var(--border-2); box-shadow: 0 16px 44px rgba(0,0,0,0.38); }
.shot-row::-webkit-scrollbar { height: 8px; }
.shot-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.shot-row::-webkit-scrollbar-track { background: transparent; }
.shot-nav { position: absolute; top: calc(50% - 12px); transform: translateY(-50%); z-index: 4;
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  cursor: pointer; background: rgba(43, 40, 39, 0.82); color: var(--text); border: 1px solid var(--border-2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); transition: opacity .2s ease, background .2s ease; }
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .shot-nav { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.shot-nav:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.shot-nav.prev { left: 4px; }
.shot-nav.next { right: 4px; }
.shot-nav svg { width: 20px; height: 20px; }
.shot-nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------- legal doc (privacy) ---------- */
.doc-title { padding-top: clamp(24px, 5vw, 44px); }
.doc-title h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.5px; }
.doc-title .updated { color: var(--muted); font-size: 14px; margin-top: 10px; }
.doc { padding-top: 20px; padding-bottom: clamp(30px, 6vw, 60px); }
.doc .lead { font-size: 18px; color: color-mix(in srgb, var(--accent-2) 55%, var(--text)); margin: 18px 0 30px; line-height: 1.7; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 38px 0 12px; padding-top: 20px;
  border-top: 1px solid var(--border); color: #fff; }
.doc p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.doc ul { color: var(--muted); margin: 0 0 14px 22px; }
.doc li { margin-bottom: 8px; line-height: 1.7; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); }
.doc a:hover { border-color: var(--accent-2); }
.contact-box { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.contact-box .name { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.contact-box .email { font-size: 17px; color: var(--text); font-weight: 500; text-decoration: none; border-bottom: none; }
.contact-box .email:hover { color: var(--accent-2); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(44px, 7vw, 80px); border-top: 1px solid var(--border);
  padding-block: 30px calc(46px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.site-footer .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- motion / responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 760px) {
  .cards.studio { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .nav-brand span { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
