/* Orbit website – same "nebula" look as the app: near-black space, purple light, one highlighted word. */

:root {
  --bg: #0a090d;
  --bg-2: #0e0c12;
  --panel: #131119;
  --raised: #1a1722;
  --line: #221e2b;
  --line-strong: #342d42;
  --text: #f4f2f8;
  --dim: #9a95a8;
  --faint: #615c70;
  --signal: #a855f7;
  --signal-light: #c084fc;
  --pink: #e879f9;
  --ok: #4ade80;
  --radius: 16px;
  --max: 1160px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Dot grid + purple nebula light, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(91, 33, 182, .28), transparent 70%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(126, 34, 206, .2), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 0) 0 0 / 24px 24px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(168, 85, 247, .35); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.accent {
  background: linear-gradient(90deg, var(--signal-light), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  transition: padding .35s ease;
}
.nav-inner {
  width: min(1020px, 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(14, 12, 18, .78);
  border-color: var(--line-strong);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.brand .ver {
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--dim);
  padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a {
  font-size: 14.5px; color: var(--dim); padding: 6px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.menu-toggle { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 16px;
  transition: transform .2s ease, background .2s, border-color .2s, box-shadow .25s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  color: var(--signal-light);
  background: rgba(124, 58, 237, .14);
  border: 1px solid rgba(168, 85, 247, .55);
  box-shadow: 0 0 0 rgba(168, 85, 247, 0);
}
.btn-primary:hover {
  background: rgba(124, 58, 237, .26);
  border-color: var(--signal);
  box-shadow: 0 0 30px rgba(168, 85, 247, .35);
  color: #e9d5ff;
}
.btn-solid {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #d946ef);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .35);
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(168, 85, 247, .5); }
.btn-ghost { color: var(--text); padding-inline: 12px; }
.btn-ghost:hover { color: var(--signal-light); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
#space { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-content { position: relative; max-width: 880px; padding: 0 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; color: var(--dim);
  border: 1px solid var(--line-strong);
  background: rgba(19, 17, 25, .7);
  backdrop-filter: blur(6px);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 22px 0 22px;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--dim); max-width: 640px; margin: 0 auto; }
.hero .note { font-size: 14px; color: var(--faint); margin: 18px 0 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--faint); animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------------- App window showcase ---------------- */
.showcase { position: relative; margin-top: -40px; perspective: 1600px; }
.window {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 18deg)) scale(var(--scale, .94));
  transition: transform .1s linear;
}
.window img, .window video { width: 100%; height: auto; display: block; }
.showcase::before {
  content: ""; position: absolute; inset: 8% 10% -6%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .45), transparent 65%);
  filter: blur(40px); z-index: -1;
}

/* ---------------- Stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 90px auto 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(19, 17, 25, .6);
  overflow: hidden;
}
.stat { padding: 24px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat .label { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- Sections ---------------- */
section.block { padding: 120px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2, .category h3 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 12px;
}
.section-head p { color: var(--dim); font-size: 18px; margin: 0; }

.category { margin-bottom: 96px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  color: var(--c, var(--signal-light));
  background: color-mix(in srgb, var(--c, var(--signal)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--signal)) 30%, transparent);
}
.tag svg { width: 16px; height: 16px; }
.category h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 16px 0 28px; max-width: 860px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 23, 34, .9), rgba(19, 17, 25, .9));
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(168, 85, 247, .12); }
.card .media {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .media.tall img { object-position: top center; }
/* progress line under the picture */
.card .media::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 30%;
  background: linear-gradient(90deg, var(--signal), var(--pink));
  transition: width .5s ease;
}
.card:hover .media::after { width: 100%; }
/* Illustrated media for features without a screenshot */
.art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c, var(--signal)) 30%, transparent), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 18px 18px;
}
.art svg { width: 72px; height: 72px; color: var(--c, var(--signal-light)); filter: drop-shadow(0 0 24px var(--c, var(--signal))); transition: transform .5s ease; }
.card:hover .art svg { transform: scale(1.1) rotate(-4deg); }
.art .ring {
  position: absolute; width: 170px; height: 170px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c, var(--signal)) 45%, transparent);
  animation: spin 24s linear infinite;
}
.art .ring::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--signal-light)); box-shadow: 0 0 12px var(--c, var(--signal));
}
@keyframes spin { to { transform: rotate(360deg); } }
.card .body { padding: 20px 22px 24px; }
.card h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---------------- Split feature (big screenshot + text) ---------------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-bottom: 110px; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-media { order: 2; }
.split-media .window { transform: none; }
.friends-shot img { max-height: 560px; object-fit: cover; object-position: top; }
.split-text h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 16px 0 14px; }
.split-text p { color: var(--dim); font-size: 17px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--signal-light); margin-top: 2px; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(19, 17, 25, .75);
  transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: rgba(168, 85, 247, .4); background: rgba(28, 19, 48, .45); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 22px; height: 22px; color: var(--signal-light); transition: transform .3s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--dim); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }
.faq code { font-family: var(--mono); font-size: 13.5px; color: var(--signal-light); background: rgba(168, 85, 247, .1); padding: 2px 6px; border-radius: 6px; }

/* ---------------- Call to action ---------------- */
.cta {
  position: relative; margin-top: 140px; padding: 130px 16px;
  text-align: center; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-bg {
  position: absolute; inset: -20px; z-index: -1;
  background: url("/assets/play.webp") center 30% / cover no-repeat;
  filter: blur(6px) saturate(1.2);
  opacity: .35;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10, 9, 13, .35), rgba(10, 9, 13, .92) 75%);
}
.cta h2 { font-family: var(--display); font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 30px; }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
footer { padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { color: var(--dim); font-size: 15px; max-width: 260px; margin: 14px 0 0; }
.foot-grid h5 { margin: 4px 0 14px; font-size: 15px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid li a, .foot-grid li span { color: var(--dim); font-size: 15px; transition: color .2s; }
.foot-grid li a:hover { color: var(--text); }
.soon { font-size: 10.5px; font-family: var(--mono); color: var(--signal-light); border: 1px solid rgba(168, 85, 247, .4); border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13.5px;
}

/* ---------------- Changelog page ---------------- */
.page-head { padding: 150px 0 50px; text-align: center; }
.page-head h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 16px 0 10px; }
.page-head p { color: var(--dim); font-size: 18px; margin: 0; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-bottom: 80px; --rail-x: 154px; }
/* One faint line through all releases, and the glowing beam that grows while scrolling */
.track {
  position: absolute; left: var(--rail-x); top: var(--track-top, 0); height: var(--track-height, 0);
  width: 2px; margin-left: -1px; border-radius: 2px;
  background: rgba(168, 85, 247, .14);
}
.beam {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, rgba(168, 85, 247, .25), var(--signal) 70%, #f5d0fe);
  box-shadow: 0 0 10px rgba(168, 85, 247, .8), 0 0 24px rgba(168, 85, 247, .45);
}
/* bright head of the beam */
.beam::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: radial-gradient(circle, #fff 0, #f0abfc 35%, rgba(168, 85, 247, 0) 70%);
  filter: blur(.5px);
}
.release { display: grid; grid-template-columns: 140px 28px 1fr; }
.release .date { text-align: right; color: var(--dim); font-size: 14px; padding-top: 6px; transition: color .4s; }
.release .rail { position: relative; }
.release .node {
  position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; z-index: 1;
  border-radius: 50%; background: var(--panel); border: 2px solid rgba(168, 85, 247, .4);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s;
}
.release.lit .node { background: var(--signal); border-color: #e9d5ff; box-shadow: 0 0 0 4px rgba(168, 85, 247, .2), 0 0 16px var(--signal); transform: scale(1.15); }
.release.lit .date { color: var(--text); }
.release .content h2, .release .content > *:not(h2) { transition: opacity .4s; }
.release:not(.lit) .content { opacity: .55; transition: opacity .4s; }
.release.lit .content { opacity: 1; transition: opacity .4s; }
.release .content { padding: 0 0 56px 14px; }
.release h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release .latest { font-family: var(--mono); font-size: 11px; color: var(--ok); border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); padding: 2px 8px; border-radius: 999px; }
.release h3 { font-size: 18px; margin: 20px 0 8px; }
.release h4 { font-size: 16px; margin: 16px 0 6px; color: var(--signal-light); }
.release ul { margin: 0; padding-left: 20px; color: #d6d2de; }
.release li { margin: 6px 0; }
.release li::marker { color: var(--faint); }
.release p { color: var(--dim); }
.release code { font-family: var(--mono); font-size: 13.5px; color: var(--signal-light); }
.release .empty { color: var(--faint); font-style: italic; }
.loading { text-align: center; color: var(--dim); padding: 40px 0 120px; }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------------- Small screens ---------------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 16px; right: 16px;
    background: rgba(14, 12, 18, .96); border: 1px solid var(--line-strong); border-radius: 16px; padding: 10px;
  }
  .nav-inner { position: relative; justify-content: space-between; }
  .menu-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .release { grid-template-columns: 24px 1fr; }
  .timeline { --rail-x: 12px; }
  .release .date { display: none; }
  .release .content .mobile-date { display: block; }
  .foot-grid { grid-template-columns: 1fr; }
  .window { --tilt: 0deg !important; --scale: 1 !important; }
}
.mobile-date { display: none; color: var(--dim); font-size: 13.5px; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}
