/* Anchor website: the banner's look. Black surfaces, a faint grid under a soft white glow, the logo
   ring, Inter for words and JetBrains Mono for numbers. Motion uses springs and eased curves only. */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: Mono; font-weight: 400; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Mono; font-weight: 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #000;
  --surface: #0b0b0b;
  --raised: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --text-2: #a8a8a8;
  --text-3: #6e6e6e;
  /* motion: a spring with a little overshoot, a long ease-out, and a soft ease-in-out */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --page: min(1120px, 100% - 40px);
}

* { margin: 0; box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 500 0.88em Mono, ui-monospace, monospace; background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.4em; border-radius: 6px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, (100% - 1120px) / 2);
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 15px; letter-spacing: 0.28em; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { position: relative; color: var(--text-2); text-decoration: none; font-size: 15px; transition: color 0.3s var(--out); }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--out); }
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }

/* ---------- buttons: lift on a spring, press down, light sweep on the primary ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden;
  padding: 18px 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text);
  font: 650 18px Inter, sans-serif; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--out), background-color 0.3s var(--out); }
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.15s; }
.btn-primary { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 60px rgba(255, 255, 255, 0.18); }
.btn-primary:hover { box-shadow: 0 18px 50px rgba(255, 255, 255, 0.22), 0 0 90px rgba(255, 255, 255, 0.25); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.9s var(--in-out); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary svg { transition: transform 0.5s var(--spring); }
.btn-primary:hover svg { transform: translateY(2px); }
.btn-small { padding: 10px 20px; font-size: 15px; }
.btn-ghost { background: transparent; }

/* ---------- shared pieces ---------- */
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(700px 420px at 50% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); }
.mark { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  border: 1.5px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, #222, #000 72%);
  box-shadow: 0 0 140px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.mark.small { width: 112px; height: 112px; }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.kicker { color: var(--text-3); font-size: 14px; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; text-align: center; }
h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 56px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.05; text-align: center; text-wrap: balance; }
.sub { max-width: 680px; margin: 18px auto 0; color: var(--text-2); font-size: 19px; text-align: center; text-wrap: pretty; }

