/* ============================================================
   Paca Landing — High-Contrast Minimalism (dark)
   Tokens from paca/apps/web/src/index.css + design-system.md
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --fg: #f0f0f0;
  --card: #111111;
  --card-2: #161616;
  --muted: #1a1a1a;
  --muted-fg: #888888;
  --border: #2a2a2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --lime: #9ed957;
  --lime-soft: #b5e575;
  --lime-dim: #8ec34e;
  --lime-ink: #0a0a0a;
  --emerald: #10b981;
  --red: #f87171;
  --blue: #7aa7f7;

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container: 1120px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--font-mono); }
.lime { color: var(--lime); }
.dim { color: var(--muted-fg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(72px, 10vw, 120px); }
section[id] { scroll-margin-top: 84px; }

/* Custom scrollbar (content areas) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: 10px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.btn-lime:hover { background: var(--lime-soft); transform: translateY(-1px); }
.btn-lime:active { transform: translateY(0); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }

.btn-dark {
  background: var(--lime-ink);
  color: var(--fg);
}
.btn-dark:hover { background: #1d1d1d; transform: translateY(-1px); }

.btn-outline-dark {
  border-color: rgba(10, 10, 10, 0.4);
  color: var(--lime-ink);
}
.btn-outline-dark:hover { background: rgba(10, 10, 10, 0.1); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.star-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted-fg);
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted-fg);
  transition: all 0.15s ease;
}
.nav-burger:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav-burger .ic-close { display: none; }
.nav.menu-open .ic-menu { display: none; }
.nav.menu-open .ic-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 100px 24px 48px;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, padding-left 0.2s ease;
}
.mobile-menu nav a:hover { color: var(--lime); padding-left: 6px; }
.mobile-menu .btn { align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 148px;
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
}

/* Matches the app's own --hero-a token: rgba(158,217,87,.08) */
.hero-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 36% at 50% 0%, rgba(158, 217, 87, 0.075), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.kicker-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.kicker-chip .mono {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px rgba(158, 217, 87, 0.5);
  animation: kicker-pulse 2.4s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 6.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.ht-line { display: block; }

.hero-sub {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.8vw, 16.5px);
  line-height: 1.68;
  color: var(--muted-fg);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   BOARD DEMO
   ============================================================ */
.board-wrap {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  perspective: 1400px;
}

.board {
  max-width: 1000px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: #0e0e0e;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.board-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
}

.board-dots { display: flex; gap: 6px; }
.board-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.board-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
}
.board-name .mono { font-size: 11px; color: var(--fg); }
.board-sep { opacity: 0.4; }

.live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime);
  border: 1px solid rgba(158, 217, 87, 0.3);
  background: rgba(158, 217, 87, 0.07);
  padding: 4px 9px;
  border-radius: 999px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: live-ping 1.6s ease-in-out infinite;
}
@keyframes live-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(158, 217, 87, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(158, 217, 87, 0); }
}

.board-body { display: flex; }

.board-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.bcol { min-width: 0; }

.bcol-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.bcol-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, #666);
  box-shadow: 0 0 6px color-mix(in srgb, var(--dot, #666) 40%, transparent);
}
.bcol-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-fg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 1px 7px;
}

.bcol-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 236px;
  border-radius: 10px;
}

.tcard {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.tcard.agent-active {
  border-color: rgba(158, 217, 87, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(158, 217, 87, 0.18);
}

.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 5px;
  border: 1px solid;
  line-height: 1.4;
}
.badge-story { color: var(--lime); border-color: rgba(158, 217, 87, 0.32); background: rgba(158, 217, 87, 0.08); }
.badge-bug { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.07); }
.badge-spec { color: var(--blue); border-color: rgba(122, 167, 247, 0.3); background: rgba(122, 167, 247, 0.07); }
.badge-chore { color: #a3a3a3; border-color: rgba(163, 163, 163, 0.3); background: rgba(163, 163, 163, 0.07); }

.tid { font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; color: rgba(136, 136, 136, 0.8); }

.tcard-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--fg);
}
.tcard-done .tcard-title { color: var(--muted-fg); text-decoration: line-through; text-decoration-color: rgba(136, 136, 136, 0.5); }

.tcard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.tprog {
  flex: 1;
  max-width: 64px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
}
.tprog-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
}
.tprog-fill.full { background: var(--emerald); }

.tcheck {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid var(--emerald);
  background: var(--emerald);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
}
.tcheck.on { opacity: 1; transform: scale(1); }

