/* helvi.sh marketing site — Harbor Glass, standalone.
   Tokens mirror the app (ui/tailwind.config.js): ink #0b0f1a, panel #121826,
   edge #1e2637, accent #5b8cff; brand mint #5bcea9, teal #1c535b.
   Glass is chrome, never content: cards/nav blur, text sits on solid ink. */

:root {
  --ink: #0b0f1a;
  --panel: #121826;
  --edge: #1e2637;
  --accent: #5b8cff;
  --mint: #5bcea9;
  --violet: #a78bfa;
  --text: #e6ebf5;
  --muted: #9aa7bf;
  --glass-chrome: rgba(16, 22, 36, 0.62);
  --glass-float: rgba(14, 18, 32, 0.8);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --glass-stroke-strong: rgba(255, 255, 255, 0.2);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-win: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --r-win: 14px;
  --r-dock: 18px;
  --r-control: 8px;
  --ease-glass: cubic-bezier(0.22, 1, 0.36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fjord-style ambient glow, fixed behind everything */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(980px 620px at 82% -4%, rgba(91, 140, 255, 0.22), transparent 62%),
    radial-gradient(820px 540px at 4% 30%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(900px 560px at 90% 78%, rgba(91, 206, 169, 0.08), transparent 62%),
    linear-gradient(165deg, #0a1020 0%, #070b14 48%, #0a0e18 100%);
}

.shell { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.shell-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }

.grad {
  background: linear-gradient(92deg, var(--accent) 8%, var(--mint) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-violet { background: linear-gradient(92deg, #7c5cff 8%, var(--violet) 60%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-chrome);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--glass-stroke);
}
.nav .shell { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { display: block; }
.wordmark { font-weight: 750; font-size: 1.14rem; color: #fff; letter-spacing: -0.01em; }
.wordmark em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 120ms var(--ease-glass);
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease-glass), box-shadow 120ms var(--ease-glass), background 120ms;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3f6fe8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(91, 140, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-stroke);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--glass-stroke-strong); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 24px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(91, 206, 169, 0.35);
  background: rgba(91, 206, 169, 0.08);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 26px;
}
.lede {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.13rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.hero-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 12px 12px 20px;
  border-radius: 12px;
  background: rgba(5, 8, 15, 0.75);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-float);
  max-width: 100%;
}
.hero-install code {
  color: var(--mint);
  font-size: 0.98rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-install code::before { content: "$ "; color: var(--muted); }

.copy {
  flex-shrink: 0;
  font: 600 0.82rem var(--font);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-stroke);
  border-radius: 7px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 120ms;
}
.copy:hover { background: rgba(255, 255, 255, 0.13); }
.copy.copied { color: var(--mint); border-color: rgba(91, 206, 169, 0.4); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
}
.chips li {
  font-size: 0.86rem;
  color: var(--muted);
  border: 1px solid var(--glass-stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- hero screenshot ---------- */
.hero-shot { margin: 64px auto 0; }
.browser-frame {
  border-radius: var(--r-win);
  overflow: hidden;
  border: 1px solid var(--glass-stroke-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(91, 140, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  background: var(--panel);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--glass-float);
  border-bottom: 1px solid var(--glass-stroke);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser-url {
  margin-left: 14px;
  font: 500 0.8rem var(--mono);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 14px;
  border-radius: 6px;
}
.browser-frame > img { display: block; width: 100%; height: auto; }
.hero-shot figcaption { margin-top: 16px; font-size: 0.88rem; color: var(--muted); text-align: center; }

/* ---------- strip ---------- */
.strip { padding: 88px 0 40px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strip-item h3 { color: var(--text); }
.strip-item p { color: var(--muted); font-size: 0.97rem; }
.strip-item code { color: var(--mint); font-size: 0.9em; }

/* ---------- features ---------- */
.features { padding: 80px 0; text-align: center; }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 auto 8px; font-size: 1.08rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
  text-align: left;
}
.card {
  background: var(--glass-chrome);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--r-win);
  padding: 22px;
  transition: transform 180ms var(--ease-glass), border-color 180ms, box-shadow 180ms;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-stroke-strong);
  box-shadow: var(--shadow-win);
}
.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.14);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.02rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- split sections ---------- */
.split { padding: 80px 0; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-rev .split-grid > .split-copy { order: 2; }
.split-rev .split-grid > .split-visual { order: 1; }
.split-copy p { color: var(--muted); }
.split-copy em { color: var(--text); font-style: normal; font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.98rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(91, 206, 169, 0.16) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235bcea9" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center/11px no-repeat;
}
.ticks-violet li::before {
  background-color: rgba(167, 139, 250, 0.16);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a78bfa" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>');
}

/* ---------- terminal mocks ---------- */
.term-mock {
  border-radius: var(--r-win);
  overflow: hidden;
  border: 1px solid var(--glass-stroke-strong);
  background: #05080f;
  box-shadow: var(--shadow-win), 0 0 60px rgba(91, 140, 255, 0.08);
}
.term-mock-violet { box-shadow: var(--shadow-win), 0 0 60px rgba(124, 92, 255, 0.14); }
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--glass-float);
  border-bottom: 1px solid var(--glass-stroke);
}
.term-title { font: 500 0.85rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-badge {
  flex-shrink: 0;
  font: 600 0.72rem var(--font);
  color: var(--mint);
  background: rgba(91, 206, 169, 0.12);
  border: 1px solid rgba(91, 206, 169, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}
.term-badge-violet { color: var(--violet); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }
.term-mock pre {
  margin: 0;
  padding: 20px;
  font: 400 0.86rem/1.65 var(--mono);
  color: #cdd6e4;
  overflow-x: auto;
}
.t-green { color: #7ee787; }
.t-dim { color: #566175; font-style: italic; }
.t-violet { color: #b39dfb; font-weight: 700; }
.t-violet-dim { color: #8f7fd4; }
.t-chat { color: #8fa4c8; font-style: italic; }
.t-chat-agent { color: #a99bd8; }

/* ---------- security ---------- */
.security { padding: 80px 0; text-align: center; }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  text-align: left;
}
.sec-card {
  border: 1px solid var(--glass-stroke);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(18, 24, 38, 0.55);
  padding: 22px 24px;
}
.sec-card:nth-child(even) { border-left-color: var(--mint); }
.sec-card h3 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.sec-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.sec-card code { color: var(--mint); font-size: 0.88em; }

/* ---------- install ---------- */
.install { padding: 80px 0; text-align: center; }
.install-tabs { max-width: 780px; margin: 44px auto 0; text-align: left; }
.tab-row { display: flex; gap: 6px; margin-bottom: -1px; position: relative; z-index: 1; }
.tab {
  font: 600 0.92rem var(--font);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-stroke);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 120ms, background 120ms;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  background: var(--glass-float);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.code-block {
  position: relative;
  background: rgba(5, 8, 15, 0.85);
  border: 1px solid var(--glass-stroke);
  border-radius: 0 12px 12px 12px;
  box-shadow: var(--shadow-float);
}
.code-block pre {
  margin: 0;
  padding: 24px 110px 24px 24px;
  font: 400 0.95rem/1.7 var(--mono);
  color: var(--mint);
  overflow-x: auto;
}
.code-block .copy { position: absolute; top: 14px; right: 14px; }
.tab-note { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }
.tab-note code { color: var(--text); font-size: 0.9em; }

.steps {
  max-width: 780px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 28px 66px;
  color: var(--muted);
}
.steps li strong { color: var(--text); display: block; margin-bottom: 2px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 12px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(rgba(91, 140, 255, 0.3), transparent);
}

/* ---------- cta band ---------- */
.cta-band { padding: 96px 0; text-align: center; }
.cta-band .shell {
  background: var(--glass-chrome);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--glass-stroke-strong);
  border-radius: var(--r-dock);
  box-shadow: var(--shadow-float);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-band .shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 20% 0%, rgba(91, 140, 255, 0.14), transparent 60%),
    radial-gradient(560px 300px at 85% 100%, rgba(91, 206, 169, 0.1), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { margin-top: 18px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--glass-stroke);
  background: rgba(7, 10, 18, 0.8);
  padding: 44px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { text-align: right; }
.footer-legal p { color: #55607a; font-size: 0.82rem; margin: 0 0 4px; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-glass), transform 600ms var(--ease-glass);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero animated desktop ----------
   Sized in cqw so the mock scales like an image (design grid: 100 wide,
   56.25 tall). Static markup = the FINISHED scene; app.js adds .hd-anim,
   hides everything and replays the story. No JS / reduced motion / no
   container-query support all degrade gracefully. */
.hero-desktop { container-type: inline-size; position: relative; background: #070b14; }
.hd-fallback { display: none; width: 100%; height: auto; }
@supports not (container-type: inline-size) {
  .hd { display: none !important; }
  .hd-fallback { display: block; }
}
.hd {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(60cqw 34cqw at 78% 6%, rgba(91, 140, 255, 0.16), transparent 62%),
    radial-gradient(48cqw 30cqw at 12% 88%, rgba(91, 206, 169, 0.1), transparent 60%),
    radial-gradient(40cqw 26cqw at 40% 40%, rgba(124, 92, 255, 0.07), transparent 65%),
    linear-gradient(160deg, #0c1322, #070b14 55%, #0a0f1c);
  font-family: var(--font);
  text-align: left;
  user-select: none;
}

/* endpoint icons on the desktop */
.hd-icons { position: absolute; left: 1.6cqw; top: 2.2cqw; display: flex; flex-direction: column; gap: 1.2cqw; }
.hd-ico {
  width: 9.4cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
  padding: 0.9cqw 0.4cqw 0.7cqw;
  border-radius: 0.8cqw;
  border: 1px solid transparent;
  transition: background 160ms, border-color 160ms, transform 160ms var(--ease-glass);
}
.hd-ico-art { width: 3.2cqw; height: 3.2cqw; color: #9fb6e8; display: flex; }
.hd-ico-art svg { width: 100%; height: 100%; }
.hd-ico-label { font: 400 1.05cqw var(--mono); color: var(--muted); }
.hd-ico.sel { background: rgba(91, 140, 255, 0.16); border-color: rgba(91, 140, 255, 0.4); }
.hd-ico.sel .hd-ico-label { color: var(--text); }
.hd-ico.open { transform: scale(0.94); }

/* windows */
.hd-win {
  position: absolute;
  border-radius: 1.1cqw;
  background: rgba(13, 17, 30, 0.94);
  border: 1px solid var(--glass-stroke-strong);
  box-shadow: 0 1.6cqw 4.5cqw rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hd-term { left: 14cqw; top: 4.5cqw; width: 51cqw; z-index: 2; }
.hd-files { left: 39cqw; top: 16cqw; width: 55cqw; height: 26cqw; z-index: 3; display: flex; flex-direction: column; }
.hd-tbar {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.9cqw 1.3cqw;
  background: rgba(20, 26, 42, 0.9);
  border-bottom: 1px solid var(--glass-stroke);
}
.hd-dots { display: flex; gap: 0.5cqw; }
.hd-dots i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hd-tname { font: 500 1cqw var(--mono); color: var(--muted); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hd-tbadge {
  font: 600 0.8cqw var(--font);
  color: #ff8f8f;
  background: rgba(255, 110, 110, 0.1);
  border: 1px solid rgba(255, 110, 110, 0.32);
  border-radius: 99cqw;
  padding: 0.2cqw 0.9cqw;
  white-space: nowrap;
}
.hd-tbadge-blue { color: #8fb0ff; background: rgba(91, 140, 255, 0.12); border-color: rgba(91, 140, 255, 0.35); }

/* terminal body */
.hd-tbody { padding: 1.1cqw 1.5cqw 1.3cqw; font: 400 1.1cqw/1.62 var(--mono); color: #cdd6e4; }
.hd-tbody .tl { margin: 0; }
pre.hd-out { font: inherit; white-space: pre; color: #aab6cb; overflow: hidden; }
.hd-dim { color: #566175; font-style: italic; }
.hd-ok { color: var(--mint); }
.hd-prompt { color: #7ee787; }
.hd-caret {
  display: none;
  width: 0.62cqw;
  height: 1.35cqw;
  background: #cdd6e4;
  vertical-align: -0.18cqw;
  margin-left: 0.15cqw;
}
.hd-caret.on { display: inline-block; animation: hd-blink 1s steps(1) infinite; }
@keyframes hd-blink { 50% { opacity: 0; } }

/* dual-pane file manager */
.hd-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--glass-stroke); }
.hd-pane { background: rgba(10, 14, 25, 0.96); padding: 0.7cqw 0.9cqw; transition: background 160ms, box-shadow 160ms; }
.hd-pane.drop { background: rgba(91, 140, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(91, 140, 255, 0.45); }
.hd-path {
  font: 600 0.92cqw var(--mono);
  color: var(--muted);
  padding: 0.3cqw 0.7cqw 0.7cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-row {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  font: 400 1.02cqw/1.5 var(--mono);
  color: #c3cee0;
  padding: 0.5cqw 0.7cqw;
  border-radius: 0.5cqw;
  transition: background 140ms, opacity 300ms;
}
.hd-row .hd-fsize { color: var(--muted); }
.hd-row.sel { background: rgba(91, 140, 255, 0.22); }
.hd-row.sel, .hd-row.sel .hd-fsize { color: #fff; }
.hd-xfer {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: 0.75cqw 1.2cqw;
  background: rgba(6, 9, 17, 0.92);
  border-top: 1px solid var(--glass-stroke);
}
.hd-xname { font: 500 0.9cqw var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-xtrack { flex: 1; min-width: 8cqw; height: 0.55cqw; border-radius: 99cqw; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.hd-xfill { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.hd-xpct { font: 600 0.9cqw var(--mono); color: var(--mint); min-width: 4.6cqw; text-align: right; }

/* taskbar */
.hd-bar {
  position: absolute;
  left: 1.2cqw;
  right: 1.2cqw;
  bottom: 1cqw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  height: 3.6cqw;
  padding: 0 1.2cqw;
  border-radius: 1cqw;
  background: rgba(16, 22, 36, 0.78);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hd-bar-side { display: flex; align-items: center; gap: 1cqw; }
.hd-bar-logo { height: 1.9cqw; width: auto; display: block; }
.hd-app {
  width: 2.5cqw;
  height: 2.5cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6cqw;
  color: #9fb6e8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: background 140ms, border-color 140ms;
}
.hd-app svg { width: 1.6cqw; height: 1.6cqw; }
.hd-app.sel { background: rgba(91, 140, 255, 0.2); border-color: rgba(91, 140, 255, 0.45); }
.hd-bar-mid { flex: 1; display: flex; gap: 0.8cqw; min-width: 0; }
.hd-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  font: 500 0.92cqw var(--mono);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-stroke);
  border-radius: 0.6cqw;
  padding: 0.32cqw 1cqw;
  white-space: nowrap;
}
.hd-pill::before { content: ""; width: 0.55cqw; height: 0.55cqw; border-radius: 50%; background: var(--mint); }
.hd-clock { font: 600 1cqw var(--mono); color: var(--muted); }

/* animated cursor */
.hd-cursor {
  position: absolute;
  left: 62cqw;
  top: 26cqw;
  z-index: 40;
  opacity: 0;
  transition: left 600ms var(--ease-glass), top 600ms var(--ease-glass), opacity 300ms;
  pointer-events: none;
}
.hd-cursor.on { opacity: 1; }
.hd-cursor svg { width: 1.7cqw; height: 1.7cqw; display: block; filter: drop-shadow(0 0.15cqw 0.5cqw rgba(0, 0, 0, 0.6)); }
.hd-cursor::after {
  content: "";
  position: absolute;
  left: -0.7cqw;
  top: -0.7cqw;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  border: 2px solid rgba(91, 140, 255, 0.7);
  opacity: 0;
  transform: scale(0.4);
}
.hd-cursor.click::after { animation: hd-click 380ms var(--ease-glass); }
@keyframes hd-click {
  0% { opacity: 0.9; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1); }
}
.hd-chip {
  display: none;
  position: absolute;
  left: 1.3cqw;
  top: 1.6cqw;
  font: 500 0.88cqw var(--mono);
  color: #fff;
  background: rgba(91, 140, 255, 0.85);
  border-radius: 0.5cqw;
  padding: 0.3cqw 0.8cqw;
  white-space: nowrap;
  box-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.45);
}
.hd-cursor.drag .hd-chip { display: block; }

/* animation-mode initial states — JS adds .hd-anim, then reveals with .on */
.hd-anim .hd-win {
  opacity: 0;
  transform: scale(0.94) translateY(1.2cqw);
  transition: opacity 360ms var(--ease-glass), transform 360ms var(--ease-glass);
}
.hd-anim .hd-win.on { opacity: 1; transform: none; }
.hd-anim .hd-tbody .tl { display: none; }
.hd-anim .hd-tbody .tl.on { display: block; }
.hd-anim .hd-pill { display: none; }
.hd-anim .hd-pill.on { display: inline-flex; }
.hd-anim .hd-new { opacity: 0; }
.hd-anim .hd-new.on { opacity: 1; }
.hd-anim .hd-xfer { visibility: hidden; }
.hd-anim .hd-xfer.on { visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-grid > .split-copy { order: 1; }
  .split-rev .split-grid > .split-visual { order: 2; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-install { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { text-align: left; }
  .code-block pre { padding-right: 24px; }
  .code-block .copy { position: static; margin: 0 14px 14px; }
}
