/* ==========================================================================
   lun — feature site
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg-2: #0b0c11;
  --panel: #101116;
  --panel-2: #14151b;
  --card: #17181d;
  --card-hi: #1c1d24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eef0f5;
  --muted: #9a9eac;
  --dim: #6b7080;
  --accent: #8b6cff;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --accent-ink: #0c0718;
  --planning: #60a5fa;
  --review: #c084fc;
  --waiting-on: #fbbf24;
  --backlog: #94a3b8;
  --closed: #34d399;
  --danger: #f87171;
  --success: #34d399;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(1200px 620px at 18% -10%, rgba(124, 92, 255, 0.10), transparent 62%),
    radial-gradient(900px 520px at 88% 12%, rgba(96, 165, 250, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 108, 255, 0.35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--mono); }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ============ header ============ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(8, 9, 12, 0.9);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand-name {
  font-family: var(--mono); font-size: 19px; font-weight: 700;
  letter-spacing: -0.03em; color: #fff;
}
.brand-tag {
  font-size: 11px; color: var(--dim); border-left: 1px solid var(--border-strong);
  padding-left: 12px; letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--muted); padding: 7px 11px; border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.gh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 550; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 13px; background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.gh-btn svg { width: 15px; height: 15px; }
.gh-btn:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.gh-btn:active { transform: translateY(1px); }

/* ============ shared type ============ */

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--closed);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(44px, 5.6vw, 66px); letter-spacing: -0.05em; }
h1 .grad {
  background: linear-gradient(100deg, #fff 0%, var(--accent-3) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-plain { color: var(--accent-2); }

.section { padding: 100px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(36px, 4.9vw, 56px); }
.section-lede {
  color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-top: 18px;
  max-width: 620px; letter-spacing: -0.005em;
}
.section-lede code, .check-list code, .small-note code, .step-hint code {
  font-size: 0.88em; color: var(--accent-3); background: rgba(139, 108, 255, 0.10);
  border: 1px solid rgba(139, 108, 255, 0.18); border-radius: 5px; padding: 1px 5px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 11px; padding: 13px 22px; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, #9a7dff, var(--accent));
  color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28);
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); color: var(--text);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 9px; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.04); border-radius: 5px;
  font-size: 10.5px; color: var(--muted); line-height: 1;
}

/* ============ hero ============ */