.avatar {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-empty { border: 1.5px dashed rgba(255, 255, 255, 0.16); }
.avatar-h1 { background: linear-gradient(135deg, #2e2e2e, #1c1c1c); color: #cfcfcf; box-shadow: 0 0 0 1px var(--line-strong); }
.avatar-h2 { background: linear-gradient(135deg, #34342c, #1f1f1a); color: #d8d8c8; box-shadow: 0 0 0 1px var(--line-strong); }
.avatar-ai {
  background: linear-gradient(135deg, rgba(158, 217, 87, 0.9), rgba(158, 217, 87, 0.65));
  color: var(--lime-ink);
  box-shadow: 0 0 0 1px rgba(158, 217, 87, 0.5), 0 0 8px rgba(158, 217, 87, 0.3);
  font-size: 7.5px;
  letter-spacing: 0.02em;
}

/* Activity rail */
.board-feed {
  width: 228px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.7);
  margin-bottom: 12px;
}
.feed-line-deco {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12), transparent);
}

.feed-list { display: flex; flex-direction: column; gap: 10px; }

.feed-line { display: flex; gap: 8px; align-items: flex-start; }
.feed-ava {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 700;
  margin-top: 1px;
}
.feed-ava.ai { background: rgba(158, 217, 87, 0.15); color: var(--lime); box-shadow: 0 0 0 1px rgba(158, 217, 87, 0.3); }
.feed-ava.hum { background: rgba(255, 255, 255, 0.07); color: #cfcfcf; box-shadow: 0 0 0 1px var(--line-strong); }
.feed-ava.sys { background: rgba(16, 185, 129, 0.12); color: var(--emerald); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3); }

.feed-body { min-width: 0; }
.feed-text { font-size: 11px; line-height: 1.45; color: rgba(240, 240, 240, 0.82); }
.feed-text .mono { font-size: 10px; color: var(--lime); }
.feed-time { font-size: 9px; color: rgba(136, 136, 136, 0.55); font-family: var(--font-mono); }

.feed-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.feed-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--lime);
  animation: feed-dot 1.1s ease-in-out infinite;
}
.feed-dots i:nth-child(2) { animation-delay: 0.18s; }
.feed-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes feed-dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* ============================================================
   STRIP
   ============================================================ */
.strip {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  background: rgba(255, 255, 255, 0.012);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.strip-label { font-size: 12px; color: rgba(136, 136, 136, 0.75); }

.strip-names {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.strip-names [role="listitem"] {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(136, 136, 136, 0.9);
}

.strip-price {
  font-size: 10.5px;
  color: rgba(136, 136, 136, 0.65);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

.strip-paca {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--lime);
  border: 1px solid rgba(158, 217, 87, 0.3);
  background: rgba(158, 217, 87, 0.07);
  padding: 5px 12px;
  border-radius: 999px;
}
.strip-paca-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 64px);
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.sec-kicker::before,
.sec-kicker::after {
  content: "";
  width: 34px;
  height: 1px;
}
.sec-kicker::before { background: linear-gradient(to left, rgba(255, 255, 255, 0.18), transparent); }
.sec-kicker::after { background: linear-gradient(to right, rgba(255, 255, 255, 0.18), transparent); }

.sec-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sec-sub {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--muted-fg);
}

/* ============================================================
   WHY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  padding: 26px 24px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.why-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.why-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  background: rgba(158, 217, 87, 0.08);
  border: 1px solid rgba(158, 217, 87, 0.22);
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.why-card p { font-size: 13.8px; line-height: 1.66; color: var(--muted-fg); }

/* ============================================================
   CYCLE — "the team runs the loop"
   Static default = finished shot (no JS / reduced motion).
   js/cycle.js adds .is-live (desktop pin + scrub) or .is-rail
   (mobile) only when motion is allowed.
   ============================================================ */
.cycle-stage {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(36px, 5.5vw, 84px);
  align-items: center;
}

/* ---------- orbit ---------- */
.cycle-orbit {
  position: relative;
  width: 100%;
  max-width: min(440px, 58vh);
  margin-inline: auto;
}

.orbit-wash {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(158, 217, 87, 0.06), transparent 62%);
  pointer-events: none;
}

.cycle-ring { position: relative; width: 100%; height: auto; display: block; }

