/* K-AI marketing — flat dark (8090-style) + liquid-glass accents */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-raised: #0f0f12;
  --bg-band: #0c0c0f;
  --fg: #fafafa;
  --fg-soft: #a1a1aa;
  --fg-muted: #71717a;
  --brand: #8B7CF6;
  --brand-soft: #A594F9;
  --brand-dim: rgba(139, 124, 246, 0.14);
  --ok: #4ade80;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --font: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --nav-pad-x: 18px;
  --glass-bg: rgba(15, 15, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --wrap-text: 680px;
  --wrap: 1040px;
  --wrap-wide: 1160px;
  --section-y: clamp(88px, 11vw, 128px);
  --section-y-sm: clamp(64px, 8vw, 96px);
  --light-bg: #f4f4f5;
  --light-fg: #18181b;
  --light-muted: #52525b;
  --footer-cream: #f0ebe3;
  --footer-cream-deep: #e8dfd4;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior: none;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior: none;
}
img, video { max-width: 100%; display: block; }
a { color: var(--fg-soft); text-decoration: none; }
a:hover { color: var(--fg); }

.page { position: relative; overflow-x: clip; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.wrap-text { max-width: var(--wrap-text); margin-left: auto; margin-right: auto; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

/* ── Nav — boxy bar, logo + links | CTA ── */
.nav-shell {
  position: sticky; top: 16px; z-index: 100;
  padding: 0 clamp(20px, 4vw, 32px);
  margin-bottom: 12px;
}
.site-nav {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  background: #121216;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  min-width: 0;
  overflow-x: clip;
}
.nav-inner {
  min-height: var(--nav-h);
  padding: 6px var(--nav-pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-zone-start {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.nav-zone-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.nav-zone-end {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.brand {
  display: flex; align-items: center;
  line-height: 1;
}
.brand:hover { color: inherit; }
.brand-logo {
  display: block;
  height: 20px;
  width: auto;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.brand:hover .brand-logo { opacity: 0.82; }
.brand-logo-footer { height: 24px; }
.nav-zone-start .brand { flex-shrink: 0; }
.pixel-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.nav-links {
  display: flex; align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}
.nav-links a {
  color: var(--fg-muted); font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  align-self: stretch;
}
.nav-ctas .btn-pill.primary {
  padding: 11px 20px;
  font-size: 14px;
}
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--fg); font-size: 22px; cursor: pointer;
  padding: 4px 8px;
}

/* Nav adapts over light scroll zone */
body.on-light .site-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(24, 24, 27, 0.12);
}
body.on-light .nav-links a { color: #71717a; }
body.on-light .nav-links a:hover { color: var(--light-fg); }
body.on-light .btn-pill.ghost { color: #71717a; }
body.on-light .btn-pill.ghost:hover { color: var(--light-fg); }
body.on-light .menu-toggle { color: var(--light-fg); }
@media (max-width: 640px) {
  body.on-light .nav-zone-center {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(24, 24, 27, 0.12);
  }
}

/* ── Buttons ── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font); font-weight: 600; font-size: 13px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn-pill.sm { padding: 10px 18px; font-size: 14px; }
.btn-pill.lg {
  padding: 15px 30px; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-pill.lg .btn-icon { width: 20px; height: 20px; }
.btn-pill.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  box-shadow: 0 4px 22px rgba(139, 124, 246, 0.38);
}
.btn-pill.primary:hover {
  box-shadow: 0 8px 32px rgba(139, 124, 246, 0.52);
  transform: translateY(-1px);
}
.btn-pill.glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--fg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-pill.glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn-pill.outline {
  background: transparent; border-color: var(--line-strong); color: var(--fg);
}
.btn-pill.outline:hover { border-color: rgba(255,255,255,0.22); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost.lg { padding: 15px 20px; }
.btn-ghost:hover { border-color: var(--fg-soft); color: var(--fg); }
.btn-pill.ghost {
  background: transparent; border-color: transparent; color: var(--fg-muted);
}
.btn-pill.ghost:hover { color: var(--fg); }

.github-stars-link {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 5px;
  height: 30px;
  padding: 0 4px;
  border: none;
  border-radius: 6px;
  color: var(--fg-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
@media (min-width: 1081px) {
  .github-stars-link { display: inline-flex; }
}
.github-stars-link:hover {
  color: var(--fg);
  background: transparent;
}
.github-stars-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.github-stars-count {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
body.on-light .github-stars-link { color: #71717a; }
body.on-light .github-stars-link:hover {
  color: var(--light-fg);
  background: transparent;
}

/* Cartridge download — square, flat, hard offset */
.btn-download {
  display: inline-flex; align-items: stretch; justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid var(--brand);
  cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-download.lg { font-size: 9px; }
.btn-download .platform-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.14);
}
.btn-download.lg .platform-icon { width: 44px; }
.btn-download .platform-icon svg { display: block; width: 16px; height: 16px; }
.btn-download.lg .platform-icon svg { width: 18px; height: 18px; }
.btn-download .platform-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 36px;
}
.btn-download.lg .platform-label {
  padding: 0 22px;
  min-height: 46px;
}
.btn-download.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.btn-download.primary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}
.nav-ctas .btn-ghost {
  padding: 8px 12px;
  font-size: 0.82rem;
  align-self: center;
  white-space: nowrap;
}
.nav-ctas .btn-download {
  font-size: 8px;
  box-shadow: none;
  align-self: center;
  height: auto;
}
.nav-ctas .btn-download .platform-icon { width: 34px; }
.nav-ctas .btn-download .platform-icon svg { width: 14px; height: 14px; }
.nav-ctas .btn-download .platform-label {
  padding: 0 14px;
  min-height: 36px;
}
body.on-light .btn-download.primary {
  box-shadow: 3px 3px 0 rgba(24, 24, 27, 0.22);
}
body.on-light .btn-download.primary:hover {
  box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.28);
}
body.on-light .nav-ctas .btn-download.primary,
body.on-light .nav-ctas .btn-download.primary:hover {
  box-shadow: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% -10%, rgba(139, 124, 246, 0.07), transparent 65%);
}
.hero > .wrap,
.hero > .wrap-wide { position: relative; z-index: 1; }
.hero-headline-wrap {
  max-width: min(100%, 64rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(20px, 4vw, 32px);
}
.hero-beta {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 8px);
  align-items: center;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.hero-beta-tag {
  flex-shrink: 0;
  font-family: var(--font-pixel);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--brand-soft);
  padding: 6px 8px;
  border: 1px solid rgba(139, 124, 246, 0.38);
  background: rgba(139, 124, 246, 0.08);
}
.hero-beta-copy {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-soft);
  white-space: nowrap;
}
.hero-brand-label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero h1 {
  display: table;
  width: auto;
  max-width: 100%;
  margin: 0 auto 20px;
  font-size: clamp(2.45rem, 5.8vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.02;
  color: var(--fg);
  text-align: center;
}
.hero h1 .hero-headline-line {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.hero h1 .dim {
  color: var(--fg-soft);
  font-weight: 600;
}
.hero-lede {
  margin: 0 auto 36px;
  max-width: min(100%, 52rem);
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}
.hero-lede-line {
  display: block;
  white-space: nowrap;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-bottom: 0;
}
.hero-ctas .btn-ghost.lg {
  min-height: 46px;
  padding: 0 22px;
}
.trust-row-wrap {
  margin-top: 36px;
  max-width: 100%;
  padding: 0;
}
.trust-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5.5vw, 56px);
  max-width: 100%;
  margin: 0 auto;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 24px;
}
.trust-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  color: #fafafa;
  line-height: 0;
}
.trust-icon-wrap svg,
.trust-icon-wrap .trust-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  opacity: 0.4;
}
.trust-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.48);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 24px;
}
a.trust-item {
  color: inherit;
  text-decoration: none;
}
a.trust-item:hover .trust-label {
  color: rgba(250, 250, 250, 0.92);
}

