/* Own Backup — the one-page site.
   The palette is the program's dark theme
   (crates/gui/frontend/src/styles/variables.css) on a deeper background, plus
   the orange of the logo. The page has one theme, dark: `color-scheme: dark`
   here and the meta tags in index.html say so to the browser and Dark Reader. */

:root {
  color-scheme: dark;

  --bg: #0f0e19;
  --bg-alt: #13121f;
  --card: #1a1926;
  --card-hi: #212030;
  --sunken: #0b0a13;
  --line: #2a293a;
  --line-strong: #3d3c50;

  --text: #d9d9e6;
  --head: #f4f4fb;
  --text2: #b4b4c8;
  --muted: #8b8ba2;

  --accent: #6f60ea;
  --accent-hi: #8a7df5;
  --accent-text: #aba2ff;
  --accent-soft: rgba(124, 110, 245, 0.14);
  --orange: #ff7a1a;
  --orange-hi: #ffb347;
  --go: #46a126;
  --go-hi: #52b22f;
  --ok: #6cc043;
  --err: #ec6060;
  --info: #72a6ec;

  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', Ubuntu, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', Ubuntu, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Code', 'Cascadia Mono', 'JetBrains Mono', ui-monospace, 'DejaVu Sans Mono', Consolas, 'Liberation Mono', monospace;

  --r: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #c9c3ff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre { font-family: var(--mono); }
code { font-size: 0.9em; color: var(--accent-text); background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 6px; }
::selection { background: rgba(124, 110, 245, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 30px; height: 30px; stroke-width: 1.5; }
.ic--xl { width: 44px; height: 44px; stroke-width: 1.3; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ───────── beta notice ─────────
   data-channel on <html> follows the latest release: "beta" for a prerelease,
   "stable" for a release (scripts/site-release.py at build, main.js live). */

html[data-channel="stable"] [data-beta],
html:not([data-channel="stable"]) [data-stable] { display: none !important; }


.betabar { position: relative; z-index: 51; border-bottom: 1px solid rgba(240, 180, 58, 0.35); background: linear-gradient(90deg, rgba(240, 180, 58, 0.16), rgba(255, 138, 43, 0.12) 50%, rgba(240, 180, 58, 0.16)), var(--bg); }
.betabar__in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 9px; }
.betabar p { font-size: 14.5px; line-height: 1.45; color: var(--text); }
.betabar b { color: #f4d086; font-weight: 700; }
.betabar a { margin-left: 6px; color: var(--orange-hi); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.betabar a:hover { color: #ffd08a; }
.betabar__tag, .brand__beta { flex: none; padding: 2px 8px; border-radius: 6px; background-color: #f0b43a; color: #2a1e00; font: 700 11.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-style: normal; }
.betabar__tag { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(240, 180, 58, 0.22), 0 0 18px rgba(240, 180, 58, 0.6); } }
.brand__beta { padding: 1px 6px; font-size: 10.5px; letter-spacing: 0.06em; }

/* ───────── scroll progress + nav ───────── */

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--orange)); }

.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.nav.is-stuck { background-color: rgba(15, 14, 25, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head); font: 700 14px/1 var(--display); letter-spacing: 0.16em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: auto; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--text2); font-size: 14.5px; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--head); background-color: rgba(255, 255, 255, 0.05); }
.nav__links a.is-here { color: var(--head); }
.nav__links a.is-here::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent-hi); }
.nav__side { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background-color: var(--sunken); }
.lang button { padding: 4px 9px; border-radius: 6px; font: 600 12px/1.4 var(--mono); color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.lang button:hover { color: var(--head); }
.lang button[aria-pressed='true'] { color: #fff; background-color: var(--accent); }

.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--text2); transition: color 0.2s, background-color 0.2s; }
.iconbtn:hover { color: #fff; background-color: rgba(255, 255, 255, 0.07); }

/* ───────── buttons ───────── */

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 11px; border: 1px solid transparent; font: 600 16px/1.2 var(--font); white-space: nowrap; overflow: hidden; transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn--go { background-color: var(--go); color: #fff; box-shadow: 0 6px 22px -8px rgba(70, 161, 38, 0.8); }
.btn--go:hover { background-color: var(--go-hi); color: #fff; box-shadow: 0 10px 30px -8px rgba(82, 178, 47, 0.9); }
.btn--go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-120%); }
.btn--go:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn--line { border-color: var(--line-strong); color: var(--head); background-color: rgba(255, 255, 255, 0.03); }
.btn--line:hover { border-color: var(--accent-hi); color: #fff; background-color: var(--accent-soft); }

/* ───────── hero ───────── */

.hero { position: relative; padding: 56px 0 0; overflow: hidden; isolation: isolate; }
.hero__cells { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 85%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(110% 80% at 50% 0%, #000 20%, transparent 80%); }
.hero__glow { position: absolute; z-index: -1; top: -260px; right: -180px; width: 820px; height: 820px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(111, 96, 234, 0.33), rgba(111, 96, 234, 0.08) 55%, transparent);
  animation: drift 16s ease-in-out infinite alternate; }
.hero__glow::after { content: ''; position: absolute; left: -620px; top: 420px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.16), transparent); }
@keyframes drift { to { transform: translate3d(-70px, 50px, 0) scale(1.08); } }

.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: min(640px, 74vh); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background-color: rgba(26, 25, 38, 0.7); color: var(--text2); font-size: 13.5px; transition: border-color 0.2s, color 0.2s; }
.pill:hover { border-color: var(--orange); color: var(--head); }
.pill b { color: var(--orange-hi); font: 600 13px var(--mono); }
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background-color: var(--orange); }
.pill__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--orange); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.hero__title { margin: 22px 0 20px; font: 700 clamp(34px, 4.6vw, 64px)/1.06 var(--display); letter-spacing: -0.035em; color: var(--head); }
.hero__title .line { display: block; overflow: hidden; white-space: nowrap; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(110%); animation: rise 0.9s var(--ease) 0.1s forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.22s; }
@keyframes rise { to { transform: none; } }

