:root {
  --bg: #fbf7f0;
  --bg-tint: #f3ecff;
  --ink: #1d1b2e;
  --ink-2: #4a4760;
  --muted: #7a7690;
  --card: #ffffff;
  --line: #1d1b2e;
  --accent: #6c5ce7;
  --blue: #3b82f6;
  --orange: #ff7a45;
  --green: #12b886;
  --purple: #a855f7;
  --pink: #ff5ea8;
  --yellow: #f5b301;
  --dark: #17152a;
  --dark-2: #221f3a;
  --dark-3: #2e2a4d;
  --dark-ink: #e9e6ff;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--line);
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.placeholder { background: #fff3c4; border-radius: 4px; padding: 0 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--accent); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--line);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-green { background: var(--green); }
.btn-purple { background: var(--purple); }
.btn-pink { background: var(--pink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn.disabled { opacity: .5; pointer-events: none; }
.mini {
  padding: 5px 10px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--dark-3); background: var(--dark-2); color: var(--dark-ink);
}
.mini:hover:not(:disabled) { background: var(--dark-3); }
.mini:disabled { opacity: .4; cursor: not-allowed; }
.mini-ai { background: linear-gradient(90deg, #7b61ff, #ff5ea8); border-color: transparent; color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.nav-links { display: flex; gap: 26px; font-weight: 700; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 3px;
  background: var(--accent); border-radius: 2px; transition: right .2s;
}
.nav-links a:hover::after { right: 0; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) 60px;
  max-width: 1280px; margin: 0 auto;
}
.eyebrow { font-weight: 800; color: var(--accent); letter-spacing: .08em; font-size: 14px; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hint { color: var(--muted); font-size: 14px; }
.rotator {
  display: inline-block; padding: 0 .18em; margin: 0 .08em;
  background: var(--yellow); border: 3px solid var(--line); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--line); transform: rotate(-2deg);
  transition: background .3s;
}
.rotator.swap { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: rotate(-2deg) scale(.6); } 100% { transform: rotate(-2deg) scale(1); } }

.hero-stage { position: relative; height: 440px; }
.float-tile {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 16px; font-weight: 800;
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite; white-space: nowrap;
  will-change: transform; z-index: 2;
}
.float-tile span {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 18px; border: 2px solid var(--line);
}
.float-tile:nth-child(2) { animation-delay: -1s; }
.float-tile:nth-child(3) { animation-delay: -2s; }
.float-tile:nth-child(4) { animation-delay: -3s; }
.float-tile:nth-child(5) { animation-delay: -4s; }
.float-tile:nth-child(6) { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.t-blue span { background: var(--blue); }
.t-orange span { background: var(--orange); }
.t-green span { background: var(--green); }
.t-purple span { background: var(--purple); }
.t-pink span { background: var(--pink); }
.t-yellow span { background: var(--yellow); }
.hero-blob {
  position: absolute; inset: 12% 10%; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  background: radial-gradient(circle at 30% 30%, #b8a9ff, var(--accent));
  border: 3px solid var(--line); animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; }
  50% { border-radius: 58% 42% 40% 60% / 40% 60% 45% 55%; }
}
.hero-u {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-size: 180px; font-weight: 900; color: #fff; line-height: 1;
  text-shadow: 6px 6px 0 var(--line); -webkit-text-stroke: 3px var(--line);
  z-index: 1; user-select: none;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; border-block: 2px solid var(--line); background: var(--ink); color: #fff;
  transform: rotate(-1.2deg); margin: 10px -20px 0;
}
.marquee-track {
  display: flex; gap: 22px; width: max-content; padding: 14px 0;
  font-weight: 800; font-size: 18px; white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee-track span:nth-child(4n+2) { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.section-dark {
  max-width: none; background: var(--dark); color: var(--dark-ink);
  border-block: 2px solid var(--line);
}
.section-dark > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.section-dark .eyebrow { color: #b8a9ff; }
.section-dark .muted { color: #9a95bd; }
.section-tint { max-width: none; background: var(--bg-tint); border-block: 2px solid var(--line); }
.section-tint > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 44px; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  transform-style: preserve-3d;
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: var(--c); border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--line);
}
.product:hover { box-shadow: 9px 9px 0 var(--c); }
.c-blue { --c: var(--blue); }
.c-orange { --c: var(--orange); }
.c-green { --c: var(--green); }
.c-purple { --c: var(--purple); }
.c-pink { --c: var(--pink); }
.c-yellow { --c: var(--yellow); }
.product-top { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 14px; }
.p-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 26px; border: 2px solid var(--line);
}
.tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--line); background: #eee; }
.tag-hot { background: #ffe066; }
.tag-soon { background: #d3f9d8; }
.p-sub { color: var(--muted); font-weight: 700; margin-top: -4px; }
.product ul { padding-left: 1.1em; margin: 0 0 18px; color: var(--ink-2); flex: 1; }
.product li { margin: 4px 0; }
.p-try {
  align-self: flex-start; padding: 8px 16px; border-radius: 999px; font-weight: 800;
  background: transparent; border: 2px solid var(--line); color: var(--ink);
  transition: background .15s, color .15s;
}
.p-try:hover { background: var(--c); color: #fff; }

/* ---------- demo shell ---------- */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border-radius: 999px; border: 2px solid var(--dark-3); background: var(--dark-2);
  color: var(--dark-ink); font-weight: 800; transition: all .15s;
}
.demo-tab:hover { border-color: #6b64a3; }
.demo-tab.active { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.b-blue { background: var(--blue); }
.b-orange { background: var(--orange); }
.b-green { background: var(--green); }
.b-purple { background: var(--purple); }
.b-pink { background: var(--pink); }
.b-yellow { background: var(--yellow); }
.demo-panel { display: none; animation: rise .35s ease; }
.demo-panel.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.window {
  border-radius: 14px; overflow: hidden; background: #0f0e1d;
  border: 2px solid #3a3560; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.window-light { background: #fff; color: var(--ink); }
.win-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: #1c1a33; border-bottom: 1px solid #3a3560; font-size: 13px; color: #a7a2cf;
}
.window-light .win-bar { background: #f1effa; border-color: #ddd8f0; color: var(--muted); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.chips-label { color: #9a95bd; font-weight: 700; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-family: var(--mono); font-size: 13px;
  background: var(--dark-2); border: 1px solid #4a4580; color: var(--dark-ink);
}
.chip:hover { background: var(--dark-3); }
.chip-danger { border-color: #ff6b6b; color: #ffb3b3; }
.col-title { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }

/* ---------- arcoTerm ---------- */
.term { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.term-side { background: #15132a; border-right: 1px solid #2c2850; padding: 14px; font-size: 13px; }
.side-title { color: #8d88b8; font-weight: 800; font-size: 12px; margin: 0 0 8px; letter-spacing: .04em; }
.side-hint { color: #6f6a99; font-size: 12px; margin: 6px 0 18px; }
.srv { display: flex; align-items: center; gap: 6px; padding: 6px 6px; border-radius: 6px; cursor: pointer; font-family: var(--mono); }
.srv:hover { background: #221f3e; }
.srv input { accent-color: var(--blue); }
.env { font-family: var(--sans); font-size: 11px; padding: 0 5px; border-radius: 4px; font-weight: 800; }
.env-prod { background: #4a1d2a; color: #ff8fa3; }
.env-test { background: #183a2d; color: #63e6be; }
.meter { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 6px; margin: 6px 0; color: #a7a2cf; }
.meter b { height: 8px; border-radius: 4px; background: #2c2850; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #22d3ee); transition: width .8s ease; }
.meter em { font-style: normal; text-align: right; font-family: var(--mono); font-size: 12px; }
.term-main { display: flex; flex-direction: column; min-width: 0; }
.term-out {
  flex: 1; padding: 14px 16px; font-family: var(--mono); font-size: 13.5px; line-height: 1.55;
  color: #d6d3f0; overflow-y: auto; max-height: 360px; white-space: pre-wrap; word-break: break-all;
}
.term-out .p { color: #7ee787; }
.term-out .host { color: #79c0ff; font-weight: 700; }
.term-out .warn { color: #ffd166; }
.term-out .err { color: #ff7b72; }
.term-out .dim { color: #6f6a99; }
.term-out .block {
  display: block; margin: 6px 0; padding: 10px 12px; border-radius: 8px;
  background: #3a1220; border: 1px solid #ff6b6b; color: #ffc9c9; white-space: normal;
  animation: shake .4s;
}
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.term-in { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #2c2850; font-family: var(--mono); font-size: 13.5px; }
.prompt { color: #7ee787; white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; caret-color: #7ee787; }

/* ---------- Yi Cap ---------- */
.cap-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.phone {
  position: relative; width: 230px; height: 460px; border-radius: 38px; padding: 12px;
  background: #0b0a16; border: 3px solid #3a3560; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.phone-notch { position: absolute; left: 50%; top: 18px; translate: -50% 0; width: 80px; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 28px; padding: 46px 16px 16px;
  background: linear-gradient(160deg, #ffe8dc, #ffd0e6); color: var(--ink);
  display: flex; flex-direction: column; gap: 9px;
}
.phone-time { position: absolute; top: 20px; left: 34px; font-size: 12px; font-weight: 800; color: var(--ink); margin: 0; }
.phone-title { font-weight: 900; font-size: 18px; margin: 0 0 4px; }
.app-btn {
  text-align: left; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px; color: var(--ink);
  box-shadow: 2px 2px 0 var(--line); transition: transform .1s;
}
.app-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.phone-proxy { margin-top: auto; font-size: 11px; color: var(--ink-2); text-align: center; }
.cap-win { min-width: 0; }
.cap-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #2c2850; }
.cap-tools input {
  flex: 1; min-width: 140px; padding: 5px 10px; border-radius: 8px;
  background: #15132a; border: 1px solid #2c2850; color: #fff; font: inherit; font-size: 13px;
}
.cap-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 380px; }
.cap-table-wrap { position: relative; overflow: auto; max-height: 400px; border-right: 1px solid #2c2850; }
.cap-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: var(--mono); }
.cap-table th { position: sticky; top: 0; background: #1c1a33; color: #8d88b8; text-align: left; padding: 7px 8px; font-weight: 600; }
.cap-table td { padding: 6px 8px; border-bottom: 1px solid #1f1c38; white-space: nowrap; color: #d6d3f0; }
.cap-table tr { cursor: pointer; }
.cap-table tbody tr:hover td { background: #1f1c38; }
.cap-table tr.sel td { background: #2e2a5a; }
.cap-table tr.new td { animation: flash 1s; }
@keyframes flash { from { background: #5b4bd6; } }
.cap-table .path { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.m-GET { color: #7ee787; }
.m-POST { color: #ffa657; }
.s-2 { color: #7ee787; }
.s-4, .s-5 { color: #ff7b72; }
.replay-mark { color: #d2a8ff; }
.cap-empty { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: #6f6a99; padding: 0 20px; }
.cap-detail { padding: 14px; font-size: 13px; overflow: auto; max-height: 400px; }
.cap-detail h4 { margin: 0 0 6px; font-size: 13px; color: #b8a9ff; }
.cap-detail pre {
  margin: 0 0 14px; padding: 10px; border-radius: 8px; background: #15132a;
  font-family: var(--mono); font-size: 12px; color: #d6d3f0; white-space: pre-wrap; word-break: break-all;
}
.cap-detail img { display: block; max-width: 100%; border-radius: 8px; margin-bottom: 12px; }
.ai-box { border: 1px solid #7b61ff; background: linear-gradient(160deg, #241e4d, #2b1734); border-radius: 10px; padding: 12px; }
.ai-box h4 { color: #ff9fd0; }
.ai-text { white-space: pre-wrap; color: #ece9ff; line-height: 1.6; }
.ai-text::after { content: "▍"; animation: blink 1s steps(1) infinite; color: #ff9fd0; }
.ai-text.done::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- u-back ---------- */
.back { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 18px; padding: 20px; color: var(--dark-ink); }
.files { list-style: none; margin: 0; padding: 0; min-height: 230px; background: #15132a; border-radius: 10px; border: 1px solid #2c2850; }
.files li {
  display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px;
  border-bottom: 1px solid #1f1c38; font-size: 13px; font-family: var(--mono);
}
.files li .st { font-family: var(--sans); font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 4px; }
.st-new { background: #183a2d; color: #63e6be; }
.st-mod { background: #3d3112; color: #ffd166; }
.st-ok { color: #6f6a99; }
.files li.arrive { animation: flash 1.2s; }
.back-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.pipe { position: relative; width: 100%; height: 60px; }
.pipe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #3a3560; }
.packet {
  position: absolute; top: 50%; left: 0; translate: 0 -50%;
  padding: 2px 8px; border-radius: 6px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
  animation: fly 1s ease-in forwards;
}
@keyframes fly { from { left: 0; opacity: 0; } 15% { opacity: 1; } to { left: calc(100% - 60px); opacity: 0; } }
.back-log {
  border-top: 1px solid #2c2850; padding: 10px 20px; height: 110px; overflow-y: auto;
  font-family: var(--mono); font-size: 12.5px; color: #9a95bd;
}
.back-log .ok { color: #63e6be; }

/* ---------- K230 ---------- */
.k230 { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 420px; }
.k-editor { border-right: 1px solid #2c2850; display: flex; flex-direction: column; min-width: 0; }
.k-tools { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #2c2850; }
.k-tools select { background: #15132a; color: #fff; border: 1px solid #3a3560; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.code {
  flex: 1; margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: #d6d3f0; overflow: auto; counter-reset: ln;
}
.code .ln { display: block; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; color: #4f4a7a; text-align: right; margin-right: 14px; }
.code .ln.run { background: rgba(168, 85, 247, .18); }
.kw { color: #ff7ab2; }
.str { color: #a5d6ff; }
.num { color: #ffa657; }
.com { color: #6f6a99; font-style: italic; }
.fn { color: #d2a8ff; }
.k-board { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.board {
  position: relative; padding: 16px; border-radius: 14px;
  background: linear-gradient(145deg, #1e5a3c, #0f3b26); border: 2px solid #2f7a52;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .04);
}
.board canvas { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; border: 3px solid #111; }
.board-led {
  position: absolute; right: 22px; bottom: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: #3a1f1f; border: 2px solid #111; transition: background .1s, box-shadow .1s;
}
.board-label { position: absolute; left: 22px; bottom: 22px; font-size: 11px; color: #9fe3bf; font-family: var(--mono); }
.serial {
  margin: 0; flex: 1; min-height: 110px; max-height: 150px; overflow-y: auto; padding: 10px 12px; border-radius: 10px;
  background: #0a0915; border: 1px solid #2c2850; font-family: var(--mono); font-size: 12px; color: #63e6be;
}

/* ---------- t-music ---------- */
.music { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 22px; color: var(--dark-ink); }
.m-now { display: flex; gap: 22px; align-items: center; }
.vinyl {
  flex: none; width: 150px; height: 150px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 3px 5px);
  border: 3px solid #000; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.vinyl.spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl-label { width: 54px; height: 54px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: 22px; color: #fff; border: 2px solid #000; }
.m-info { min-width: 0; }
.m-title { font-size: 22px; font-weight: 900; margin: 0; }
.m-by { color: #9a95bd; margin: 2px 0 10px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.eq i { width: 7px; height: 4px; border-radius: 3px; background: linear-gradient(var(--pink), var(--purple)); transition: height .12s; }
.mute { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.m-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.songs, .queue { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.songs li, .queue li {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; margin-bottom: 6px;
  border-radius: 8px; background: #15132a; border: 1px solid #2c2850; font-size: 13.5px;
}
.songs li { cursor: pointer; transition: transform .1s, border-color .1s; }
.songs li:hover { border-color: var(--pink); transform: translateX(3px); }
.songs li span:last-child, .queue li span:last-child { color: #9a95bd; font-size: 12px; white-space: nowrap; }
.queue li { animation: rise .3s; }
.queue li.empty { justify-content: center; color: #6f6a99; }

/* ---------- fire-tools ---------- */
.fire { padding: 22px; }
.fire-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fmode { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; }
.fmode.active { background: var(--yellow); }
.drop {
  border: 3px dashed #c9c3e6; border-radius: 16px; min-height: 260px; display: grid; place-items: center;
  text-align: center; padding: 20px; transition: background .15s, border-color .15s;
}
.drop.over { background: #fff8e1; border-color: var(--yellow); }
.drop-icon { font-size: 54px; margin-bottom: 8px; }
.convert { display: flex; align-items: center; gap: 22px; justify-content: center; flex-wrap: wrap; }
.doc {
  width: 92px; height: 116px; border-radius: 8px; border: 2px solid var(--line); background: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; gap: 5px; position: relative;
  box-shadow: 3px 3px 0 var(--line);
}
.doc::before { content: attr(data-ext); position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 900; padding: 1px 6px; border-radius: 4px; color: #fff; background: var(--dc); }
.doc i { display: block; height: 5px; border-radius: 3px; background: #e2def3; }
.doc i:nth-child(2) { width: 70%; }
.arrow-run { font-size: 28px; animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.progress { width: min(360px, 90%); height: 12px; border-radius: 6px; border: 2px solid var(--line); overflow: hidden; margin: 16px auto 8px; background: #fff; }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--yellow) 0 10px, #ffd54d 10px 20px); transition: width .2s; }

/* ---------- account ---------- */
.account { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-size: 12px; font-weight: 900;
}
.account-visual { position: relative; height: 380px; display: grid; place-items: center; }
.qr-card {
  position: relative; z-index: 2; padding: 18px; border-radius: 20px; background: #fff; text-align: center;
  border: 2px solid var(--line); box-shadow: var(--shadow); width: 210px;
}
.qr-card canvas { display: block; margin: 0 auto 8px; width: 168px; height: 168px; image-rendering: pixelated; }
.qr-card p { margin: 0; font-size: 14px; font-weight: 700; }
.qr-card.ok { animation: pop .4s; }
.orbit { position: absolute; inset: 0; animation: orbit 30s linear infinite; }
.o-app {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-size: 22px; border: 2px solid var(--line);
  transform: rotate(calc(var(--i) * 60deg)) translate(170px) rotate(calc(var(--i) * -60deg));
  filter: grayscale(1) opacity(.45); transition: filter .4s, box-shadow .4s;
}
.o-app.on { filter: none; box-shadow: 0 0 0 6px rgba(108, 92, 231, .25); }
.o-app:nth-child(1) { --i: 0; } .o-app:nth-child(2) { --i: 1; } .o-app:nth-child(3) { --i: 2; }
.o-app:nth-child(4) { --i: 3; } .o-app:nth-child(5) { --i: 4; } .o-app:nth-child(6) { --i: 5; }
@keyframes orbit { to { rotate: 360deg; } }
.orbit .o-app { animation: counter 30s linear infinite; }
@keyframes counter { to { rotate: -360deg; } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan .ticks { flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-hot { background: var(--ink); color: #fff; transform: translateY(-10px); box-shadow: 8px 8px 0 var(--accent); }
.plan-hot .btn { background: var(--yellow); color: var(--ink); }
.plan-soon { opacity: .85; }
.price { font-size: 34px; font-weight: 900; margin: 0 0 14px; }
.ribbon {
  position: absolute; top: -14px; right: 20px; padding: 3px 14px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 900; font-size: 13px; border: 2px solid var(--line);
  transform: rotate(4deg);
}

/* ---------- about / footer ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); }
.footer { text-align: center; padding: 30px 16px 40px; border-top: 2px solid var(--line); }
.footer p { margin: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 140%; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
  border: 2px solid #fff; transition: translate .3s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none;
}
.toast.show { translate: -50% 0; }

.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease, transform .2s, box-shadow .2s; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .cap-table th:nth-child(6), .cap-table td:nth-child(6) { display: none; }
  .cap-table .path { max-width: 120px; }
}
@media (max-width: 960px) {
  .hero, .account, .about { grid-template-columns: 1fr; }
  .hero-stage { height: 340px; }
  .hero-u { font-size: 130px; }
  .product-grid, .plans { grid-template-columns: 1fr 1fr; }
  .plan-hot { transform: none; }
  .cap-wrap { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
  .phone-screen { padding-top: 46px; }
  .cap-body, .k230, .music { grid-template-columns: 1fr; }
  .cap-table-wrap { border-right: 0; border-bottom: 1px solid #2c2850; max-height: 260px; min-height: 180px; }
  .k-editor { border-right: 0; border-bottom: 1px solid #2c2850; }
  .back { grid-template-columns: 1fr; }
  .pipe { height: 40px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .product-grid, .plans { grid-template-columns: 1fr; }
  .term { grid-template-columns: 1fr; }
  .term-side { border-right: 0; border-bottom: 1px solid #2c2850; }
  .monitor { display: none; }
  .cap-table th:nth-child(3), .cap-table td:nth-child(3) { display: none; }
  .cap-table th { white-space: nowrap; }
  .m-now { flex-direction: column; text-align: center; }
  .m-now .row-btns, .eq { justify-content: center; }
  .m-lists { grid-template-columns: 1fr; }
  .hero-stage { height: 300px; }
  .float-tile { padding: 8px 12px; font-size: 13px; }
  .float-tile span { width: 26px; height: 26px; font-size: 14px; }
  .o-app { transform: rotate(calc(var(--i) * 60deg)) translate(140px) rotate(calc(var(--i) * -60deg)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