.product-showcase {
  margin-top: clamp(44px, 6vw, 72px);
}
.product-frame {
  border-radius: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  overflow: hidden;
}
.product-frame-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-muted);
}
.product-lights { display: flex; gap: 7px; }
.product-lights i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.product-lights i:nth-child(1) { background: #ff5f57; }
.product-lights i:nth-child(2) { background: #febc2e; }
.product-lights i:nth-child(3) { background: #28c840; }
.product-video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}
.product-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
}


.ui-demo {
  --demo-fg: #ededed;
  --demo-muted: rgba(255, 255, 255, 0.45);
  --demo-soft: rgba(255, 255, 255, 0.65);
  --demo-line: rgba(255, 255, 255, 0.10);
  display: grid;
  grid-template-columns: 232px minmax(280px, 1.15fr) minmax(320px, 1.35fr);
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b0b0f;
  color: var(--demo-fg);
  font-family: "Inter Tight", system-ui, sans-serif;
  text-align: left;
}
.ui-demo [data-show] { display: none !important; }
.ui-demo[data-scene="listen"] [data-show~="listen"],
.ui-demo[data-scene="generate"] [data-show~="generate"],
.ui-demo[data-scene="notes"] [data-show~="notes"],
.ui-demo[data-scene="review"] [data-show~="review"] { display: block !important; }
.ui-demo[data-scene="listen"] li[data-show~="listen"],
.ui-demo[data-scene="generate"] li[data-show~="generate"],
.ui-demo[data-scene="notes"] li[data-show~="notes"],
.ui-demo[data-scene="review"] li[data-show~="review"] { display: list-item !important; }
.ui-demo[data-scene="notes"] .ui-demo-pane[data-show~="notes"],
.ui-demo[data-scene="listen"] .ui-demo-pane[data-show~="listen"],
.ui-demo[data-scene="generate"] .ui-demo-pane[data-show~="generate"],
.ui-demo[data-scene="review"] .ui-demo-pane[data-show~="review"] {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.ui-demo[data-scene="review"] .ui-demo-tool[data-show~="review"] { display: flex !important; }
.ui-demo[data-scene="notes"] .ui-demo-msg[data-show~="notes"],
.ui-demo[data-scene="review"] .ui-demo-msg[data-show~="review"] { display: flex !important; }
.ui-demo[data-scene="review"] .ui-demo-user[data-show~="review"] { display: block !important; }
.ui-demo-chat-title { display: none !important; }
.ui-demo[data-scene="listen"] .ui-demo-chat-title[data-show~="listen"],
.ui-demo[data-scene="generate"] .ui-demo-chat-title[data-show~="generate"],
.ui-demo[data-scene="notes"] .ui-demo-chat-title[data-show~="notes"],
.ui-demo[data-scene="review"] .ui-demo-chat-title[data-show~="review"] {
  display: inline !important;
}
.ui-demo-side,
.ui-demo-chat,
.ui-demo-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ui-demo-side {
  background: #0f0f12;
  border-right: 1px solid var(--demo-line);
}
.ui-demo-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
  flex-shrink: 0;
}
.ui-demo-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: color-mix(in srgb, #8B7CF6 10%, #121216);
  font-size: 14px;
  font-weight: 500;
}
.ui-demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--demo-muted);
}
.ui-demo-search svg { opacity: 0.55; flex-shrink: 0; }
.ui-demo-history { padding: 0 8px 4px; flex-shrink: 0; }
.ui-demo-pinned { padding: 0 8px 8px; flex: 1; min-height: 0; overflow: hidden; }
.ui-demo-sec {
  margin: 0;
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-muted);
}
.ui-demo-recents,
.ui-demo-apps { list-style: none; margin: 0; padding: 0 2px; }
.ui-demo-recents li,
.ui-demo-apps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 10px;
  margin: 1px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--demo-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-demo-apps li svg { flex-shrink: 0; opacity: 0.78; }