.grad { background: linear-gradient(100deg, #b9b0ff 0%, var(--accent-hi) 30%, var(--orange) 70%, var(--orange-hi) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.js .hero__title .line > span.grad { animation: rise 0.9s var(--ease) 0.22s forwards, sheen 7s ease-in-out 1.2s infinite alternate; }
h2 .grad { animation: sheen 7s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }

.hero__lead { max-width: 34em; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--text2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.js .pill, .js .hero__lead, .js .hero__cta, .js .hero__note { opacity: 0; transform: translateY(14px); animation: fadeup 0.8s var(--ease) forwards; }
.js .pill { animation-delay: 0s; }
.js .hero__lead { animation-delay: 0.38s; }
.js .hero__cta { animation-delay: 0.5s; }
.js .hero__note { animation-delay: 0.62s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

.hero__shot { perspective: 1600px; }
.shot3d { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 5deg)); transition: transform 0.5s var(--ease); will-change: transform; }
.js .hero__shot { opacity: 0; animation: shotin 1.3s var(--ease) 0.35s forwards; }
@keyframes shotin { from { opacity: 0; transform: translate3d(70px, 30px, 0) scale(0.94); } to { opacity: 1; transform: none; } }

.frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background-color: #17161f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 110px -30px rgba(111, 96, 234, 0.55); }
.frame img { width: 100%; }
.hero__shot .frame { width: 118%; max-width: none; }
.hero__logo { position: absolute; left: -3%; bottom: -15%; width: 30%; transform: translateZ(90px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 44px rgba(255, 122, 26, 0.35)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateZ(90px) translateY(-14px) rotate(-3deg); } }
.chip3d { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background-color: rgba(26, 25, 38, 0.92); color: var(--head); font: 600 13px var(--mono); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8); }
.chip3d .ic { width: 16px; height: 16px; }
.chip3d--a { top: -6%; left: 12%; transform: translateZ(70px); color: var(--orange-hi); animation: bob2 7s ease-in-out infinite; }
.chip3d--b { top: 40%; right: -13%; transform: translateZ(120px); color: #a4dc85; animation: bob2 8s ease-in-out -3s infinite; }
@keyframes bob2 { 50% { translate: 0 -10px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 76px; border: 1px solid var(--line); border-radius: var(--r); background-color: rgba(19, 18, 31, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stats li { padding: 22px 26px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; color: var(--head); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }

.marquee { margin-top: 44px; padding: 18px 0; border-block: 1px solid var(--line); overflow: hidden; background-color: var(--sunken);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { padding: 5px 14px; border: 1px solid var(--line); border-radius: 8px; font: 500 13.5px var(--mono); color: var(--text2); white-space: nowrap; }
.marquee span.alt { color: var(--accent-text); border-color: rgba(124, 110, 245, 0.3); background-color: var(--accent-soft); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────── sections ───────── */

.sec { position: relative; padding: 112px 0; }
.sec--alt { background-color: var(--bg-alt); border-block: 1px solid var(--line); }
.sec__head { max-width: 940px; margin-bottom: 52px; }
.sec__head .lead { max-width: 780px; }
.sec--dl .sec__head .lead { margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-hi); }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background-color: var(--orange); box-shadow: 13px 0 0 rgba(255, 122, 26, 0.45), 26px 0 0 rgba(255, 122, 26, 0.18); margin-right: 26px; }
h2 { font: 700 clamp(30px, 3.6vw, 48px)/1.1 var(--display); letter-spacing: -0.028em; color: var(--head); }
h3 { font: 600 18.5px/1.3 var(--display); color: var(--head); }
.lead { margin-top: 18px; font-size: clamp(17px, 1.3vw, 19px); color: var(--text2); }
.fine { font-size: 14.5px; color: var(--muted); }
.center { text-align: center; max-width: 760px; margin-inline: auto; }

/* reveal on scroll — only when scripts run */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s, box-shadow 0.4s, background-color 0.3s; transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── pipeline ───────── */

.pipe { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.pipe__stage { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--sunken); overflow: hidden; }
.pipe__canvas { position: relative; flex: 1 1 0px; min-height: 380px; }
.pipe__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: 14px 20px; border-top: 1px solid var(--line); background-color: var(--bg-alt); font-size: 13.5px; color: var(--text2); }
.legend, .counters { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw--used { background-color: var(--accent); }
.sw--free { border: 1px solid var(--line-strong); }
.sw--excl { background: repeating-linear-gradient(135deg, var(--err) 0 2px, transparent 2px 4px); border: 1px solid rgba(236, 96, 96, 0.6); }
.counters li { display: flex; align-items: baseline; gap: 7px; }
.counters b { min-width: 2.4ch; text-align: right; font: 600 15px var(--mono); color: var(--head); font-variant-numeric: tabular-nums; }

.steps { display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.steps li { position: relative; flex: 1; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background-color: var(--card); counter-increment: s; transition: border-color 0.4s, background-color 0.4s, transform 0.4s var(--ease); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); font: 600 13px var(--mono); color: var(--muted); transition: all 0.4s; }
.steps h3 { font-size: 16.5px; }
.steps p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--muted); transition: color 0.4s; }
.steps li.is-on { border-color: rgba(124, 110, 245, 0.6); background-color: #1f1d33; transform: translateX(-6px); }
.steps li.is-on::before { border-color: var(--accent); background-color: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(124, 110, 245, 0.7); }
.steps li.is-on p { color: var(--text2); }

/* ───────── feature cards ───────── */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .not, .fmt, .dl { position: relative; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); overflow: hidden; }
.card { padding: 26px 24px 24px; transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s; }
.card::before, .dl::before, .fmt::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 110, 245, 0.2), transparent 65%); }
.card:hover::before, .dl:hover::before, .fmt:hover::before { opacity: 1; }
.js .card.is-in:hover, .card:hover { transform: translateY(-5px); border-color: rgba(124, 110, 245, 0.55); }
.card .ic { color: var(--accent-text); transition: transform 0.5s var(--ease), color 0.3s; }
.card:hover .ic { transform: scale(1.14) rotate(-6deg); color: var(--orange-hi); }
.card h3 { margin: 18px 0 8px; }
.card p, .not p, .fmt p, .dl p { font-size: 15px; line-height: 1.55; color: var(--text2); }

