/* Base theme, shared bits and the hero. The colour tokens match the Orbit app (public/styles.css there). */
:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --glow-1: rgba(80, 100, 230, 0.20);
  --glow-2: rgba(120, 60, 160, 0.14);
  --panel: #10172b;
  --panel-2: #131b33;
  --raised: #1a2341;
  --raised-2: #212b4d;
  --line: rgba(160, 180, 255, 0.08);
  --line-strong: rgba(160, 180, 255, 0.14);
  --text: #e9edf9;
  --soft: #c3cae0;
  --muted: #8e98b8;
  --faint: #626d90;
  --accent: #6b85ff;
  --accent-2: #8fa3ff;
  --accent-soft: rgba(107, 133, 255, 0.16);
  --cyan: #4cc9f0;
  --violet: #b06cff;
  --badge: #f0444f;
  --online: #3ccf8b;
  --away: #f5b544;
  --busy: #f0444f;
  --offline: #5a6485;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 18px 50px rgba(2, 5, 15, 0.55);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 0% 0%, var(--glow-1), transparent 70%),
    radial-gradient(800px 600px at 100% 40%, var(--glow-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-2); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#dust-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }

main > section { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700; color: var(--text);
  background: var(--raised); border: 1px solid var(--line-strong);
  transition: background .15s, transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { background: var(--raised-2); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #7b93ff, #4a63e8); border-color: transparent; color: #fff; box-shadow: 0 8px 30px rgba(107, 133, 255, .35); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 10px 40px rgba(107, 133, 255, .5); }
.btn.lg { padding: 14px 24px; font-size: 16.5px; border-radius: var(--r-md); }
.btn.sm { padding: 7px 14px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2);
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
.grad { background: linear-gradient(100deg, var(--cyan), var(--accent) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--soft); font-size: 17.5px; margin: 16px 0 0; }

.card {
  background: linear-gradient(180deg, rgba(26, 35, 65, .72), rgba(16, 23, 43, .72));
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px;
  backdrop-filter: blur(6px);
}

/* status dots, same shapes as the app: crescent for away, minus bar for busy, ring for offline */
.sdot, .dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--offline); flex: none; overflow: hidden; --dot-cut: var(--panel); }
.sdot.online, .dot.online { background: var(--online); }
.sdot.away, .dot.away { background: var(--away); }
.sdot.busy, .dot.busy { background: var(--busy); }
.sdot.offline, .dot.offline { background: transparent; box-shadow: inset 0 0 0 2.5px var(--offline); }
.sdot.away::after, .dot.away::after { content: ''; position: absolute; width: 60%; height: 60%; border-radius: 50%; background: var(--dot-cut); top: -5%; left: -5%; }
.sdot.busy::after, .dot.busy::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: var(--dot-cut); }

.eyebrow .sdot.online { box-shadow: 0 0 0 0 rgba(60, 207, 139, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(60, 207, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 139, 0); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
}
.nav::before {
  content: ''; position: absolute; inset: 8px 12px; z-index: -1; border-radius: var(--r-lg);
  background: rgba(10, 15, 30, .7); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dust-ico { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ffd166 40%, #ff9f43 75%); box-shadow: 0 0 10px #ffd166; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 70px); padding-top: 40px !important;
}
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: 19px; color: var(--soft); max-width: 540px; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; aspect-ratio: 1; width: min(520px, 100%); justify-self: center; transition: transform .2s ease-out; }
.planet {
  position: absolute; inset: 22%; width: 56%; height: 56%; z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(76, 201, 240, .35)); animation: bob 6s ease-in-out infinite; cursor: grab;
}
.planet.spin { animation: whirl .9s cubic-bezier(.2, .8, .3, 1); }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes whirl { to { rotate: 360deg; } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(143, 163, 255, .2); animation: orbit linear infinite; }
.ring-1 { inset: 12%; animation-duration: 22s; }
.ring-2 { inset: 2%; animation-duration: 34s; animation-direction: reverse; }
.ring-3 { inset: -8%; animation-duration: 50s; border-color: rgba(176, 108, 255, .14); }
@keyframes orbit { to { rotate: 360deg; } }
.moon { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; translate: -50% -50%; }
.moon b {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 15px;
  font-size: 15px; font-weight: 800; color: #0d1326; animation: orbit linear infinite reverse; animation-duration: inherit;
  background: var(--c, #8fa3ff) linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.ring-1 .moon b { animation-duration: 22s; }
.ring-2 .moon b { animation-duration: 34s; animation-direction: normal; }
.ring-3 .moon b { animation-duration: 50s; background: var(--raised); font-size: 22px; }
.moon .dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 3px solid var(--bg); box-sizing: content-box; --dot-cut: var(--bg); }
.m1 { left: 50%; top: 0; --c: #ff7a90; }
.m2 { left: 100%; top: 50%; --c: #ffd166; }
.m3 { left: 15%; top: 85%; --c: #4cc9f0; }
.m4 { left: 85%; top: 15%; --c: #3ccf8b; }
.m5 { left: 0; top: 50%; --c: #c77dff; }
.m6 { left: 50%; top: 100%; }
.m7 { left: 6%; top: 25%; }

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