.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; }
.ring-prog {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.ring-comet .comet-core { fill: var(--lime); }
.ring-comet .comet-mid { fill: rgba(158, 217, 87, 0.28); }
.ring-comet .comet-halo { fill: rgba(158, 217, 87, 0.12); }

.ring-node circle {
  fill: rgba(158, 217, 87, 0.12);
  stroke: var(--lime);
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.ring-node text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  fill: var(--lime);
  text-anchor: middle;
  transition: fill 0.3s ease;
}
.node-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: rgba(158, 217, 87, 0.75);
  transition: fill 0.3s ease;
}

/* dimmed "not reached yet" states only exist while live */
.cycle.is-live .ring-node:not(.on) circle { fill: #101010; stroke: var(--border); }
.cycle.is-live .ring-node:not(.on) text { fill: var(--muted-fg); }
.cycle.is-live .node-tag:not(.on) { fill: rgba(136, 136, 136, 0.5); }

.orbiter {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform;
}
.cycle.is-live .orbiter { display: block; }
.orbiter .avatar {
  margin: 0;
  width: 30px;
  height: 30px;
  font-size: 10.5px;
  border: 2px solid var(--bg);
}
.orbiter[data-orbiter="0"] .avatar {
  box-shadow: 0 0 0 1px rgba(158, 217, 87, 0.5), 0 0 14px rgba(158, 217, 87, 0.35);
  font-size: 9px;
}

.cycle-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  pointer-events: none;
}
.cycle-step {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(136, 136, 136, 0.7);
}
.cycle-phase {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.cycle-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(158, 217, 87, 0.8);
}

/* ---------- phase panels ---------- */
.cycle-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cphase {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.014);
  padding: 22px;
}
.cphase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cphase-no {
  width: 38px;
  height: 38px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(136, 136, 136, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cphase h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cphase-copy { font-size: 14px; line-height: 1.66; color: var(--muted-fg); max-width: 52ch; }

/* ---------- micro-scenes ---------- */
.cscene {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.scn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.scn-file { font-size: 10px; color: var(--muted-fg); letter-spacing: 0.04em; }
.scn-body { padding: 14px; }

/* plan — co-authored spec */
.scn-authors { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.scn-authors .avatar { margin: 0; width: 17px; height: 17px; }
.scn-coedit {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.7);
  margin-left: 3px;
}
[data-author] { border-radius: 50%; transition: box-shadow 0.25s ease; }
[data-author].writing { box-shadow: 0 0 0 2px rgba(158, 217, 87, 0.55), 0 0 12px rgba(158, 217, 87, 0.4); }

.scn-doc { font-size: 11.5px; line-height: 1.95; overflow: hidden; }
.doc-line { white-space: nowrap; }
.scn-made { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.scn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 5px 9px;
}
.scn-chip .mono { font-size: 9.5px; color: rgba(136, 136, 136, 0.85); }

/* act — mini board */
.scn-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.scn-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: live-ping 2s ease-in-out infinite;
}
.scn-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.scn-col-head {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.75);
  margin-bottom: 7px;
}
.scn-slot { display: flex; flex-direction: column; gap: 7px; min-height: 100px; }
.scn-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-2);
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.scn-id { font-size: 8.5px; color: rgba(136, 136, 136, 0.8); letter-spacing: 0.04em; }
.scn-card-meta { display: flex; align-items: center; gap: 6px; min-height: 15px; }
.scn-card .avatar { width: 15px; height: 15px; font-size: 7px; }
.scn-card-live {
  position: relative;
  z-index: 2;
  border-color: rgba(158, 217, 87, 0.45);
  box-shadow: 0 0 0 1px rgba(158, 217, 87, 0.16), 0 4px 14px rgba(0, 0, 0, 0.3);
}
.scn-card-done { opacity: 0.55; }
.scn-prog { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.scn-prog-fill {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
  transform-origin: left center;
}

/* check — verification */
.scn-checks { position: relative; display: flex; flex-direction: column; gap: 9px; }
.check-row { display: flex; align-items: center; gap: 9px; }
.check-box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  color: var(--lime-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.check-box svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check-row.ok .check-box { background: var(--lime); border-color: var(--lime); }
.check-row.ok .check-box svg { opacity: 1; transform: scale(1); }
.check-name { font-size: 11px; color: #cfcfcf; }
.check-meta { margin-left: auto; font-size: 9px; color: rgba(136, 136, 136, 0.8); }
.check-human { padding-top: 9px; border-top: 1px dashed var(--line); }
.check-human .check-name { font-family: var(--font-body); }
.check-human .avatar { margin-left: auto; width: 16px; height: 16px; }
.scn-stamp {
  position: absolute;
  right: -2px;
  top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lime);
  border: 1.5px solid rgba(158, 217, 87, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(20, 24, 14, 0.92);
  transform: rotate(-4deg);
}

/* adapt — retro & velocity */
.scn-adapt-body { display: flex; flex-direction: column; gap: 12px; }
.scn-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 92px;
  padding-inline: 6px;
}
.abar {
  flex: 1;
  max-width: 38px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
  border: 1px solid var(--line);
  transform-origin: 50% 100%;
}
.abar-next {
  background: linear-gradient(to top, rgba(158, 217, 87, 0.22), rgba(158, 217, 87, 0.55));
  border-color: rgba(158, 217, 87, 0.5);
}
.scn-loop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#scn-loop-path,
#scn-loop-head {
  stroke: rgba(158, 217, 87, 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scn-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scn-foot { font-size: 9.5px; color: rgba(136, 136, 136, 0.8); letter-spacing: 0.03em; }

/* ---------- live (pinned) mode — added by JS on desktop ---------- */
.cycle.is-live {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 36px;
}
.cycle.is-live .sec-head { margin-bottom: clamp(28px, 4.5vh, 56px); }
.cycle.is-live .cycle-panels { position: relative; min-height: 410px; }
.cycle.is-live .cphase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
}
.cycle.is-live .cphase-head { display: none; }
.cycle.is-live .cphase-copy { font-size: 15px; }
.cycle.is-live .cscene { max-width: 480px; }

/* ---------- compact rail — mobile ---------- */
.cycle-rail {
  display: none;
  position: relative;
  margin: -6px auto 42px;
  max-width: 480px;
  justify-content: space-between;
}
.rail-track {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 13px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transform-origin: left center;
}
.rail-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
}
.rail-node i {
  font-style: normal;
  font-family: var(--font-display);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #101010;
  border: 1.5px solid var(--border);
  color: var(--muted-fg);
  transition: all 0.3s ease;
}
.rail-node em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.7);
  transition: color 0.3s ease;
}
.rail-node.on i { background: rgba(158, 217, 87, 0.12); border-color: var(--lime); color: var(--lime); }
.rail-node.on em { color: rgba(158, 217, 87, 0.85); }