.ui-demo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}
.ui-demo-tile svg {
  width: 16px;
  height: 16px;
  opacity: 1;
  image-rendering: pixelated;
}
.ui-demo-recents li.is-on { background: rgba(139, 124, 246, 0.12); color: #fff; }
.ui-demo-more {
  margin: 2px 10px 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}
.ui-demo-foot {
  margin-top: auto;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--demo-line);
  flex-shrink: 0;
}
.ui-demo-apps-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--demo-soft);
}
.ui-demo-chat { border-right: 1px solid var(--demo-line); background: #0b0b0f; }
.ui-demo-chat,
.ui-demo-right {
  padding: 20px 0 0;
}
.ui-demo-chat-top,
.ui-demo-mail-head,
.ui-demo-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}
.ui-demo-share { font-weight: 500; font-size: 12px; color: var(--demo-muted); }
.ui-demo-chat {
  justify-content: flex-start;
}
.ui-demo-feed {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}
.ui-demo-user {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(237, 237, 237, 0.88);
}
.ui-demo-status {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}
.ui-demo-status.dim { color: rgba(255, 255, 255, 0.32); }
.ui-demo-line {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(237, 237, 237, 0.78);
}
.ui-demo-line strong { color: rgba(255, 255, 255, 0.88); font-weight: 600; }
.ui-demo-msg {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(237, 237, 237, 0.88);
}
.ui-demo-msg p { margin: 0 0 8px; }
.ui-demo-msg ul { margin: 0 0 8px; padding-left: 1.15em; }
.ui-demo-k {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #8B7CF6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ui-demo-worked {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}
.ui-demo-msg a,
.ui-demo-mail-list a { color: #a78bfa; }
.ui-demo-mail-list { list-style: none; padding-left: 0 !important; }
.ui-demo-mail-list li { margin: 5px 0; font-size: 13px; }
.ui-demo-mail-list span { color: rgba(255, 255, 255, 0.4); }
.ui-demo-tool {
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.ui-demo-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
  font-size: 11px;
  flex-shrink: 0;
}
.ui-demo-tool pre {
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: pre-wrap;
}
.ui-demo-composer {
  margin: 8px 10px 8px;
  padding: 10px 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141418;
  flex-shrink: 0;
}
.ui-demo-composer-ph {
  min-height: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.38);
}
.ui-demo-composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.ui-demo-composer-left,
.ui-demo-composer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui-demo-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}
.ui-demo-model {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}
.ui-demo-model i {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 4px solid rgba(255, 255, 255, 0.5);
  vertical-align: 2px;
}
.ui-demo-ctx {
  font-size: 12px;
  color: #a78bfa;
}
.ui-demo-agent {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}
.ui-demo-mic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8B7CF6;
}
.ui-demo-right { background: #0b0b0f; }
.ui-demo-pane {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ui-demo-pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.ui-demo-undo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ui-demo-copy-split {
  display: inline-flex;
  margin-left: auto;
}
.ui-demo-copy,
.ui-demo-copy-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: #8B7CF6;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.ui-demo-copy {
  gap: 6px;
  padding: 0 12px;
  border-radius: 6px 0 0 6px;
}
.ui-demo-copy-caret {
  width: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 6px 6px 0;
}
.ui-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
  box-sizing: border-box;
}
.ui-demo-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  margin-right: 4px;
}
.ui-demo-tb {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.ui-demo-notes-chip {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.ui-demo-tabs {
  justify-content: flex-start;
  padding: 0 8px;
  background: #0b0b0f;
}
.ui-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(139, 124, 246, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
.ui-demo-tab b { font-weight: 500; }
.ui-demo-tab-x { opacity: 0.45; font-size: 12px; font-weight: 400; }
.ui-demo-tab-new {
  width: 28px;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}
.ui-demo-tb-sep {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.1);
}
.ui-demo-notes,
.ui-demo-mail {
  padding: 22px 24px 28px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.ui-demo-mail ul {
  margin: 0 0 10px;
  padding-left: 1.15em;
  font-size: 13.5px;
  color: rgba(237, 237, 237, 0.8);
}
.ui-demo-notes h1 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.ui-demo-notes h2 {
  margin: 28px 0 12px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}
.ui-demo-notes p,
.ui-demo-notes li,
.ui-demo-draft-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(237, 237, 237, 0.82);
}
.ui-demo-notes p { margin: 0 0 14px; }
.ui-demo-notes ul { margin: 0 0 14px; padding-left: 1.2em; }
.ui-demo-notes-wait {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.ui-demo-tasks { list-style: none; padding-left: 0 !important; }
.ui-demo-tasks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.ui-demo-review {
  appearance: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.ui-demo-review:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ui-demo-transcript { color: rgba(255, 255, 255, 0.42) !important; }
.ui-demo-draft-field {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--demo-muted);
}
.ui-demo-draft-field strong {
  display: inline-block;
  min-width: 56px;
  color: var(--demo-soft);
  font-weight: 500;
}
.ui-demo-draft-text { margin: 14px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .ui-demo[data-scene="listen"] [data-show~="listen"],
  .ui-demo[data-scene="generate"] [data-show~="generate"],
  .ui-demo[data-scene="notes"] [data-show~="notes"],
  .ui-demo[data-scene="review"] [data-show~="review"] {
    animation: ui-demo-in 0.4s var(--ease) both;
  }
}
@keyframes ui-demo-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .ui-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .ui-demo-side { display: none; }
}
@media (max-width: 720px) {
  .ui-demo {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    height: min(78vh, 680px);
  }
  .ui-demo-right { display: none; }
}

.logo-panel {
  margin-top: clamp(28px, 3.5vw, 40px);
  margin-bottom: 0;
  padding-top: 24px;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}
.logo-panel-label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted);
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
}
.logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 72px;
  flex-shrink: 0;
}
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.logo-chip--pixel {
  background: rgba(9, 9, 11, 0.85);
  border-color: rgba(139, 124, 246, 0.12);
}
.logo-chip-wide {
  width: 80px;
  height: 52px;
  padding: 0 8px;
}
.logo-chip img,
.logo-pixel {
  width: 28px; height: 28px; object-fit: contain;
  opacity: 0.95;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.logo-vllm {
  width: auto;
  height: 18px;
  max-width: 68px;
  opacity: 1;
}
.logo-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--fg-muted); text-align: center;
}
.logo-item:hover .logo-chip {
  transform: translateY(-2px);
}
.logo-item:hover .logo-chip--pixel {
  border-color: rgba(139, 124, 246, 0.35);
  box-shadow: 0 8px 28px rgba(139, 124, 246, 0.18);
}
.logo-item[data-brand="openai"] .logo-chip { border-color: rgba(255, 255, 255, 0.16); }
.logo-item[data-brand="anthropic"] .logo-chip { border-color: rgba(212, 165, 116, 0.28); }
.logo-item[data-brand="openrouter"] .logo-chip { border-color: rgba(255, 255, 255, 0.14); }
.logo-item[data-brand="ollama"] .logo-chip { border-color: rgba(255, 255, 255, 0.14); }
.logo-item[data-brand="llamacpp"] .logo-chip { border-color: rgba(255, 255, 255, 0.12); }
.logo-item[data-brand="vllm"] .logo-chip { border-color: rgba(48, 162, 255, 0.28); }
.logo-item:hover .logo-label { color: var(--fg-soft); }

