:root {
  --bg: #05060b;
  --bg-2: #0a0c14;
  --surface: #0f121b;
  --surface-2: #151927;
  --line: #1f2436;
  --line-2: #2a3048;
  --text: #eef0f7;
  --muted: #8e94ab;
  --dim: #5b6075;
  --accent: #5b8cff;
  --violet: #8b5cf6;
  --sky: #4cc9ff;
  --mint: #7ee2a8;
  --coral: #f19a90;
  --amber: #f5b80c;
  --brand: "Nunito Sans", "Roboto", ui-sans-serif, system-ui, sans-serif;
  --ui: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1160px;
  --r: 14px;
  --r-lg: 22px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--brand);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
p {
  margin: 0;
}
code,
pre,
kbd {
  font-family: var(--mono);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

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

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 52px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.nav.scrolled .nav-pill {
  background: color-mix(in srgb, #0b0d15 76%, transparent);
  backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.45);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand .pre {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: #0b0d15;
}
.btn-light:hover {
  box-shadow: 0 8px 30px rgb(255 255 255 / 0.18);
}
.btn-glass {
  background: color-mix(in srgb, #ffffff 8%, transparent);
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: color-mix(in srgb, #ffffff 13%, transparent);
}
.btn-quiet {
  color: var(--muted);
  padding: 10px 12px;
}
.btn-quiet:hover {
  color: var(--text);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.aurora {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -3;
  width: 120%;
  height: 110%;
  filter: blur(34px) saturate(1.15);
  opacity: 0.95;
}
.stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}
.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 {
  text-shadow: 0 2px 30px rgb(5 6 11 / 0.45);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  margin: 22px 0 18px;
  letter-spacing: -0.035em;
}
.hero h1 .w {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--sky) 0%, var(--accent) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #d3d7e6;
  text-shadow: 0 1px 18px rgb(5 6 11 / 0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
  animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lead strong {
  color: var(--text);
  font-weight: 500;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
  animation: rise 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.quick {
  max-width: 720px;
  margin: 36px auto 0;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  background: color-mix(in srgb, #0b0d15 70%, transparent);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: rise 0.9s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  text-align: left;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.quick-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line);
}
.quick-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
}
.quick-tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.quick-body {
  display: none;
  padding: 18px 20px 20px;
}
.quick-body.on {
  display: block;
}
.quick-body p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #06070c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
}
.cmd .ps {
  color: var(--accent);
}
.cmd code {
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
}
.cmd .copy {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--muted);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
}
.cmd .copy:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ---------- cockpit frame (hero demo) ---------- */
.stage {
  perspective: 1600px;
  margin-top: 64px;
  position: relative;
}
.frame {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0e15;
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.6),
    0 60px 120px -30px rgb(0 0 0 / 0.8),
    0 0 120px -30px color-mix(in srgb, var(--accent) 45%, transparent);
  transform-origin: 50% 0;
  transform: rotateX(12deg) translateY(10px);
  will-change: transform;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #0f111a;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.frame-bar .title {
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
}
.frame-bar .conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 11px;
}
.frame-bar .conn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
}
.side {
  background: #0a0c13;
  border-right: 1px solid var(--line);
  padding: 12px;
  font-size: 12.5px;
}
.side .new {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--muted);
}
.side .grp {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.side ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.side li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
}
.side li.proj {
  color: var(--text);
  font-weight: 500;
}
.side li.sess {
  padding-left: 22px;
  color: var(--muted);
  font-size: 12px;
}
.side li.sess.on {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}
.side li .n {
  font-size: 11px;
  color: var(--dim);
}
.side .pin {
  color: var(--amber);
  font-size: 10px;
}
.main {
  display: flex;
  flex-direction: column;
  position: relative;
}
.thread {
  flex: 1;
  padding: 20px 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}
