/* ============================================================
   Orbit — marketing site design system (v2, 2026-08)
   Dark cinematic premium. Deep-space navy, indigo interactive,
   amber CTA (the planet in the wordmark). Fraunces display /
   IBM Plex Sans body / IBM Plex Mono labels & codes.
   ============================================================ */

:root {
  /* semantic tokens */
  --bg: #070A17;
  --bg-raised: #0C1024;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #EDEDF4;
  --fg-muted: rgba(237, 237, 244, 0.66);
  --fg-faint: rgba(237, 237, 244, 0.45);
  --primary: #6366F1;      /* app indigo — interactive, links, glows */
  --primary-soft: rgba(99, 102, 241, 0.16);
  --accent: #D89E60;       /* wordmark amber — CTA only */
  --accent-strong: #E5AE72;
  --on-accent: #17110A;
  --success: #34D399;
  --danger: #F87171;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; line-height: 1.12; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
em { font-style: italic; color: var(--accent); }
.muted { color: var(--fg-muted); }
.small { font-size: 0.9rem; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* subtle starfield */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,0.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 58%, rgba(255,255,255,0.28) 0, transparent 100%),
    radial-gradient(1px 1px at 32% 78%, rgba(255,255,255,0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 88% 82%, rgba(255,255,255,0.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(255,255,255,0.25) 0, transparent 100%);
}
.stars::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(99, 102, 241, 0.13) 0%, transparent 70%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 10, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; }
.wordmark svg { width: 30px; height: 30px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__link {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--fg-muted); font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--fg); background: var(--surface); }
.nav__link[aria-current="page"] { color: var(--fg); background: var(--surface-strong); }
.nav { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--fg); border-radius: 2px; transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem var(--font-body); cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 24px rgba(216, 158, 96, 0.25);
}
.btn--primary:hover { background: var(--accent-strong); box-shadow: 0 6px 32px rgba(216, 158, 96, 0.35); }
.btn--ghost { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--surface); border-color: var(--fg-faint); }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }
.btn--large { padding: 15px 30px; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  font: 500 0.78rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--primary); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-strong); }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.35em; font-family: var(--font-body); font-weight: 600; font-size: 1.06rem; }
.card p { color: var(--fg-muted); font-size: 0.95rem; margin: 0; }

/* two-sided comparison */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.side {
  border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}
.side--owner { border-color: rgba(99, 102, 241, 0.35); }
.side--member { border-color: rgba(216, 158, 96, 0.35); }
.side__tag {
  font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; display: inline-block; margin-bottom: 16px;
}
.side--owner .side__tag { background: var(--primary-soft); color: #A5A7F8; }
.side--member .side__tag { background: rgba(216, 158, 96, 0.16); color: var(--accent-strong); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.side li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-muted); font-size: 0.96rem; }
.side li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.li-yes svg { color: var(--success); }
.li-no svg { color: var(--fg-faint); }
.li-no { opacity: 0.75; }

/* invite code chip */
.code-chip {
  font: 600 1.35rem var(--font-mono); letter-spacing: 0.22em;
  background: rgba(216, 158, 96, 0.12); border: 1px dashed rgba(216, 158, 96, 0.5);
  color: var(--accent-strong); border-radius: 12px; padding: 14px 22px; display: inline-block;
}

/* how-it-works steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 0.8rem var(--font-mono); color: var(--primary);
  display: block; margin-bottom: 12px; letter-spacing: 0.12em;
}

/* ---------- device mockups (pure CSS) ---------- */
.hero { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy .btn + .btn { margin-left: 10px; }
.hero__sub { font-size: 1.12rem; color: var(--fg-muted); max-width: 46ch; }
.hero__meta { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--fg-faint); font: 400 0.82rem var(--font-mono); }

.phone {
  width: min(300px, 78vw); margin: 0 auto;
  border-radius: 42px; border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
  padding: 12px; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; background: #05060F; border-radius: 999px; z-index: 2;
}
.phone__screen {
  border-radius: 32px; overflow: hidden; background: #0A0D1E;
  min-height: 520px; display: flex; flex-direction: column;
  font-size: 13px;
}
.phone__bar { padding: 40px 16px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.phone__dot { width: 8px; height: 8px; border-radius: 50%; background: #14B8A6; }
.phone__title { font-weight: 600; }
.phone__body { padding: 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.bubble { max-width: 78%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; }
.bubble--them { background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--me { background: var(--primary-soft); border: 1px solid rgba(99, 102, 241, 0.3); border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble--photo {
  align-self: flex-start; padding: 4px; width: 64%;
}
.bubble--photo .photo {
  border-radius: 11px; aspect-ratio: 4 / 3;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(216, 158, 96, 0.65) 0, transparent 70%),
    linear-gradient(160deg, #273057 0%, #12172E 70%);
}
.bubble__meta { font: 400 9px var(--font-mono); color: var(--fg-faint); margin-top: 4px; }
.phone .task {
  display: flex; gap: 9px; align-items: center; padding: 9px 11px;
  background: rgba(255, 255, 255, 0.05); border-radius: 10px;
}
.phone .task__box { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--fg-faint); flex: 0 0 auto; }
.phone .task__box--done { background: var(--success); border-color: var(--success); position: relative; }
.phone .task__box--done::after { content: "✓"; color: #06281C; font-size: 10px; position: absolute; inset: 0; display: grid; place-items: center; }
.phone .task--done { opacity: 0.55; text-decoration: line-through; }

/* ---------- pricing ---------- */
.price-card { text-align: center; padding: 40px 32px; }
.price-card .price { font: 600 3rem var(--font-display); }
.price-card .per { color: var(--fg-faint); font-size: 0.9rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem var(--font-mono); color: var(--fg-faint); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 20px 18px; color: var(--fg-muted); }

/* ---------- prose (privacy/terms/support) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 600; }
.prose ul { color: var(--fg-muted); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose p { color: var(--fg-muted); }
.prose strong { color: var(--fg); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-strong); padding: 2px 6px; border-radius: 6px; }

/* forms (support/contact) */
.field { margin-bottom: 16px; }
.field label { display: block; font: 500 0.8rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 7px; }
.input, .textarea, select.input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--fg); font: 400 1rem var(--font-body);
  transition: border-color 0.2s var(--ease);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.site-footer__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: var(--fg-muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--fg); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .fine { color: var(--fg-faint); font-size: 0.82rem; margin-top: 20px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav__link { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__meta { justify-content: center; }
  .sides, .steps, .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .phone { margin-top: 8px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 8px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { display: block; padding: 12px 14px; }
}