.hero { position: relative; overflow: hidden; padding-top: 26px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(560px 340px at 72% 30%, rgba(124, 92, 255, 0.16), transparent 68%),
    radial-gradient(420px 280px at 25% 10%, rgba(96, 165, 250, 0.07), transparent 70%);
  filter: blur(10px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(700px 480px at 60% 10%, #000 20%, transparent 78%);
  mask-image: radial-gradient(700px 480px at 60% 10%, #000 20%, transparent 78%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  padding: 66px 0 54px;
}
.hero-copy { max-width: 650px; }
.hero-copy h1 { margin-bottom: 24px; }
.lede {
  color: var(--muted); font-size: 17px; line-height: 1.68;
  max-width: 560px; letter-spacing: -0.005em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 26px;
}
.hero-meta li {
  font-size: 11px; font-family: var(--mono); color: var(--dim);
  border: 1px solid var(--border); border-radius: 99px; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.02);
}

/* terminal */

.term {
  position: relative; background: #0a0b10;
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--mono);
}
.hero-visual { position: relative; }
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b44; display: block; }
.term-dots i:nth-child(1) { background: #ff5f57; opacity: 0.85; }
.term-dots i:nth-child(2) { background: #febc2e; opacity: 0.85; }
.term-dots i:nth-child(3) { background: #28c840; opacity: 0.85; }
.term-title { font-size: 11px; color: var(--dim); margin-left: 4px; }
.term-live {
  margin-left: auto; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--closed); border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08); padding: 2px 8px; border-radius: 99px;
}
.term-body {
  padding: 22px 22px 24px; min-height: 356px;
  font-size: 12px; line-height: 1.72; color: #c7cad4;
  white-space: pre; overflow: hidden;
}
.tline { display: flex; gap: 8px; min-height: 1.72em; }
.tline .p { color: var(--accent-2); }
.tline .cmd { color: #f2f3f7; }
.tout { padding-left: 17px; color: var(--muted); min-height: 1.72em; }
.tout.ok { color: var(--closed); }
.tout .k { color: var(--accent-3); }
.tout .dim { color: var(--dim); }
.tout .upd { color: var(--review); }
.tout .com { color: #f0a35e; }
.tout .cre { color: var(--closed); }
.caret {
  display: inline-block; width: 7px; height: 14px; background: var(--accent-2);
  vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  background: rgba(18, 19, 25, 0.9); border: 1px solid var(--border-strong);
  border-radius: 99px; padding: 7px 12px; backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); animation: float 6s ease-in-out infinite;
}
.float-chip.chip-a { top: -16px; right: 30px; }
.float-chip.chip-b { bottom: -16px; left: -22px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none;
  background: var(--muted);
}
.dot.planning { background: var(--planning); }
.dot.review { background: var(--review); }
.dot.waiting-on { background: var(--waiting-on); }
.dot.backlog { background: var(--backlog); }
.dot.closed { background: var(--closed); }

/* stat strip */

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 26px 0; margin-top: 20px;
}
.stat-strip > div { padding: 0 30px; border-left: 1px solid var(--border); }
.stat-strip > div:first-child { border-left: 0; padding-left: 0; }
.stat-strip dt {
  font-family: var(--mono); font-size: 30px; font-weight: 600;
  color: #fff; letter-spacing: -0.04em; line-height: 1.1;
}
.stat-strip dd {
  font-size: 12px; color: var(--dim); margin-top: 4px; letter-spacing: 0.01em;
}

/* ============ pillars ============ */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(139, 108, 255, 0.10); border: 1px solid rgba(139, 108, 255, 0.22);
  color: var(--accent-2); margin-bottom: 22px;
}
.pillar-icon svg { width: 21px; height: 21px; }
.pillar h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.025em; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.inline-code {
  display: inline-block; margin-top: 20px; font-size: 11px; color: var(--accent-3);
  background: rgba(139, 108, 255, 0.08); border: 1px solid rgba(139, 108, 255, 0.16);
  border-radius: 6px; padding: 5px 8px;
}

/* ============ features ============ */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.feature {
  background: var(--panel); padding: 26px 24px; min-height: 172px;
  transition: background 0.2s ease;
}
.feature:hover { background: var(--panel-2); }
.feature-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
}
.feature h3 { font-size: 18px; line-height: 1.2; margin: 10px 0 8px; letter-spacing: -0.026em; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.62; }
.feature p code {
  font-size: 0.88em; color: var(--accent-3);
  background: rgba(139, 108, 255, 0.08); border-radius: 4px; padding: 0 4px;
}
.feature-more {
  margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--dim);
}

/* ============ demo board ============ */

