/* Swivel — marketing site */

:root {
  --bg: #f6f4f0;
  --bg-2: #efece6;
  --card: #ffffff;
  --ink: #1c1d1c;
  --ink-2: #5d605d;
  --ink-3: #8f928e;
  --line: rgba(20, 22, 20, 0.08);
  --accent: #ec5e2b;
  --accent-2: #f5733c;
  --accent-soft: rgba(236, 94, 43, 0.12);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 30px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 2px 6px rgba(20, 20, 20, 0.05), 0 24px 60px rgba(20, 20, 20, 0.12);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  /* wheel palette (light) */
  --w-disc: rgba(236, 236, 236, 0.97);
  --w-seg-top: #f9f9f9;
  --w-seg-bot: #eeeeee;
  --w-hub: #fbfbfb;
  --w-pill: #ffffff;
  --w-text: #141414;
  --w-sub: #7f7f7f;
  --w-chip: #b8b8b8;
  --w-seg-shadow: rgba(0, 0, 0, 0.10);
  --w-disc-shadow: rgba(0, 0, 0, 0.20);
  --w-rim: rgba(255, 255, 255, 0.95);

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --bg-2: #1c1c1b;
    --card: #1f1f1e;
    --ink: #f2f1ee;
    --ink-2: #b4b3ae;
    --ink-3: #7d7c78;
    --line: rgba(255, 255, 255, 0.08);
    --accent-soft: rgba(236, 94, 43, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);

    --w-disc: rgba(33, 33, 33, 0.97);
    --w-seg-top: #3d3d3d;
    --w-seg-bot: #333333;
    --w-hub: #1a1a1a;
    --w-pill: #383838;
    --w-text: #f2f2f2;
    --w-sub: #8c8c8c;
    --w-chip: #616161;
    --w-seg-shadow: rgba(0, 0, 0, 0.35);
    --w-disc-shadow: rgba(0, 0, 0, 0.55);
    --w-rim: rgba(255, 255, 255, 0.07);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-optical-sizing: auto;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--font);
  font-size: 0.85em;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.content { width: min(1120px, 100% - 48px); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: min(1120px, 100% - 48px); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15.5px; cursor: pointer;
  transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 22px rgba(236, 94, 43, 0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px rgba(236, 94, 43, 0.45); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(56px, 9vw, 112px); line-height: 0.96; font-weight: 600; letter-spacing: -0.055em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; font-weight: 600; letter-spacing: -0.045em; }
h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 650; }
.accent-text { background: linear-gradient(100deg, var(--accent) 10%, #f59a3c 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 620px; margin: 22px auto 0; }
.lede.small { font-size: 17px; margin-left: 0; }
.fine { font-size: 13px; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 110px) 24px 30px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Demo ---------- */
.demo-wrap { padding: 20px 24px 40px; }
.demo {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 28px 34px;
  border-radius: 34px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.window {
  position: relative;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.titlebar { display: flex; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lights { display: flex; gap: 8px; width: 80px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar .title { flex: 1; text-align: center; }
.sound-toggle { width: 80px; display: flex; justify-content: flex-end; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px; }
.sound-toggle:hover { color: var(--ink); }
.sound-toggle .mute { display: none; }
.sound-toggle[aria-pressed="false"] .wave { display: none; }
.sound-toggle[aria-pressed="false"] .mute { display: inline; }

.desk {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 18px 8px;
  padding: 30px 26px 26px;
  min-height: 300px;
  align-content: start;
}
.hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.hint b { color: var(--ink); font-weight: 600; }
.hint .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 94, 43, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(236, 94, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 94, 43, 0); } }

/* file icons */
.file {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 4px; border-radius: 12px;
  cursor: grab; touch-action: none;
  transition: opacity 0.25s, transform 0.35s var(--spring);
}
.file:active { cursor: grabbing; }
.file .icon { width: 64px; height: 76px; position: relative; transition: transform 0.3s var(--spring); }
.file:hover .icon { transform: translateY(-3px); }
.file .label {
  font-size: 12.5px; line-height: 1.25; padding: 2px 7px; border-radius: 5px;
  max-width: 120px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file.selected .label { background: #2f6fde; color: #fff; }
.file.selected .icon { filter: brightness(0.92); }
.file.lifted { opacity: 0.35; }
.file.new { animation: fileIn 0.6s var(--spring) both; }
.file.new .label { box-shadow: 0 0 0 2px var(--accent); }
.file.leaving { animation: fileOut 0.35s ease-in forwards; }
@keyframes fileIn { from { opacity: 0; transform: scale(0.4) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fileOut { to { opacity: 0; transform: scale(0.5); } }

/* document icon */
.doc { position: absolute; inset: 0; border-radius: 6px 16px 6px 6px; background: linear-gradient(180deg, #fff, #f2f2f2); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08); overflow: hidden; }
.doc::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, #dcdcdc 50%); border-bottom-left-radius: 4px; }
.doc .lines { position: absolute; left: 12px; right: 12px; top: 22px; display: grid; gap: 5px; }
.doc .lines i { height: 3px; border-radius: 2px; background: #e2e2e2; }
.doc .lines i:nth-child(2n) { width: 72%; }
.doc .badge { position: absolute; left: 7px; right: 7px; bottom: 8px; height: 17px; border-radius: 5px; color: #fff; font: 700 9.5px/17px var(--font); letter-spacing: .04em; text-align: center; }
.thumb { position: absolute; left: 2px; right: 2px; top: 10px; bottom: 10px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0,0,0,.18); }
.thumb.photo { background: linear-gradient(180deg, #8fc5ef 0%, #cbe6f7 46%, #f3d7a5 47%, #e9a868 70%, #c9764a 100%); }
.thumb.photo::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff7d6; top: 8px; right: 10px; box-shadow: 0 0 12px #fff3c4; }
.thumb.photo::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 46%; background: radial-gradient(60% 90% at 30% 100%, #6f9b52 0 60%, transparent 61%), radial-gradient(70% 80% at 85% 100%, #557d3d 0 60%, transparent 61%); }
.thumb.photo.cut { background: repeating-conic-gradient(#e8e8e8 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.thumb.photo.cut::before { display: none; }
.thumb.photo.gray { filter: grayscale(1); }
.thumb.video { background: linear-gradient(135deg, #2c3e50, #4a2f5c 60%, #c0583a); }
.thumb.video::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 16px solid rgba(255,255,255,.92); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.thumb.video::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 4px, transparent 4px 9px) top / 100% 5px no-repeat, repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 4px, transparent 4px 9px) bottom / 100% 5px no-repeat; }
.audio-art { position: absolute; left: 10px; right: 10px; top: 20px; height: 30px; display: flex; align-items: center; gap: 3px; }
.audio-art i { flex: 1; border-radius: 2px; background: currentColor; opacity: .85; }

/* keycaps */
.keys { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.keycap {
  position: relative;
  width: 112px; height: 78px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #fdfdfc, #ecebe7);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 0 #fff inset, 0 6px 0 #d3d1cb, 0 8px 18px rgba(0,0,0,.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #2a2a28;
  transition: transform 0.12s, box-shadow 0.12s;
}
.keycap .glyph { font-size: 21px; line-height: 1; }
.keycap .name { font-size: 11px; color: #7c7b76; }
.keycap .role { position: absolute; bottom: -30px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; transition: color .2s; }
.keycap:hover .role { color: var(--ink); }
.keycap.down, .keycap:active { transform: translateY(5px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 0 #fff inset, 0 1px 0 #d3d1cb, 0 3px 8px rgba(0,0,0,.12); }
.keycap.on { color: var(--accent); }
.keycap.on .role { color: var(--accent); }
.keycap.attn { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(4px); } }
@media (prefers-color-scheme: dark) {
  .keycap { background: linear-gradient(180deg, #3b3b39, #2e2e2c); color: #eee; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 0 #1b1b1a, 0 8px 18px rgba(0,0,0,.5); }
  .keycap .name { color: #9a9993; }
  .keycap.down, .keycap:active { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 0 #1b1b1a, 0 3px 8px rgba(0,0,0,.4); }
  .doc { background: linear-gradient(180deg, #f4f4f4, #e3e3e3); }
}
.keycap.mini { width: 64px; height: 46px; border-radius: 10px; cursor: default; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 0 #fff inset, 0 4px 0 #d3d1cb, 0 6px 12px rgba(0,0,0,.12); }
.keycap.mini .glyph { font-size: 15px; }
.keycap.mini .name { font-size: 9px; }
.keycap.mini.down { transform: translateY(3px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 0 #fff inset, 0 1px 0 #d3d1cb, 0 2px 6px rgba(0,0,0,.1); }
.keycap.tiny { width: 54px; height: 50px; border-radius: 10px; cursor: default; }
.keycap.tiny.wide { width: 120px; }
.keycap.tiny .glyph { font-size: 16px; }

.demo-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.ghost { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 30; opacity: .92; transform-origin: 32px 38px; will-change: transform; }
.ghost .label { display: none; }
.ghost.badge::after { content: "+"; position: absolute; left: 50px; top: 56px; width: 20px; height: 20px; border-radius: 50%; background: #34c759; color: #fff; font: 700 16px/20px var(--font); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ghost.flyback { transition: transform 0.45s var(--spring), opacity 0.45s; opacity: 0; }

.demo-foot { text-align: center; color: var(--ink-3); font-size: 13.5px; margin-top: 18px; }

/* toast (mirrors the app) */
.toast {
  position: absolute; left: 50%; bottom: 196px; z-index: 40;
  width: min(360px, calc(100% - 32px)); min-height: 62px;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .ticon { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.toast .ticon svg { animation: pop 0.5s var(--spring); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.toast .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid var(--line); border-top-color: var(--ink-2); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast .tt { flex: 1; min-width: 0; }
.toast .tt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .tt span { display: block; font-size: 12px; color: var(--ink-2); }
.toast .undo { background: none; border: 0; color: var(--accent); font-weight: 650; font-size: 13px; cursor: pointer; padding: 6px; }

/* mini floating shelf for the Float action */
.shelf { position: absolute; right: 22px; top: 70px; z-index: 35; width: 120px; padding: 10px 10px 8px; border-radius: 16px; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: shelfIn 0.45s var(--ease); font-size: 11.5px; color: var(--ink-2); }
.shelf .x { position: absolute; left: 8px; top: 6px; font-size: 12px; cursor: pointer; color: var(--ink-3); }
@keyframes shelfIn { from { opacity: 0; transform: translateX(16px); } }

/* ---------- Wheel (SVG) ---------- */
.wheel { width: 100%; height: auto; overflow: visible; display: block; }
.wheel .disc { fill: var(--w-disc); filter: drop-shadow(0 8px 18px var(--w-disc-shadow)); }
.wheel .slice { transition: transform 0.28s var(--ease); }
.wheel .seg-base { filter: drop-shadow(0 1.5px 3px var(--w-seg-shadow)); }
.wheel .seg-hot { opacity: 0; transition: opacity 0.22s var(--ease); filter: drop-shadow(0 3px 8px rgba(236, 94, 43, 0.45)); }
.wheel .seg-rim { fill: none; stroke: var(--w-rim); stroke-width: 2; transition: stroke 0.2s; }
.wheel .slice.hot .seg-hot { opacity: 1; }
.wheel .slice.hot .seg-rim { stroke: rgba(255,255,255,.18); }
.wheel .lbl { fill: var(--w-text); transition: fill 0.2s; font-family: var(--font); font-weight: 600; }
.wheel .ico { stroke: var(--w-text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.wheel .slice.hot .lbl { fill: #fff; }
.wheel .slice.hot .ico { stroke: #fff; }
.wheel .hub { fill: var(--w-hub); }
.wheel .pill { fill: var(--w-pill); filter: drop-shadow(0 1.5px 3.5px var(--w-seg-shadow)); transition: width 0.25s var(--ease), x 0.25s var(--ease); }
.wheel .pill-text { fill: var(--w-text); font-family: var(--font); font-weight: 500; }
.wheel .file-name { fill: var(--w-sub); font-family: var(--font); font-size: 9.5px; }
.wheel .chip { fill: var(--w-chip); font-family: var(--font); font-size: 10px; font-weight: 600; transition: fill .2s; }
.wheel .chip.on { fill: var(--accent); }
.wheel .dot { fill: var(--w-chip); }
.wheel .dot-on { fill: var(--accent); transition: x 0.35s var(--spring), width 0.35s var(--ease); }
.wheel .slices { transform-origin: 190px 190px; }
.wheel .slices.enter { animation: dialIn 0.36s var(--ease) both; }
.wheel .slices.leave { animation: dialOut 0.22s ease-in both; }
.wheel .slices.zoom-in { animation: zoomIn 0.32s var(--ease) both; }
.wheel .slices.zoom-out { animation: zoomOut 0.2s ease-in both; }
@keyframes dialIn { from { transform: rotate(-22deg); opacity: 0; } }
@keyframes dialOut { to { transform: rotate(22deg); opacity: 0; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } }
@keyframes zoomOut { to { transform: scale(1.06); opacity: 0; } }

.wheel-float { position: absolute; width: 380px; height: 380px; margin: -190px 0 0 -190px; z-index: 25; pointer-events: auto; animation: wheelIn 0.36s var(--spring) both; }
.wheel-float.out { animation: wheelOut 0.18s ease-in both; }
@keyframes wheelIn { from { transform: scale(0.82); opacity: 0; } }
@keyframes wheelOut { to { transform: scale(0.92); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 70px 0 30px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 30px 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-weight: 700; }
.stat span { font-family: var(--display); font-size: 22px; font-weight: 650; margin-left: 6px; letter-spacing: -0.02em; }
.stat p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Sections ---------- */
section.content { padding: 110px 0 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* Explorer */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: all 0.25s var(--ease); }
.tab:hover { color: var(--ink); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab .ext { font-size: 11px; opacity: .6; }
.explorer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; background: var(--card); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px 26px 30px; }
.ex-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ex-key { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); font-weight: 550; }
.wheel-holder { width: 100%; max-width: 330px; }
.ex-caption { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; min-height: 1.5em; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 22px; box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 6px 6px; }
.card p { margin: 0 6px; color: var(--ink-2); font-size: 14.5px; }
.art { position: relative; height: 170px; border-radius: 14px; background: var(--bg-2); overflow: hidden; display: grid; place-items: center; }

.art-bg .checker { position: absolute; inset: 0; background: repeating-conic-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 0 25%, transparent 0 50%) 0 0 / 18px 18px; clip-path: inset(0 0 0 50%); transition: clip-path 1.2s var(--ease); }
.art-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #9cc9ea, #f0d5a7 70%, #d9965f); clip-path: inset(0 50% 0 0); transition: clip-path 1.2s var(--ease); }
.card:hover .art-bg::before { clip-path: inset(0 100% 0 0); }
.card:hover .art-bg .checker { clip-path: inset(0 0 0 0); }
.art-bg .subject { position: relative; width: 74px; height: 110px; margin-top: 60px; border-radius: 40px 40px 16px 16px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 24px rgba(236, 94, 43, .35); }
.art-bg .subject::before { content: ""; position: absolute; left: 50%; top: -44px; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; background: inherit; }

.art-ocr .page { width: 120px; height: 130px; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); padding: 20px 16px; display: grid; gap: 10px; align-content: start; }
.art-ocr .page i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.art-ocr .page i:nth-child(2) { width: 80%; } .art-ocr .page i:nth-child(4) { width: 60%; }
.art-ocr .scan { position: absolute; left: 20%; right: 20%; height: 2px; top: 20%; background: var(--accent); box-shadow: 0 0 12px 3px rgba(236,94,43,.5); animation: scan 2.6s var(--ease) infinite alternate; }
@keyframes scan { to { top: 80%; } }

.art-fit .meter { width: 80%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 600 13px var(--font); color: var(--ink-2); }
.art-fit .to { color: var(--accent); }
.art-fit .bar { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.art-fit .bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #f59a3c); transform-origin: left; animation: shrink 3s var(--ease) infinite; }
@keyframes shrink { 0%, 15% { transform: scaleX(1); } 60%, 100% { transform: scaleX(0.06); } }

.art-bleep .wave { position: absolute; inset: 40px 20px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 3px, transparent 3px 7px); -webkit-mask: radial-gradient(60% 50% at 50% 50%, #000 40%, transparent 72%), linear-gradient(#000, #000); mask-composite: intersect; clip-path: polygon(0 40%, 8% 20%, 16% 55%, 24% 10%, 32% 45%, 40% 30%, 48% 60%, 56% 15%, 64% 50%, 72% 25%, 80% 55%, 88% 20%, 100% 45%, 100% 60%, 88% 80%, 80% 45%, 72% 75%, 64% 50%, 56% 85%, 48% 40%, 40% 70%, 32% 55%, 24% 90%, 16% 45%, 8% 80%, 0 60%); }
.art-bleep .beep { position: relative; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 13px var(--font); letter-spacing: .12em; box-shadow: 0 6px 18px rgba(236,94,43,.4); animation: beep 1.6s steps(1) infinite; }
@keyframes beep { 50% { transform: scale(1.08); } }

.art-trim .strip { display: flex; gap: 3px; width: 82%; height: 58px; }
.art-trim .strip i { flex: 1; border-radius: 4px; background: linear-gradient(135deg, #2c3e50, #4a2f5c 60%, #c0583a); opacity: .85; }
.art-trim .handles { position: absolute; top: calc(50% - 36px); height: 72px; left: 24%; right: 30%; border: 3px solid #f5c542; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.18); animation: trim 3.4s var(--ease) infinite alternate; }
@keyframes trim { to { left: 14%; right: 44%; } }

.art-preset { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; padding: 20px; }
.art-preset .chip { padding: 9px 15px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 650; font-size: 14px; }
.art-preset .chip:first-child { background: var(--accent); color: #fff; }
.art-preset .chip.ghost { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink-3); }

.art-watch { display: flex; align-items: center; justify-content: center; gap: 18px; }
.art-watch .folder { width: 86px; height: 66px; border-radius: 6px 10px 10px 10px; background: linear-gradient(180deg, #6fb7f2, #3d8fe0); position: relative; display: grid; place-items: end center; padding-bottom: 8px; }
.art-watch .folder::before { content: ""; position: absolute; left: 0; top: -9px; width: 36px; height: 12px; border-radius: 5px 5px 0 0; background: #5aa6ec; }
.art-watch .folder b { position: absolute; bottom: -24px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.art-watch .folder.out { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.art-watch .folder.out::before { background: var(--accent-2); }
.art-watch .arrow { color: var(--ink-3); font-size: 20px; }
.art-watch .dot { position: absolute; width: 22px; height: 26px; border-radius: 3px 7px 3px 3px; background: #fff; box-shadow: var(--shadow); left: calc(50% - 72px); top: 50%; margin-top: -24px; animation: hop 2.8s var(--ease) infinite; }
@keyframes hop { 0%, 10% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 60% { transform: translate(122px, -26px) rotate(8deg); } 75%, 100% { transform: translate(144px, 0); opacity: 0; } }

.art-undo .mini-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 600; width: 80%; }
.art-undo .mini-toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.art-undo .mini-toast i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.art-undo .mini-toast span { flex: 1; line-height: 1.3; }
.art-undo .mini-toast small { color: var(--ink-3); font-weight: 500; }
.art-undo .mini-toast b { color: var(--accent); }

.art-keys { display: flex; gap: 10px; align-items: center; justify-content: center; }
.art-keys .keycap { animation: press 2.4s var(--ease) infinite; }
.art-keys .keycap:nth-child(2) { animation-delay: .12s; }
.art-keys .keycap:nth-child(3) { animation-delay: .24s; }
@keyframes press { 0%, 60%, 100% { transform: none; } 70%, 85% { transform: translateY(4px); } }

/* Formats */
.format-table { border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 170px 1fr 260px; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.frow h4 { margin: 0; font-size: 15px; font-weight: 650; }
.frow .fmts { display: flex; flex-wrap: wrap; gap: 6px; }
.frow .fmts span { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.frow:hover .fmts span { color: var(--ink); }
.frow .note { font-size: 13px; color: var(--ink-3); text-align: right; }
.formats .fine { margin-top: 18px; max-width: 760px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.privacy-cards { display: grid; gap: 14px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.pcard .picon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.pcard.good .picon { background: var(--accent-soft); color: var(--accent); }
.pcard h3 { font-size: 17px; }
.pcard p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pcard.bad { opacity: .78; }

/* Download */
.download { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: center; padding-bottom: 120px !important; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg); }
.dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.dl-head img { border-radius: 14px; }
.dl-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dl-card .fine { text-align: center; margin: 14px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner p { margin: 0; color: var(--ink-3); font-size: 14px; }
.foot-inner .fine { margin-left: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .stats, .cards { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .privacy, .download { grid-template-columns: 1fr; gap: 30px; }
  .frow { grid-template-columns: 1fr; gap: 8px; }
  .frow .note { text-align: left; }
}
@media (max-width: 600px) {
  .stats, .cards { grid-template-columns: 1fr; }
  .demo { padding: 16px 12px 26px; border-radius: 26px; }
  .desk { grid-template-columns: repeat(3, 1fr); padding: 20px 8px; gap: 12px 2px; }
  .keys { gap: 8px; }
  .keycap { width: 96px; height: 66px; }
  .wheel-float { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .toast { bottom: 170px; }
  section.content { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* folder icon */
.foldericon { position: absolute; left: 2px; right: 2px; top: 18px; bottom: 8px; border-radius: 5px 9px 9px 9px; background: linear-gradient(180deg, #74baf3, #3f8fe0); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.foldericon::before { content: ""; position: absolute; left: 0; top: -8px; width: 26px; height: 11px; border-radius: 5px 5px 0 0; background: #5ba7ec; }
.shelf .icon { transform: scale(.8); }

/* polish */
.art-preset { display: flex !important; flex-wrap: nowrap; }
.art-ocr .page { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
  .art-ocr .page { background: #2b2b29; }
  .art-ocr .page i { background: rgba(255,255,255,.22); }
}

/* dark mode for the small explorer keycaps (their own shadow rule above overrides the generic one) */
@media (prefers-color-scheme: dark) {
  .keycap.mini { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08) inset, 0 4px 0 #1b1b1a, 0 6px 12px rgba(0,0,0,.45); }
  .keycap.mini.down { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 0 #1b1b1a, 0 2px 6px rgba(0,0,0,.4); }
}
