/* ============================================================
   Orbit Launcher — Site Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #0A84FF;
  --accent-dim:    rgba(10, 132, 255, 0.14);
  --accent-glow:   rgba(10, 132, 255, 0.22);
  --bg:            #080810;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border:        rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.04);
  --text:          #eeeef2;
  --text-muted:    #80808c;
  --text-faint:    #484856;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow-card:   0 1px 0 0 rgba(255,255,255,0.05) inset, 0 24px 48px rgba(0,0,0,0.4);
  --shadow-btn:    0 2px 20px rgba(10,132,255,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo img { border-radius: 12px; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.12s ease;
  white-space: nowrap;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #1d90ff;
  box-shadow: 0 4px 32px rgba(10,132,255,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 15.5px;
  border-radius: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(10, 132, 255, 0.1) 0%,
    rgba(10, 132, 255, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* Two-column layout: text left, orbit demo right */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 72px;
}

/* ---- Hero text column ---- */
.hero-text { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: #f4f4f8;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.hero-sub kbd {
  padding: 2px 7px;
  font-family: inherit;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-compat {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: -0.005em;
}

/* ---- Orbit Demo (CSS-only ring illustration) ---- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/*
  The orbit-demo is a square containing element.
  Icons are positioned by rotating the coordinate system
  from the center and translating out to the ring radius.

  Container: 280px × 280px
  Ring outer radius: 140px (half of 280px)
  Ring thickness: ~54px (border on orbit-ring element)
  Icon center radius: ~110px from center

  Transform chain on .orbit-icon:
    1. rotate(--angle)       — spin the axis
    2. translateX(110px)     — move out to ring midline
    3. rotate(-1 * --angle)  — counter-rotate so icon stays upright
*/
@keyframes hero-ring-in {
  0% {
    transform: scale(0);
    opacity: 0;
    /* Spring pop: fast out, natural overshoot */
    animation-timing-function: cubic-bezier(0.34, 1.52, 0.64, 1);
  }
  52% {
    transform: scale(1.20);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.36, 0, 0.66, 0);
  }
  68% {
    transform: scale(0.82);
    animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1);
  }
  82% {
    transform: scale(1.06);
    animation-timing-function: cubic-bezier(0.36, 0, 0.66, 0);
  }
  92% {
    transform: scale(0.97);
    animation-timing-function: ease-out;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.orbit-demo {
  position: relative;
  width: 280px;
  height: 280px;
  animation: hero-ring-in 2s linear both;
  transform-origin: center;
}

/* Outer glow halo behind the ring */
.orbit-demo::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(10,132,255,0.12) 0%,
    transparent 65%);
  pointer-events: none;
}

/* The dark ring disc */
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(12,12,20,0.95);
  border: 52px solid rgba(18,18,30,0.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 16px 64px rgba(0,0,0,0.7),
    0 4px 16px rgba(0,0,0,0.5);
}

/* Center: app icon sits in the hollow */
.orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orbit-center img {
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Each orbit-icon is centered at (50%, 50%) then transformed outward */
.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  /* Center the icon on the transform origin */
  margin-top: -19px;
  margin-left: -19px;
  transform:
    rotate(var(--angle))
    translateX(110px)
    rotate(calc(-1 * var(--angle)));
}

/* Plain icon slot */
.icon-pill {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.055);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Highlighted / selected icon slot */
.icon-pill.highlight {
  background: rgba(10,132,255,0.78);
  border-color: rgba(10,132,255,0.9);
  box-shadow:
    0 0 0 3px rgba(10,132,255,0.2),
    0 0 20px rgba(10,132,255,0.55),
    0 2px 8px rgba(0,0,0,0.4);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #f4f4f8;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

/* Top-edge highlight line */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.11);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1;
  display: block;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(10,132,255,0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  letter-spacing: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--text-faint);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.09l3.29-3.3a1 1 0 0 1 1.42 1.42l-4 4a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.09l3.29-3.3a1 1 0 0 1 1.42 1.42l-4 4a1 1 0 0 1-.71.29z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s, background 0.15s;
}

.faq-item[open] .faq-q {
  color: var(--accent);
}

.faq-item[open] .faq-q::after {
  transform: rotate(-180deg);
  background: var(--accent);
}

.faq-a {
  overflow: hidden;
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.faq-a a {
  color: var(--accent);
  text-decoration: none;
}

.faq-a a:hover { text-decoration: underline; }

.faq-a code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.download-inner {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.download-icon {
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 20px 60px rgba(0,0,0,0.5);
}

.download-inner h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  color: #f4f4f8;
}

.download-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.download-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.download-note a {
  color: var(--accent);
  text-decoration: none;
}

.download-note a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: -0.01em;
}

.footer-brand img { border-radius: 4px; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   INNER PAGES — shared (changelog, support, privacy, 404)
   DO NOT change these selectors — they're used by other pages
   ============================================================ */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
}

.page-content {
  padding: 56px 0 80px;
  max-width: 720px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 12px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

.page-content ul,
.page-content ol {
  color: var(--text-muted);
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.page-content li { margin-bottom: 6px; }

/* ============================================================
   CHANGELOG
   ============================================================ */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cl-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}

.cl-meta {
  padding-top: 4px;
  text-align: right;
}

.cl-version {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cl-date {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

.cl-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cl-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-body li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.cl-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.cl-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 6px;
  vertical-align: middle;
}

.cl-tag-new    { background: rgba(10,132,255,0.18); color: #4aacff; }
.cl-tag-fix    { background: rgba(52,199,89,0.18);  color: #4cd964; }
.cl-tag-change { background: rgba(255,159,10,0.18); color: #ffb340; }

/* ============================================================
   SUPPORT — coming soon state
   ============================================================ */
.coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 24px;
  line-height: 1;
}

.coming-soon h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.coming-soon p {
  color: var(--text-muted);
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mid-range: tighten hero gap, 2-col feature grid */
@media (max-width: 960px) {
  .hero-inner { gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Hamburger kicks in at 640px ---- */
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    list-style: none;
    background: rgba(8,8,16,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    z-index: 99;
  }

  .nav.nav-open .nav-links { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* ---- Single-column hero at 760px ---- */
@media (max-width: 760px) {
  .hero { padding: 48px 0 40px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    justify-content: center;
  }

  .hero-badge { display: inline-block; }

  .hero-text { display: flex; flex-direction: column; align-items: center; }

  .hero-sub { max-width: 440px; }

  .hero-actions { justify-content: center; }

  .hero-compat { text-align: center; }

  .orbit-demo {
    width: 220px;
    height: 220px;
  }

  .orbit-icon {
    transform:
      rotate(var(--angle))
      translateX(85px)
      rotate(calc(-1 * var(--angle)));
  }

  .orbit-ring { border-width: 40px; }

  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }

  /* Section padding: 80px → 48px on mobile */
  .features,
  .how-it-works,
  .faq,
  .download { padding: 48px 0; }

  .feature-grid { grid-template-columns: 1fr; }

  .steps { gap: 24px; }

  .cl-entry { grid-template-columns: 1fr; }
  .cl-meta { text-align: left; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title { font-size: 28px; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}