/* ============================================================
   WHAT'S NEW (v0.4)
   ============================================================ */
.wn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.wn-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wn-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.028); }

.wn-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 9px; }
.wn-head p { font-size: 13.8px; line-height: 1.64; color: var(--muted-fg); max-width: 56ch; }

.wn-visual { margin-top: auto; }

/* --- in-app chat demo --- */
.chat-demo {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0d0d0d;
  overflow: hidden;
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.55);
}

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.chat-title { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-fg); white-space: nowrap; }
.chat-title .mono { font-size: 10.5px; color: var(--fg); }
.chat-label { display: inline-flex; align-items: center; gap: 8px; }

.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  border: 1px solid rgba(158, 217, 87, 0.3);
  background: rgba(158, 217, 87, 0.07);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.chat-online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: kicker-pulse 2.4s ease-in-out infinite;
}

.chat-body {
  padding: 14px 13px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 212px;
}

.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.chat-msg .avatar { margin-left: 0; margin-bottom: 2px; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-bubble {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(240, 240, 240, 0.88);
}
.chat-bubble strong { font-weight: 600; color: var(--fg); }
.chat-msg.user .chat-bubble {
  border-radius: 12px;
  border-bottom-right-radius: 4px;
  background: rgba(158, 217, 87, 0.09);
  border-color: rgba(158, 217, 87, 0.26);
}
.chat-typing { display: none; }
.chat-typing .chat-bubble { padding: 11px 13px 9px; }

.chat-made { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.made-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
}
.made-chip .mono { font-size: 9.5px; color: rgba(136, 136, 136, 0.8); flex-shrink: 0; }
.mc-plus { font-family: var(--font-mono); color: var(--lime); font-weight: 700; flex-shrink: 0; }
.mc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(240, 240, 240, 0.85); }

.chat-input {
  margin: 6px 13px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
  color: rgba(136, 136, 136, 0.75);
}
.chat-send {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--lime);
  color: var(--lime-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- diff & revert demo --- */
.revert-demo { display: flex; flex-direction: column; gap: 10px; }

.act-entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
  padding: 10px 14px;
}
.act-entry.act-main {
  border-color: var(--line-strong);
  background: #0d0d0d;
  padding: 13px 14px;
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.55);
}
.act-entry.act-faded { opacity: 0.45; }

