/* The Six Degrees download page. System fonts, no external requests. */

:root {
  --bg: #0b0a1c;
  --bg-2: #12102a;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef0f6;
  --muted: #a9aec4;
  --faint: #9297ad;
  --gold: #ffd700;
  --purple: #9b59b6;
  --blue: #3498db;
  --orange: #ff8a3d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #2a2350 0%, var(--bg-2) 45%, var(--bg) 80%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #8fc7ff; }
a:hover { color: #b9dcff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; height: auto; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }
kbd { padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, calc((100% - 1072px) / 2));
  background: rgba(11, 10, 28, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Jumps from the menu land below the pinned header, not under it. */
section[id], figure[id], #download { scroll-margin-top: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.top nav a:hover { color: var(--text); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 20px; text-align: center; }
h3 { font-size: 19px; margin: 0 0 6px; }
.fine { color: var(--faint); font-size: 14px; }

/* hero */
.hero { text-align: center; padding-top: 32px; }
.app-icon { display: block; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(155, 89, 182, 0.35)); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 0 0 16px; font-weight: 800; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.downloads { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dl {
  display: inline-flex; align-items: center; gap: 14px; min-width: 280px; justify-content: center;
  padding: 16px 30px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.dl:hover { transform: translateY(-2px); color: var(--text); }
/* The app's own gold, the sun in its icon, with dark text. */
.dl.primary {
  color: #1b1400; border-color: transparent;
  background: linear-gradient(180deg, #ffe45c 0%, #ffd700 55%, #f4c400 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 36px rgba(255, 196, 0, 0.28), 0 0 0 1px rgba(255, 215, 0, 0.35);
}
.dl.primary:hover { color: #1b1400; filter: brightness(1.04); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 44px rgba(255, 196, 0, 0.38), 0 0 0 1px rgba(255, 215, 0, 0.5); }
.dl.primary:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.dl-icon { width: 26px; height: 26px; flex: none; }
.dl-text { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.dl .dl-title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.dl .dl-sub { font-size: 14px; opacity: 0.8; }
.dl.primary .dl-sub { opacity: 0.75; }
.dl-alt { margin: 0; color: var(--faint); font-size: 14.5px; }
.dl-alt a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.dl-alt a:hover { text-decoration-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .fine { margin: 14px 0 0; }
.guess { color: var(--gold); font-size: 14px; margin: 6px 0 0; }
.not-mac { max-width: 560px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 138, 61, 0.1); border: 1px solid rgba(255, 138, 61, 0.35); color: var(--text); font-size: 15px; }
.caption { color: var(--faint); font-size: 13px; margin: 0; }

/* install */
.which { max-width: 760px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-align: center; color: var(--muted); }
.which strong { color: var(--text); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 22px 20px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #0b0a1c; background: var(--gold);
}
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps strong { color: var(--text); }
.terminal { max-width: 860px; margin: 0 auto; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.terminal p { color: var(--muted); margin: 6px 0; }
.cmd { display: flex; gap: 10px; align-items: stretch; margin: 12px 0; }
.cmd code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; padding: 12px 14px; border-radius: 10px; background: #05040f; border: 1px solid var(--line); color: #d8f5dc; }
.cmd button {
  flex: none; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; font-weight: 600; font-size: 15px;
}
.cmd button:hover { background: rgba(255, 255, 255, 0.14); }

/* the tutorial videos (silent: the captions are in the picture). index.html asks for
   this file by version (style.css?v=…): a browser holding the old copy drew them at
   their full 1920px, off-centre. Bump the version whenever the page's layout changes. */
.video { max-width: 860px; margin: 0 auto 32px; }
/* Videos in the app's colours: a gold → purple → blue edge and a soft glow. */
.video video {
  display: block; width: 100%; height: auto; border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(#05040f, #05040f) padding-box, linear-gradient(135deg, var(--gold), var(--purple) 55%, var(--blue)) border-box;
  box-shadow: 0 24px 70px rgba(155, 89, 182, 0.22), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ways .video { margin: 32px auto 0; }

/* what it does */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.features article, .cards article { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.features article:nth-child(1) h3 { color: var(--gold); }
.features article:nth-child(2) h3 { color: var(--orange); }
.features article:nth-child(3) h3 { color: #3ee08f; }
.features article:nth-child(4) h3 { color: #ff9f5a; }
.features p, .cards p { margin: 0; color: var(--muted); font-size: 15.5px; }
.new-in { margin: 4px 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.features.three { grid-template-columns: repeat(3, 1fr); }
figure { margin: 0 0 28px; }
figure img { display: block; border-radius: 12px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; text-align: center; }
figcaption strong { color: var(--text); }

/* ways in */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.warning { max-width: 860px; margin: 22px auto 0; padding: 14px 18px; border-radius: 10px; background: rgba(255, 215, 0, 0.07); border: 1px solid rgba(255, 215, 0, 0.3); color: var(--muted); font-size: 15px; }
.warning strong { color: var(--text); }

/* privacy */
.privacy ul { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.privacy li { padding: 14px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.privacy li strong { color: var(--text); }
.privacy .fine { text-align: center; }

.again { text-align: center; padding-top: 8px; }

/* Questions people ask (mirrored by the FAQ structured data in the head). */
.faq dl { max-width: 760px; margin: 0 auto; padding: 0; display: grid; gap: 10px; }
.faq dl > div { padding: 14px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.faq dt { font-weight: 700; color: var(--text); margin: 0 0 6px; }
.faq dd { margin: 0; color: var(--muted); }

footer { max-width: 1120px; margin: 0 auto; padding: 40px 24px 56px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* The three steps, as a path under the download buttons and as badges on the headings. */
.step {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 0.35em;
  border-radius: 50%; background: var(--gold); color: #0b0a1c; font-size: 0.62em; font-weight: 800;
  vertical-align: 0.18em;
}
.roadmap { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.roadmap a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: 15px;
}
.roadmap a:hover { border-color: rgba(255, 215, 0, 0.5); }
.roadmap .step { font-size: 12px; width: 22px; height: 22px; margin: 0; vertical-align: 0; }
.kicker { text-align: center; margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.intro { text-align: center; color: var(--muted); max-width: 680px; margin: -8px auto 24px; }
.caption.center { text-align: center; margin-top: 8px; }

@media (max-width: 860px) {
  .steps, .features, .features.three, .cards { grid-template-columns: 1fr; }
  .steps { gap: 26px; }
  section { padding: 40px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 br { display: none; }
  .top { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .top nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .top nav a { font-size: 14px; }
  .top nav a[href^="http"] { display: none; } /* GitHub is in the footer; the five sections fit */
  .top nav::-webkit-scrollbar { display: none; }
  section[id], figure[id], #download { scroll-margin-top: 108px; }
  .dl { min-width: 0; width: 100%; }
  .dl-text { align-items: center; text-align: center; }
  .cmd { flex-direction: column; }
  .cmd button { padding: 10px; }
  .top, main { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dl { transition: none; }
}