.u {
  align-self: flex-end;
  max-width: 78%;
  background: color-mix(in srgb, var(--accent) 22%, #10131c);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
}
.a {
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.a .think {
  display: inline-flex;
  gap: 3px;
}
.a .think i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}
.a .think i:nth-child(2) {
  animation-delay: 0.2s;
}
.a .think i:nth-child(3) {
  animation-delay: 0.4s;
}
.tool {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0c13;
}
.tool-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.tool-h .badge {
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  background: color-mix(in srgb, #fff 8%, transparent);
  color: var(--text);
}
.tool-h .badge.edit {
  background: color-mix(in srgb, var(--violet) 30%, transparent);
}
.tool-h .badge.bash {
  background: color-mix(in srgb, var(--mint) 22%, transparent);
}
.tool-h .badge.read {
  background: color-mix(in srgb, var(--sky) 22%, transparent);
}
.tool-h .st {
  margin-left: auto;
  font-size: 11px;
}
.tool-h .st.ok {
  color: var(--mint);
}
.tool-h .st.run {
  color: var(--amber);
}
.diff {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.diff .l {
  display: grid;
  grid-template-columns: 34px 1fr 34px 1fr;
}
.diff .l > span {
  padding: 2px 8px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.diff .ln {
  color: var(--dim);
  text-align: right;
  background: #0d0f17;
}
.diff .del {
  background: rgb(241 154 144 / 0.12);
  color: #f5b3aa;
}
.diff .add {
  background: rgb(126 226 168 / 0.12);
  color: #a8efc4;
}
.diff .same {
  color: var(--muted);
}
.out {
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  white-space: pre;
}
.foot {
  font-size: 12px;
  color: var(--dim);
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
}
.foot b {
  color: var(--muted);
  font-weight: 500;
}
.composer {
  margin: 0 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0f121b;
}
.composer .in {
  padding: 12px 14px;
  font-size: 13.5px;
  min-height: 42px;
  color: var(--text);
}
.composer .in .caret {
  display: inline-block;
  width: 1px;
  height: 15px;
  background: var(--text);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
.composer .in .ph {
  color: var(--dim);
}
.composer .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.chip {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 9px;
}
.chip.on {
  background: color-mix(in srgb, #fff 10%, transparent);
  color: var(--text);
}
.composer .send {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}
.hidden-demo {
  display: none;
}

/* ---------- sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2,
.story-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 16px 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.badge-mono {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, #fff 7%, transparent);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  border-radius: 6px;
}
.formula {
  font-family: var(--mono);
  font-size: clamp(22px, 3.4vw, 34px);
  color: var(--sky);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 30px color-mix(in srgb, var(--sky) 50%, transparent);
}
.formula em {
  font-style: normal;
  color: var(--violet);
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: linear-gradient(180deg, color-mix(in srgb, #fff 4%, transparent), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover::after {
  opacity: 1;
}
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--sky);
  margin-bottom: 18px;
}
.card .ico svg {
  width: 20px;
  height: 20px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- scroll story ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.story-head {
  margin-bottom: 40px;
}
.story-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}
.steps {
  display: flex;
  flex-direction: column;
}
.step {
  padding: 22px 0 22px 22px;
  border-left: 2px solid var(--line);
  opacity: 0.38;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease;
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step.on {
  opacity: 1;
  border-left-color: var(--accent);
}
.step h3 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.step h3 svg {
  width: 20px;
  height: 20px;
  color: var(--sky);
}
.step p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
}
.step code {
  font-size: 12.5px;
  background: color-mix(in srgb, #fff 6%, transparent);
  padding: 1px 6px;
  border-radius: 5px;
}
.sticky {
  position: sticky;
  top: 110px;
}
.scene-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #0c0e15;
  border: 1px solid var(--line-2);
  box-shadow:
    0 50px 100px -30px rgb(0 0 0 / 0.8),
    0 0 100px -40px color-mix(in srgb, var(--violet) 55%, transparent);
  aspect-ratio: 16 / 10.4;
  position: relative;
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  display: flex;
  flex-direction: column;
}
.scene.on {
  opacity: 1;
  transform: none;
}
.scene .frame-bar {
  flex: none;
}
.scene .body {
  flex: 1;
  overflow: hidden;
}
.term {
  background: #07080d;
  height: 100%;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfd3e3;
}
.term .p {
  color: var(--mint);
}
.term .d {
  color: var(--dim);
}
.term .h {
  color: var(--sky);
}
.term .w {
  color: var(--amber);
}
.term .cur {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #cfd3e3;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
.term-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  background: #0a0c13;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.term-tabs span {
  padding: 5px 10px;
  border-radius: 6px 6px 0 0;
}
.term-tabs span.on {
  background: #07080d;
  color: var(--text);
}
.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.split2 > div {
  min-width: 0;
}
.split2 .thread {
  padding: 16px 18px;
  gap: 10px;
}
.modes-scene {
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  background: #0a0c13;
}
.mode-row.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #0a0c13);
}
.mode-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.mode-row kbd {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 6px;
}

/* home scene */
.home {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: #0c0e15;
}
.home-side {
  background: #0a0c13;
  border-right: 1px solid var(--line);
  padding: 10px;
  font-size: 11.5px;
}
.home-side .new {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 5px 8px;
  color: var(--muted);
}
.home-side .grp {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.home-side ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.home-side li {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  color: var(--text);
  font-weight: 500;
}
.home-side li .n {
  color: var(--dim);
  font-weight: 400;
}
.home-main {
  padding: 22px 26px;
  text-align: center;
}
.home-main h4 {
  font-size: 18px;
  font-weight: 800;
}
.home-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.sugg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.sugg div {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 10.5px;
  color: var(--text);
  background: #0f121b;
  line-height: 1.35;
}
.sugg i {
  display: block;
  font-style: normal;
  font-size: 12px;
  margin-bottom: 6px;
}
.usage {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f121b;
  padding: 10px 12px 8px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}
.usage-tabs {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.usage-tabs .on {
  color: var(--text);
  background: color-mix(in srgb, #fff 8%, transparent);
  padding: 2px 8px;
  border-radius: 5px;
}
.usage-tabs .rng {
  margin-left: auto;
}
.usage-tabs .rng b {
  color: var(--text);
  font-weight: 500;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.tiles div {
  background: #141826;
  border-radius: 6px;
  padding: 7px 9px;
}
.tiles strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tiles span {
  font-size: 9.5px;
  color: var(--muted);
}
.heat {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 2px;
}
.heat i {
  display: block;
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: #1a1f2e;
}
.heat i.l1 {
  background: color-mix(in srgb, var(--accent) 35%, #1a1f2e);
}
.heat i.l2 {
  background: color-mix(in srgb, var(--accent) 65%, #1a1f2e);
}
.heat i.l3 {
  background: var(--accent);
}
.heat-note {
  font-size: 10px;
  color: var(--dim);
  margin-top: 8px;
}
.heat-note em {
  font-style: normal;
  color: var(--muted);
}

/* ---------- permission demo ---------- */
.demo {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.demo-modes {
  border-right: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0b0d15;
}
.demo-modes .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 10px 8px;
}
.mode-btn {
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.mode-btn:hover {
  background: color-mix(in srgb, #fff 4%, transparent);
}
.mode-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.mode-btn b {
  font-weight: 500;
  font-size: 14px;
}
.mode-btn span {
  font-size: 12px;
  color: var(--muted);
}
.demo-preview {
  padding: 22px 26px;
}
.demo-preview h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.demo-preview .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  min-height: 40px;
}
.acts {
  display: grid;
  gap: 8px;
}
.act {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #0a0c13;
  font-family: var(--mono);
  font-size: 12.5px;
  transition: border-color 0.25s ease;
}
.act .k {
  color: var(--muted);
}
.act .v {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  font-family: var(--ui);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  transition: all 0.25s ease;
}
.pill.ask {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
}
.pill.run {
  color: var(--mint);
  border-color: color-mix(in srgb, var(--mint) 45%, transparent);
  background: color-mix(in srgb, var(--mint) 10%, transparent);
}
.act.asks {
  border-color: color-mix(in srgb, var(--amber) 35%, transparent);
}
.demo-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- surfaces ---------- */
.surfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.surface {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.surface .vis {
  height: 170px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), #0a0c13;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: end center;
}
.mini {
  width: 78%;
  height: 120px;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0f121b;
  position: relative;
  overflow: hidden;
}
.mini::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  background: #141826;
  border-bottom: 1px solid var(--line);
}
.mini.web::after {
  content: "app.flupcode.com";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  background: #0a0c13;
  padding: 1px 10px;
  border-radius: 4px;
}
.mini.desk {
  border-radius: 12px 12px 0 0;
}
.mini.desk::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    13px 0 0 #febc2e,
    26px 0 0 #28c840;
}
.mini.term {
  background: #07080d;
}
.mini.term::after {
  content: "➜ opencode serve --port 4096";
  position: absolute;
  left: 12px;
  top: 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mint);
}
.mini .g {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 36px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
}
.mini .g i {
  display: block;
  border-radius: 4px;
  background: #161a27;
  height: 60px;
}
.surface .txt {
  padding: 20px 22px 22px;
}
.surface h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.surface p {
  color: var(--muted);
  font-size: 14px;
}
.surface p a {
  color: var(--sky);
}

/* ---------- download ---------- */
.dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dl a {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}
.dl a:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.dl a.yours {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 20px 50px -20px color-mix(in srgb, var(--accent) 60%, transparent);
}
.dl a.yours::before {
  content: "Your platform";
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}
.dl strong {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 18px;
}
.dl span {
  color: var(--muted);
  font-size: 13px;
}
.dl .sz {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
}
.dl-note {
  margin: 22px auto 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
  text-align: center;
}
.dl-note code {
  font-size: 12px;
  background: color-mix(in srgb, #fff 6%, transparent);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- final ---------- */
.final {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.final canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--violet) 28%, transparent), transparent 70%);
}
.final h2 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 16px;
}
.final p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 17px;
}
.final .mark {
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 16px 44px rgb(91 140 255 / 0.5));
  animation: float 5s ease-in-out infinite;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-note {
  color: var(--dim);
  font-size: 12.5px;
  max-width: 780px;
}

/* ---------- motion ---------- */
.reveal.play {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .frame {
    transform: none !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .story {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
  .step {
    min-height: 0;
    padding: 16px 0 16px 18px;
    opacity: 1;
  }
  .cards3,
  .surfaces {
    grid-template-columns: 1fr;
  }
  .dl {
    grid-template-columns: 1fr 1fr;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .demo-modes {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .demo-modes .lbl {
    width: 100%;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .split2 {
    grid-template-columns: 1fr;
  }
  .split2 > div:last-child {
    display: none;
  }
  .home {
    grid-template-columns: 1fr;
  }
  .home-side {
    display: none;
  }
  .sugg {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .hero {
    padding-top: 120px;
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .act {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .brand .pre {
    display: none;
  }
  .nav-actions .btn-quiet {
    display: none;
  }
}