/* scroll reveal: rise, unblur and fade on a long ease-out, staggered by --d */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 0.9s var(--out), transform 1.1s var(--out), filter 0.9s var(--out); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 88px 20px 40px; text-align: center; }
.hero h1 { margin-top: 28px; font-size: clamp(64px, 11vw, 132px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.lead { max-width: 720px; margin: 22px auto 0; color: #c4c4c4; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.4; text-wrap: balance; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.pills li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  color: #cfcfcf; font: 500 15px Mono, monospace; letter-spacing: 0.06em; transition: transform 0.45s var(--spring), background-color 0.3s var(--out); }
.pills li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 38px; }
.meta { color: var(--text-3); font-size: 15px; }
.switch { background: none; border: 0; color: var(--text-2); font: 500 14px Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note { color: #cfcfcf; font-size: 15px; }
.stage { width: var(--page); margin: 64px auto 0; perspective: 1600px; }
.hero-shot { width: 100%; border-radius: 18px; border: 1px solid var(--line-strong); transform-origin: 50% 0;
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.9), 0 0 120px rgba(255, 255, 255, 0.07); will-change: transform; }

/* ---------- sections ---------- */
.section { position: relative; isolation: isolate; width: var(--page); margin: 0 auto; padding: 110px 0 20px; }

/* speed */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px auto 18px; }
.tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: 600 15px Inter, sans-serif; cursor: pointer; transition: background-color 0.35s var(--out), color 0.35s var(--out), transform 0.45s var(--spring); }
.tabs button:hover { transform: translateY(-2px); color: var(--text); }
.tabs button[aria-selected='true'] { background: #fff; color: #000; border-color: #fff; }
.race { max-width: 860px; margin: 0 auto; padding: 34px 38px 26px; }
.lane { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: 22px; height: 64px; }
.lane .name { font-size: 20px; font-weight: 700; color: var(--text-2); text-align: right; }
.lane .name small { color: var(--text-3); font-size: 13px; font-weight: 500; }
.lane .track { position: relative; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lane .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #2c2c2c, #5c5c5c); }
.lane .time { font: 500 24px Mono, monospace; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; transition: transform 0.5s var(--spring); }
.lane.anchor .name, .lane.anchor .time { color: #fff; }
.lane.anchor .fill { background: linear-gradient(90deg, #9a9a9a, #fff); box-shadow: 0 0 24px rgba(255, 255, 255, 0.55); }
.lane .time.done { transform: scale(1.12); }
.race-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.caption { color: var(--text-3); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 16px auto 0; }
.stat { padding: 26px 24px; text-align: center; }
.stat b { display: block; font: 500 48px Mono, monospace; letter-spacing: -0.04em; }
.stat span { color: var(--text-2); font-size: 16px; }
.numbers { max-width: 860px; margin: 22px auto 0; }
.numbers summary, .faq summary { cursor: pointer; list-style: none; }
.numbers summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.numbers summary { width: max-content; margin: 0 auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 600;
  transition: color 0.3s var(--out), transform 0.45s var(--spring); }
.numbers summary:hover { color: var(--text); transform: translateY(-2px); }
.numbers-body { overflow: hidden; padding-top: 22px; color: var(--text-2); font-size: 15px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
th { color: var(--text-3); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
td { font-family: Mono, monospace; color: var(--text-2); }
td:first-child { font-family: Inter, sans-serif; color: #cfcfcf; }
td b { color: #fff; font-weight: 500; }
tbody tr { transition: background-color 0.3s var(--out); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { padding: 28px; transition: transform 0.55s var(--spring), border-color 0.4s var(--out), box-shadow 0.5s var(--out); }
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 255, 255, 0.05); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--raised);
  transition: transform 0.6s var(--spring); }
.feature:hover .icon { transform: rotate(-6deg) scale(1.08); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.shots figure { overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.shots img { transition: transform 0.9s var(--out); }
.shots figure:hover img { transform: scale(1.04); }
.shots figcaption { padding: 16px 20px; color: var(--text-2); font-size: 15px; border-top: 1px solid var(--line); }

/* compare */
#compare .table-wrap { margin-top: 44px; padding: 8px 12px; }
.compare td { text-align: center; font-family: Inter, sans-serif; }
.compare th { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare th:nth-child(2) { color: #fff; }
.compare .yes { color: #fff; font-size: 18px; }
.compare .no { color: var(--text-3); }

/* download */
.download { text-align: center; padding-top: 130px; }
.download .mark { margin-bottom: 8px; }
.files, .smartscreen { max-width: 760px; margin: 26px auto 0; padding: 26px 30px; text-align: left; }
.files h3, .smartscreen h3 { font-size: 19px; letter-spacing: -0.01em; }
.files h3 span { color: var(--text-3); font-weight: 500; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.file a.name { font-weight: 650; text-decoration: none; }
.file a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.file .size { color: var(--text-3); font-size: 15px; }
.file .sha { grid-column: 1 / -1; color: var(--text-3); font: 400 12.5px Mono, monospace; word-break: break-all; }
.file .vt { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); }
.small { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.smartscreen p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* faq: answers open and close on an eased height (script.js) */
.faq { max-width: 780px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 4px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; transition: color 0.3s var(--out); }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform 0.5s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -4px; }
.faq summary:hover { color: #fff; }
.faq details > div { overflow: hidden; }
.faq p { padding: 0 4px 22px; color: var(--text-2); }

/* ---------- footer ---------- */
.footer { width: var(--page); margin: 120px auto 0; padding: 36px 0 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; color: var(--text-3); font-size: 14px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--text-2); text-decoration: none; transition: color 0.3s var(--out); }
.footer nav a:hover { color: #fff; }
.footer p { margin-left: auto; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 90px 1fr 84px; gap: 12px; }
  .lane .name { font-size: 16px; }
  .lane .name small { display: none; }
  .lane .time { font-size: 18px; }
  .race { padding: 24px 18px 20px; }
  .race-foot { flex-direction: column; align-items: flex-start; }
  .footer p { margin-left: 0; }
}

/* calm version for people who switched animations off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- inner pages: releases, licence ---------- */
.page-top { position: relative; isolation: isolate; padding: 80px 20px 10px; text-align: center; }
.page-top h1 { margin-top: 14px; font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.narrow { width: min(820px, 100% - 40px); margin: 0 auto; padding-top: 40px; }
.loading { color: var(--text-3); text-align: center; padding: 40px 0; }

.release { padding: 30px 32px; margin-bottom: 18px; }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.release h2 { margin: 0; font-size: 28px; text-align: left; letter-spacing: -0.03em; }
.release time { color: var(--text-3); font-size: 15px; margin-left: auto; }
.badge { padding: 4px 11px; border-radius: 999px; background: #fff; color: #000; font: 600 12px Mono, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.notes { margin-top: 16px; color: var(--text-2); font-size: 16px; }
.notes ul { padding-left: 20px; }
.notes li + li { margin-top: 8px; }
.notes b { color: var(--text); font-weight: 650; }
.notes a { color: var(--text); text-underline-offset: 3px; }
.notes h3 { margin: 16px 0 6px; color: var(--text); font-size: 16px; }
.assets { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.asset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.asset .sha { flex-basis: 100%; color: var(--text-3); font: 400 12.5px Mono, monospace; word-break: break-all; }
.asset .vt { color: var(--text-2); font-size: 14px; }

.licence { padding: 40px 44px; }
.licence h2 { margin: 0; font-size: 34px; text-align: left; }
.licence .copy { margin-top: 6px; color: var(--text-3); }
.licence > p { margin-top: 18px; color: var(--text-2); }
.licence h3 { margin-top: 30px; font-size: 19px; letter-spacing: -0.01em; }
.licence h3 span { display: inline-block; width: 30px; color: var(--text-3); font: 500 16px Mono, monospace; }
.licence section p, .licence section ul { margin: 8px 0 0 30px; color: var(--text-2); }
.licence section ul { padding-left: 18px; }
.licence section li + li { margin-top: 4px; }
.licence a { color: var(--text); text-underline-offset: 3px; word-break: break-word; }

@media (max-width: 820px) {
  .release, .licence { padding: 24px 20px; }
  .release time { margin-left: 0; flex-basis: 100%; }
  .licence section p, .licence section ul { margin-left: 0; }
}