.act-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(240, 240, 240, 0.85);
}
.act-top .mono { font-size: 10.5px; color: var(--lime); }
.act-top .act-time { margin-left: auto; font-size: 9.5px; color: rgba(136, 136, 136, 0.55); }

.act-diff {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
}
.diff-line { display: flex; align-items: center; gap: 12px; padding: 7px 12px; }
.diff-line + .diff-line { border-top: 1px solid var(--line); }
.d-sign { font-weight: 700; width: 10px; flex-shrink: 0; }
.d-field { color: rgba(136, 136, 136, 0.75); min-width: 64px; }
.diff-del { background: rgba(248, 113, 113, 0.06); color: rgba(248, 113, 113, 0.92); }
.diff-add { background: rgba(158, 217, 87, 0.07); color: var(--lime); }
.diff-del.diff-res { background: rgba(16, 185, 129, 0.07); color: var(--emerald); }

.act-foot { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.revert-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.revert-btn.is-hot { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.revert-note { font-size: 10px; color: rgba(136, 136, 136, 0.6); }

.revert-toast {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
}

/* ============================================================
   BENTO FEATURES
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bcard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  padding: 26px;
  min-height: 240px;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}
.bcard:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.028); }

.bcard.span-2 { grid-column: span 2; }

.bcard-head h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.bcard-head p { font-size: 13.5px; line-height: 1.6; color: var(--muted-fg); max-width: 52ch; }

.bcard-visual { margin-top: auto; }

/* mini board */
.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mini-head {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.6);
  padding-left: 2px;
}
.mini-card {
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 9px;
}
.mini-card.glow { border-color: rgba(158, 217, 87, 0.4); background: rgba(158, 217, 87, 0.05); }
.mini-card.done { opacity: 0.55; }
.mini-chip { width: 22px; height: 5px; border-radius: 999px; }
.c-story { background: rgba(158, 217, 87, 0.7); }
.c-bug { background: rgba(248, 113, 113, 0.55); }
.c-spec { background: rgba(122, 167, 247, 0.55); }
.c-done { background: rgba(16, 185, 129, 0.6); }
.mini-ava {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
  font-style: normal;
  font-size: 6.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.mini-ava-ai { background: rgba(158, 217, 87, 0.85); color: var(--lime-ink); box-shadow: 0 0 0 1px rgba(158, 217, 87, 0.5); }

/* pulse */
.pulse-visual { display: flex; flex-direction: column; gap: 12px; }
.pulse-line {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}
.pulse-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(158, 217, 87, 0.6);
  transform: translateY(-50%);
  animation: pulse-travel 2.6s ease-in-out infinite;
}
@keyframes pulse-travel {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
.pulse-label { font-size: 10.5px; color: rgba(136, 136, 136, 0.7); }

/* code blocks */
.code-visual pre {
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 11.5px;
  line-height: 1.75;
  overflow-x: auto;
}
.code-visual code { font-family: var(--font-mono); }
.c-key { color: var(--lime-soft); }
.c-str { color: #e8e8e8; }
.c-pun { color: #5a5a5a; }
.c-kw { color: var(--lime); font-weight: 600; }

/* slash pills */
.slash-visual { display: flex; flex-direction: column; gap: 8px; }
.slash {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  transition: all 0.15s ease;
}
.bcard:hover .slash { border-color: var(--line-strong); }
.slash.dim-slash { color: rgba(136, 136, 136, 0.7); background: transparent; border-style: dashed; }

/* capability chips */
.chips-visual { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-chip {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-fg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 5px 11px;
  border-radius: 999px;
}
.cap-chip.cap-lime { color: var(--lime); border-color: rgba(158, 217, 87, 0.32); background: rgba(158, 217, 87, 0.07); }

/* ============================================================
   INSTALL
   ============================================================ */
.install-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.term {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0c0c0c;
  overflow: hidden;
  box-shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.5);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-title { font-size: 10.5px; color: rgba(136, 136, 136, 0.7); }

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-fg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  transition: all 0.15s ease;
}
.copy-btn:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.copy-btn.copied { color: var(--emerald); border-color: rgba(16, 185, 129, 0.4); }
.copy-btn-bare { border: 0; padding: 4px; margin-left: 8px; flex-shrink: 0; }

.term-body {
  padding: 20px 20px 24px;
  font-size: 12.5px;
  line-height: 1.8;
  min-height: 196px;
}

.term-line { display: block; }
.term-prompt { color: var(--lime); margin-right: 10px; font-weight: 600; }
#term-cmd { color: var(--fg); word-break: break-all; }

.term-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 3px;
  background: var(--lime);
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.term-out { margin-top: 12px; }
.term-out-line { color: var(--muted-fg); }
.t-ok { color: var(--emerald); margin-right: 8px; }
.t-lime { color: var(--lime); }

.install-steps { display: flex; flex-direction: column; gap: 26px; }

.install-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(158, 217, 87, 0.35);
  background: rgba(158, 217, 87, 0.07);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-steps h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.01em; }
.install-steps p { font-size: 13.5px; line-height: 1.62; color: var(--muted-fg); }

.inline-code {
  font-size: 11.5px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.mini-cmd {
  margin-top: 12px;
  display: flex;
  align-items: center;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 11px;
  color: rgba(240, 240, 240, 0.85);
  overflow-x: auto;
}
.mini-cmd code { white-space: nowrap; }

/* ============================================================
   COMPARE
   ============================================================ */
.cmp-scroll { overflow-x: auto; border-radius: 16px; }

.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
}

.cmp thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.75);
  text-align: left;
  padding: 14px 18px;
}

.cmp tbody th,
.cmp tbody td {
  text-align: left;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  vertical-align: top;
}

.cmp tbody th { font-weight: 600; color: var(--fg); white-space: nowrap; width: 150px; }
.cmp tbody td { color: var(--muted-fg); }

.cmp .cmp-paca-col {
  background: rgba(158, 217, 87, 0.045);
  color: var(--fg);
}
.cmp thead .cmp-paca-col { border-radius: 12px 12px 0 0; border-top: 1px solid rgba(158, 217, 87, 0.3); }
.cmp .cmp-paca-col { border-inline: 1px solid rgba(158, 217, 87, 0.22); }
.cmp tbody tr:last-child .cmp-paca-col { border-radius: 0 0 12px 12px; border-bottom: 1px solid rgba(158, 217, 87, 0.3); }

.cmp-paca-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--lime);
  text-transform: none;
  letter-spacing: 0;
}

