:root {
  --ink: #0b1220;
  --muted: #5c6778;
  --line: rgba(15, 23, 42, 0.12);
  --blue: #2563eb;
  --green: #22c55e;
  --card: rgba(255, 255, 255, 0.7);
  --device: #07090f;
  --cream: #f4f0e8;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  --sans: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: #d8e1eb;
}

.studio {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 50% -8%, #ffffff 0%, transparent 58%),
    linear-gradient(180deg, #eef3f8 0%, #d5dee8 46%, #c5d0dc 100%);
}

.grid-wall {
  position: absolute;
  inset: 0 0 32%;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

.grid-floor {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 160%;
  height: 46%;
  transform: translateX(-50%) perspective(420px) rotateX(72deg);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
}

.glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 420px;
  height: 220px;
  transform: translate(-50%, -20%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  filter: blur(8px);
}

.nav {
  position: relative;
  z-index: 2;
}

main,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.1rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 8px 0 0 var(--green);
  margin-right: 8px;
}

.links {
  display: flex;
  gap: 1.1rem;
  margin-left: 0.4rem;
}

.links a,
.hub {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.links a:hover,
.hub:hover { color: var(--ink); }

.hub { margin-left: auto; font-weight: 600; }

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
  text-align: center;
}

.kicker {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1.1rem;
}

.kicker span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h1 .line { display: block; overflow: hidden; }

h1 .ch {
  display: inline-block;
  will-change: transform, opacity;
}

.lede {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #f8fafc;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.tiny {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn.tiny.light {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.orbit-stage {
  position: relative;
  width: min(720px, 100%);
  margin: 1.6rem auto 0;
  aspect-ratio: 16 / 9;
}

.orbit-svg {
  width: 100%;
  height: 100%;
  display: block;
}

#orbit-path {
  stroke: url(#orbit-stroke);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.handle {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
}

.chrome-cursor {
  position: absolute;
  left: 44%;
  top: 38%;
  width: 72px;
  height: 86px;
  filter: drop-shadow(0 22px 18px rgba(15, 23, 42, 0.28));
  pointer-events: none;
}

.chrome-cursor svg { width: 100%; height: 100%; display: block; }

.pin-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 3.5rem auto 0;
}

.pin-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  min-height: min(520px, calc(100vh - 120px));
}

.stage-label {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pin-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 360px;
}

.idx {
  margin: 0;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pin-copy h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.pin-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 34rem;
  min-height: 4.6em;
}

.beats {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.beats li {
  padding: 0;
  border-left: 2px solid var(--line);
}

.beats button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.beats li.is-on {
  border-left-color: var(--blue);
}

.beats li.is-on button {
  color: var(--ink);
  font-weight: 650;
}

.device {
  background: var(--device);
  color: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
}

.device-bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 0.9rem;
  background: #10131a;
}

.device-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b4250;
}

.device-bar span:first-child { background: #ef4444; }

.device-screen { padding: 1.4rem 1.3rem 1.6rem; }

.device-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93a0b5;
}

.device-title {
  margin: 0.45rem 0 1.2rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.device-bars {
  display: grid;
  gap: 0.55rem;
}

.device-bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  opacity: 0.85;
}

.device-bars i:nth-child(1) { width: 86%; }
.device-bars i:nth-child(2) { width: 64%; opacity: 0.55; }
.device-bars i:nth-child(3) { width: 74%; opacity: 0.35; }

.scrub {
  margin-top: 1rem;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.scrub b {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.boards {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  gap: 1.2rem;
}

.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.board-head h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.board-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
}

.device-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--device);
  min-height: 380px;
  isolation: isolate;
}

.device-frame.light { background: #10141c; }

.device-frame canvas {
  display: block;
  width: 100%;
  height: 380px;
  pointer-events: none;
}

.live-ui {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef8;
  backdrop-filter: blur(10px);
}

.live-ui p { margin: 0; font-size: 0.82rem; }

.note {
  width: min(800px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.note h2 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.note a { color: var(--blue); }

.note ul { padding-left: 1.1rem; }

.note code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.foot {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.4rem auto 2.2rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a { color: var(--ink); }

@media (max-width: 820px) {
  .links { display: none; }
  .pin-layout { grid-template-columns: 1fr; min-height: 0; }
  .device { min-height: 220px; }
  .orbit-stage { aspect-ratio: 5 / 4; }
  .board-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chrome-cursor, .ch { transform: none !important; }
}