/* ───────── chains ───────── */

.chain { border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background-color: var(--bg-alt); overflow-x: auto; }
.tabs button { padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--text2); white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.tabs button:hover { color: var(--head); background-color: rgba(255, 255, 255, 0.05); }
.tabs button[aria-selected='true'] { color: #fff; background-color: var(--accent); }
.chain__stage { position: relative; height: 290px; background-color: var(--sunken);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 100% 36px; background-position: 0 100%; }
.chain__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chain__links path { fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.75; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.chain__row { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 20px 22px; }
.ver { position: relative; flex: none; width: 74px; height: var(--h, 60px); border-radius: 9px 9px 5px 5px; border: 1px solid rgba(124, 110, 245, 0.5); background: linear-gradient(180deg, rgba(124, 110, 245, 0.42), rgba(124, 110, 245, 0.12)); overflow: hidden; white-space: nowrap;
  transition: width 0.6s var(--ease), height 0.6s var(--ease), opacity 0.5s, transform 0.6s var(--ease), margin 0.6s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.ver span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 11.5px var(--mono); color: var(--head); }
.ver--full { width: 92px; border-color: rgba(255, 138, 43, 0.65); background: linear-gradient(180deg, rgba(255, 138, 43, 0.5), rgba(255, 138, 43, 0.14)); }
.ver--diff { border-color: rgba(114, 166, 236, 0.6); background: linear-gradient(180deg, rgba(114, 166, 236, 0.45), rgba(114, 166, 236, 0.12)); }
.ver.is-new { width: 0; opacity: 0; margin-left: -10px; border-width: 0; }
.ver.is-gone { width: 0; opacity: 0; margin-left: -10px; border-width: 0; transform: translateY(30px); }
.ver.is-merge { width: 0; opacity: 0; margin-left: -10px; border-width: 0; transform: translateX(-46px) scale(0.6); }
.ver.is-pulse { box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.9), 0 0 36px rgba(255, 138, 43, 0.75); }
.chain__text { padding: 22px 26px 24px; display: grid; gap: 10px; }
.chain__text p:not(.fine) { color: var(--text); max-width: 62em; min-height: 3.2em; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.fmt { padding: 24px; transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s; }
.fmt:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.fmt header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fmt h3 { font: 700 26px/1 var(--mono); letter-spacing: -0.02em; }
.tag { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.fmt dl { margin: 20px 0 16px; border-top: 1px solid var(--line); }
.fmt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fmt dt { color: var(--muted); }
.fmt dd { font: 600 13.5px var(--mono); }
.fmt dd.yes { color: #a4dc85; }
.fmt dd.no { color: var(--muted); font-weight: 400; }
.fmt--hot { border-color: rgba(255, 138, 43, 0.45); background: linear-gradient(160deg, rgba(255, 138, 43, 0.1), transparent 55%), var(--card); }
.fmt--hot h3 { color: var(--orange-hi); }
.fmt--hot .tag { border-color: rgba(255, 138, 43, 0.5); color: var(--orange-hi); }

/* ───────── gallery ───────── */

.gallery__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 24px; }
.gallery__tabs button { position: relative; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background-color: var(--card); font-size: 14.5px; font-weight: 500; color: var(--text2); overflow: hidden; transition: color 0.2s, border-color 0.2s; }
.gallery__tabs button:hover { color: var(--head); border-color: var(--line-strong); }
.gallery__tabs button[aria-selected='true'] { color: #fff; border-color: var(--accent); }
.gallery__tabs button::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0.85; }
.gallery__tabs button { isolation: isolate; }
.gallery__tabs button[aria-selected='true']::before { animation: fill var(--dwell, 6s) linear forwards; }
.gallery.is-paused .gallery__tabs button[aria-selected='true']::before { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.frame--big { max-width: 1060px; margin-inline: auto; aspect-ratio: 1584 / 992; }
.frame--big img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.frame--big img.is-under { opacity: 0; transform: scale(1.025); }
.gallery__cap { margin-top: 18px; text-align: center; color: var(--text2); min-height: 1.6em; }

/* ───────── recovery ───────── */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
.split__col { padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); }
.split__col:last-child { padding: 0; border: 0; background: none; }
.orbit { width: 150px; margin-bottom: 22px; }
.orbit svg { width: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.orbit__ring { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.orbit__ring--2 { animation-duration: 26s; animation-direction: reverse; }
.orbit__arc { stroke: var(--orange); stroke-width: 5; stroke-dasharray: 430; stroke-dashoffset: 430; }
.orbit__head { stroke: var(--orange); stroke-width: 5; opacity: 0; }
.is-in .orbit__arc { animation: draw 1.6s var(--ease) 0.2s forwards; }
.is-in .orbit__head { animation: fadeup 0.4s 1.5s forwards; }
.orbit__disk { stroke: var(--accent-text); stroke-width: 2.5; fill: rgba(124, 110, 245, 0.14); }
.orbit__spindle { stroke: var(--accent-text); stroke-width: 2.5; transform-origin: 100px 100px; animation: breathe 3s ease-in-out infinite; }
.orbit__dot { fill: var(--accent-text); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 50% { transform: scale(1.18); } }

.ticks { display: grid; gap: 10px; margin: 16px 0; }
.ticks li { position: relative; padding-left: 30px; color: var(--text2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 15px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) scale(0.8); transform-origin: 50% 50%; }
.ticks b { color: var(--head); font-weight: 600; }

.media { display: grid; gap: 16px; height: 100%; }
.media__card { display: flex; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); transition: border-color 0.3s, transform 0.4s var(--ease); }
.media__card:hover { border-color: rgba(124, 110, 245, 0.55); transform: translateX(6px); }
.media__card .ic { color: var(--accent-text); margin-top: 2px; }
.media__card p { margin-top: 6px; font-size: 15px; color: var(--text2); }
.callout { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid rgba(255, 138, 43, 0.4); border-radius: var(--r); background-color: rgba(255, 138, 43, 0.08); color: var(--text); }
.callout .ic { width: 26px; height: 26px; color: var(--orange-hi); animation: nudge 2.4s ease-in-out infinite; }
.callout b { color: var(--orange-hi); }
@keyframes nudge { 50% { transform: translateY(-5px); } }

/* ───────── cleanup ───────── */

.duo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.duo__shot { perspective: 1400px; }
.tilt { transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg)); transition: transform 0.5s var(--ease); will-change: transform; }

/* ───────── inside ───────── */

.arch { display: grid; grid-template-columns: 1fr 86px 1.15fr 86px 1fr; align-items: center; }
.arch__node { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); height: 100%; }
.arch__node .ic { color: var(--accent-text); }
.arch__node h3 { margin: 14px 0 8px; }
.arch__node p { font-size: 15px; color: var(--text2); }
.arch__node--core { border-color: rgba(124, 110, 245, 0.6); background: linear-gradient(170deg, rgba(124, 110, 245, 0.16), transparent 60%), var(--card); box-shadow: 0 0 70px -28px rgba(124, 110, 245, 0.9); }
.arch__node--core .ic { animation: spin 14s linear infinite; }
.arch__node .mono { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.arch__node .mono span { padding: 3px 9px; border-radius: 6px; background-color: var(--sunken); border: 1px solid var(--line); font: 500 12px var(--mono); color: var(--text2); }
.arch__wire { position: relative; height: 2px; background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%); background-size: 8px 2px; }
.arch__wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background-color: var(--accent-text); box-shadow: 0 0 12px var(--accent-hi); animation: wire 2.1s linear infinite; }
.arch__wire i:nth-child(2) { animation-delay: -0.7s; }
.arch__wire i:nth-child(3) { animation-delay: -1.4s; }
.arch__wire--rev i { animation-direction: reverse; }
@keyframes wire { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

.term { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--sunken); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); background-color: var(--bg-alt); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background-color: var(--line-strong); }
.term__bar span { margin-left: 10px; font: 500 12.5px var(--mono); color: var(--muted); }
.term__body { margin: 0; padding: 20px 22px; min-height: 12.2em; font-size: 14.5px; line-height: 1.75; color: var(--head); white-space: pre-wrap; overflow-wrap: anywhere; }
.term__body .p { color: var(--ok); }
.term__body .c { color: var(--muted); }
.term__body .caret { display: inline-block; width: 0.6em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background-color: var(--accent-text); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── limits ───────── */

.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.not { padding: 26px 24px; }
.not .ic { color: var(--muted); }
.not h3 { margin: 16px 0 8px; }
.beta { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; padding: 20px 24px; border: 1px solid rgba(240, 180, 58, 0.34); border-radius: var(--r); background-color: rgba(240, 180, 58, 0.07); }
.beta__tag { flex: none; padding: 3px 10px; border-radius: 6px; background-color: #f0b43a; color: #2a1e00; font: 700 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.beta p { font-size: 15.5px; color: var(--text); }
.beta b { color: #f4d086; font-weight: 600; }

/* ───────── download ───────── */

.sec--dl { overflow: hidden; }
.sec--dl::before { content: ''; position: absolute; left: 50%; top: -220px; width: 1100px; height: 620px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(111, 96, 234, 0.22), transparent); }
.sec--dl .sec__head { margin-inline: auto; text-align: center; }
.sec--dl .eyebrow { justify-content: center; }
.dls { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 26px 26px; transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.dl:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.dl.is-mine { border-color: rgba(82, 178, 47, 0.6); box-shadow: 0 0 70px -30px rgba(82, 178, 47, 0.9); }
.dl > .ic { color: var(--head); }
.dl h3 { margin-top: 18px; font-size: 21px; }
.dl__req { margin: 4px 0 12px; font: 500 12.5px var(--mono) !important; color: var(--muted) !important; }
.dl .btn { margin-top: auto; width: 100%; font: 600 12px var(--mono); padding-inline: 10px; gap: 8px; }
.dl .btn span { overflow: hidden; text-overflow: ellipsis; }
.dl > p:not(.dl__req):not(.dl__size) { margin-bottom: 22px; }
.dl__size { margin-top: 8px; width: 100%; text-align: center; font: 500 12.5px var(--mono) !important; color: var(--muted) !important; }
.cmd { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 9px; background-color: var(--sunken); }
.cmd code { flex: 1; padding: 0; background: none; color: var(--text2); font-size: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd__copy { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 7px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.cmd__copy:hover { color: #fff; background-color: rgba(255, 255, 255, 0.08); }
.cmd__copy.is-done { color: var(--ok); }
.cmd__copy .ic { width: 16px; height: 16px; }
.dl__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin: 34px 0 18px; font-weight: 500; }

/* ───────── guide ───────── */

.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; counter-reset: c; border-top: 1px solid var(--line); }
.toc li { counter-increment: c; border-bottom: 1px solid var(--line); }
.toc a { position: relative; display: grid; grid-template-columns: 48px 1fr 24px; align-items: baseline; padding: 17px 6px; color: inherit; transition: background-color 0.25s, padding 0.35s var(--ease); }
.toc a::before { content: counter(c, decimal-leading-zero); font: 500 13px var(--mono); color: var(--muted); transition: color 0.25s; }
.toc a::after { content: '→'; grid-column: 3; grid-row: 1; color: var(--accent-text); opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.toc b { grid-column: 2; font: 600 17px/1.35 var(--display); color: var(--head); }
.toc span { grid-column: 2; font-size: 14.5px; color: var(--muted); }
.toc a:hover { background-color: rgba(124, 110, 245, 0.07); padding-left: 16px; }
.toc a:hover::before { color: var(--orange-hi); }
.toc a:hover::after { opacity: 1; transform: none; }

/* ───────── footer ───────── */

.foot { border-top: 1px solid var(--line); background-color: var(--sunken); padding: 56px 0 30px; font-size: 14.5px; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 48px; }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand b { font: 700 18px var(--display); color: var(--head); }
.foot h3 { margin-bottom: 8px; font: 600 12.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); }
.foot__links { display: grid; gap: 7px; align-content: start; }
.foot__links a { color: var(--text2); }
.foot__links a:hover { color: #fff; }
.foot__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ───────── responsive ───────── */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav__links { display: none; }
  .chip3d--b { right: -6%; }
}

@media (max-width: 920px) {
  body { font-size: 16px; }
  .sec { padding: 80px 0; }
  .hero__in { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
  .hero__shot { padding: 0 4% 6% 8%; }
  .hero__shot .frame { width: 100%; }
  .shot3d { transform: rotateY(-6deg) rotateX(3deg); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pipe, .split, .duo { grid-template-columns: 1fr; }
  .steps li.is-on { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .formats, .nots, .dls { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch__wire { width: 2px; height: 44px; margin-inline: auto; background-image: linear-gradient(var(--line-strong) 50%, transparent 50%); background-size: 2px 8px; }
  .arch__wire i { left: -3px; animation-name: wire-v; }
  .toc { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; gap: 30px; }
  .duo { gap: 36px; }
  .ver { width: 54px; }
  .ver--full { width: 66px; }
  .chain__row { gap: 6px; }
}
@keyframes wire-v { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav__in { gap: 12px; }
  .brand span, .iconbtn { display: none; }
  .betabar__tag { display: none; }
  .betabar p { font-size: 13.5px; }
  .cards { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .stats b { font-size: 32px; }
  .stats li { padding: 16px 18px; }
  .pipe__canvas { min-height: 460px; }
  .chip3d { display: none; }
  .ver { width: 38px; }
  .ver--full { width: 48px; }
  .ver span { font-size: 9.5px; }
  .chain__row { gap: 4px; padding-inline: 8px; }
  .chain__stage { height: 230px; }
  .media__card { flex-direction: column; gap: 12px; }
  .beta { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 24px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .arch__wire i, .pill__dot::after { display: none; }
  .gallery__tabs button[aria-selected='true']::before { transform: scaleX(1); }
}