/* ── Sections ── */
section { padding: var(--section-y) 0; }
section.compact { padding: var(--section-y-sm) 0; }
section.section-spacious { padding: clamp(96px, 12vw, 140px) 0; }
main.section-spacious {
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(64px, 8vw, 96px);
}
#product.section-spacious {
  padding: clamp(56px, 7vw, 80px) 0 clamp(96px, 12vw, 140px);
}
/* Reveal sections are visible by default so non-scrolling renderers
   (search / verification crawlers) see the full page; the entrance
   animation only plays when JS marks a section as entering the viewport. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
section.reveal.in { animation: reveal-in 0.65s var(--ease) both; }
section.band {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Light scroll band — hard cut, no fade strips */
.light-zone {
  background: var(--footer-cream);
  color: var(--light-fg);
}
.light-section {
  padding: clamp(40px, 5vw, 56px) 0;
}
.light-section + .light-section {
  padding-top: 0;
}
.light-zone-inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-y-sm);
  padding: var(--section-y-sm) 0;
}
.light-zone-inner > .cream-band,
.light-zone-inner > .light-section {
  padding: 0;
}
.mission-section.band {
  border-bottom: none;
  padding-bottom: clamp(56px, 7vw, 80px);
}
.light-zone .section-title { color: var(--light-fg); }
.light-zone .section-sub { color: var(--light-muted); }
.light-zone .eyebrow { color: #71717a; }
.light-zone .eyebrow.accent { color: #6b5fd4; }
.light-zone .preview-tile {
  border-color: rgba(24, 24, 27, 0.1);
  background: #fff;
}
.light-zone .preview-tile:hover,
.light-zone .preview-tile:focus-within {
  border-color: rgba(24, 24, 27, 0.1);
}
.light-zone .preview-label {
  background: #fff;
  color: #6b5fd4;
}
.light-zone .tab-btn {
  border-color: rgba(24, 24, 27, 0.12);
  color: #71717a;
  background: transparent;
}
.light-zone .tab-btn.active {
  color: #6b5fd4;
  border-color: rgba(24, 24, 27, 0.28);
  background: #fff;
}
.light-zone .compare-col {
  background: #fff;
  border-color: rgba(24, 24, 27, 0.1);
}
.light-zone .compare-col li { border-color: rgba(24, 24, 27, 0.08); color: var(--light-muted); }
.light-zone .compare-col.highlight {
  border-color: rgba(24, 24, 27, 0.28);
  background: #fff;
}
.light-zone .compare-col.highlight h4,
.light-zone .compare-col.highlight .pixel-label { color: #6b5fd4; }
.light-zone .compare-col.highlight li { color: #3f3f46; }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.eyebrow.accent { color: var(--brand-soft); }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 2.875rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}
.section-sub {
  margin: 0 0 0; max-width: 520px;
  color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.65;
}
.section-sub-wide {
  max-width: min(100%, 920px);
}
@media (min-width: 900px) {
  .section-sub-wide {
    white-space: nowrap;
    font-size: clamp(0.98rem, 1.2vw, 1.0625rem);
  }
}
.center-head { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); }
.center-head .section-sub { margin-left: auto; margin-right: auto; }
#start .center-head { margin-bottom: 20px; }
.light-zone .center-head,
#compare .center-head { margin-bottom: clamp(28px, 4vw, 40px); }

/* Pricing page */
.pricing-hero {
  padding: 0 0 clamp(24px, 3vw, 32px);
  text-align: center;
}
.pricing-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.pricing-hero .section-sub {
  margin: 0 auto;
  max-width: 42rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  min-height: 100%;
}
.pricing-card.featured {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: linear-gradient(165deg, var(--bg-raised) 0%, color-mix(in srgb, var(--brand) 7%, var(--bg-raised)) 100%);
  box-shadow: 0 12px 40px rgba(139, 124, 246, 0.12);
}
.pricing-tier {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.pricing-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pricing-price {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.pricing-card p {
  margin: 0 0 18px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 10px;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.5;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.pricing-card .btn-pill,
.pricing-card .btn-download {
  width: 100%;
  margin-top: auto;
}
.pricing-note {
  margin: 28px auto clamp(56px, 8vw, 96px);
  max-width: 42rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}
.pricing-note a {
  color: var(--brand-soft);
  font-weight: 600;
  text-decoration: none;
}
.pricing-note a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; }
}
@media (max-width: 899px) {
  .section-sub-wide { white-space: normal; }
}

/* Blog page */
.blog-hero {
  padding: 0 0 clamp(24px, 3vw, 32px);
  text-align: center;
}
.blog-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.blog-hero .section-sub {
  margin: 0 auto;
  max-width: 38rem;
}
.blog-empty {
  max-width: 32rem;
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  text-align: center;
}
.blog-empty-title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.blog-empty-copy {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}
.blog-empty-copy a {
  color: var(--brand-soft);
  font-weight: 600;
  text-decoration: none;
}
.blog-empty-copy a:hover { text-decoration: underline; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 28px;
  max-width: 42rem;
}
.blog-filter-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.blog-filter-chip:hover,
.blog-filter-chip.is-active {
  border-color: var(--brand-soft);
  color: var(--fg);
}
.blog-list {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin: 0 auto clamp(56px, 8vw, 96px);
}
.blog-card {
  display: block;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: color-mix(in srgb, var(--brand-soft) 45%, var(--line));
  transform: translateY(-1px);
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.blog-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-tag-compare {
  background: color-mix(in srgb, var(--brand-soft) 18%, transparent);
  color: var(--brand-soft);
}
.blog-tag-recipes {
  background: color-mix(in srgb, #82c882 22%, transparent);
  color: #6fb86f;
}
.blog-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.blog-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.blog-article-wrap {
  max-width: 42rem;
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding-bottom: 24px;
  scroll-margin-top: calc(var(--nav-h) + 48px);
}
.blog-article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 48px);
}
.blog-article-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.blog-dek {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.blog-byline {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
}
.blog-article {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
}
.blog-article > * + * { margin-top: 1.15em; }
.blog-article h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.blog-article h3 {
  margin-top: 1.5em;
  margin-bottom: 0.35em;
  font-size: 1.05rem;
  font-weight: 600;
}
.blog-article ul,
.blog-article ol {
  margin: 0.5em 0;
  padding-left: 1.35em;
}
.blog-article li { margin: 0.35em 0; }
.blog-article a {
  color: var(--brand-soft);
  font-weight: 500;
  text-decoration: none;
}
.blog-article a:hover { text-decoration: underline; }
.blog-article code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.blog-article pre {
  margin: 1em 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.blog-article pre code {
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
}
.blog-callout {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 15px;
  line-height: 1.55;
}
.blog-callout-title,
.blog-callout > .blog-callout-title {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.blog-callout-task {
  border-color: color-mix(in srgb, var(--brand-soft) 35%, var(--line));
}
.blog-callout-warn {
  border-color: color-mix(in srgb, #e5a33a 40%, var(--line));
}

/* TL;DR two-column cards */
.blog-tldr-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.blog-tldr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .blog-tldr-cards { grid-template-columns: 1fr; }
}
.blog-tldr-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 40%, var(--bg-raised));
}
.blog-tldr-card-kai {
  border-color: color-mix(in srgb, var(--brand-soft) 30%, var(--line));
}
.blog-tldr-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.blog-tldr-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.blog-tldr-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.blog-tldr-list li { margin: 0.25em 0; }
.blog-tldr-foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* Figures & media */
.blog-figure {
  margin: 1.75em 0;
}
.blog-figure-wide {
  margin-left: calc(-1 * clamp(0px, 4vw, 48px));
  margin-right: calc(-1 * clamp(0px, 4vw, 48px));
}
.blog-figure-media {
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-raised);
  line-height: 0;
}
.blog-figure-media video,
.blog-figure-media img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-figure-media video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.blog-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-muted);
  text-align: center;
}
.blog-mockup {
  padding: 16px;
  min-height: 200px;
  line-height: 1.45;
}
.blog-mockup-telegram {
  background: linear-gradient(180deg, #1c2a38 0%, #17212b 100%);
  color: #e4ecf4;
}
.blog-mockup-telegram-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}
.blog-mockup-telegram-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b4a, #e84a3a);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.blog-mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-mockup-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
}
.blog-mockup-bubble--user {
  align-self: flex-end;
  background: #2b5278;
  border-bottom-right-radius: 4px;
}
.blog-mockup-bubble--bot {
  align-self: flex-start;
  background: #182533;
  border-bottom-left-radius: 4px;
  color: #dbe7f3;
}
.blog-mockup-bubble-meta {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.blog-mockup-terminal {
  background: #0b0f14;
  color: #c8d4e0;
  font-family: var(--mono);
  font-size: 11px;
}
.blog-mockup-terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.blog-mockup-terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  background: #3a3f46;
}
.blog-mockup-terminal-bar i:nth-child(1) { background: #ff5f57; }
.blog-mockup-terminal-bar i:nth-child(2) { background: #febc2e; }
.blog-mockup-terminal-bar i:nth-child(3) { background: #28c840; }
.blog-mockup-terminal-line {
  margin: 0 0 6px;
  white-space: pre-wrap;
}
.blog-mockup-terminal-line .prompt { color: #7dd3fc; }
.blog-mockup-terminal-line .tool { color: #a3e635; }
.blog-mockup-terminal-line .dim { color: #64748b; }
.blog-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.75em 0;
}
@media (max-width: 640px) {
  .blog-media-grid { grid-template-columns: 1fr; }
}
.blog-media-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--brand-soft));
  background: var(--bg-raised);
  text-align: center;
  gap: 6px;
}
.blog-media-slot-label {
  font-size: 14px;
  font-weight: 600;
}
.blog-media-slot-hint {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 16rem;
}
.blog-media-slot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Plain-language highlight cards */
.blog-pick-cards {
  display: grid;
  gap: 12px;
  margin: 1.25em 0;
}
.blog-pick-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.blog-pick-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.blog-pick-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* Numbered steps (recipes) */
.blog-steps {
  margin: 1.25em 0;
  padding: 0;
  list-style: none;
  counter-reset: blog-step;
}
.blog-steps li {
  counter-increment: blog-step;
  position: relative;
  padding: 14px 16px 14px 52px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 15px;
  line-height: 1.5;
}
.blog-steps li::before {
  content: counter(blog-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-soft) 20%, transparent);
  color: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.blog-table-wrap {
  margin: 1.25em 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.blog-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.blog-compare-table th,
.blog-compare-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.blog-compare-table th {
  font-weight: 600;
  background: var(--bg-raised);
  font-size: 13px;
}
.blog-compare-table tr:last-child th,
.blog-compare-table tr:last-child td { border-bottom: none; }
.blog-compare-table td:first-child {
  font-weight: 500;
  color: var(--fg-muted);
  min-width: 8.5rem;
}
.blog-sources {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-muted);
}
.blog-sources ul { padding-left: 1.2em; }
.blog-related {
  margin-top: 2em;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.blog-related h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}
.blog-related ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.6;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
}
.blog-back:hover { color: var(--brand-soft); }
@media (max-width: 640px) {
  .blog-compare-table thead { display: none; }
  .blog-compare-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .blog-compare-table td {
    display: block;
    border: none;
    padding: 4px 14px;
  }
  .blog-compare-table td:first-child {
    padding-top: 12px;
    font-weight: 600;
    color: var(--fg);
  }
  .blog-compare-table td::before {
    content: attr(data-col);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
    margin-bottom: 2px;
  }
  .blog-compare-table td:first-child::before { display: none; }
}

/* Stagger scroll reveals — visible by default, animate on .in (see section.reveal) */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.reveal-stagger.in .stagger-item {
  animation: stagger-in 0.55s var(--ease) both;
}
.reveal-stagger.in .stagger-item:nth-child(1) { animation-delay: 0.04s; }
.reveal-stagger.in .stagger-item:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger.in .stagger-item:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.in .stagger-item:nth-child(4) { animation-delay: 0.22s; }
.reveal-stagger.in .stagger-item:nth-child(5) { animation-delay: 0.28s; }
.reveal-stagger.in .stagger-item:nth-child(6) { animation-delay: 0.34s; }

/* Mission bento — relocated, more visual weight */
.mission-section { padding-top: var(--section-y-sm); }
.mission-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.mission-intro {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mission-intro h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.mission-intro p {
  margin: 0;
  flex: 1 1 20rem;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}
.mission-card {
  padding: 28px; border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  min-height: 180px;
  display: flex; flex-direction: column;
}
.mission-card.featured {
  border-color: var(--line-strong);
  background: linear-gradient(165deg, var(--bg-raised) 0%, color-mix(in srgb, var(--brand) 6%, var(--bg-raised)) 100%);
}
.mission-num {
  margin-bottom: 16px;
}
.mission-num.pixel-label { color: var(--brand-soft); }
.mission-card h3 {
  margin: 0 0 10px; font-size: 1.125rem; font-weight: 600;
  letter-spacing: -0.02em;
}
.mission-card p {
  margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.55;
  flex: 1;
}
.mission-card .link {
  margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--fg-soft);
}
.mission-card .link:hover { color: var(--fg); }

.cream-band {
  background: transparent;
  color: var(--light-fg);
  padding: 0;
}
.cream-band .eyebrow { color: #71717a; }
.cream-band .eyebrow.accent { color: #6b5fd4; }
.cream-band .section-title { color: var(--light-fg); }
.cream-band .section-sub { color: var(--light-muted); max-width: 46ch; }
.cream-band .mission-bento-flat {
  grid-template-rows: auto;
  margin-top: 0;
}
.cream-band .mission-card {
  background: #fff;
  border-color: rgba(24, 24, 27, 0.1);
  border-radius: 0;
}
.cream-band .mission-card.featured {
  background: #fff;
}
.cream-band .mission-num.pixel-label { color: #6b5fd4; }
.cream-band .mission-card h3 { color: var(--light-fg); }
.cream-band .mission-card p { color: var(--light-muted); }

/* Story */
.story-stack { display: flex; flex-direction: column; gap: 0; }
.story-block + .story-block { margin-top: clamp(48px, 7vw, 80px); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy media";
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.story-copy { grid-area: copy; }
.story-media {
  grid-area: media;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
}
.story-grid.flip { grid-template-areas: "media copy"; }
.story-num {
  margin-bottom: 14px;
}
.story-num.pixel-label { color: var(--brand-soft); }
.story-copy h3 {
  margin: 0 0 14px; font-size: clamp(1.35rem, 2.2vw, 1.625rem);
  font-weight: 600; letter-spacing: -0.025em;
}
.story-copy p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.65; }
.story-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.story-block.stagger-item.in-view .story-media,
.reveal-stagger.in .stagger-item .story-media {
  border-color: var(--line-strong);
}
.story-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Previews */
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview-tile {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: #fff;
  cursor: default;
}
.preview-screen {
  position: relative;
  aspect-ratio: 16/10;
  background: #111;
}
.preview-tile video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45; transition: opacity 0.2s;
}
.preview-tile:hover video, .preview-tile:focus-within video { opacity: 1; }
.preview-label {
  display: block;
  padding: 12px 14px 13px;
  border-top: 1px solid rgba(24, 24, 27, 0.1);
  font-size: 8px;
  line-height: 1.5;
}

/* Compare */
.compare-tabs { max-width: 1040px; margin: 0 auto; }
.tab-bar {
  display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
  margin-bottom: 12px;
}
.tab-btn {
  padding: 9px 14px; border-radius: 0;
  font-family: var(--font-pixel); font-size: 8px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  border: 1px solid var(--line); background: transparent;
  color: var(--fg-muted); cursor: pointer;
}
.tab-btn.active {
  color: var(--fg); border-color: rgba(139, 124, 246, 0.35);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-raised));
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.compare-panel-lede {
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.light-zone .compare-panel-lede { color: var(--light-muted); }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compare-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compare-col {
  padding: 22px; border-radius: 0;
  border: 1px solid var(--line); background: var(--bg-raised);
}
.compare-col h4.pixel-label {
  margin: 0 0 14px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.compare-col.highlight {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 5%, var(--bg-raised));
}
.compare-col h4 {
  margin: 0 0 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted);
}
.compare-col.highlight h4 { color: var(--brand-soft); }
.compare-col ul { margin: 0; padding: 0; list-style: none; }
.compare-col li {
  padding: 7px 0; font-size: 13px; color: var(--fg-muted);
  border-top: 1px solid var(--line); line-height: 1.45;
}
.compare-col li:first-child { border-top: none; }
.compare-col.highlight li { color: var(--fg-soft); }
.compare-col li.good::before { content: "✓ "; color: var(--ok); }
.compare-col li.weak::before { content: "– "; opacity: 0.5; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-card {
  padding: 28px 24px; border-radius: 0;
  border: 1px solid var(--line); background: var(--bg-raised);
}
.split-card .pixel-label { margin: 0 0 16px; color: var(--brand-soft); }
.split-card h3 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.split-card p { margin: 0 0 16px; font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.split-card ul { margin: 0; padding: 0; list-style: none; }
.split-card li {
  padding: 8px 0; font-size: 14px; color: var(--fg-soft);
  border-top: 1px solid var(--line);
}
.split-card li::before { content: "✓ "; color: var(--ok); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  padding: 28px 24px; border-radius: 0;
  border: 1px solid var(--line); background: var(--bg-raised);
}
.step-num {
  margin-bottom: 12px;
}
.step-num.pixel-label { color: var(--brand-soft); }
.step h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.step p { margin: 0; font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

.start-note {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.start-note a {
  color: var(--fg-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.start-note a:hover { color: var(--brand-soft); }
.start-cta {
  text-align: center; margin-top: 28px;
}
.dev-note {
  margin: 14px 0 0; font-size: 13px; color: var(--fg-muted);
}
.dev-note a { color: var(--fg-soft); font-weight: 500; }
.dev-note a:hover { color: var(--brand-soft); }

.faq { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); }
#faq {
  scroll-margin-top: calc(var(--nav-h, 56px) + 32px);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; padding: 18px 20px; background: none; border: none;
  text-align: left; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 500;
  color: var(--fg); display: flex; justify-content: space-between; gap: 16px;
}
.faq-q::after { content: "+"; color: var(--fg-muted); font-size: 1.2rem; font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); display: inline-block; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p {
  margin: 0;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: min(44vh, 380px);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg) 8%,
    #09090b 22%,
    #0b0a10 38%,
    #0e0c16 52%,
    #110e1c 66%,
    #141022 78%,
    #181326 88%,
    #1c152b 95%,
    #201830 100%
  );
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: min(36vh, 300px);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 110% 80% at 50% 100%, rgba(139, 124, 246, 0.16) 0%, rgba(139, 124, 246, 0.05) 48%, transparent 74%),
    radial-gradient(ellipse 60% 45% at 20% 100%, rgba(139, 124, 246, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 55% 42% at 80% 98%, rgba(34, 211, 238, 0.05) 0%, transparent 68%);
  animation: footer-glow-pulse 38s ease-in-out infinite alternate;
}
@keyframes footer-glow-pulse {
  from { opacity: 0.75; transform: scaleY(1); }
  to { opacity: 1; transform: scaleY(1.06); }
}
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr);
  gap: clamp(40px, 6vw, 72px);
  padding: clamp(56px, 7vw, 80px) clamp(20px, 4vw, 32px) clamp(40px, 5vw, 56px);
  max-width: var(--wrap-wide);
  margin: 0 auto;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
}
.footer-tagline {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-soft);
}
.footer-social a:hover { color: var(--fg); }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-col a:hover { color: var(--fg); }
.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px clamp(20px, 4vw, 32px) clamp(12px, 2vw, 20px);
  max-width: var(--wrap-wide);
  margin: 0 auto;
  font-size: 12px;
  color: var(--fg-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
}
.footer-meta a { color: var(--fg-soft); }
.footer-wordmark-band {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: clamp(8px, 2vw, 20px);
  min-height: clamp(160px, 24vw, 280px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.footer-wordmark-logo {
  position: relative;
  z-index: 2;
  width: min(92vw, 880px);
  height: auto;
  padding: 0 clamp(16px, 4vw, 32px) clamp(12px, 2.5vw, 24px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 12px 40px rgba(139, 124, 246, 0.18));
  opacity: 1;
  transform: translate3d(0, 16px, 0);
  transition: transform 1.1s var(--ease);
}
.footer-wordmark-band.in .footer-wordmark-logo {
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1080px) {
  .nav-ctas .btn-pill.ghost { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 960px) {
  .hero h1 .hero-headline-line { white-space: normal; }
  .hero-lede-line { white-space: normal; }
  .mission-bento { grid-template-columns: 1fr; }
  .mission-card.featured { border-color: var(--line-strong); }
  .mission-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .story-grid,
  .story-grid.flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
  }
  .previews, .compare-grid, .split-grid, .steps { grid-template-columns: 1fr; }
  .compare-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-shell { top: 10px; padding: 0 12px; }
  .site-nav { border-radius: 0; overflow: visible; }
  .nav-inner {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    padding: 10px 12px;
    gap: 8px;
  }
  .nav-zone-start { flex: 1; min-width: 0; }
  .nav-ctas .btn-download,
  .nav-ctas .github-stars-link { display: none; }
  .nav-zone-center {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    order: unset;
    padding: 14px 16px 16px;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 30;
  }
  .nav-inner.nav-open .nav-zone-center { display: block; }
  .nav-inner.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 0;
    border-top: none;
  }
  .nav-inner.nav-open .nav-links a {
    font-size: 15px;
    padding: 10px 4px;
  }
  .nav-zone-end { margin-left: auto; }
  .nav-ctas .btn-pill.ghost { display: none; }
  .menu-toggle { display: block; }
  .brand-logo { height: 18px; }
  .logo-chip { width: 44px; height: 44px; }
  .footer-columns { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-beta {
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px;
    gap: 8px;
  }
  .hero-beta-copy { white-space: normal; text-align: center; padding: 0 6px 4px; }
  .hero h1 .hero-headline-line { white-space: normal; }
  .btn-pill.lg, .btn-download.lg { width: 100%; }
  .btn-download.lg {
    justify-content: flex-start;
  }
  .btn-download.lg .platform-label {
    flex: 1;
    justify-content: center;
    padding: 0 16px;
  }
  .trust-row {
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-label { font-size: 12px; }
}

/* ── Windows install trust explainer (SmartScreen) ── */
body.win-install-modal-open { overflow: hidden; }

.win-install-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}
.win-install-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.win-install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.win-install-modal-card {
  position: relative;
  width: min(100%, 960px);
  padding: clamp(22px, 2.5vw, 32px) clamp(22px, 2.5vw, 32px) clamp(24px, 2.8vw, 34px);
  border-radius: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.28s var(--ease);
  overflow: hidden;
}
.win-install-modal.is-open .win-install-modal-card {
  transform: translateY(0) scale(1);
}
.win-install-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.win-install-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
}
.win-install-modal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 408px);
  gap: clamp(20px, 2.8vw, 32px);
  align-items: stretch;
}
.win-install-modal-copy {
  min-width: 0;
  padding-right: 4px;
}
.win-install-modal-status {
  margin: 0 0 12px;
}
.win-install-modal-status.pixel-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--brand-soft);
}
.win-install-modal-dots {
  display: inline-block;
  width: 3ch;
  text-align: left;
  vertical-align: bottom;
}
.win-install-modal-dots::after {
  content: '';
  animation: win-install-dots 1.5s steps(4, end) infinite;
}
@keyframes win-install-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75%, 100% { content: '...'; }
}
.win-install-modal-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--fg);
  padding-right: 28px;
}
.win-install-modal-lede {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.win-install-modal-lede strong { color: var(--fg); font-weight: 600; }
.win-install-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.win-install-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.win-install-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-dim);
  border: none;
  font-size: 8px;
  line-height: 1;
  color: var(--brand-soft);
}
.win-install-step-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-soft);
  text-align: left;
}
.win-install-step-text strong { color: var(--fg); font-weight: 600; }
.win-install-vt-card {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.win-install-vt-card:hover {
  opacity: 0.82;
}
.win-install-vt-card[hidden] { display: none; }
.win-install-vt-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.win-install-vt-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}
.win-install-vt-version {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--fg-muted);
  opacity: 0.85;
}
.win-install-vt-version[hidden] { display: none; }
.win-install-vt-detail {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-muted);
}
.win-install-vt-card:hover .win-install-vt-detail {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.win-install-modal-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  height: 100%;
  min-height: 200px;
  justify-self: start;
  align-self: stretch;
  position: relative;
}
.win-install-modal-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.win-install-modal-gif-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: var(--fg-muted);
  font-size: 12px;
  text-align: center;
}
.win-install-modal-gif-placeholder[hidden],
.win-install-modal-gif[hidden] {
  display: none;
}
body.on-light .win-install-modal-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}
body.on-light .win-install-modal-title { color: var(--light-fg); }
body.on-light .win-install-modal-lede { color: var(--light-muted); }
body.on-light .win-install-modal-lede strong,
body.on-light .win-install-step-text strong { color: var(--light-fg); }
body.on-light .win-install-step {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
body.on-light .win-install-step-text { color: var(--light-muted); }
body.on-light .win-install-vt-name { color: var(--light-muted); }
body.on-light .win-install-modal-close {
  background: rgba(0, 0, 0, 0.05);
  color: #71717a;
}
body.on-light .win-install-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--light-fg);
}

@media (max-width: 760px) {
  .win-install-modal-split {
    grid-template-columns: 1fr;
  }
  .win-install-modal-media {
    order: -1;
    max-width: none;
  }
  .win-install-modal-copy { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section.reveal.in, .reveal-stagger.in .stagger-item { animation: none; }
  .site-footer::after { animation: none; opacity: 0.88; }
  .footer-wordmark-logo { opacity: 1; transform: none; transition: none; }
  .win-install-modal,
  .win-install-modal-card { transition: none; transform: none; }
  .win-install-modal-dots::after {
    content: '...';
    animation: none;
  }
}
