/* filecommander.app — one page, no dependencies */
:root {
  --bg: #0b0c10;
  --bg-raised: #14161d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #a3a8b8;
  --accent: #6b8cff;          /* the blue of the active pane's header */
  --accent-strong: #4f6ff0;
  --mark: #ff6b57;            /* the red of marked files */
  --radius: 14px;
  --page: min(1180px, 100vw - 48px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.022em; line-height: 1.06; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }

kbd {
  font: 600 0.82em/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  display: inline-block; padding: 0.28em 0.5em 0.3em; border-radius: 6px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); border-bottom-width: 2px; white-space: nowrap;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(24px, (100vw - 1180px) / 2);
  background: rgba(11, 12, 16, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
@media (max-width: 1080px) { .nav nav a:not(.button) { display: none; } }
.nav nav a:not(.button) { color: var(--muted); }
.nav nav a:not(.button):hover { color: var(--text); text-decoration: none; }

.button {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 650; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 8px 30px rgba(79, 111, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(79, 111, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.button.small { padding: 7px 16px; font-size: 14px; box-shadow: none; }
.button.secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.button.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 24px 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 30%, rgba(107, 140, 255, 0.22), transparent 70%), radial-gradient(40% 40% at 78% 18%, rgba(255, 107, 87, 0.10), transparent 70%);
}
.hero-icon { margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.hero h1 { font-size: clamp(44px, 8.2vw, 96px); }
.accent { background: linear-gradient(90deg, #8fa8ff, #6b8cff 45%, #b08cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.1vw, 23px); color: var(--muted); max-width: 46em; margin: 26px auto 0; text-wrap: pretty; }
.cta { margin: 34px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fine { font-size: 13px; color: var(--muted); }

.hero-shot { width: var(--page); margin: 64px auto 0; perspective: 1600px; }
.hero-shot img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 30px 90px -20px rgba(79, 111, 240, 0.28);
  transform: rotateX(var(--tilt, 14deg)) scale(var(--zoom, 0.94)); transform-origin: 50% 0; will-change: transform;
}

/* ---------- feature sections ---------- */
.feature { width: var(--page); margin: 0 auto; padding: 150px 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.feature h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 22px; }
.copy p { color: var(--muted); font-size: 19px; }
.copy .aside { font-size: 16px; padding-left: 16px; border-left: 2px solid var(--line); }
.media { margin: 0; position: relative; }
/* the play button for videos that do not start by themselves (site.js) */
.media .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(11, 12, 16, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.media .play::before { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.media.still .play { opacity: 1; pointer-events: auto; }
/* while playing: a small pause button in the bottom-right corner, shown only to keyboard users (Tab); the mouse just sees the video
   (a click on it pauses) */
.media:not(.still) .play {
  left: auto; top: auto; right: 14px; bottom: 14px; width: 34px; height: 34px; margin: 0;
  background: rgba(11, 12, 16, 0.5); border-color: rgba(255, 255, 255, 0.22); box-shadow: none;
}
.media .play:focus-visible { opacity: 1; pointer-events: auto; }
.media:not(.still) .play::before { left: 12px; top: 10px; width: 3px; height: 12px; border: 0; background: #fff; box-shadow: 6px 0 0 #fff; }
.media .play:hover { transform: scale(1.06); }
.media .play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.media.still video { cursor: pointer; }
.media video, .media img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #1c1c1e;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 24px 70px -30px rgba(79, 111, 240, 0.25);
}

/* ---------- cards in pairs ---------- */
.pair { width: var(--page); margin: 0 auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature + .pair { padding-top: 150px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.card-copy { padding: 36px 36px 26px; }
.card h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .eyebrow { color: var(--accent); margin-bottom: 12px; }
.card > img { margin: auto 0 0 36px; width: calc(100% - 36px); max-width: none; border-top-left-radius: 12px; border: 1px solid var(--line); border-right: 0; border-bottom: 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; }
.card > img.zoom { width: 185%; aspect-ratio: auto; height: auto; margin-bottom: -38%; }   /* a wide, mostly empty window: show its top left corner larger */

/* ---------- safety ---------- */
.safe { width: var(--page); margin: 0 auto; padding-top: 160px; text-align: center; }
.safe h2 { font-size: clamp(34px, 5vw, 64px); }
.safe .eyebrow { color: var(--mark); }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; text-align: left; border-top: 1px solid var(--line); }
.point { padding: 30px 30px 26px 0; border-bottom: 1px solid var(--line); }
.point:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.point h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.25; letter-spacing: -0.012em; }
.point p { color: var(--muted); font-size: 16px; margin: 0; }
.safe-grid .point:nth-child(3n + 2) { --delay: 0.08s; } .safe-grid .point:nth-child(3n) { --delay: 0.16s; }
.safe + .pair, .pair + .pair { padding-top: 28px; }
.safe + .pair { padding-top: 150px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, 0.08); padding: 0.15em 0.4em; border-radius: 5px; }

/* ---------- keys ---------- */
.keys { text-align: center; padding: 160px 24px 0; }
.keys h2, .more h2, .download h2 { font-size: clamp(34px, 5vw, 64px); }
.keyrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 48px auto 0; max-width: 980px; }
.key {
  width: 96px; height: 96px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #23262f, #171920); border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 4px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(18px) scale(0.92); transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.key b { font-size: 22px; font-weight: 650; }
.key span { font-size: 12px; color: var(--muted); }
.keyrow.in .key { opacity: 1; transform: none; }
.keyrow.in .key:nth-child(1) { transition-delay: 0.00s; } .keyrow.in .key:nth-child(2) { transition-delay: 0.06s; }
.keyrow.in .key:nth-child(3) { transition-delay: 0.12s; } .keyrow.in .key:nth-child(4) { transition-delay: 0.18s; }
.keyrow.in .key:nth-child(5) { transition-delay: 0.24s; } .keyrow.in .key:nth-child(6) { transition-delay: 0.30s; }
.keyrow.in .key:nth-child(7) { transition-delay: 0.36s; } .keyrow.in .key:nth-child(8) { transition-delay: 0.42s; }
.keyrow.in .key:nth-child(9) { transition-delay: 0.48s; }

/* ---------- everything else ---------- */
.more { width: var(--page); margin: 0 auto; padding-top: 160px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; text-align: left; }
.tile { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 22px; }
.tile h3 { font-size: 19px; letter-spacing: -0.012em; margin-bottom: 8px; line-height: 1.25; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- download ---------- */
.download { text-align: center; padding: 170px 24px 120px; position: relative; }
.download::before { content: ""; position: absolute; inset: 60px 0 0 0; z-index: -1; background: radial-gradient(50% 50% at 50% 45%, rgba(107, 140, 255, 0.18), transparent 70%); }
.download img { margin: 0 auto 20px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; color: var(--muted); font-size: 15px; }
.steps li { counter-increment: step; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.steps li::before { content: counter(step); display: block; font-weight: 700; font-size: 22px; color: var(--text); margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); padding: 28px 24px 40px; text-align: center; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer a { color: var(--muted); text-decoration: underline; }

/* ---------- things that arrive as you scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.media.reveal { transform: translateY(46px) scale(0.965); }
.media.reveal.in { transform: none; }
.grid .tile:nth-child(3n + 2) { --delay: 0.08s; } .grid .tile:nth-child(3n) { --delay: 0.16s; }
.pair .card:nth-child(2) { --delay: 0.12s; }
.hero .reveal:nth-child(2) { --delay: 0.05s; } .hero .reveal:nth-child(3) { --delay: 0.12s; } .hero .reveal:nth-child(4) { --delay: 0.2s; }

/* no script: everything is simply there */
.no-js .reveal, .no-js .key { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav nav a:not(.button) { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; padding-top: 96px; }
  .feature.flip .copy { order: 0; }
  .pair { grid-template-columns: 1fr; }
  .feature + .pair { padding-top: 96px; }
  .grid { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
  .point, .point:not(:nth-child(3n + 1)) { padding: 24px 0 20px; border-left: 0; }
  .safe { padding-top: 110px; }
  .safe + .pair { padding-top: 96px; }
  .steps { grid-template-columns: 1fr; }
  .keys, .more { padding-top: 110px; }
  .download { padding-top: 120px; }
  .key { width: 78px; height: 78px; }
  .card-copy { padding: 26px 24px 20px; }
  .card > img { margin-left: 24px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .key, .media.reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot img { transform: none; }
}
