/* CaptainLog website — tokens mirror helmlog/docs/design/tokens.css (.theme-dark) */
:root {
  color-scheme: dark;
  --bg: #161618;
  --bg-deep: #0B0B10;
  --surface: #111113;
  --surface-elevated: #1D1D21;
  --surface-hover: #212125;
  --surface-selected: #2A2A2F;
  --border: #2A2A2F;
  --border-strong: #3B3B43;
  --text-primary: #ECECEF;
  --text-secondary: #A8A9B1;
  --text-muted: #878892;
  --accent: #5B5BD6;
  --accent-hover: #6B6BE2;
  --accent-subtle: #23233D;
  --accent-text: #A9A9F7;
  --glow: #A5A5FF;
  --match-bg: #32325C;
  --match-text: #D2D2FC;
  --warning-subtle: #2D2414;
  --warning-text: #F2BC6B;
  --syntax: #878892;
  --status-draft: #8E909A;
  --status-active: #3DB26E;
  --status-paused: #E39B2E;
  --status-completed: #5B8DEF;
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-brand: "Space Grotesk", var(--font-sans);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 0.88em; color: var(--accent-text); background: var(--accent-subtle); padding: 1px 6px; border-radius: var(--radius-xs); }
kbd {
  display: inline-block; min-width: 20px; padding: 0 5px; margin: 0 1px;
  font-size: 11px; line-height: 18px; text-align: center; color: var(--text-secondary);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--radius-xs); background: var(--surface-elevated);
}
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.accent {
  background: linear-gradient(90deg, #B9B9FF, var(--accent-text) 60%, #8C8CF0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-glyph { width: 26px; height: 26px; color: var(--glow); filter: drop-shadow(0 0 6px rgba(165, 165, 255, 0.55)); }
.wordmark { font: 600 20px/1 var(--font-brand); letter-spacing: -0.02em; }
.wordmark b { font-weight: 600; color: var(--glow); text-shadow: 0 0 14px rgba(165, 165, 255, 0.55); }
.beta {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  font: 600 10.5px/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--glow); background: var(--accent-subtle); border: 1px solid rgba(165, 165, 255, 0.35); border-radius: 999px;
  box-shadow: 0 0 12px rgba(165, 165, 255, 0.25);
}
.beta-lg { height: 22px; vertical-align: 2px; margin-right: 4px; }
.beta-note { margin: 18px 0 0; max-width: 520px; font-size: 14px; color: var(--text-muted); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-secondary); padding: 6px 12px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text-primary); background: var(--surface-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--font-sans); border-radius: var(--radius-md);
  padding: 10px 16px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, box-shadow .2s, transform .15s, border-color .15s;
}
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(165, 165, 255, 0.25) inset, 0 8px 28px -8px rgba(91, 91, 214, 0.8);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(165, 165, 255, 0.35) inset, 0 12px 36px -8px rgba(107, 107, 226, 0.9); }
.btn-ghost { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); border-color: #4a4a55; }
.btn-ghost .i { fill: currentColor; stroke: none; width: 12px; height: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; isolation: isolate; }
.halo {
  position: absolute; z-index: -1; left: 50%; top: -260px; width: 1300px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 91, 214, 0.32), rgba(91, 91, 214, 0.08) 55%, transparent);
  pointer-events: none;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px;
  box-shadow: 0 0 0 1px rgba(165, 165, 255, 0.18), 0 0 60px rgba(165, 165, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  font-size: 13px; font-weight: 500; color: var(--accent-text);
  padding: 6px 14px; border-radius: 999px; background: rgba(35, 35, 61, 0.7); border: 1px solid rgba(165, 165, 255, 0.18);
}
.eyebrow { padding-left: 5px; }
.eyebrow-beta {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; margin-right: 4px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px;
  box-shadow: 0 0 14px rgba(91, 91, 214, 0.7);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
h1 {
  margin: 0; max-width: 940px;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em;
}
.lede { margin: 24px 0 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text-secondary); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.video-wrap { position: relative; z-index: 2; margin-top: 72px; max-width: 1080px; }
.window {
  border-radius: var(--radius-xl); overflow: hidden; background: var(--bg);
  border: 1px solid rgba(165, 165, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 40px 120px -20px rgba(91, 91, 214, 0.45), 0 30px 80px rgba(0, 0, 0, 0.7);
}
.window-bar { position: relative; display: flex; align-items: center; height: 40px; padding: 0 14px; background: #131316; border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a40; }
.window:hover .lights i:nth-child(1) { background: #FF5F57; }
.window:hover .lights i:nth-child(2) { background: #FEBC2E; }
.window:hover .lights i:nth-child(3) { background: #28C840; }
.window-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.sound-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font-sans); color: var(--text-secondary);
  background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.sound-btn:hover { color: var(--text-primary); background: var(--surface-hover); }
.sound-btn .i { width: 14px; height: 14px; }
.sound-btn .i-on, .sound-btn.on .i-off { display: none; }
.sound-btn.on .i-on { display: block; }
.sound-btn.on { color: var(--accent-text); border-color: rgba(165, 165, 255, 0.35); }
.window-video { width: 100%; aspect-ratio: 16 / 9; background: #0e0e12; object-fit: cover; }
.caption { text-align: center; color: var(--text-muted); font-size: 14px; margin: 18px 0 0; }

/* Perspective grid floor (the brag video backdrop) */
.grid-floor {
  position: relative; z-index: 0; height: 320px; margin-top: -200px; pointer-events: none;
  perspective: 420px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 70%, transparent);
}
.grid-floor::before {
  content: ""; position: absolute; left: -50%; right: -50%; top: 0; height: 200%;
  background-image:
    linear-gradient(to right, rgba(165, 165, 255, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(165, 165, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform-origin: top center; transform: rotateX(62deg);
  animation: drift 8s linear infinite;
}
.grid-floor-up { position: absolute; inset: auto 0 0 0; margin: 0; height: 260px; }
@keyframes drift { to { background-position: 0 64px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
}
.kicker .i { width: 14px; height: 14px; }
h1, h2 { text-wrap: balance; }
h2 { margin: 0; max-width: 860px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.section-lede { margin: 18px 0 0; max-width: 680px; font-size: 18px; color: var(--text-secondary); }
.fineprint { font-size: 13px; color: var(--text-muted); margin: 24px 0 0; }

/* ---------- Two views ---------- */
.twoview { padding-top: 40px; }
.twoview .wrap > .kicker, .twoview h2, .twoview .section-lede { margin-left: auto; margin-right: auto; text-align: center; }
.twoview .wrap > .kicker { display: flex; justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; margin-top: 56px; }
.pane {
  min-width: 0; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.pane-raw { background: #0F0F13; }
.pane-head {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.pane-raw .pane-head { font-family: var(--font-mono); font-size: 12px; }
.pane-tag {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 500 11px/1 var(--font-sans);
  color: var(--text-muted); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border-strong);
}
.pane-tag .i { width: 11px; height: 11px; }
.md {
  margin: 0; padding: 20px 20px 24px; font-size: 13px; line-height: 2.2; color: var(--text-primary);
  white-space: pre-wrap; word-break: break-word; min-height: 300px;
}
.md-line { display: inline; }
.tk-h { color: var(--text-primary); font-weight: 500; }
.tk-box { color: var(--syntax); }
.tk { color: var(--accent-text); }
.tk-link { color: #C4C4FB; }
.tk-k { color: var(--warning-text); }
.md .caret, .cap .caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -2px;
  background: var(--glow); box-shadow: 0 0 8px var(--glow); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.snap { display: flex; align-items: center; justify-content: center; }
.snap-net { width: 40px; height: 120px; filter: drop-shadow(0 0 6px rgba(165, 165, 255, 0.7)); }
.snap-net path { fill: none; stroke: var(--glow); stroke-width: 1.5; stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; }
.snap-net circle { fill: var(--glow); }
@keyframes flow { to { stroke-dashoffset: -18; } }

.app-body { padding: 20px 20px 24px; }
.app-h { margin: 0 0 10px; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.trow { position: relative; min-height: 34px; padding: 4px 0 4px 26px; font-size: 15px; line-height: 26px; }
.trow .cb { position: absolute; left: 0; top: 9px; margin: 0; }
.trow .tt { margin-right: 4px; }
.trow .chip { vertical-align: 1px; margin-right: 2px; }
.trow.done .tt { color: var(--text-muted); text-decoration: line-through; }
.cb {
  flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-xs);
}
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb .i { width: 12px; height: 12px; color: #fff; stroke-width: 3; }
.mention { color: var(--accent-text); background: var(--accent-subtle); border-radius: var(--radius-xs); padding: 0 4px; }

/* Task chip (.hl-tchip in the app) */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--text-secondary); background: var(--surface-hover); border: 1px solid var(--border); border-radius: 999px;
}
.chip .i { width: 12px; height: 12px; }
.chip-xs { height: 18px; padding: 0 7px; font-size: 11px; }
.chip-today { color: var(--accent-text); background: var(--accent-subtle); border-color: rgba(165, 165, 255, 0.18); }
.chip-soon { color: var(--warning-text); background: var(--warning-subtle); border-color: rgba(242, 188, 107, 0.15); }
.chip-person { padding-left: 3px; }
.av {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  font-size: 8px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-secondary); border: 1px solid var(--border-strong); background: var(--surface-selected);
}
.av-lg { width: 40px; height: 40px; font-size: 13px; }

/* demo states (only when JS animates) */
.js-demo .md-line { opacity: 0; }
.js-demo .md-line.typing, .js-demo .md-line.typed { opacity: 1; }
.js-demo [data-row] { opacity: 0; transform: translateX(-14px) scale(0.98); filter: blur(4px); }
.js-demo [data-row].in { opacity: 1; transform: none; filter: none; transition: opacity .45s, transform .45s cubic-bezier(.2, .9, .3, 1.3), filter .45s; }
.js-demo [data-row].in .chip { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.js-demo [data-row].in .chip:nth-of-type(2) { animation-delay: .08s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
[data-row].flash { box-shadow: -12px 0 0 -10px var(--glow); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  position: relative; padding: 20px 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(29, 29, 33, 0.9), rgba(22, 22, 24, 0.9));
  border: 1px solid var(--border); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(165, 165, 255, 0.28); transform: translateY(-3px); box-shadow: 0 20px 50px -20px rgba(91, 91, 214, 0.45); }
.card h3 { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card h3 .i { color: var(--accent-text); }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.mini {
  height: 168px; padding: 14px; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px;
}
/* calendar */
.cal-head { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.cal-grid span { position: relative; line-height: 28px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.cal-grid .dow { line-height: 18px; font-size: 10px; color: var(--text-muted); }
.cal-grid .m { color: #55565e; }
.cal-grid .e::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--text-muted); }
.cal-grid .today { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 0 16px rgba(91, 91, 214, 0.7); }
/* tasks */
.sec { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin: 2px 0 6px; }
.sec .i { width: 13px; height: 13px; color: var(--accent-text); }
.sec em { font-style: normal; color: var(--text-muted); font-weight: 500; }
.mrow { display: flex; align-items: center; gap: 6px; height: 28px; font-size: 12.5px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.mrow .cb { width: 13px; height: 13px; margin-right: 2px; }
.mrow .chip { margin-left: auto; }
.mrow:last-child { border-bottom: 0; }
/* person */
.person { display: flex; align-items: center; gap: 12px; }
.person b { display: block; font-size: 15px; }
.person small { color: var(--text-muted); font-size: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.stats span { font-size: 11.5px; color: var(--text-secondary); padding: 3px 8px; border-radius: 999px; background: var(--surface-hover); border: 1px solid var(--border); }
.stats b { color: var(--text-primary); font-weight: 600; }
.mline { margin: 0; font-size: 13px; color: var(--text-secondary); }
/* projects */
.prow { display: flex; align-items: center; gap: 10px; height: 34px; font-size: 13px; border-bottom: 1px solid var(--border); }
.prow:last-child { border-bottom: 0; }
.pmeta { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.st { width: 16px; height: 16px; flex: none; }
.st-active { fill: none; stroke: var(--status-active); stroke-width: 1.6; }
.st-active-dot { fill: var(--status-active); }
.st-paused { fill: none; stroke: var(--status-paused); stroke-width: 1.6; stroke-linecap: round; }
.st-draft { fill: none; stroke: var(--status-draft); stroke-width: 1.6; stroke-dasharray: 2.4 2.2; }
.st-done { fill: var(--status-completed); }
.st-done-check { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* palette */
.pin { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--surface-elevated); border: 1px solid rgba(165, 165, 255, 0.35); box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.15); }
.pin span { flex: 1; }
.pin .i { color: var(--text-muted); width: 14px; height: 14px; }
.pg { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 10px 0 4px; }
.pr { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-secondary); }
.pr .i { width: 13px; height: 13px; }
.pr.sel { background: var(--surface-selected); color: var(--text-primary); }
mark { color: var(--match-text); background: var(--match-bg); border-radius: 3px; padding: 0 2px; }
/* capture */
.mini-capture { display: flex; flex-direction: column; justify-content: center; gap: 14px; background: radial-gradient(120% 90% at 50% 0%, rgba(91, 91, 214, 0.14), transparent 70%), var(--surface); }
.cap { display: flex; align-items: center; gap: 4px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-elevated); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 14px; }
.cap-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.toggle { display: inline-flex; padding: 2px; border-radius: var(--radius-sm); background: var(--surface-hover); }
.toggle > * { padding: 2px 8px; border-radius: var(--radius-xs); font-weight: 500; }
.toggle b { background: var(--surface-selected); color: var(--text-primary); }
.dest { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); }
.dest .i { width: 12px; height: 12px; }

/* ---------- Private ---------- */
.private { overflow: hidden; isolation: isolate; border-top: 1px solid rgba(255, 255, 255, 0.04); background: linear-gradient(180deg, var(--bg-deep), #0E0E16 50%, var(--bg-deep)); }
.halo-low { top: auto; bottom: -500px; opacity: .8; }
.private-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.promises { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.promises li { display: flex; gap: 12px; }
.promises .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); filter: drop-shadow(0 0 6px rgba(165, 165, 255, 0.5)); }
.promises b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.promises span { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.tree {
  border-radius: var(--radius-lg); background: #0F0F13; border: 1px solid rgba(165, 165, 255, 0.16); overflow: hidden;
  box-shadow: 0 30px 90px -30px rgba(91, 91, 214, 0.5), var(--shadow-lg);
}
.tree .pane-head { font-family: var(--font-mono); font-size: 12px; }
.files { list-style: none; margin: 0; padding: 12px 8px; font: 13px/1 var(--font-mono); }
.files li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.files .dir { color: var(--text-primary); }
.files .dir .i { color: var(--accent-text); }
.files .l2 { padding-left: 34px; }
.files .i { width: 14px; height: 14px; color: var(--text-muted); }
.files .hot { background: var(--accent-subtle); color: var(--text-primary); }
.files .muted { opacity: .55; }
.badge { margin-left: auto; font: 500 10.5px/1 var(--font-sans); color: var(--accent-text); padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(165, 165, 255, 0.3); }
.fm { margin: 0; padding: 14px 20px 18px; border-top: 1px dashed var(--border-strong); font-size: 12px; line-height: 1.8; color: var(--text-secondary); }

/* ---------- Download ---------- */
.download { text-align: center; padding-bottom: 140px; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.dl-icon { width: 128px; height: 128px; margin-bottom: 20px; filter: drop-shadow(0 0 40px rgba(165, 165, 255, 0.35)); }
.download h2 { margin: 0 auto; }
.download .btn { margin-top: 32px; }
.firstrun { margin-top: 28px; max-width: 560px; text-align: left; font-size: 14px; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.firstrun summary { cursor: pointer; padding: 12px 16px; color: var(--text-primary); font-weight: 500; }
.firstrun p { margin: 0; padding: 0 16px 16px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: 56px 0 140px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-inner p { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; }
.footer-inner .fineprint { margin: 0; font-size: 12px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.seen { opacity: 1; transform: none; }
.cards .card:nth-child(3n+2) { transition-delay: .08s; }
.cards .card:nth-child(3n+3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .private-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero-mark { width: 76px; height: 76px; border-radius: 18px; }
  .video-wrap { margin-top: 48px; }
  .window { border-radius: var(--radius-lg); }
  .window-title { display: none; }
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .snap { height: 56px; }
  .snap-net { transform: rotate(90deg); height: 80px; }
  .md { font-size: 12px; line-height: 2; min-height: 0; }
  .trow { font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .grid-floor { height: 220px; margin-top: -140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
