/* ── Jupiter Optimus brand — premium dark, radar/orbit, #F22002 ember ───────── */
:root {
  color-scheme: dark;     /* dark-only by design — matches the app's identity */
  --bg: #08080f;          /* midnight */
  --surface: #14141e;
  --surface-2: #1d1d2a;
  --hairline: #2a2a3a;
  --text: #f2f2fa;
  --text-2: #9c9cb0;
  --text-3: #7e7e94;
  --ember: #f22002;       /* the brand red-orange */
  --ember-2: #ff6a3d;     /* lighter highlight stop */
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

html { scroll-behavior: smooth; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

/* Keyboard focus — visible ember ring on anything interactive */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-block: 22px;
}
.nav .btn { padding: 9px 18px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 88px 0 96px;
}
/* faint concentric radar rings behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(242,32,2,0.10), transparent 42%),
    repeating-radial-gradient(circle at 50% 36%, rgba(242,32,2,0.035) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .mark { width: 80px; height: 80px; margin: 0 auto 26px; display: block; }

/* ── Radar mark with a rotating ember sweep (matches the app's momentum radar) ── */
.radar { position: relative; width: 80px; height: 80px; margin: 0 auto 26px; }
.radar .mark { width: 100%; height: 100%; margin: 0; position: relative; z-index: 1; }
.radar::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg,
    rgba(242,32,2,0) 0deg, rgba(242,32,2,0) 265deg,
    rgba(255,106,61,0.30) 325deg, rgba(242,32,2,0) 360deg);
  animation: jo-sweep 5s linear infinite;
  pointer-events: none;
}
.radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  box-shadow: 0 0 32px 0 rgba(242,32,2,0.15);
}
@keyframes jo-sweep { to { transform: rotate(360deg); } }

/* ── "Coming soon" pill (pulsing ember dot) ──────────────────────────────── */
.soon-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--ember-2);
  background: rgba(242,32,2,0.10); border: 1px solid rgba(242,32,2,0.35);
}
.soon-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 0 rgba(242,32,2,0.6); animation: jo-pulse 2s ease-out infinite;
}
@keyframes jo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,32,2,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(242,32,2,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,32,2,0); }
}

/* ── App Store "coming soon" badge ───────────────────────────────────────── */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 14px;
  background: #000; border: 1px solid var(--hairline); color: #fff;
}
.appstore-badge .apple { width: 24px; height: 28px; fill: #fff; flex: none; }
.appstore-badge .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .t small { font-size: 11px; color: var(--text-2); letter-spacing: 0.02em; }
.appstore-badge .t strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.appstore-badge.block { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .radar::before, .soon-pill .dot { animation: none; }
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ember-2); text-transform: uppercase; margin-bottom: 18px;
}
h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 20px; font-weight: 800;
}
h1 .accent { color: var(--ember); }
.lede { max-width: 640px; margin: 0 auto 30px; font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); }

.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-ghost { color: var(--text); border: 1px solid var(--hairline); }
.btn-block { width: 100%; justify-content: center; }
.platforms { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.trust-line { margin-top: 6px; font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 60px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-sub { color: var(--text-2); max-width: 620px; margin: 0 0 44px; font-size: 17px; }
.center { text-align: center; }
.section-sub.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(242,32,2,0.45);
  box-shadow: 0 14px 40px -18px rgba(242,32,2,0.35);
}
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242,32,2,0.12); color: var(--ember-2); margin-bottom: 16px;
  border: 1px solid rgba(242,32,2,0.22);
}
.card .ic svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 0 22px;
  transition: border-color .18s ease;
}
.faq details[open] { border-color: rgba(242,32,2,0.35); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--ember-2); font-size: 20px; font-weight: 500;
  flex: none; transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }
.faq details a { color: var(--ember-2); }
#faq .section-title { margin-bottom: 32px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
#pricing { padding-bottom: 96px; }   /* clear the card from the footer line */
.price-wrap { display: flex; justify-content: center; }
.price {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 40px; text-align: center; max-width: 460px; width: 100%;
}
@media (max-width: 560px) { .price { padding: 30px 22px; } }
.price .amount { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; }
.price .amount span { font-size: 20px; color: var(--text-2); font-weight: 600; }
.price .trial { color: var(--ember-2); font-weight: 600; margin: 6px 0 22px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: grid; gap: 10px; }
.price li { color: var(--text); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: "●"; color: var(--ember); font-size: 10px; line-height: 1.7; }

/* ── Showcase (device frames) ────────────────────────────────────────────── */
.showcase { text-align: center; }
.devices {
  display: flex; align-items: flex-end; justify-content: center; gap: 44px;
  margin-top: 8px; flex-wrap: wrap;
}
.device { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device-label { font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.device .frame { background: #0c0c14; position: relative; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }

.device.mac .frame { width: 440px; max-width: 80vw; border: 2px solid var(--hairline); border-radius: 16px; padding: 28px 10px 12px; }
.device.mac .frame::before {
  content: ""; position: absolute; top: 11px; left: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: #39394a;
  box-shadow: 15px 0 #39394a, 30px 0 #39394a;
}
.device.phone .frame { width: 188px; border: 2px solid var(--hairline); border-radius: 32px; padding: 11px 9px; }
.device.phone .frame::before {
  content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 15px; border-radius: 999px; background: #000; z-index: 3;
}

.screen {
  border: 1px solid var(--hairline); overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 22%, rgba(242,32,2,0.10), transparent 60%), var(--surface);
}
.device.mac .screen { aspect-ratio: 16/10; border-radius: 7px; }
.device.phone .screen { aspect-ratio: 9/19; border-radius: 22px; }

/* abstract faux app content — shapes only, so it always reads as intentional */
.mock { position: absolute; inset: 0; padding: 13% 11% ; display: flex; flex-direction: column; gap: 7%; }
.mock .mh { display: flex; align-items: center; gap: 7px; margin-bottom: 3%; }
.mock .mh .d { width: 13px; height: 13px; border-radius: 50%; background: var(--ember); flex: none; box-shadow: 0 0 12px rgba(242,32,2,0.5); }
.mock .mh .l { height: 7px; width: 46%; border-radius: 4px; background: var(--text-2); opacity: 0.55; }
.mock .row { display: flex; align-items: center; gap: 9px; }
.mock .row .ck { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.mock .row.done .ck { border-color: var(--ember); background: var(--ember); }
.mock .row .ln { height: 7px; border-radius: 4px; background: var(--surface-2); flex: 1; }
.mock .row.done .ln { opacity: 0.5; }
.mock .row .pri { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); flex: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); margin-top: auto; padding: 52px 0 60px; color: var(--text-3); font-size: 13px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; }
footer a:hover { color: var(--text); }
footer .legal { max-width: 760px; }
footer .legal p { margin: 6px 0; }

/* ── Privacy / legal article ─────────────────────────────────────────────── */
.doc { padding: 64px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc a { color: var(--ember-2); }
.back { color: var(--text-3); font-size: 14px; display: inline-block; margin-bottom: 28px; }
.back:hover { color: var(--text); }