.demo-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124, 92, 255, 0.07), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: none; }
.demo-head > div { max-width: 560px; }
.demo-head .section-lede { max-width: 430px; margin-top: 0; padding-bottom: 4px; }
.demo-shell {
  background: #0d0e13; border: 1px solid var(--border-strong); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
}
.demo-topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.demo-brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 700; color: #fff; font-size: 14px; }
.demo-brand img { width: 20px; height: 20px; border-radius: 5px; }
.demo-path { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.demo-project {
  border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px;
  background: var(--bg-2); color: var(--text);
}
.demo-views { display: flex; margin-left: auto; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.demo-views span { padding: 4px 10px; color: var(--dim); }
.demo-views .on { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.demo-new { background: var(--accent); color: #fff; border-radius: 7px; padding: 5px 11px; font-weight: 600; }
.demo-badge {
  font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--waiting-on); border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.07); border-radius: 99px; padding: 2px 7px;
}
.demo-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 14px; min-height: 438px;
}
.dcol {
  background: rgba(255, 255, 255, 0.016); border: 1px solid transparent;
  border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dcol.over { background: rgba(139, 108, 255, 0.08); border-color: rgba(139, 108, 255, 0.45); border-style: dashed; }
.dcol-head {
  display: flex; align-items: center; gap: 7px; padding: 2px 4px 8px;
  font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--muted);
}
.dcol-head .count { margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 10px; }
.dcol-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.dcard {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 12px; cursor: grab; outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.dcard:hover { border-color: var(--border-strong); background: var(--card-hi); transform: translateY(-1px); }
.dcard:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139, 108, 255, 0.28); }
.dcard.dragging { opacity: 0.35; }
.dcard-title { font-size: 12.5px; line-height: 1.35; font-weight: 500; color: #f1f2f6; }
.dlink {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 9.5px; color: var(--accent-3); background: rgba(139, 108, 255, 0.09);
  border: 1px solid rgba(139, 108, 255, 0.2); border-radius: 99px; padding: 2px 7px;
}
.dlink b { font-weight: 500; color: var(--dim); }
.dcard-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  margin-top: 9px; font-size: 9px; color: var(--dim); font-family: var(--mono);
}
.dkey { color: var(--muted); }
.dchip {
  border-radius: 4px; padding: 1px 5px; font-size: 9px; line-height: 1.4;
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
}
.dchip.high { color: #fda4af; background: rgba(248, 113, 113, 0.10); }
.dchip.med { color: #fcd34d; background: rgba(251, 191, 36, 0.09); }
.dchip.low { color: #93c5fd; background: rgba(96, 165, 250, 0.09); }
.dproj { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.dproj i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.demo-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border); padding: 10px 16px;
  font-size: 10px; color: var(--dim); background: rgba(0, 0, 0, 0.18);
}
.demo-footer > span { display: inline-flex; align-items: center; gap: 4px; }
.demo-footer kbd { min-width: 17px; height: 17px; font-size: 9px; }
.demo-note { margin-left: auto; color: var(--dim); font-family: var(--mono); }

/* ============ bento ============ */

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.bcard {
  grid-column: span 4; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 55%), var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; min-height: 272px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.bcard.b-wide { grid-column: span 7; }
.bcard.b-half { grid-column: span 6; }
.bcard-copy .kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.bcard h3 { font-size: 18.5px; line-height: 1.2; margin-bottom: 9px; letter-spacing: -0.026em; }
.bcard p { font-size: 13.5px; color: var(--muted); line-height: 1.63; }
.bcard p code {
  font-size: 0.88em; color: var(--accent-3);
  background: rgba(139, 108, 255, 0.08); border-radius: 4px; padding: 0 4px;
}

.mini-term {
  margin-top: auto; background: #0a0b0f; border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 15px; font-family: var(--mono);
  font-size: 10.5px; line-height: 1.75; color: var(--muted);
  overflow: hidden;
}
.mini-term .p { color: var(--accent-2); }
.mini-term .k { color: var(--accent-3); }
.mini-term .dim { color: var(--dim); }
.mini-term .ok { color: var(--closed); }
.mini-line { color: #e6e8ee; }
.mini-line.mt { margin-top: 9px; }
.mini-out { color: var(--muted); }

.mini-log {
  margin-top: auto; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; font-family: var(--mono); font-size: 10px;
}
.logline {
  display: grid; grid-template-columns: 38px 34px 52px 1fr; gap: 6px; align-items: center;
  padding: 7px 10px; border-top: 1px solid var(--border);
  color: var(--muted); white-space: nowrap; overflow: hidden;
}
.logline:first-child { border-top: 0; }
.logline .t { color: var(--dim); }
.logline .u { color: var(--muted); }
.logline .a { font-size: 8.5px; letter-spacing: 0.04em; }
.logline .a.upd { color: var(--review); }
.logline .a.com { color: #f0a35e; }
.logline .a.cre { color: var(--closed); }
.logline .a.lnk { color: var(--waiting-on); }

.mini-note {
  margin-top: auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 15px; font-size: 12px; color: var(--muted);
}
.note-h { font-weight: 650; color: #f0f1f5; font-size: 12.5px; margin-bottom: 8px; }
.note-li { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.note-li .box {
  width: 12px; height: 12px; border: 1px solid var(--border-strong);
  border-radius: 3px; display: inline-grid; place-items: center; font-size: 8px;
  color: var(--bg);
}
.note-li .box.checked { background: var(--closed); border-color: var(--closed); }
.note-li code { color: var(--accent-3); font-size: 10.5px; }
.note-eq {
  margin-top: 10px; font-family: "Times New Roman", serif; font-style: italic;
  font-size: 15px; color: #e9eaf0; display: flex; align-items: baseline; gap: 10px;
}
.note-eq-src { font-family: var(--mono); font-style: normal; font-size: 9px; color: var(--dim); }

.mini-links { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 10.5px; color: var(--accent-3); background: rgba(139, 108, 255, 0.09);
  border: 1px solid rgba(139, 108, 255, 0.22); border-radius: 99px; padding: 4px 9px;
}
.chip-link b { font-weight: 500; color: var(--dim); }
.chip-link.mail { color: #93c5fd; background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.22); }
.drop-zone {
  margin-top: 4px; border: 1px dashed rgba(139, 108, 255, 0.35);
  border-radius: 8px; padding: 12px; text-align: center;
  font-family: var(--mono); font-size: 9.5px; color: var(--dim);
  background: rgba(139, 108, 255, 0.03);
}

.mini-keys {
  margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-size: 10.5px; color: var(--muted);
}
.mini-keys span { display: flex; align-items: center; gap: 4px; }
.mini-keys i { font-style: normal; color: var(--dim); margin-left: 3px; }

.branchviz, .dbviz { margin-top: auto; padding-top: 10px; }
.branchviz svg, .dbviz svg { width: 100%; height: auto; max-height: 108px; }

.mini-code {
  margin-top: auto; background: #0a0b0f; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-family: var(--mono);
  font-size: 9.8px; line-height: 1.9; color: var(--muted); overflow: hidden; white-space: nowrap;
}
.mini-code .dim { color: var(--dim); display: inline-block; width: 42px; }

.phoneviz {
  margin: auto auto 0; width: 148px; border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 10px; background: #0a0b0f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.phone-notch { width: 46px; height: 5px; border-radius: 99px; background: #2a2b34; margin: 0 auto 9px; }
.phone-col {
  display: flex; align-items: center; gap: 5px; font-size: 8px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 3px 2px 7px;
}
.phone-col b { margin-left: auto; color: var(--dim); font-weight: 400; }
.phone-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 7px;
  padding: 8px; font-size: 9.5px; color: #e6e8ee; line-height: 1.3; margin-bottom: 6px;
}
.phone-foot { text-align: center; font-size: 8px; color: var(--dim); font-family: var(--mono); padding-top: 3px; }

.also-list {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 32px;
}
.also-list li {
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02); border-radius: 99px; padding: 5px 11px;
}
.also-list code { color: var(--accent-3); font-size: 10.5px; }

/* ============ real board ============ */

.real-section { padding-top: 60px; }
.browser-frame {
  border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  background: #0b0c11; box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 13px; padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.browser-url {
  font-family: var(--mono); font-size: 10.5px; color: var(--dim);
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 12px; margin-inline: auto;
  min-width: min(360px, 60%); text-align: center;
}
.browser-pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--closed); border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 99px; padding: 2px 8px;
}
.browser-frame img { width: 100%; height: auto; }
.fig-caption {
  color: var(--dim); font-size: 12px; text-align: center; margin-top: 16px;
}
.fig-caption kbd { margin-inline: 2px; }

/* ============ split sections ============ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-copy { max-width: 540px; }
.split-copy h2 { font-size: clamp(34px, 4.2vw, 50px); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); line-height: 1.6;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(139, 108, 255, 0.5);
}
.check-list strong { color: var(--text); font-weight: 600; }
.check-list code {
  font-size: 0.88em; color: var(--accent-3); background: rgba(139, 108, 255, 0.08);
  border-radius: 4px; padding: 1px 4px;
}

.window-frame {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 8px; box-shadow: var(--shadow);
}
.window-frame img { border-radius: 9px; width: 100%; height: auto; }
.window-frame figcaption {
  font-size: 11.5px; color: var(--dim); padding: 12px 8px 4px; line-height: 1.5;
}

/* ============ cli ============ */

.cli-section {
  background:
    radial-gradient(760px 420px at 18% 40%, rgba(124, 92, 255, 0.06), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.split-reverse .split-copy { order: 2; justify-self: end; }
.split-reverse .cli-term { order: 1; }
.cli-term .cli-pre {
  margin: 0; padding: 22px 23px; font-size: 11px; line-height: 1.8;
  overflow-x: auto; color: #c7cad4;
}
.cli-pre code { font: inherit; }
.cli-pre .c { color: var(--dim); }
.cli-pre .p { color: var(--accent-2); }
.cli-pre .k { color: var(--accent-3); }
.cli-pre .dim { color: var(--dim); }
.cli-pre .upd { color: var(--review); }
.cli-pre .com { color: #f0a35e; }
.cli-pre .cre { color: var(--closed); }
.cli-term { align-self: stretch; display: flex; flex-direction: column; }
.cli-term .cli-pre { flex: 1; }

/* ============ tui ============ */

.tui-section { overflow: hidden; }
.tui-section::before {
  content: ""; position: absolute; inset: 10% -20% auto; height: 600px; z-index: -1;
  background: radial-gradient(500px 300px at 62% 40%, rgba(124, 92, 255, 0.13), transparent 70%);
}
.key-table { list-style: none; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.key-table li { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.key-table li span { margin-left: 5px; color: var(--dim); font-size: 11.5px; }
.small-note { margin-top: 22px; font-size: 12px; color: var(--dim); line-height: 1.65; }
.small-note code { font-size: 10.5px; color: var(--accent-3); }

.tui {
  background: #0d0a16; border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 13px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 92, 255, 0.08);
  font-family: var(--mono);
}
.tui-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  background: #120d20; border-bottom: 1px solid rgba(167, 139, 250, 0.16);
}
.tui-title { font-size: 10.5px; color: var(--accent-2); }
.tui-mode {
  margin-left: auto; font-size: 8.5px; letter-spacing: 0.12em; color: var(--accent-3);
  border: 1px solid rgba(167, 139, 250, 0.28); border-radius: 4px; padding: 1px 6px;
}
.tui-body { padding: 14px 15px 12px; font-size: 10px; color: #d6d2e6; }
.tui-head {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}
.tui-logo { font-size: 14px; font-weight: 700; color: var(--accent-3); letter-spacing: -0.04em; }
.tui-crumb { color: var(--dim); font-size: 9.5px; }
.tui-help { margin-left: auto; color: var(--dim); font-size: 9px; }
.tui-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 12px 0; }
.tui-col { min-width: 0; }
.tui-ch {
  display: flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--c); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 7px;
}
.tui-ch b { margin-left: auto; color: var(--dim); font-weight: 400; }
.tui-card {
  display: flex; flex-direction: column; gap: 3px; padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 5px;
  background: rgba(255, 255, 255, 0.025); margin-bottom: 6px;
  color: #cfd0da; font-size: 9px; line-height: 1.35;
}
.tui-card.sel { border-color: var(--accent); background: rgba(139, 108, 255, 0.12); box-shadow: 0 0 0 1px rgba(139, 108, 255, 0.25); }
.tui-key { color: var(--accent-3); font-size: 8.5px; }
.tui-tags { color: var(--dim); font-size: 8px; }
.tui-palette {
  border-top: 1px solid rgba(167, 139, 250, 0.14); padding: 9px 2px 11px;
  color: #e9e6f5; font-size: 10px;
}
.tui-palette .p { color: var(--accent-2); margin-right: 4px; }
.tui-foot {
  display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(167, 139, 250, 0.12);
  padding-top: 9px; color: var(--dim); font-size: 8.5px;
}

/* ============ install ============ */

.install-section { padding-bottom: 120px; }
.install-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px;
  border: 1px solid var(--border-strong); border-radius: 24px;
  padding: 56px; background: linear-gradient(150deg, #14121f 0%, #0e0f14 55%);
  box-shadow: var(--shadow);
}
.install-glow {
  position: absolute; inset: auto -10% -60% 30%; height: 480px; pointer-events: none;
  background: radial-gradient(420px 260px at 60% 40%, rgba(124, 92, 255, 0.22), transparent 70%);
}
.install-copy { position: relative; }
.install-copy h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }
.install-copy .section-lede { max-width: 420px; }
.install-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.steps li {
  display: flex; gap: 14px; padding: 16px 18px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 12px;
}
.step-n {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--accent-3);
  background: rgba(139, 108, 255, 0.12); border: 1px solid rgba(139, 108, 255, 0.3);
}
.step-body { flex: 1; min-width: 0; }
.step-body > p { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cmd-row {
  display: flex; align-items: center; gap: 8px;
  background: #08090d; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 8px 8px 12px; font-family: var(--mono);
}
.cmd-row code { font-size: 11px; color: var(--accent-3); overflow-x: auto; white-space: nowrap; flex: 1; }
.copy {
  flex: none; font-size: 9.5px; font-family: var(--font); color: var(--dim);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--text); border-color: var(--border-strong); }
.copy.copied { color: var(--closed); border-color: rgba(52, 211, 153, 0.4); }
.step-hint { display: block; margin-top: 7px; font-size: 10px; color: var(--dim); font-family: var(--mono); }

/* ============ footer ============ */

.site-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.22); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 60px; padding-bottom: 46px; }
.footer-brand p { margin-top: 14px; font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h4 {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; font-weight: 600;
}
.footer-links a { display: block; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding: 18px 0 26px;
  font-size: 11px; color: var(--dim);
}
.footer-mono { font-family: var(--mono); font-size: 10px; }

/* ============ modal ============ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 5, 9, 0.74); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: min(740px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: #101116; border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.modal-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.modal-key { font-family: var(--mono); font-size: 10px; color: var(--accent-2); }
.modal-head h3 { font-size: 17px; margin-top: 3px; }
.modal-x {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); cursor: pointer; font-size: 12px;
}
.modal-x:hover { color: var(--text); border-color: var(--border-strong); }
.modal-body { overflow-y: auto; padding: 20px 22px; }
.modal-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255, 255, 255, 0.018); margin-bottom: 20px;
}
.mfield label {
  display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dim); margin-bottom: 4px;
}
.mfield .val { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mfield select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 7px; font-family: var(--mono); font-size: 11px;
}
.mfield select:focus { outline: none; border-color: var(--accent); }
.modal-section { margin-bottom: 22px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h4 {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--dim); margin-bottom: 9px;
}
.modal-notes {
  border: 1px solid var(--border); border-radius: 10px; padding: 15px 17px;
  font-size: 12.5px; color: var(--muted); line-height: 1.65; background: rgba(255, 255, 255, 0.014);
}
.modal-notes h2 { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.modal-notes ul { margin: 6px 0 10px 18px; }
.modal-notes li { margin-bottom: 3px; }
.modal-notes table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 11.5px; }
.modal-notes th, .modal-notes td { border: 1px solid var(--border); padding: 5px 8px; text-align: left; }
.modal-notes code {
  font-size: 10.5px; color: var(--accent-3); background: rgba(139, 108, 255, 0.09);
  border-radius: 3px; padding: 1px 4px;
}
.modal-notes .math { font-family: "Times New Roman", serif; font-style: italic; color: #e8e5f5; }
.modal-history { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mhist {
  display: grid; grid-template-columns: 52px 52px 60px 1fr; gap: 8px; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; color: var(--muted);
}
.mhist:first-child { border-top: 0; }
.mhist .t { color: var(--dim); }
.mhist .a { font-size: 8.5px; }
.mhist .a.update { color: var(--review); }
.mhist .a.create { color: var(--closed); }
.mhist .a.commit { color: #f0a35e; }
.mhist .a.link { color: var(--waiting-on); }
.modal-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--border);
}
.modal-hint { font-size: 10.5px; color: var(--dim); }
.modal-foot .btn { margin-left: auto; }
body.locked { overflow: hidden; }

.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  background: #17181d; border: 1px solid rgba(139, 108, 255, 0.4);
  border-radius: 10px; padding: 11px 15px; font-size: 12px; color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast .k { font-family: var(--mono); color: var(--accent-3); }

/* ============ reveal ============ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */

@media (max-width: 1080px) {
  .hero-grid { gap: 38px; grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: clamp(42px, 6vw, 66px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcard, .bcard.b-wide, .bcard.b-half { grid-column: span 1; }
  .bcard.b-wide { grid-column: span 2; }
  .pillars { gap: 12px; }
  .pillar { padding: 24px 20px; }
  .install-card { padding: 40px; gap: 40px; }
  .split { gap: 42px; }
}

@media (max-width: 900px) {
  .wrap { width: min(1200px, calc(100% - 36px)); }
  .nav a:nth-child(3), .nav a:nth-child(4) { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 620px; width: 100%; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .stat-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .demo-head { display: block; }
  .demo-head .section-lede { margin-top: 16px; }
  .demo-board {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 12px; min-height: 0; -webkit-overflow-scrolling: touch;
  }
  .dcol { min-width: 78%; scroll-snap-align: center; min-height: 380px; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; justify-self: start; }
  .split-reverse .cli-term { order: 0; }
  .split-copy { max-width: 680px; }
  .window-frame, .tui { max-width: 640px; }
  .tui-cols { grid-template-columns: repeat(2, 1fr); }
  .install-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .browser-url { min-width: 0; flex: 1; }
  .float-chip { display: none; }
  .section { padding: 76px 0; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { height: 60px; gap: 10px; }
  .brand-tag { display: none; }
  .nav { display: none; }
  .gh-btn span { display: none; }
  .gh-btn { padding: 8px 9px; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 15.5px; }
  .hero-meta li { font-size: 10px; }
  .term-body { font-size: 9.8px; padding: 16px; min-height: 318px; }
  .float-chip { display: none; }
  .stat-strip dt { font-size: 24px; }
  .stat-strip dd { font-size: 10.5px; }
  .stat-strip > div { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-lede { font-size: 15px; }
  .bento { grid-template-columns: 1fr; }
  .bcard, .bcard.b-wide, .bcard.b-half { grid-column: span 1; }
  .bcard { min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 20px; }
  .demo-topbar { flex-wrap: wrap; gap: 8px; }
  .demo-path { display: none; }
  .demo-views { margin-left: 0; }
  .demo-badge { display: none; }
  .demo-footer { gap: 10px; font-size: 9px; }
  .demo-footer .demo-note { display: none; }
  .dcol { min-width: 84%; }
  .logline { grid-template-columns: 34px 30px 48px 1fr; font-size: 9px; padding: 6px 8px; }
  .key-table { grid-template-columns: 1fr; }
  .tui-cols { grid-template-columns: 1fr 1fr; }
  .tui-body { font-size: 9px; }
  .install-card { padding: 26px 20px; border-radius: 18px; }
  .steps li { padding: 13px; }
  .cmd-row code { font-size: 10px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .modal-overlay { padding: 10px; }
  .modal { max-height: 94vh; }
  .modal-fields { grid-template-columns: 1fr; }
  .mhist { grid-template-columns: 42px 44px 52px 1fr; font-size: 9px; }
  .modal-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}
