/* Manta – marketing site. Dark-first, self-contained (no web fonts, no CDNs). */

:root {
  --abyss: #030a17;
  --navy: #061a33;
  --deep: #0a2a4d;
  --sea: #0b4572;
  --teal: #13809a;
  --aqua: #5ce1e6;
  --glow: #7dffe2;
  --coral: #ff8a6b;
  --amber: #f5b14c;
  --text: #e8f6fb;
  --muted: #a3bccb;
  --faint: #6f8ba0;
  --line: rgba(150, 220, 255, .12);
  --line-strong: rgba(150, 220, 255, .22);
  --glass: rgba(10, 30, 56, .55);
  --card: rgba(12, 32, 58, .62);
  --win: #1c1c1e;
  --win-2: #232326;
  --win-line: #2f2f33;
  --win-text: #e6e6e8;
  --win-muted: #8e8e93;
  --sel: #0a63d6;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body::before { /* the deep: a fixed vertical gradient behind everything */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(19,128,154,.35), transparent 60%),
    linear-gradient(180deg, #06223f 0%, #041530 30%, var(--abyss) 70%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(32px, 5.2vw, 60px); }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
code { font: .88em var(--mono); background: rgba(150,220,255,.1); padding: .1em .35em; border-radius: 6px; color: #cdeff7; }
kbd {
  font: 600 .82em var(--font); display: inline-block; min-width: 1.6em; text-align: center;
  padding: .12em .45em; border-radius: 7px; color: #e9fbff;
  background: linear-gradient(#1b3b5e, #12304f); border: 1px solid rgba(160,230,255,.22);
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  white-space: nowrap;
}
.dim { color: var(--muted); }
.sr-only, .sprite { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--glow); color: #021; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.kicker { color: var(--glow); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 720px; }
.center-head { text-align: center; margin: 0 auto 56px; }
.center-head .sub { margin: 18px auto 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.1;
  color: var(--text); border: 1px solid var(--line-strong); background: var(--b);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  text-decoration: none !important; white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-xl { padding: 19px 34px; font-size: 19px; }
.btn-primary {
  color: #02121c; border-color: transparent;
  background: linear-gradient(135deg, #8ff7ff 0%, #5ce1e6 45%, #3bb7d6 100%);
  box-shadow: 0 10px 30px -8px rgba(92,225,230,.55), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(92,225,230,.75), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { background: rgba(255,255,255,.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-coffee { background: #ffdd00; color: #1a1300; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255,221,0,.6); }
.round {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05); color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.round svg { width: 20px; height: 20px; }
.round:hover { background: rgba(255,255,255,.12); transform: scale(1.06); }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(3,10,23,.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none !important; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.gh-link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none;
  font: 600 14px/1 var(--font); padding: 7px 9px; border-radius: 999px; transition: color .2s, background .2s;
}
.gh-link:hover { color: var(--text); background: rgba(255,255,255,.07); }
.gh-link:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.gh-link svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { .gh-link span { display: none; } }
.lang-menu { position: relative; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px;
  font: 600 13px/1 var(--font); padding: 7px 10px 7px 9px; cursor: pointer; letter-spacing: .04em;
}
.lang:hover, .lang[aria-expanded="true"] { background: rgba(255,255,255,.07); }
.lang-globe { width: 15px; height: 15px; opacity: .8; }
.lang-chev { width: 10px; height: 10px; opacity: .7; transition: transform .2s var(--ease); }
.lang[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 184px; max-width: calc(100vw - 2 * var(--gutter));
  margin: 0; padding: 6px; list-style: none; border-radius: 14px;
  background: #071a31; border: 1px solid var(--line-strong);
  box-shadow: 0 22px 50px -12px rgba(0,0,0,.75);
  animation: fadeIn .16s;
}
.lang-list[hidden] { display: none; }
.lang-list a, .lang-list button {
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--text);
  font: 15px/1.2 var(--font); letter-spacing: 0; text-align: left; cursor: pointer;
}
.lang-list a:hover { background: rgba(150,220,255,.08); }
.lang-list a:focus-visible { background: rgba(125,255,226,.12); outline: 2px solid var(--glow); outline-offset: -2px; }
.lang-list a[aria-checked="true"] { color: var(--glow); font-weight: 600; }
.lang-list a[aria-checked="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); margin-right: -6px; order: 2; }
.lang-list small { order: 3; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }

/* "View this page in English?" – offered once on the German page, never a redirect */
.lang-hint {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(7,26,49,.94); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lang-hint.in { opacity: 1; transform: translate(-50%, 0); }
.reduce .lang-hint { transition: none; }
.lang-hint a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14.5px; text-decoration: none; padding: 4px 0; }
.lang-hint a:hover { color: var(--glow); }
.lang-hint .lang-globe { flex: none; }
.lang-hint-x {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none;
  color: var(--muted); font: 20px/1 var(--font); cursor: pointer;
}
.lang-hint-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.lang-hint a:focus-visible, .lang-hint-x:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 8px; }

/* languages: Chinese needs CJK fonts and no negative tracking; long words must never overflow */
:root:lang(zh) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
body:lang(zh) { line-height: 1.7; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) summary { letter-spacing: 0; }
:lang(zh) h1 { letter-spacing: .01em; line-height: 1.12; }
:lang(zh) h2 { line-height: 1.2; }
:lang(zh) .kicker { letter-spacing: .12em; }
:lang(zh) .lead, :lang(zh) .sub { line-height: 1.75; }
h1, h2, h3, summary, .btn, .eyebrow, .kicker { overflow-wrap: break-word; }
:is(:lang(fr), :lang(it), :lang(es), :lang(ru)) p:not(.lead, .sub, .meta) { hyphens: auto; -webkit-hyphens: auto; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 140px 0 40px; text-align: center; isolation: isolate; overflow: hidden; overflow: clip; }
.ocean { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rays {
  position: absolute; inset: -10% -20% 30%;
  background:
    linear-gradient(100deg, transparent 20%, rgba(189,244,255,.10) 24%, transparent 30%),
    linear-gradient(80deg, transparent 45%, rgba(189,244,255,.08) 49%, transparent 56%),
    linear-gradient(105deg, transparent 62%, rgba(189,244,255,.07) 66%, transparent 74%);
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
  animation: rays 14s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
@keyframes rays { from { transform: skewX(-4deg) translateX(-2%); opacity: .8; } to { transform: skewX(5deg) translateX(3%); opacity: 1; } }
.caustics {
  position: absolute; inset: -20%; background: url(../img/caustics.webp) 0 0 / 520px 520px repeat;
  opacity: .07; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  animation: drift1 76s linear infinite;
}
.caustics.c2 { background-size: 760px 760px; opacity: .05; animation: drift2 104s linear infinite; }
/* Animate the tile offset by whole tiles: the loop restarts on an identical frame, so it never jumps. */
@keyframes drift1 { from { background-position: 0 0; } to { background-position: 520px 520px; } }
@keyframes drift2 { from { background-position: 0 0; } to { background-position: -760px 760px; } }
#plankton { position: absolute; inset: 0; width: 100%; height: 100%; }
.manta { position: absolute; left: 0; top: 0; width: 240px; height: auto; overflow: visible; opacity: 0; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0,8,20,.55)); }
.manta.on { opacity: .78; transition: opacity 1.2s; }

.hero-copy { position: relative; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: #bff6ff; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; background: rgba(92,225,230,.08); border: 1px solid rgba(92,225,230,.25);
  margin-bottom: 24px;
}
h1 { font-size: clamp(46px, 9vw, 108px); letter-spacing: -.045em; line-height: .98; margin-bottom: 26px; }
.shine {
  background: linear-gradient(100deg, #e9fdff 0%, #8ff7ff 30%, #7dffe2 50%, #5ab8ff 70%, #e9fdff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto 34px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.meta { color: var(--faint); font-size: 14px; }

.hero-shot { position: relative; max-width: 1080px; margin: 64px auto 0; padding: 0 var(--gutter); perspective: 1800px; }
.window-hero {
  transform-origin: 50% 0;
  transform: rotateX(32deg) translateY(60px) scale(.88);
  opacity: 0;
  transition: transform 1.8s var(--ease), opacity 1.2s ease;
}
.loaded .window-hero { transform: rotateX(var(--tilt, 0deg)) translateY(0) scale(1); opacity: 1; }
.hero-glow {
  position: absolute; z-index: -1; left: 10%; right: 10%; top: 10%; bottom: -10%;
  background: radial-gradient(closest-side, rgba(92,225,230,.35), transparent);
  filter: blur(40px); opacity: .7;
}

/* ------------------------------------------------------------ mac window frame */
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--win);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 40px 90px -30px rgba(0,0,0,.85), 0 18px 40px -20px rgba(0,30,60,.7);
}
.window img { width: 100%; height: auto; }
.win-bar {
  height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: linear-gradient(#2c2c2f, #252528); border-bottom: 1px solid #111;
  font-size: 12px; color: var(--win-muted); position: relative;
}
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; flex: none; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; font-weight: 600; }

/* ------------------------------------------------------------ marquee */
.marquee-wrap { padding: 70px 0 30px; }
.marquee {
  overflow: hidden; -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; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span {
  font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; color: rgba(232,246,251,.32);
  padding: 0 28px; white-space: nowrap; position: relative;
}
.marquee-track span::after { content: "·"; position: absolute; right: -6px; color: var(--teal); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sticky stories */
.story { position: relative; height: calc(var(--steps, 3) * 85vh + 60vh); }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  max-width: var(--maxw); margin: 0 auto; padding: 84px var(--gutter) 28px;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.story-text h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step { position: relative; padding: 14px 0 14px 22px; opacity: .38; transition: opacity .5s var(--ease); }
.step::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line-strong); }
.step::after { content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 0; border-radius: 3px; background: linear-gradient(var(--glow), var(--aqua)); box-shadow: 0 0 12px var(--glow); transition: height .6s var(--ease); }
.step.is-active { opacity: 1; }
.step.is-active::after { height: calc(100% - 36px); }
.step h3 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
.story-visual { position: relative; min-width: 0; }
.story-visual::before {
  content: ""; position: absolute; inset: 10% 5%; z-index: -1; filter: blur(60px);
  background: radial-gradient(closest-side, rgba(19,128,154,.55), transparent);
}

/* mock UI shared */
.mock { font-size: 12.5px; color: var(--win-text); user-select: none; }
.mock-body { display: flex; height: clamp(300px, 52vh, 470px); }
.m-side { width: 150px; flex: none; background: #232326; border-right: 1px solid #111; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #d5d5d8; }
.m-side b { color: var(--win-muted); font-size: 10.5px; font-weight: 600; margin: 8px 6px 2px; }
.m-side b:first-child { margin-top: 0; }
.m-side span { padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-side span.on { background: rgba(255,255,255,.1); }
.m-panes { flex: 1; display: flex; gap: 6px; padding: 6px; min-width: 0; background: #1a1a1c; }
.m-pane { flex: 1 1 0; min-width: 0; background: var(--win); border-radius: 8px; border: 1.5px solid #2a2a2e; display: flex; flex-direction: column; overflow: hidden; transition: flex-grow .9s var(--ease), opacity .7s var(--ease), border-color .4s, transform .9s var(--ease); }
.m-pane.focus { border-color: #2f7cf6; }
.m-pane.solo { flex: 1; border-radius: 0; border: 0; }
.m-path { height: 34px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--win-line); white-space: nowrap; overflow: hidden; color: #f2f2f4; font-weight: 600; }
.m-path em { font-style: normal; font-weight: 500; color: #8fc1ff; background: rgba(47,124,246,.18); padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
.m-path em.srv { color: #b6f7d1; background: rgba(40,200,120,.16); }
.m-path em.ctr { color: #ffd9a8; background: rgba(245,177,76,.18); }
.m-rows { padding: 4px; overflow: hidden; }
.m-rows .r { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rows .r:nth-child(even) { background: rgba(255,255,255,.025); }
.m-rows .r.sel { background: var(--sel); color: #fff; }
.fi { width: 16px; height: 16px; flex: none; color: #9a9aa0; }
.f-folder { color: #4ea3ff; }
.f-pdf { color: #ff6b6b; }
.f-img { color: #c47bff; }
.f-zip { color: #f5b14c; }
.f-code { color: #34c38f; }
.split-hint { position: absolute; right: 18px; bottom: 16px; opacity: 0; transform: translateY(8px) scale(.9); transition: .4s var(--ease); }
.split-hint kbd { font-size: 15px; padding: 6px 12px; box-shadow: 0 0 0 4px rgba(125,255,226,.15), 0 8px 24px rgba(0,0,0,.4); }
.split-hint.flash { opacity: 1; transform: none; }

/* pane split steps */
#paneMock .p2, #paneMock .p3 { flex-grow: 0; opacity: 0; border-width: 0; transform: translateX(30px); }
#paneMock[data-step="1"] .p2, #paneMock[data-step="2"] .p2, #paneMock[data-step="2"] .p3 { flex-grow: 1; opacity: 1; border-width: 1.5px; transform: none; }
#paneMock[data-step="1"] .p1, #paneMock[data-step="2"] .p1 { border-color: #2a2a2e; }
#paneMock[data-step="1"] .p2 { border-color: #2f7cf6; }
#paneMock[data-step="2"] .p3 { border-color: #2f7cf6; }
#paneMock .m-panes { gap: 0; }
#paneMock[data-step="1"] .m-panes, #paneMock[data-step="2"] .m-panes { gap: 6px; }

/* views mock: one container, four layouts, items FLIP-animated by JS */
.seg { margin-left: auto; display: inline-flex; gap: 2px; background: #2a2a2e; padding: 2px; border-radius: 7px; }
.seg i { width: 22px; height: 16px; border-radius: 5px; position: relative; }
.seg i::before { content: ""; position: absolute; inset: 4px 6px; border: 1.4px solid #9a9aa0; border-radius: 2px; }
.seg i[data-v="list"]::before { border-width: 1.4px 0; inset: 4px 5px; box-shadow: inset 0 3px 0 -1.6px #9a9aa0; }
.seg i[data-v="columns"]::before { border-width: 0 1.4px; inset: 4px 6px; }
.seg i[data-v="gallery"]::before { inset: 4px 4px; }
.crumb-extra { display: none; color: var(--win-muted); font-weight: 500; }

.vw { --th: 18px; position: relative; flex: 1; min-height: 0; display: grid; overflow: hidden; padding: 6px; gap: 0; }
.vw[data-view="list"] { grid-template: "head" auto "items" 1fr / 1fr; }
.vw[data-view="icons"] { grid-template: "items" 1fr / 1fr; }
.vw[data-view="columns"] { grid-template: "col0 items info" 1fr / .7fr 1.1fr 1.25fr; }
.vw[data-view="gallery"] { grid-template: "stage" 1fr "items" auto / 1fr; }
.vw-head, .vw-col0, .vw-stage, .vw-info { display: none; }
.vw-head { grid-area: head; display: none; grid-template-columns: 24px 1fr 64px 112px; padding: 4px 8px 6px; color: var(--win-muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--win-line); margin-bottom: 4px; }
.vw-head span:first-child { grid-column: 2; }
.vw[data-view="list"] .vw-head { display: grid; animation: fadeIn .5s; }
.vw-items { grid-area: items; min-height: 0; min-width: 0; }
.it { display: grid; align-items: center; border-radius: 6px; will-change: transform; }
.it .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .sz, .it .dt { color: var(--win-muted); font-size: 11.5px; white-space: nowrap; }
.th {
  width: var(--th); height: calc(var(--th) * .75); border-radius: 3px; position: relative; overflow: hidden; flex: none;
  background: linear-gradient(#8fd3f4, #b98cf0);
}
.th::before { content: ""; position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #ffd970; left: 26%; top: 18%; }
.th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#36a14a, #1f6b2e); clip-path: polygon(0 66%, 14% 52%, 30% 48%, 46% 58%, 62% 66%, 78% 54%, 92% 50%, 100% 56%, 100% 100%, 0 100%); }
.th.t2 { background: linear-gradient(#7ad0e6, #9fb5ff); } .th.t2::before { left: 60%; top: 24%; }
.th.t3 { background: linear-gradient(#26305e, #4a8bd1); } .th.t3::before { background: #c9f7ff; width: 14%; left: 70%; top: 14%; } .th.t3::after { background: linear-gradient(#1f8b7a, #0f4a49); }
.th.t4 { background: linear-gradient(#ffb48a, #c46dd8); } .th.t4::before { left: 46%; top: 30%; }
.th.t5 { background: linear-gradient(#ff9a6b, #6c4fa3); } .th.t5::after { background: linear-gradient(#5a4a5e, #2c2333); clip-path: polygon(0 80%, 30% 74%, 46% 34%, 54% 34%, 70% 74%, 100% 78%, 100% 100%, 0 100%); } .th.t5::before { left: 14%; top: 14%; width: 18%; }
.th.doc { background: #f4f4f6; display: grid; place-items: center; } .th.doc::before, .th.doc::after { display: none; } .th.doc svg { width: 70%; height: 70%; color: #ff6b6b; }

/* list */
.vw[data-view="list"] .vw-items { display: flex; flex-direction: column; gap: 1px; }
.vw[data-view="list"] .it { grid-template-columns: 24px 1fr 64px 112px; padding: 5px 8px; }
.vw[data-view="list"] .it:nth-child(even) { background: rgba(255,255,255,.025); }
/* icons */
.vw[data-view="icons"] { --th: 74px; }
.vw[data-view="icons"] .vw-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px 6px; align-content: start; padding: 10px 4px; }
.vw[data-view="icons"] .it { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 8px 4px; }
.vw[data-view="icons"] .it .nm { font-size: 12px; max-width: 100%; padding: 1px 6px; border-radius: 5px; }
.vw[data-view="icons"] .it .th { border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.vw[data-view="icons"] .it .sz, .vw[data-view="icons"] .it .dt { display: none; }
.vw[data-view="icons"] .it.sel { background: transparent; color: var(--win-text); }
.vw[data-view="icons"] .it.sel .th { outline: 3px solid rgba(255,255,255,.18); outline-offset: 4px; }
.vw[data-view="icons"] .it.sel .nm { background: var(--sel); color: #fff; }
/* columns */
.vw-col0 { grid-area: col0; flex-direction: column; gap: 2px; padding: 2px 6px 0 2px; border-right: 1px solid var(--win-line); }
.vw-col0 span { padding: 5px 8px; border-radius: 6px; position: relative; }
.vw-col0 span::after { content: "›"; position: absolute; right: 8px; color: var(--win-muted); }
.vw-col0 span.on { background: rgba(255,255,255,.1); }
.vw[data-view="columns"] .vw-col0 { display: flex; animation: fadeIn .6s; }
.vw[data-view="columns"] .vw-items { display: flex; flex-direction: column; gap: 1px; padding: 0 6px; border-right: 1px solid var(--win-line); }
.vw[data-view="columns"] .it { grid-template-columns: 22px 1fr; padding: 5px 8px; }
.vw[data-view="columns"] .it .sz, .vw[data-view="columns"] .it .dt { display: none; }
.vw-info { grid-area: info; flex-direction: column; align-items: center; padding: 10px 12px; gap: 8px; text-align: center; }
.vw-info .th { --th: 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; max-width: 220px; }
.vw-info dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; width: 100%; max-width: 220px; margin: 6px 0 0; font-size: 11.5px; text-align: left; }
.vw-info dt { color: var(--win-muted); } .vw-info dd { margin: 0; text-align: right; }
.vw[data-view="columns"] .vw-info { display: flex; animation: fadeIn .7s .1s both; }
.vw[data-view="columns"] ~ .crumb-extra, .m-path:has(+ .vw[data-view="columns"]) .crumb-extra { display: inline; }
/* gallery */
.vw-stage { grid-area: stage; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 0; padding: 10px; }
.vw-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; min-height: 0; }
.vw-big .th { --th: 100%; width: auto; height: auto; flex: 0 1 auto; min-height: 0; max-height: 78%; max-width: 72%; aspect-ratio: 4 / 3; border-radius: 8px; box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.vw-big .th:not([style]) { width: 340px; }
.vw-big b { margin-top: 8px; }
.vw-stage small { color: var(--win-muted); }
.vw[data-view="gallery"] { --th: 52px; }
.vw[data-view="gallery"] .vw-stage { display: flex; animation: zoomIn .7s var(--ease); }
.vw[data-view="gallery"] .vw-items { display: flex; gap: 8px; padding: 10px 8px; border-top: 1px solid var(--win-line); background: #19191b; margin: 0 -6px -6px; overflow: hidden; justify-content: center; }
.vw[data-view="gallery"] .it { grid-template-columns: 1fr; padding: 4px; }
.vw[data-view="gallery"] .it .nm, .vw[data-view="gallery"] .it .sz, .vw[data-view="gallery"] .it .dt { display: none; }
.vw[data-view="gallery"] .it.sel { background: transparent; outline: 2px solid #2f7cf6; }
.vw .it.sel { background: var(--sel); color: #fff; }
.vw .it.sel .sz, .vw .it.sel .dt { color: rgba(255,255,255,.8); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } }

/* ------------------------------------------------------------ bands */
.band { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.two.rev > .copy { order: 2; }
.copy h2 { margin-bottom: 22px; font-size: clamp(32px, 4.4vw, 54px); }
.copy p { color: var(--muted); font-size: 18px; }

/* palette */
.palette {
  border-radius: 16px; background: rgba(36,36,40,.92); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), 0 0 80px -20px rgba(92,225,230,.25);
  overflow: hidden; color: var(--win-text); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pal-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: 22px; border-bottom: 1px solid rgba(255,255,255,.08); min-height: 66px; }
.pal-search { width: 22px; height: 22px; color: var(--win-muted); flex: none; }
.caret { width: 2px; height: 26px; background: #4ea3ff; animation: blink 1s steps(1) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.pal-list { list-style: none; margin: 0; padding: 8px; min-height: 236px; }
.pal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 15px; animation: palIn .35s var(--ease) both; }
.pal-list li svg { width: 18px; height: 18px; color: var(--win-muted); flex: none; }
.pal-list li small { color: var(--win-muted); font-size: 13px; white-space: nowrap; }
.pal-list li kbd { margin-left: auto; background: none; border: 0; box-shadow: none; color: var(--win-muted); font-size: 14px; padding: 0; }
.pal-list li.on { background: #0a63d6; color: #fff; }
.pal-list li.on svg, .pal-list li.on small, .pal-list li.on kbd { color: rgba(255,255,255,.85); }
.pal-list mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(125,255,226,.8); text-underline-offset: 3px; }
.pal-list li.on mark { text-decoration-color: #fff; }
.pal-foot { font-size: 12px; color: var(--win-muted); padding: 10px 20px 14px; }
@keyframes palIn { from { opacity: 0; transform: translateY(6px); } }

/* connect orbit */
.orbit { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto 70px; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit .links path { stroke: rgba(125,255,226,.5); stroke-width: 1.5; stroke-dasharray: 4 10; fill: none; animation: flow 1.6s linear infinite; }
.orbit .links path:nth-child(2n) { animation-direction: reverse; animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 26%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -54%); } }
.node {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; background: rgba(8,28,52,.85); border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 24px -6px rgba(92,225,230,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.node svg { width: 20px; height: 20px; color: var(--glow); }
.n1 { left: 50%; top: 8.3%; } .n2 { left: 86%; top: 29.2%; } .n3 { left: 86%; top: 70.8%; } .n4 { left: 50%; top: 91.7%; } .n5 { left: 14%; top: 70.8%; } .n6 { left: 14%; top: 29.2%; }
.node { animation: nodePulse 4s ease-in-out infinite; }
.n2 { animation-delay: -.7s; } .n3 { animation-delay: -1.4s; } .n4 { animation-delay: -2.1s; } .n5 { animation-delay: -2.8s; } .n6 { animation-delay: -3.5s; }
@keyframes nodePulse { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 34px -2px rgba(125,255,226,.55); } }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card-ico { width: 30px; height: 30px; color: var(--glow); }

/* terminal mock */
.term-mock { display: flex; flex-direction: column; height: clamp(420px, 56vh, 520px); }
.term-mock .m-pane { flex: 1; }
.term-mock .m-rows .r { transition: background .3s; }
.term { height: 44%; flex: none; background: #0f1012; border-top: 1px solid #000; display: flex; flex-direction: column; }
.term-head { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 11.5px; color: var(--win-muted); border-bottom: 1px solid #1f1f22; }
.term-head svg { width: 15px; height: 15px; }
.term-out { flex: 1; margin: 0; padding: 10px 14px; font: 13px/1.6 var(--mono); color: #d8f3e6; white-space: pre-wrap; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.term-out .pr { color: #5ce1e6; } .term-out .mu { color: #7c8b96; } .term-out .ok { color: #9ff0b8; }
.term-out .cur { display: inline-block; width: 8px; height: 15px; background: #d8f3e6; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.r.flash { background: var(--sel) !important; color: #fff; }

/* transfers */
.xfer {
  max-width: 980px; margin: 0 auto 50px; border-radius: 16px; overflow: hidden; background: var(--win); color: var(--win-text);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.8); font-size: 14px;
}
.x-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #232326; border-bottom: 1px solid #111; }
.x-badge { font-size: 12px; color: #8fc1ff; background: rgba(47,124,246,.18); padding: 2px 9px; border-radius: 999px; }
.x-net { margin-left: auto; width: 22px; height: 22px; color: var(--amber); opacity: 0; transition: opacity .3s; }
.x-net svg { width: 100%; height: 100%; }
.x-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 18px; max-height: 0; overflow: hidden; background: rgba(245,177,76,.13); color: #ffe2b5; transition: max-height .5s var(--ease), padding .5s var(--ease); }
.x-banner svg { width: 20px; height: 20px; color: var(--amber); }
.x-banner span { color: #e9cfa6; }
.x-job { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; }
.x-ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(47,124,246,.18); display: grid; place-items: center; color: #8fc1ff; }
.x-ico svg { width: 22px; height: 22px; }
.x-title { font-weight: 600; margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-bar { position: relative; height: 6px; border-radius: 6px; background: #3a3a3e; overflow: visible; }
.x-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2f7cf6, #5ce1e6); box-shadow: 0 0 14px rgba(92,225,230,.6); transition: background .4s; }
.x-mark { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--glow); border-radius: 2px; opacity: 0; box-shadow: 0 0 10px var(--glow); }
.x-status { margin-top: 9px; color: var(--win-muted); font-size: 13px; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.x-pct { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.xfer[data-state="wait"] .x-banner { max-height: 80px; padding: 12px 18px; }
.xfer[data-state="wait"] .x-net { opacity: 1; }
.xfer[data-state="wait"] .x-bar i { background: #b8741a; box-shadow: none; }
.xfer[data-state="wait"] .x-status { color: #f0b062; }
.xfer[data-state="resume"] .x-mark, .xfer[data-state="done"] .x-mark { opacity: 1; }
.xfer[data-state="resume"] .x-status { color: var(--glow); }
.xfer[data-state="done"] .x-status { color: #9ff0b8; }
.shot-fig { max-width: 980px; margin: 0 auto; }
figcaption { color: var(--faint); font-size: 14.5px; text-align: center; margin-top: 16px; }

/* drag scene */
.drag-scene { position: relative; height: 420px; }
.ds-manta { position: absolute; left: 0; top: 30px; width: 58%; }
.ds-manta .m-rows { padding: 8px; font-size: 13px; }
.ds-finder { position: absolute; right: 0; bottom: 20px; width: 50%; background: #2a2a2d; }
.ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 16px; min-height: 170px; transition: background .3s; }
.ds-ico { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: #e6e6e8; text-align: center; word-break: break-word; }
.ds-ico svg { width: 46px; height: 46px; }
.ds-drop { opacity: 0; transform: scale(.6); }
.ds-ghost { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(10,99,214,.85); color: #fff; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; }
.ds-ghost svg { width: 18px; height: 18px; color: #fff; }
.ds-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; opacity: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.drag-scene.play .ds-src { animation: dsSrc 5s var(--ease) infinite; }
.drag-scene.play .ds-ghost { animation: dsGhost 5s var(--ease) infinite; }
.drag-scene.play .ds-cursor { animation: dsCursor 5s var(--ease) infinite; }
.drag-scene.play .ds-drop { animation: dsDrop 5s var(--ease) infinite; }
.drag-scene.play .ds-grid { animation: dsHover 5s var(--ease) infinite; }
@keyframes dsSrc { 0%, 8% { background: transparent; } 12%, 70% { background: var(--sel); color: #fff; } 80%, 100% { background: transparent; color: inherit; } }
@keyframes dsGhost {
  0%, 16% { opacity: 0; transform: translate(var(--sx), var(--sy)); }
  22% { opacity: 1; transform: translate(calc(var(--sx) + 10px), calc(var(--sy) + 6px)); }
  56% { opacity: 1; transform: translate(var(--ex), var(--ey)); }
  62%, 100% { opacity: 0; transform: translate(var(--ex), var(--ey)) scale(.6); }
}
@keyframes dsCursor {
  0% { opacity: 0; transform: translate(calc(var(--sx) + 40px), calc(var(--sy) + 60px)); }
  8%, 16% { opacity: 1; transform: translate(calc(var(--sx) + 30px), calc(var(--sy) + 12px)); }
  22% { transform: translate(calc(var(--sx) + 40px), calc(var(--sy) + 18px)); }
  56%, 70% { opacity: 1; transform: translate(calc(var(--ex) + 30px), calc(var(--ey) + 12px)); }
  86%, 100% { opacity: 0; transform: translate(calc(var(--ex) + 60px), calc(var(--ey) + 40px)); }
}
@keyframes dsDrop { 0%, 58% { opacity: 0; transform: scale(.6); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dsHover { 0%, 30% { background: transparent; } 40%, 58% { background: rgba(47,124,246,.16); box-shadow: inset 0 0 0 2px #2f7cf6; } 64%, 100% { background: transparent; box-shadow: none; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s;
  min-height: 200px;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(125,255,226,.14), transparent 45%);
}
.tile:hover { border-color: rgba(125,255,226,.35); }
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 16px 0 8px; font-size: 20px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tile-ico { width: 32px; height: 32px; color: var(--glow); }
.t-git { grid-column: span 2; grid-row: span 2; }
.t-sync, .t-cloud, .t-plug { grid-column: span 2; }
.t-size { grid-column: span 2; }
.t-rename { grid-column: span 2; }
.git-demo { margin-top: 28px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); padding: 14px; font-size: 14px; }
.gd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(125,255,226,.12); color: var(--glow); font-weight: 600; margin-bottom: 10px; }
.gd-chip svg { width: 15px; height: 15px; } .gd-chip small { color: var(--muted); font-weight: 500; }
.gd-row { display: flex; justify-content: space-between; padding: 8px 6px; border-top: 1px solid var(--line); }
.gd-row b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; }
.g-m { background: rgba(245,177,76,.2); color: var(--amber); } .g-a { background: rgba(52,195,143,.2); color: #5fe0a9; } .g-u { background: rgba(160,170,190,.2); color: #c7d0dc; }
.in .gd-row { animation: rowIn .6s var(--ease) both; } .in .gd-row:nth-child(3) { animation-delay: .15s; } .in .gd-row:nth-child(4) { animation-delay: .3s; }
.in .gd-row b { animation: pop .5s var(--ease) both; animation-delay: .7s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.sync-demo, .cloud-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sd { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.sd-l { background: rgba(47,124,246,.2); color: #8fc1ff; } .sd-r { background: rgba(196,123,255,.18); color: #dcb4ff; } .sd-d { background: rgba(245,177,76,.18); color: var(--amber); }
.cloud-demo span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); }
.cloud-demo svg { width: 16px; height: 16px; color: var(--aqua); }
.treemap { display: grid; grid-template-columns: 3fr 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 92px; margin-top: 18px; }
.tm { border-radius: 6px; transform-origin: 0 100%; }
.tm.a { grid-row: span 2; background: #d9622a; } .tm.b { grid-row: span 2; background: #c98a10; } .tm.c { background: #1f8f3a; } .tm.d { background: #3d7fd6; } .tm.e { display: none; }
.in .tm { animation: grow .9s var(--ease) both; } .in .tm.b { animation-delay: .1s; } .in .tm.c { animation-delay: .2s; } .in .tm.d { animation-delay: .3s; }
@keyframes grow { from { transform: scale(0); opacity: 0; } }
.rn-demo { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 14px var(--mono); flex-wrap: wrap; }
.rn-demo svg { width: 18px; height: 18px; color: var(--muted); }
.rn-demo .old { color: #ff9a9a; background: rgba(255,90,90,.12); padding: 3px 8px; border-radius: 6px; }
.rn-demo .new { color: #9ff0b8; background: rgba(52,195,143,.14); padding: 3px 8px; border-radius: 6px; }
.code { margin: 16px 0 0; font: 13px/1.6 var(--mono); color: #cdeff7; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: hidden; white-space: pre; }
.c-k { color: #ff9ac1; } .c-c { color: #7c93a6; }

/* gallery */
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 30px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 min(760px, 86vw); margin: 0; scroll-snap-align: center; transition: transform .5s var(--ease), opacity .5s; }
.g-item .window { background: #fff; }
.g-nav { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }

/* privacy */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-item { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(19,128,154,.14), rgba(12,32,58,.5)); border: 1px solid var(--line); }
.p-item svg { width: 38px; height: 38px; color: var(--glow); margin-bottom: 18px; }
.p-item h3 { margin-bottom: 10px; }
.p-item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* coffee */
.coffee-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: 32px; max-width: 1040px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(255,221,0,.08), transparent), linear-gradient(135deg, rgba(19,128,154,.22), rgba(10,42,77,.5));
  border: 1px solid var(--line-strong);
}
.coffee-card h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 18px; }
.coffee-card p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.cup svg { width: 100%; }
.steam { fill: none; stroke: rgba(232,246,251,.55); stroke-width: 5; stroke-linecap: round; animation: steam 3.2s ease-in-out infinite; }
.steam.s2 { animation-delay: -1s; } .steam.s3 { animation-delay: -2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

/* download */
.download { text-align: center; }
.dl { display: flex; flex-direction: column; align-items: center; }
.dl-icon { width: 160px; height: 160px; margin-bottom: 26px; filter: drop-shadow(0 26px 50px rgba(0,0,0,.6)); animation: bob2 7s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(-10px) rotate(-2deg); } }
.dl h2 { margin-bottom: 14px; }
.dl .sub { margin: 0 auto 32px; }
.dl-version { color: var(--faint); font-size: 14.5px; margin-top: 18px; }
/* install guide: four illustrated steps, click a picture to enlarge it */
.dl-guide { width: 100%; max-width: 1120px; margin: 64px auto 0; scroll-margin-top: 80px; }
.dl-guide-title { font-size: clamp(22px, 2.6vw, 28px); }
.dl-guide-sub { color: var(--muted); max-width: 680px; margin: 12px auto 0; font-size: 16px; }
.dl-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: 100%; counter-reset: none; }
.dl-step { padding: 12px 12px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 14px; }
.dl-shot { display: block; position: relative; border-radius: 11px; overflow: hidden; background: #e9edf2; aspect-ratio: 4 / 3; cursor: zoom-in; }
.dl-shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.dl-shot::after { /* magnifier badge */
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(3,10,23,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8f6fb' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: .85; transition: opacity .3s;
}
.dl-shot:hover img { transform: scale(1.03); }
.dl-shot:hover::after, .dl-shot:focus-visible::after { opacity: 1; }
.dl-shot:focus-visible { outline-offset: 2px; }
.dl-step-text { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 0 6px; }
.dl-num { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(125,255,226,.14); color: var(--glow); font-weight: 700; font-size: 14px; }
.dl-step h4 { margin: 4px 0 0; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: break-word; }
.dl-step p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; overflow-wrap: break-word; }
.dl-step b { color: var(--text); font-weight: 600; }
.dl-once { color: var(--muted); font-size: 15px; max-width: 680px; margin: 26px auto 0; }
.dl-more { max-width: 760px; margin: 18px auto 0; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); padding: 0 20px; }
.dl-more summary { font-size: 16px; padding: 16px 40px 16px 0; }
.dl-more-body { padding: 0 0 18px; }
.dl-more-body p { color: var(--muted); font-size: 15px; padding: 0; margin: 0 0 12px; }
.dl-more-body b { color: var(--text); font-weight: 600; }
.dl-cmd { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); overflow-x: auto; }
.dl-cmd code { background: none; padding: 0; font-size: 14px; white-space: pre; user-select: all; -webkit-user-select: all; }

/* enlarged install picture */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; color: var(--text); }
.lightbox::backdrop { background: rgba(2,8,20,.82); }
.lightbox[open] { animation: fadeIn .25s; }
.lightbox img { display: block; max-width: min(94vw, 1100px); max-height: calc(92vh - 56px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox p { margin: 10px 4px 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.lightbox .lb-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--deep); color: var(--text); font: 600 20px/1 var(--font); cursor: pointer; }

/* faq */
.faq h2 { text-align: center; margin-bottom: 40px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { color: var(--muted); padding: 0 0 22px; margin: 0; }
details[open] p { animation: fadeIn .4s; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--faint); font-size: 14px; }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 18px 30px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { color: var(--muted); }
.foot-links .gh-foot { display: inline-flex; align-items: center; gap: 6px; }
.gh-foot svg { width: 15px; height: 15px; flex: none; }
.foot .copy { grid-column: 1 / -1; margin: 0; }
.foot .copy a { color: var(--muted); }

/* ------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.1s; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; } .js .hero .reveal:nth-child(3) { transition-delay: .16s; } .js .hero .reveal:nth-child(4) { transition-delay: .24s; } .js .hero .reveal:nth-child(5) { transition-delay: .32s; }
.tilt { will-change: transform; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .cards4, .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-git { grid-row: auto; }
}
@media (max-width: 1000px) {
  .dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .two.rev > .copy { order: 0; }
  .story { height: calc(var(--steps, 3) * 75vh + 60vh); }
  .story-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 18px; padding-top: 76px; }
  .story-visual { order: -1; }
  .story-text h2 { font-size: clamp(26px, 7vw, 36px); margin-bottom: 12px; }
  .story-text .kicker { display: none; }
  .steps { position: relative; display: block; min-height: 150px; }
  .step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); padding: 6px 0 0 18px; }
  .step.is-active { opacity: 1; transform: none; }
  .step::before, .step::after { top: 10px; }
  .step.is-active::after { height: calc(100% - 14px); }
  .mock-body { height: clamp(250px, 40vh, 340px); }
  .m-side { display: none; }
  .coffee-card { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 24px; }
  .cup { width: 150px; margin: 0 auto; }
  .drag-scene { height: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero-shot { margin-top: 44px; }
  .btn-lg { padding: 14px 22px; font-size: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .cards4, .p-grid, .bento { grid-template-columns: minmax(0, 1fr); }
  .t-git, .t-sync, .t-cloud, .t-plug, .t-size, .t-rename { grid-column: auto; }
  .node { font-size: 12.5px; padding: 7px 11px; gap: 6px; }
  .node svg { width: 16px; height: 16px; }
  .orbit { width: 100%; }
  .center-head { margin-bottom: 38px; }
  .mock { font-size: 11.5px; }
  .vw[data-view="icons"] { --th: 54px; }
  .vw[data-view="icons"] .vw-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vw[data-view="columns"] { grid-template-columns: 0 1fr 1.05fr; }
  .vw[data-view="columns"] .vw-col0 { visibility: hidden; padding: 0; border: 0; }
  .vw[data-view="list"] .it, .vw-head { grid-template-columns: 22px 1fr 54px; }
  .vw[data-view="list"] .it .dt, .vw-head span:last-child { display: none; }
  .vw[data-view="gallery"] { --th: 40px; }
  .term-mock { height: 440px; }
  .x-job { grid-template-columns: minmax(0, 1fr) auto; }
  .x-ico { display: none; }
  .x-title { white-space: normal; }
  .ds-manta { width: 78%; top: 0; }
  .ds-finder { width: 70%; }
  .dl-steps { grid-template-columns: minmax(0, 1fr); }
  .dl-guide { margin-top: 48px; }
  .dl-more { padding: 0 16px; }
  .lightbox .lb-close { top: 6px; right: 6px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  summary { font-size: 17px; }
}

/* ------------------------------------------------------------ static fallbacks */
.no-js .story, .reduce .story { height: auto; }
.no-js .story-sticky, .reduce .story-sticky { position: relative; height: auto; padding-top: 90px; padding-bottom: 60px; }
.no-js .step, .reduce .step { position: relative; opacity: 1; transform: none; }
.no-js .steps, .reduce .steps { min-height: 0; }
.no-js .step::after, .reduce .step::after { display: none; }
.no-js .window-hero { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+14) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .caustics, .rays { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .window-hero { transform: none !important; opacity: 1 !important; }
  .drag-scene .ds-drop { opacity: 1; transform: none; }
}
.seg i.on { background: #4a4a50; }
.seg i.on::before { border-color: #fff; }
.copy .kicker { color: var(--glow); font-size: 15px; }
.node { width: max-content; }
.node svg { flex: none; }
.xfer[data-state="wait"] .x-banner { max-height: 180px; }
