:root {
  --bg: #0a0a0a;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.02);
  --sidebar: #343a43;
  --main: #151517;
  --brand: #4d6bfe;
  --font: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: Montserrat, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Fragment Mono", "Roboto Mono", ui-monospace, monospace;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  transition: background .25s ease, border-color .25s ease, padding .25s ease, width .25s ease, box-shadow .25s ease;
}
.topbar.is-scrolled {
  width: min(1080px, calc(100% - 32px));
  padding: 8px 10px 8px 18px;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 24px;
}
.brand img { height: 24px; width: auto; }
.chip {
  display: none;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar.is-scrolled .chip { display: inline-flex; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.scroll-actions { display: none; align-items: center; gap: 8px; }
.topbar.is-scrolled .scroll-actions { display: flex; }
.topbar.is-scrolled .locale { display: none; }

.locale {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.locale button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}
.locale button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: #fff; color: #0a0a0a; }
.btn-primary:hover { background: #f3f3f3; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-line:hover { background: rgba(255, 255, 255, 0.06); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

.split { position: relative; display: inline-flex; align-items: stretch; }
.split .btn-main { border-radius: 999px 0 0 999px; padding-right: 12px; height: 42px; font-size: 16px; }
.split .btn-caret {
  width: 36px;
  padding: 0;
  border-radius: 0 999px 999px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  height: 42px;
}
.split-sm { border-radius: 999px; }
.split-sm .btn-main,
.split-sm .btn-caret {
  height: 34px;
  font-size: 13px;
}
.split-sm .btn-main { padding: 0 12px 0 14px; }
.split-sm .btn-caret { width: 30px; }
.menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  display: none;
}
.menu.is-open { display: block; }
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
}
.menu a:hover { background: rgba(255, 255, 255, 0.08); }
.menu small { color: rgba(255, 255, 255, 0.45); font-size: 12px; }

.hero {
  position: relative;
  padding: 118px 0 88px;
}
.hero-bg {
  position: absolute;
  inset: 0 0 -120px;
  background: radial-gradient(at 89% 42%, rgb(119, 127, 137) 0%, rgb(32, 74, 126) 32%, rgb(0, 0, 0) 72%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0 0 -80px;
  width: 100%;
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), #0a0a0a 88%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.hero-copy > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-title .latin-row {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 60px;
  letter-spacing: -0.8px;
}
.hero-title .sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 60px;
  letter-spacing: -0.8px;
}
.hero-desc {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-desc p, .card p, .dev-card p, .cta p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 400;
}