.cmp strong { color: var(--lime); font-weight: 700; }

/* ============================================================
   STORY
   ============================================================ */
.story { position: relative; }

.story-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-logo { margin-bottom: 26px; }

.story-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 22px;
}

.story-quote {
  max-width: 800px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.story-quote em { font-style: italic; }

.story-sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted-fg);
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-top: 0; }

.cta-panel {
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 72px);
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cta-sub {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.62);
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-fg);
}

.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.7);
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--muted-fg);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--fg); }

.footer-base {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(136, 136, 136, 0.6);
}
.footer-jp { color: rgba(136, 136, 136, 0.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .cycle-stage { grid-template-columns: 1fr; }
  .cycle-orbit { display: none; }
  .cycle-rail { display: flex; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-get-started { display: none; }
  .nav-burger { display: inline-flex; }
  .why-grid { grid-template-columns: 1fr; }
  .board-feed { display: none; }
  .wn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bcard.span-2 { grid-column: span 1; }
  .bcard { min-height: 0; }

  .hero { padding-top: 124px; }
  .hero-title { font-size: clamp(2.05rem, 8.4vw, 2.5rem); line-height: 1.12; }

  .board-cols { gap: 8px; padding: 12px; }
  .bcol-head { font-size: 9.5px; letter-spacing: 0.03em; gap: 5px; }
  .bcol-count { display: none; }
  .tcard { padding: 8px 9px; gap: 6px; }
  .tcard-title { font-size: 10.5px; }
  .tid { display: none; }
  .badge { font-size: 8px; padding: 2px 5px; }
  .bcol-cards { min-height: 200px; }

  .strip-inner { flex-direction: column; gap: 12px; }

  .wn-card { padding: 22px; }
  .chat-body { min-height: 0; }
  .chat-label { display: none; }
  .revert-note { display: none; }

  .cphase { padding: 18px; }
  .cycle-rail { margin-bottom: 34px; }
  .rail-node { width: 48px; }
  .scn-cols { gap: 6px; }
  .scn-col-head { font-size: 8px; letter-spacing: 0.08em; }
  .scn-doc { font-size: 10.5px; }

  .cmp { min-width: 560px; }
  .cmp tbody th { white-space: normal; width: 96px; }
  .cmp thead th:nth-child(2) { width: 200px; }
  .cmp tbody th, .cmp tbody td, .cmp thead th { padding: 13px 12px; font-size: 12.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