.window {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  height: 600px;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: var(--main);
  box-shadow: rgba(255, 255, 255, 0.12) 0 0 0 1px, rgba(0, 0, 0, 0.2) 0 24px 72px;
  color: #f9fafb;
  font-size: 12.6px;
  line-height: 1.55;
}
.sidebar {
  width: 238px;
  flex: none;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px;
  min-height: 0;
}
.traffic {
  display: flex;
  gap: 6px;
  padding: 2px 8px 12px;
}
.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.side-logo { padding: 2px 8px 14px; }
.side-logo img { height: 16px; width: auto; }
.side-btn {
  margin: 0 4px 8px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7e9ec;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
}
.nav-row, .folder, .chat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  color: rgba(231, 233, 236, 0.82);
  font-size: 12.3px;
}
.chat { padding-left: 28px; margin: 0 4px; }
.folder, .nav-row { margin: 0 4px; }
.nav-row svg, .folder svg, .chat svg { flex: none; opacity: 0.8; }
.chat span, .folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 8px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}
.group-label .tools { display: flex; gap: 8px; opacity: 0.7; }
.chat.is-active { background: rgba(255, 255, 255, 0.08); color: #e7e9ec; }
.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
}
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.main {
  flex: 1;
  min-width: 0;
  background: var(--main);
  display: flex;
  flex-direction: column;
  border-radius: 0 16px 16px 0;
}
.main-head {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.thread {
  flex: 1;
  overflow: hidden;
  padding: 22px 28px 8px;
}
.bubble {
  margin-left: auto;
  width: fit-content;
  max-width: 70%;
  background: #2c2c2e;
  color: #f9fafb;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 12.6px;
}
.thought {
  margin: 22px 0 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.reply { color: #d7dbe2; font-size: 12.6px; line-height: 1.7; }
.reply p { margin: 0 0 10px; color: #d7dbe2; font-size: 12.6px; line-height: 1.7; }
.reply a { text-decoration: underline; text-underline-offset: 2px; }
.reply ol { margin: 0 0 10px; padding-left: 18px; }
.reply li { margin: 2px 0; }
.reply strong { color: #fff; font-weight: 600; }
.composer {
  margin: 8px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1f;
  border-radius: 16px;
  padding: 12px 12px 8px;
}
.composer .ph { color: rgba(255, 255, 255, 0.32); font-size: 12.5px; padding: 2px 4px 10px; }
.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.model { margin-left: auto; color: rgba(255, 255, 255, 0.55); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.send {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #4c6fff;
  color: #fff;
  display: grid;
  place-items: center;
}

.section { padding: 160px 0 100px; }
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 54px;
  letter-spacing: -0.4px;
}
.center-title { text-align: center; }
.grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 40px 0;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
}
.media {
  position: relative;
  flex: 1;
  min-height: 280px;
  margin-top: 8px;
}
.pause {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 22, 0.8);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity .15s ease;
}
.card:hover .pause, .pause.is-on { opacity: 1; }
.card.is-paused .stage,
.card.is-paused .stage * { animation-play-state: paused; }

.layer { position: absolute; inset: 8px 8px 0 0; pointer-events: none; }
.step {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.step b { color: #9db7ff; font-weight: 500; min-width: 4.5em; }
.step em { color: rgba(255,255,255,.45); font-style: normal; }
.step span { color: rgba(255,255,255,.62); }

.stage-plugin .compose { top: 18%; right: 4%; bottom: auto; left: 4%; height: auto; animation: plugComposer 22s ease-in-out infinite; }
.stage-plugin .log { animation: plugLog 22s ease-in-out infinite; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.stage-plugin .log p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.62); }
.stage-plugin .list { animation: plugList 22s ease-in-out infinite; display: flex; flex-direction: column; padding: 8px 108px 0 0; }
.stage-plugin .float-timer { animation: plugTimer 22s ease-in-out infinite; }
.stage.show-list .list,
.stage.show-list .float-timer { animation: none; opacity: 1; transform: none; }
.stage.show-list .compose,
.stage.show-list .log { animation: none; opacity: 0; }
@keyframes plugComposer {
  0%, 40% { opacity: 1; transform: none; }
  48%, 94% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}
@keyframes plugLog {
  0%, 42% { opacity: 0; }
  50%, 66% { opacity: 1; }
  74%, 100% { opacity: 0; }
}
@keyframes plugList {
  0%, 68% { opacity: 0; transform: translateY(10px); }
  76%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes plugTimer {
  0%, 70% { opacity: 0; transform: translate(8px, -6px) scale(.96); }
  78%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
.box {
  padding: 10px 10px 8px;
  border-radius: 22px;
  background: #2c2c2e;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,.13), 0 12px 40px rgba(0,0,0,.18);
}
.mode-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 12px 8px;
  color: #e3e4e8;
  font-size: 13px;
}
.stage-plugin .box p { margin: 0; min-height: 36px; padding: 2px 8px 0; color: #f3f4f6; font-size: 15px; line-height: 1.45; }
.tools { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.plus, .send { display: grid; place-items: center; border-radius: 50%; }
.plus { width: 28px; height: 28px; background: #353638; color: #bfc3cb; font-size: 18px; line-height: 1; }
.send { width: 32px; height: 32px; background: #557bbb; animation: sendPress 22s ease-in-out infinite; }
@keyframes sendPress { 0%, 11%, 16%, 100% { transform: scale(1); } 13% { transform: scale(.87); background: #789bea; } }
.bubble {
  width: fit-content;
  max-width: 88%;
  padding: 10px 16px;
  border-radius: 18px;
  background: #2c2c2e;
  color: #f3f4f6;
  font-size: 13.5px;
  line-height: 1.5;
}
.stage-plugin .log .bubble { align-self: flex-end; }
.list-label { font-size: 12px; color: rgba(255,255,255,.42); margin: 4px 0 2px; }
.float-timer {
  inset: auto;
  top: 0;
  right: 8px;
  width: 96px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: #1b1d22;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.float-timer strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.float-timer span { font-size: 11px; color: rgba(255,255,255,.5); margin: 2px 0 0; }
.well {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 0;
  font-size: 12px;
  flex: none;
}
.w1 { background: #24324a; color: #8eb4ff; }
.w2 { background: #3a2c22; color: #f0a35e; }
.w3 { background: #24382c; color: #3dd68c; }
.w4 { background: #33243a; color: #d7a4ff; }
.timer {
  width: 220px;
  margin: 36px auto 0;
  padding: 16px;
  border-radius: 16px;
  background: #1c1e24;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.timer-tabs { display: flex; justify-content: center; gap: 14px; color: rgba(255,255,255,.4); font-size: 12px; }
.timer-tabs span:first-child { color: #fff; }
.clock { display: block; margin: 8px 0; font-size: 36px; font-weight: 500; letter-spacing: -0.04em; }
.timer button {
  border: 0;
  background: #2a3142;
  color: #fff;
  border-radius: 999px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}
.file-mask {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 4%;
  bottom: 0;
  width: 62%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
}
.file-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fileRise 17.5s cubic-bezier(.37,0,.63,1) infinite;
}
@keyframes fileRise {
  0%, 7% { transform: translateY(0); }
  14%, 22% { transform: translateY(-72px); }
  28%, 36% { transform: translateY(-144px); }
  43%, 50% { transform: translateY(-216px); }
  57%, 65% { transform: translateY(-288px); }
  71%, 79% { transform: translateY(-360px); }
  86%, 93% { transform: translateY(-432px); }
  100% { transform: translateY(-504px); }
}
.story {
  position: absolute;
  inset: 8px 2px 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-bottom: 18px;
}
.user-pill {
  align-self: flex-end;
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: #2c2c2e;
  color: #f3f4f6;
  font-size: 13px;
  line-height: 1.5;
}
.story.s1 { animation: storyA 16s ease infinite; }
.story.s2 { animation: storyB 16s ease infinite; }
@keyframes storyA { 0%, 46% { opacity: 1; } 54%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes storyB { 0%, 46% { opacity: 0; } 54%, 96% { opacity: 1; } 100% { opacity: 0; } }
.proc { align-self: stretch; margin-top: 18px; color: #adb2b8; }
.proc-head, .toolrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.proc-head { height: 34px; border-bottom: 0.5px solid rgba(255,255,255,.08); font-size: 13px; }
.proc-head svg, .toolrow svg { flex: none; }
.toolrow { height: 28px; margin-top: 8px; font-size: 13px; }
.toolrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.json { margin-top: 8px; padding: 10px 12px 12px; border-radius: 10px; background: #19191b; overflow: hidden; }
.json-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #adb2b8; font-size: 12px; }
.json pre, .json-top span:last-child { font-family: var(--mono); }
.json pre { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }

.install-stage {
  padding: 12px 0 20px;
}
.plugin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.plugin-row b { font-weight: 500; }
.plugin-row .tag { margin-left: auto; }
.dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #243047;
  color: #8eb4ff;
  font-size: 14px;
}
.tag {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-style: normal;
}

.files { position: absolute; left: 0; bottom: 28px; display: flex; flex-direction: column; gap: 10px; width: 210px; }
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 8px 12px;
  border-radius: 18px;
  background: #212123;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(41, 70, 122, 0.2);
}
.file img { width: 36px; height: 36px; }
.file b { display: block; font-size: 13px; font-weight: 500; }
.file small { color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.float { animation: floaty 7s ease-in-out infinite; }
.file:nth-child(2) { animation-delay: -2s; }
.file:nth-child(3) { animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.diff {
  position: absolute;
  z-index: 2;
  top: 22%;
  left: 38%;
  width: 64%;
  height: 96%;
  border-radius: 20px;
  background: #151517;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 42px rgba(25, 44, 79, 0.3);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
}
.diff-tab { display: flex; align-items: flex-end; height: 38px; padding: 8px 8px 0 10px; }
.diff-tab span {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  min-width: 132px;
  padding: 0 28px 0 12px;
  border-radius: 12px;
  background: #2c2c2e;
  color: #f3f4f6;
  font-family: var(--font);
  font-size: 13px;
  white-space: nowrap;
}
.diff-tab em { font-style: normal; }
.diff-tab i {
  position: absolute;
  top: 5px;
  right: 6px;
  color: #adb2b8;
  font-style: normal;
  font-family: var(--font);
  line-height: 1;
}
.diff-file {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-bottom: 0.5px solid rgba(255,255,255,.16);
  color: #d7dbe2;
  font-family: var(--font);
  font-size: 12px;
}
.diff-file .stat { margin-left: auto; display: flex; gap: 6px; font-family: var(--mono); }
.add { color: #22c55e; }
.del { color: #f25a5a; }
.diff pre { margin: 0; padding: 8px 0 12px; line-height: 1.55; }
.diff .hunk { display: block; padding: 0 12px 4px; color: rgba(255,255,255,.38); }
.diff .ln { color: rgba(255,255,255,.28); display: inline-block; width: 22px; text-align: right; margin-right: 8px; }
.diff .ctx, .diff .minus, .diff .plus { display: block; }
.diff .minus { background: rgba(242, 90, 90, 0.16); color: #ffb4b4; }
.diff .plus { background: rgba(34, 197, 94, 0.16); color: #b6f3cd; }

.sched {
  position: absolute;
  left: 0;
  right: 24px;
  bottom: 54px;
  background: #22242a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.sched b { display: block; margin-bottom: 4px; font-weight: 500; }

.trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 4px;
  display: flex;
  flex-direction: column;
  border-radius: 8px 8px 0 0;
  background: #232324;
  overflow: hidden;
  color: #f9fafb;
  font-size: 12px;
}
.trace-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border-bottom: 0.5px solid rgba(255,255,255,.12);
  color: #81858c;
}
.trace-bar > span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 4px; white-space: nowrap; }
.trace-bar .on { color: #f9fafb; background: rgba(255,255,255,.08); }
.trace-bar .search { margin-left: auto; background: #2c2c2e; color: #b4b8c0; }
.chart {
  display: grid;
  flex: none;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 0.5px solid rgba(255,255,255,.06);
}
.ylabels { display: flex; flex-direction: column; justify-content: space-between; height: 48px; color: #81858c; font-size: 11px; line-height: 16px; }
.plot { min-width: 0; }
.lane { display: flex; align-items: center; gap: 3px; height: 16px; }
.lane i { display: block; height: 8px; border-radius: 2px; }
.c-g { background: #59ca84; }
.c-b { background: #7aaaff; }
.c-a { background: #dd8629; }
.c-v { background: #9474bc; }
.round, .round2 { color: #81858c; font-size: 11px; }
.round { margin-top: 4px; }
.ledger-mask { flex: 1; min-height: 0; overflow: hidden; }
.ledger { animation: ledger 16s linear infinite; }
@keyframes ledger { 0%, 30% { transform: translateY(0); } 80%, 100% { transform: translateY(-56px); } }
.trow { display: flex; gap: 10px; align-items: flex-start; padding: 5px 12px; }
.trow b { flex: none; width: 48px; font-weight: 500; font-size: 12px; line-height: 1.45; white-space: nowrap; }
.trow span { min-width: 0; color: #cfd3d6; line-height: 1.45; }
.b-user { color: #d5d8dc; }
.b-ctx { color: #59ca84; }
.b-asst { color: #c4b0e4; }
.b-tool { color: #dd8629; }
.trow .mono { font-family: var(--mono); font-size: 11px; color: #adb2b8; }
.round2 { padding: 6px 10px 0; }

.modebar {
  margin: 28px auto 0;
  width: min(460px, 100%);
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.modebar-left, .modebar-right { display: inline-flex; align-items: center; gap: 8px; }
.switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  padding: 0;
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.switch.is-on { background: var(--brand); }
.switch.is-on i { transform: translateX(16px); }

.dev-head { margin-bottom: 40px; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dev-card {
  min-height: 222px;
  padding: 40px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dev-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}
.codebox {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.codebox .prompt { color: #8eb4ff; }
.codebox code { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-family: var(--font);
  padding: 4px 6px;
}
.copy:hover { color: #fff; }

.cta {
  position: relative;
  padding: 80px 0 120px;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  left: 0; right: 0; bottom: -40px;
  height: 460px;
  background: radial-gradient(at 50% 80%, rgba(46, 96, 159, 0.95) 0%, rgba(10, 10, 10, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 16px; }
.cta p { max-width: 760px; margin: 0 auto; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rules {
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  height: 1px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
@media (max-width: 980px) {
  .grid, .dev-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .window { height: 520px; }
  .hero-title .latin-row, .hero-title .sub { font-size: 32px; line-height: 46px; }
  .section h2 { font-size: 28px; line-height: 40px; }
  .diff { left: 28%; width: 74%; }
  .card { padding: 28px 24px 0; min-height: 460px; }
}
